Skip to content

Instantly share code, notes, and snippets.

@pocotan001
Created August 31, 2011 14:29
Show Gist options
  • Save pocotan001/1183673 to your computer and use it in GitHub Desktop.
Save pocotan001/1183673 to your computer and use it in GitHub Desktop.
ブックマークレット: ファーストビュー確認用(550px)
javascript:(function(){var d=document,o=d.createElement('div');with(o.style){position='fixed';top='550px';left='0';width='100%';height='100%';borderTop='1px #f00 solid';backgroundColor='rgba(255,255,255,.9)';color='#fff';fontSize='10px';zIndex='10000';}o.innerHTML='<p style='position:absolute;top:0;left:0;margin:0;padding:0pt 8px;background-color:#f00;'>550px</p>';d.body.appendChild(o);})();
// Uncompressed
javascript:
(function(){
var d = document,
o = d.createElement('div');
with(o.style){
position = 'fixed';
top = '550px';
left = '0';
width = '100%';
height = '100%';
borderTop = '1px #f00 solid';
backgroundColor = 'rgba(255, 255, 255, .9)';
color = '#fff';
fontSize = '10px';
zIndex = '10000';
}
o.innerHTML = '<p style='position:absolute;top:0;left:0;margin:0;padding:0pt 8px;background-color:#f00;'>550px</p>';
d.body.appendChild(o);
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment