Login   Register  
Icontem

File: bookmarklet_ie.js

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Mark Rolich  >  JS Measure  >  bookmarklet_ie.js  >  Download  
File: bookmarklet_ie.js
Role: Auxiliary script
Content type: text/plain
Description: bookmarklet javascript code for Internet Explorer
Class: JS Measure
Measure page area width and height interactively
Author: By
Last change:
Date: 2013-08-09 04:36
Size: 489 bytes
 

Contents

Class file image Download
if(window.measurer===undefined){document.body.appendChild(document.createElement('script')).src='https://raw.github.com/mark-rolich/Measurer.js/master/bookmarklet.js';}else{if(window.measurer.enabled===0){window.measurer.enable();}else{window.measurer.disable();};evt.attach('keydown',document,function(e){if(e.ctrlKey===true&&e.keyCode===77){if(window.measurer.enabled===0){window.measurer.enable();}else{window.measurer.disable();}}else if(e.keyCode===27){window.measurer.disable();}});}