X-Git-Url: http://git.osdn.jp/view?a=blobdiff_plain;f=0.6.x%2Flogger.html;h=74a955ee2da8c73f4574cb75f52812beb294114b;hb=adbf9e9a2c7d8e6857774f774742a7ff6fb50600;hp=b4a75163e409882d33f7965e9794c1de122d467c;hpb=85e1841284ae5dd95f1b2cedb497aba1cece0c59;p=pettanr%2FclientJs.git diff --git a/0.6.x/logger.html b/0.6.x/logger.html index b4a7516..74a955e 100644 --- a/0.6.x/logger.html +++ b/0.6.x/logger.html @@ -14,7 +14,7 @@ - + @@ -38,12 +38,13 @@ -webkit-user-drag : none; } html, body { - padding : 0; - margin : 0; - border : 0; - width : 100%; - height : 100%; - overflow : hidden; + padding : 0; + margin : 0; + border : 0; + width : 100%; + height : 100%; + overflow : hidden; + background : #FF66FF; } iframe { display : block; @@ -51,6 +52,7 @@ border : 0; height : 100%; margin-left : 0; + background : #fff; } #log { position : absolute; @@ -65,7 +67,7 @@ overflow : auto; } #toggle { - font-size : 1.5em; + font-size : 2em; font-family : Arial; position : absolute; top : 0; @@ -76,8 +78,9 @@ color : #00f; text-align : center; font-weight : bold; - z-index : 999; + z-index : 999999; cursor : pointer; + -webkit-tap-highlight-color : rgba(0,0,0,0); } .toggle_close #log, .toggle_none #toggle { @@ -161,7 +164,20 @@ hasEvent = false, toggleOpen = true, toggleBusy = false; - + + function __load(){ + __resize(); + setTimeout(function(){scrollTo(0, 1);}, 100); + if( window.addEventListener ){ + window.addEventListener( 'orientationchange', function(){ + setTimeout(function(){ + //alert( window.innerWidth + 'x' + window.innerHeight ); + __resize(); + }, 100); + }, false + ); // iOS + }; + }; function __resize( toggleChanged ){ var body = document.body, log = body.children[0], @@ -169,21 +185,18 @@ btn = body.children[2], viewW = document.all ? ( document.documentElement || body ).offsetWidth || window.innerWidth /* for ie9 */ : window.innerWidth, viewH = window.innerHeight; + if( 800 <= viewW ){ - if( document.all ){ - ifr.style.width = viewW - LOG_WIDTH + 'px'; - } else { - ifr.style.width = viewW - LOG_WIDTH + 'px'; + ifr.style.width = viewW - LOG_WIDTH + 'px'; + if( !document.all ){ ifr.style.height = viewH + 'px'; // NetFront3.4 }; body.className = 'toggle_none'; } else { if( viewW < 240 ) log.style.width = viewW + 'px'; - if( document.all ){ - ifr.style.width = viewW + 'px'; - } else { - ifr.style.width = viewW + 'px'; + ifr.style.width = viewW + 'px'; + if( !document.all ){ ifr.style.height = viewH + 'px'; // NetFront3.4 }; if( USE_ANIME && toggleChanged ){ @@ -194,7 +207,7 @@ body.className = toggleOpen ? 'toggle_open' : 'toggle_close'; }; }; - btn.innerHTML = toggleOpen ? '►' : '▼'; + btn.innerHTML = toggleOpen ? '▶' : '▼';//►▸ }; function __readyTrans(){ var body = document.body, @@ -237,5 +250,6 @@ -
-- console.log() --
- \ No newline at end of file +
-- console.log() --
+ +