OSDN Git Service

Version 0.6.3
authoritozyun <itozyun@user.sourceforge.jp>
Sat, 27 Jul 2013 14:32:18 +0000 (23:32 +0900)
committeritozyun <itozyun@user.sourceforge.jp>
Sat, 27 Jul 2013 14:32:18 +0000 (23:32 +0900)
0.6.x/css/ju.css
0.6.x/js/core/01_XUa.js
0.6.x/js/core/13_XViewEvent.js
0.6.x/js/core/14_XView.js

index dbce5ff..c9967d4 100644 (file)
@@ -6,6 +6,35 @@ html, body {
        overflow : hidden;\r
 }\r
 \r
+/*  mouse-operation-catcher\r
+--------------------------------------------------------------------------------------*/       \r
+       .mouse-operation-catcher {\r
+               position : absolute;\r
+               top      : 0;\r
+               left     : 0;\r
+               width    : 100%;\r
+               height   : 100%; /* 100% don't work for ie6, so ie6 need to set height as 'XXpx' by js */\r
+       }\r
+       .ActiveX-enabled .mouse-operation-catcher {\r
+               background-color : #fff;\r
+               filter           : alpha( opacity=0 );\r
+               -ms-filter       : alpha( opacity=0 );\r
+       }\r
+       /*\r
+        * ie では、背景を設定しないと、 mousemove が働かない。\r
+        * activeX 有効の場合は背景を着色して filter で透明に。\r
+        * activeX 無効の場合は透明 gif を使用\r
+        * background:                  url(4x4.gif) fixed repeat;\r
+        */\r
+       .ActiveX-disabled .mouse-operation-catcher {\r
+               background : url( "../images/opacity0.gif" ) fixed repeat;\r
+       }\r
+\r
+\r
+.jul-hover {\r
+       opacity : 0.5;\r
+}\r
+\r
 .PageRoot {\r
        position : relative;\r
 }\r
@@ -16,6 +45,7 @@ html, body {
 .TileBox,\r
 .ChromeBox {\r
        position        : absolute;\r
+       overflow        : hidden;\r
        box-sizing      : border-box;\r
        -moz-box-sizing : border-box;\r
 }
\ No newline at end of file
index 5320fa7..0befea7 100644 (file)
@@ -1,3 +1,5 @@
+var console = console || { log : function(){} };\r
+\r
 /*\r
  * UA\r
  */\r
index 46f86bc..f02b6a4 100644 (file)
@@ -54,7 +54,7 @@ if( window.navigator.msPointerEnabled ){
        X.ViewEvent.NameToID[ 'MSPointerUp'   ] = X.ViewEvent.POINTER_END;\r
        X.ViewEvent.NameToID[ 'MSPointerMove' ] = X.ViewEvent.POINTER_MOVE;\r
 } else\r
-if( ('ontouchstart' in window) || window.DocumentTouch && document instanceof DocumentTouch ){\r
+if( 'ontouchstart' in window || window.DocumentTouch && document instanceof DocumentTouch ){\r
        X.ViewEvent.IdToName[ X.ViewEvent.POINTER_START ] = 'touchstart';\r
        X.ViewEvent.IdToName[ X.ViewEvent.POINTER_END   ] = 'touchend';\r
        X.ViewEvent.IdToName[ X.ViewEvent.POINTER_MOVE  ] = 'touchmove';\r
index ce90604..017a9d0 100644 (file)
@@ -26,7 +26,6 @@ X.View = (function( window, document ){
        /* for ie9+/Mozilla/Opera9 */\r
        if( document.addEventListener ){\r
                X.DomEvent.add( document, 'DOMContentLoaded', init );\r
-               // document.addEventListener( "DOMContentLoaded", init, false );\r
        } else\r
        if( 4 < X.UA.IE ){\r
                // if this script in Head\r
@@ -100,8 +99,16 @@ X.View = (function( window, document ){
        );\r
                \r
        X.View.listenOnce( X.ViewEvent.SYS_READY, function(){\r
+               var b, x;\r
                if( X.UA.IE ){\r
                        X.Timer.add( 100, resize );\r
+                       if( X.UA.IE < 9 ){\r
+                               b = document.body;\r
+                               b.appendChild( x = document.createElement( 'div' ) );\r
+                               x.style.cssText = 'width:1px;height:1px;line-height:1px;filter:progid:DXImageTransform.Microsoft.Shadow()';\r
+                               b.className += [ b.className === '' ? '' : ' ', 'ActiveX-', 1 < x.offsetHeight ? 'enabled' : 'disabled' ].join( '' );\r
+                               b.removeChild( x );\r
+                       };\r
                } else {\r
                        X.DomEvent.add( window, 'resize', resize );\r
                };\r