1/*******************************************/ 2/********** ArtLab-Tokyo [Script] **********/ 3/*******************************************/ 4 5 6//ããã¼ãªã³ã¯ç¨è¨å®(ãªã³ã¯ã®ç¡å¹å) 7$(function () { 8 $('a[href="#dummy"]').on('click', function () { 9 return false; 10 }) 11}); 12 13 14//ãã¼ãã£ã³ã° 15$(window).on('load', function () { 16 $('.loading').delay(500).fadeOut(1500); 17}); 18//èªã¿è¾¼ã¿ãçµãããªãå ´åã¯10ç§ã§ãã¼ãã£ã³ã°ç»é¢ãå¼·å¶ãã§ã¼ãã¢ã¦ã - 19function loaderClose() { 20 $('.loading').fadeOut('slow'); 21} 22setTimeout('loaderClose()', 10000); 23 24 25//WOW.js è¨å® 26wow = new WOW({ 27 offset: 0, //ãã©ã¦ã¶ã®ãã¥ã¼ãã¼ãä¸é¨ããã®ãªãã»ããé(åä½px) - 28 mobile: true, //ã¢ãã¤ã«ããã¤ã¹åä½ON(true),OFF(false) - 29 live: true //å¸¸ææ¤ç¥ãã§ãã¯åä½ON(true),OFF(false) - 30}) 31wow.init(); 32 33$(window).on('load', function () { 34$('body').fadeIn(0); 35}); 36 37 38//StellarNav.js è¨å® 39$(function () { 40 $('.stellarnav').stellarNav({ 41 theme: 'plain', //ã«ã©ã¼ãã¼ã ('plain','light','dark') - 42 breakpoint: 767, //ã¢ãã¤ã«è¡¨ç¤ºã®ãã¬ã¤ã¯ãã¤ã³ã - 43 menuLabel: '', //ã¢ãã¤ã«è¡¨ç¤ºæã®ã¡ãã¥ã¼ã®ããã¹ãã©ãã« ('ããã¹ã') - 44 sticky: false, //ããã²ã¼ã·ã§ã³ã®ã¹ãã£ããã¼ã¨ãã§ã¯ã (true,false) â»PC表示æã®ã¿ - 45 position: 'right', //ã¢ãã¤ã«è¡¨ç¤ºæã®ã¡ãã¥ã¼ä½ç½® ('static','top','left','right') -
46 //â»'top'ã«è¨å®ããã¨ãã¢ãã¤ã«ã¡ãã¥ã¼ã¯ãã¼ã¸ã®ä¸çªä¸ã«é ç½® - 47 //â»'left'ã¾ãã¯'right'ã«è¨å®ããã¨ãã¢ãã¤ã«ã¡ãã¥ã¼ã¯å·¦ã¾ãã¯å³ãããã§ã¼ãã¤ã³ã¢ã¦ã - 48 openingSpeed: 100, //ãããããã¦ã³ééé度 (åä½ms) - 49 closingDelay: 0, //ãããããã¦ã³ãéããéã®é ã (åä½ms) - 50 showArrows: true, //ãµãã¡ãã¥ã¼ãããé ç®ã®æ¨ªã«ç¢å°ã表示 (true,false) - 51 phoneBtn: '', //é»è©±ãªã³ã¯ãã¡ãã¥ã¼ã®ä¸é¨ã«è¿½å ('é»è©±çªå·') - 52 phoneLabel: 'Call Us', //é»è©±ãªã³ã¯ãã¿ã³ã®ããã¹ãã©ãã« ('ããã¹ã') - 53 locationBtn: '', //ä½ç½®æ å ±ãªã³ã¯ãã¡ãã¥ã¼ã®ä¸é¨ã«è¿½å ('ä½ç½®æ å ±ãªã³ã¯å ã®ãã¹') - 54 locationLabel: 'Location', //ä½ç½®æ å ±ãªã³ã¯ãã¿ã³ã®ããã¹ãã©ãã« ('ããã¹ã') - 55 closeBtn: false, //ããã²ã¼ã·ã§ã³ã®æå¾ã«éãããã¿ã³ã追å (true,false) - 56 //â»position:'static'or'top'æã®ã¿ - 57 closeLabel: ' Close', //éãããã¿ã³ã®ããã¹ãã©ãã« ('ããã¹ã') - 58 mobileMode: false, //ããã©ã«ãã§ã¡ãã¥ã¼ãã¢ãã¤ã«è¡¨ç¤º (true,false) - 59 scrollbarFix: false //横é·ã¡ãã¥ã¼ã§ã®æ°´å¹³ã¹ã¯ãã¼ã«ãã¼è¡¨ç¤º (true,false) - 60 }); 61 //CLOSEãã¿ã³æ¼ä¸æã«éãã¦ãããããããã¦ã³ã¡ãã¥ã¼ãéãã - 62 $('.stellarnav.mobile a.close-menu, .stellarnav.mobile a.menu-toggle').on('click', function () { 63 $('.stellarnav.mobile .open > a.dd-toggle').click(); 64 }); 65 //ãªã³ã¯æ¼ä¸æã«ã¡ãã¥ã¼(éãã¦ãããããããã¦ã³ã¡ãã¥ã¼ãå«ã)ãå ¨ã¦éãã - 66 $('.stellarnav.mobile ul li a:not(.dd-toggle), .stellarnav.mobile ul div a, nav a.navbar-logo').on('click', function (event) { 67 event.preventDefault(); 68 var linkUrl = $(this).attr('href'); 69 $('.stellarnav.mobile .open > a.dd-toggle').click(); 70 $('.stellarnav.mobile ul').hide(); 71 location.href = linkUrl; 72 }); 73}); 74 75 76//ã¹ã ã¼ã¹ã¹ã¯ãã¼ã« 77$(function () { 78 var sclpos = $('header').outerHeight() - 1; //ãªãã»ããé(navã®é«ã(åä½px)ãèªååå¾) - 79 var scldurat = 1000; //ã¹ã¯ãã¼ã«ã®é度(åä½ms) - 80 //ã¢ã³ã«ã¼ãªã³ã¯ã¸å¥ãã¼ã¸ããé·ç§»ãã¦ããå ´åã®åä½ 81 var urlHash = location.hash; 82 if (urlHash) { 83 $('body,html').stop().animate({ 84 scrollTop: 0 85 }); 86 setTimeout(function () { 87 var target = $(urlHash); 88 var position = target.offset().top - sclpos; 89 $('body,html').stop().animate({ 90 scrollTop: position 91 }, { 92 duration: scldurat, 93 easing: 'easeOutExpo' //easingæå® - 94 }); 95 }, 500); //ãã¼ãæã®å¦çå¾ ã¡(500ms â»é©å®èª¿æ´)å¾ãæéå·®ã§ã¹ã¯ãã¼ã« - 96 history.replaceState('', document.title, window.location.pathname); //é·ç§»å¾ã®URLãã#ãåãé¤ã - 97 } 98 //#ã§å§ã¾ãã¢ã³ã«ã¼ãã¯ãªãã¯ããå ´åã®åä½ â»not(~)ã¯é¤å¤ããè¦ç´ ) 99 $('a[href^="#"]:not(a[href="#dummy"], #pagetop a, a.carousel-control-prev, a.carousel-control-next, a.nav-link, a[data-toggle="collapse"], a[data-toggle="tab"], .stellarnav.mobile a.menu-toggle, .stellarnav.mobile a.close-menu, .stellarnav.mobile a.dd-toggle)').on('click', function () { 100 var href = $(this).attr("href"); 101 var target = $(href == "#" || href == "" ? 'html' : href); 102 var position = target.offset().top - sclpos; 103 $('body,html').stop().animate({ 104 scrollTop: position 105 }, { 106 duration: scldurat, 107 easing: 'easeOutExpo' //easingæå® - 108 }); 109 return false; 110 }); 111}); 112 113 114//pagetopãã¿ã³ 115$(function () { 116 var topBtn = $('#pagetop'); 117 topBtn.hide(); 118 $(window).scroll(function () { 119 if ($(this).scrollTop() > 640) { //ãã¿ã³ã表示ãããã¾ã§ã®ã¹ã¯ãã¼ã«é(åä½px) - 120 topBtn.fadeIn(); 121 } else { 122 topBtn.fadeOut(); 123 } 124 }); 125 topBtn.on('click', function () { 126 var scldurat = 1000; //ã¹ã¯ãã¼ã«ã®é度(åä½ms) - 127 $('body,html').stop().animate({ 128 scrollTop: 0 129 }, { 130 duration: scldurat, 131 easing: 'easeOutExpo' //easingæå® - 132 }); 133 return false; 134 }); 135 topBtn.on('click', function () { //æ¼ä¸æã«ã¡ãã¥ã¼(éãã¦ãããããããã¦ã³ã¡ãã¥ã¼ãå«ã)ãå ¨ã¦éãã - 136 $('.stellarnav.mobile .open > a.dd-toggle').click(); 137 $('.stellarnav.mobile ul').hide(); 138 }); 139}); 140 141 142//åä¸ãã¡ã¤ã³ç¨iframe heightèªå調æ´(è¡æ«ã«ä½ç½ãä»å ããå ´åã¯.scrollHeight + [ä½ç½æ°å¤]ã¨è¨è¿°) 143$(window).on('load', function () { 144 $('.iframe-autoheight').on('load', function () { 145 try { 146 var height = $(this)[0].contentWindow.document.documentElement.scrollHeight; 147 $(this).css({ 148 'width': '100%', 149 'height': height 150 }); 151 } catch (event) {} 152 }) 153 $('.iframe-autoheight').trigger('load'); 154}); 155 156 157//ã¯ãã¹ãã¡ã¤ã³ç¨iframe heightèªåèª¿æ´ 158//$(function () { 159// $(window).on('message', function (event) { 160// //ã¯ãã¹ãµã¤ããªã¯ã¨ã¹ããã©ã¼ã¸ã§ãªå¯¾ç(éä¿¡å ã®æ¤è¨¼) - 161// if (event.originalEvent.origin !== 'http://å¤é¨ãµã¤ã.com') return; 162// var height = event.originalEvent.data; 163// $('.iframe-autoheight').css({ 164// 'width': '100%', 165// 'height': height 166// }); 167// }); 168//}); 169 170 171//ã¿ããããã¤ã¹(ã¹ããç)ã§ã®hoverã¨ãã§ã¯ãæå¹å 172window.ontouchstart = function () {}; 173window.addEventListener('touchstart', function () {}, true); 174window.addEventListener('touchstart', function () {}, false); 175 176 177//ã¿ããããã¤ã¹(ã¹ããç)ã§ã®hoverã¨ãã§ã¯ãç¡å¹å 178//var touch = 'ontouchstart' in document.documentElement || 179// navigator.maxTouchPoints > 0 || 180// navigator.msMaxTouchPoints > 0; 181//if (touch) { 182// try { 183// for (var si in document.styleSheets) { 184// var styleSheet = document.styleSheets[si]; 185// if (!styleSheet.rules) continue; 186// for (var ri = styleSheet.rules.length - 1; ri >= 0; ri--) { 187// if (!styleSheet.rules[ri].selectorText) continue; 188// if (styleSheet.rules[ri].selectorText.match(':hover')) { 189// styleSheet.deleteRule(ri); 190// } 191// } 192// } 193// } catch (ex) {} 194//} 195 196 197//iOS Safariã®ãæ»ããæä½ã§ãã£ãã·ã¥ã表示ãããåä½ã®å¯¾ç(å¼·å¶ãªãã¼ã) 198//window.onpageshow = function (event) { 199// if (event.persisted) { 200// window.location.reload(); 201// } 202//};
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.