X-Git-Url: http://git.osdn.jp/view?a=blobdiff_plain;f=0.6.x%2Flogger.html;h=74a955ee2da8c73f4574cb75f52812beb294114b;hb=adbf9e9a2c7d8e6857774f774742a7ff6fb50600;hp=7200148d720650a70e946f0c914ce1fcb69f264a;hpb=9f1658e2858d8eed1c3933184aa7858596015b61;p=pettanr%2FclientJs.git diff --git a/0.6.x/logger.html b/0.6.x/logger.html index 7200148..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,7 +78,7 @@ 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); } @@ -162,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], @@ -170,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 ){ @@ -238,6 +250,6 @@ -
-- console.log() --
+
-- console.log() --