1/* 2This file includes the following scripts 3â ã¹ã ã¼ãºã¹ã¯ãã¼ã« 4Copyright CoolWebWindow. 5http:http://www.coolwebwindow.com/weblife_column/coolweb/000340.php 6Licensed under the MIT License: 7â ãã¼ã«ãªã¼ãã¼ 8â ãã©ã¦ã¶ã»ã¬ã¯ã¿ 9CSS Browser Selector v0.3.5 (Feb 05, 2010) 10Rafael Lima (http://rafael.adm.br) 11http://rafael.adm.br/css_browser_selector 12License: http://creativecommons.org/licenses/by/2.5/ 13Contributors: http://rafael.adm.br/css_browser_selector#contributors 14â å¤é¨ãªã³ã¯ 15example:<a class="blank"> 16*/ 17 18/*--- start general set ---*/ 19$(function() { 20 $('a[href^=#]').click(function() { 21 var speed = 400; 22 var href = $(this).attr("href"); 23 var target = $(href == "#" || href == "" ? 'html' : href); 24 var position = target.offset().top; 25 $('body,html').animate({ scrollTop: position }, speed, 'swing'); 26 return false; 27 }); 28}); 29 30$(function rollOver() { 31 var images = $("img"); 32 for (var i = 0; i < images.size(); i++) { 33 if (images.eq(i).attr("src").match("_off.")) { 34 $("img").eq(i).hover(function() { 35 $(this).attr('src', $(this).attr("src").replace("_off.", "_on.")); 36 $(this).attr('src', $(this).attr("src").replace("_off-120x120.", "_on-120x120.")); 37 }, function() { 38 $(this).attr('src', $(this).attr("src").replace("_on.", "_off.")); 39 $(this).attr('src', $(this).attr("src").replace("_on-120x120.", "_off-120x120.")); 40 }); 41 }; 42 }; 43}); 44 45 function pullDownMenuPc(that) { 46 var pullDownState = $(that).find('ul').css('display'); 47 if (pullDownState == 'none') { 48 $('.hasChild').children('ul').stop(true, true).slideUp(); 49 $(that).addClass('active'); 50 $(that).children('ul').stop(true, true).slideDown(); 51 } else { 52 $(that).removeClass('active'); 53 $(that).children('ul').stop(true, true).slideUp(); 54 }; 55 }; 56 57window.onload = function() { 58 var node_a = document.getElementsByTagName('a'); 59 for (var i in node_a) { 60 if (node_a[i].className == 'blank') { 61 node_a[i].onclick = function() { 62 window.open(this.href, '', ''); 63 return false; 64 }; 65 } 66 } 67}; 68 69 70 71var timer = false; 72var deviceWidth = $(document).width(); 73var deviceHeight = ((deviceWidth / 16) * 9).toFixed(0); 74var breakPointPC = 900; 75var breakPointTB = 767; 76var breakPointSP = 0; 77 78var mapCanvasWidth = $('#mapCanvas').width(); 79 80 81var _ua = (function() { 82 return { 83 ltIE6: typeof window.addEventListener == "undefined" && typeof document.documentElement.style.maxHeight == "undefined", 84 ltIE7: typeof window.addEventListener == "undefined" && typeof document.querySelectorAll == "undefined", 85 ltIE8: typeof window.addEventListener == "undefined" && typeof document.getElementsByClassName == "undefined", 86 ltIE9: document.uniqueID && !window.matchMedia, 87 gtIE10: document.uniqueID && document.documentMode >= 10, 88 Trident: document.uniqueID, 89 Gecko: window.sidebar, 90 Presto: window.opera, 91 Blink: window.chrome, 92 Webkit: !window.chrome && typeof document.webkitIsFullScreen != undefined, 93 Touch: typeof document.ontouchstart != "undefined", 94 Mobile: typeof window.orientation != "undefined" 95 } 96})(); 97 98 99 100 101$(function() { 102 103 104 function jsSwitch() { 105 jsSwitchClear(); 106 deviceWidth = $(document).width(); 107 viewerHeight = window.innerHeight ? window.innerHeight : $(window).height(); 108 109 $(document).on('click', '#sideMvp > dt,#sideMvpToggele', function() { 110 $(this).parents('#sideMvp').toggleClass("active"); 111 if (deviceWidth > breakPointPC) { 112 $('#sideMvp > dd').css({ display: 'block' }); 113 } else { 114 $('#sideMvp > dd').stop().slideToggle(); 115 } 116 }); 117 118 119 if (deviceWidth > breakPointPC) { 120 //PC display 121 $('#sideMvp > dd').css({'display': 'block' }); 122 $("nav > dl > dd").css('display', 'block'); 123 $(".fNav dd").removeAttr('style'); 124 125 126 $('.hasChild').on({ 127 'mouseenter': function(e) { 128 e.preventDefault(); 129 var that = $(this); 130 pullDownMenuPc(that); 131 }, 132 'mouseleave': function(e) { 133 e.preventDefault(); 134 var that = $(this); 135 pullDownMenuPc(that); 136 } 137 }); 138 139 140 var timer = false; 141 142 $(document).imagesLoaded(function() {}); 143 144 $(window).resize(function() { 145 if (timer !== false) { clearTimeout(timer); } 146 timer = setTimeout(function() { 147 // sideMvpheight(); 148 }, 200); 149 }); 150 151 } else if (deviceWidth > breakPointTB) { 152 //TABLET display 153 154 // $("nav > dl > dd").css('display', 'none'); 155 $("nav > dl > dt").on("click", function() { $("nav > dl > dd").stop().slideToggle('fast'); }); 156 $(".fNav dd").css('display', 'none'); 157 $(".fNav dt").on("click", function() { $(".fNav dd").stop().slideToggle('fast'); }); 158 159 } else { 160 //SP display 161 162 // $("nav > dl > dd").css('display', 'none'); 163 $("nav > dl > dt").on("click", function() { $("nav > dl > dd").stop().slideToggle('fast'); }); 164 $(".fNav dd").css('display', 'none'); 165 $(".fNav dt").on("click", function() { $(".fNav dd").stop().slideToggle('fast'); }); 166 167 }; 168 }; 169 170 jQuery.event.add(window, "load", function() { 171 jsSwitch(); 172 }); 173 174 if (!navigator.userAgent.match(/(iPhone|iPad|Android)/)) { 175 $(window).resize(function() { 176 timer = setTimeout(function() { 177 jsSwitch(); 178 // 179 }, 400); 180 }); 181 }; 182 183 function jsSwitchClear() { 184 $("#sideMvp > dt,#sideMvpToggele,.hasChild,nav > dl > dt,.fNav dt").off(); 185 // if (deviceWidth > breakPointSP) {} else {}; 186 }; 187 188 189 190}); 191 192 193//ã¹ãã or PC 194if (navigator.userAgent.match(/(iPhone|Android)/)) { 195 //ã¹ããç¨javascript 196 197 $(function() { 198 199 }); 200 201 202} else if (navigator.userAgent.match(/(iPad)/)) {} else { 203 204 205 //PCç¨javascript 206 207 if (_ua.ltIE8) {} else {} 208}; 209 210 211/*--- end general set ---*/
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.