1$(function() { 2 // URLã®åå¾ 3 var url = location.href 4 // ãã¹ã®åå¾ 5 var path = location.pathname 6 // ãã©ã¡ã¼ã¿ã¼ã®åå¾ 7 var param = location.search 8 // ãã¼ã¸å ã¢ã³ã«ã¼ã®åå¾ 9 var anc = location.hash 10 var gnav = $('.gnav_pc'); 11 if (url == "http://www.horipro-international.com/"){ 12 //if (url == "http://localhost:3000/"){ 13 gnav.hide(); 14 //ã¹ã¯ãã¼ã«ã100ã«éããããã¿ã³è¡¨ç¤º 15 $(window).scroll(function () { 16 if ($(this).scrollTop() > 100) { 17 gnav.fadeIn(500); 18 } else { 19 gnav.fadeOut(500); 20 } 21 }); 22 }else{ 23 gnav.show(); 24 } 25}); 26 27$(function() { 28 //翻訳ããå ´åã®å¦ç(翻訳ãã¼ã®é«ãã ãä¸ã«ããã) 29 translateBarAttachment(); 30 //翻訳ããå ´åã®å¦ç(翻訳ãã¼ã®é«ãã ãä¸ã«ããã) 31 var mo = new MutationObserver(function(mutationRecords) { 32 translateBarAttachment(); 33 }); 34 35 //styleã®ç£è¦ 36 var options = { 37 attributes: true, 38 attributeFilter: ["class", "style"] 39 }; 40 41 mo.observe(document.body, options); 42 //ç£è¦ãªãã·ã§ã³ã®ä½æ 43 44}); 45 46//翻訳ããå ´åã®å¦ç(翻訳ãã¼ã®é«ãã ãä¸ã«ããã) 47function translateBarAttachment() { 48 var $navbar = $(".gnav_pc"); 49 var $body = $("body"); 50 if($body.offset().top > 0){ 51 $navbar.css({ 52 "top": "40px" 53 }); //翻訳ãã¼ã®é«ãã ãä¸ã«ããã 54 }else if($body.offset().top == 0){ 55 $navbar.css({ 56 "top": "0" 57 }); 58 } 59} 60 61//ãããããã¦ã³ã®è¨å®ã颿°ã§ã¾ã¨ãã 62function mediaQueriesWin(){ 63 var width = $(window).width(); 64 if(width <= 768) {//æ¨ªå¹ ã768px以ä¸ã®å ´å 65 $(".has-child>span").off('click'); //has-childã¯ã©ã¹ãã¤ããaã¿ã°ã®onã¤ãã³ããè¤æ°ç»é²ãé¿ããçºoffã«ãã¦ä¸æ¦åæç¶æ 㸠66 $(".has-child>span").on('click', function() {//has-childã¯ã©ã¹ãã¤ããaã¿ã°ãã¯ãªãã¯ããã 67 var parentElem = $(this).parent();// aã¿ã°ããè¦ã親è¦ç´ ã®<li>ãåå¾ã 68 $(parentElem).toggleClass('active');//ç¢å°æ¹åãå¤ããããã®ã¯ã©ã¹åãä»ä¸ã㦠69 $(parentElem).children('ul').stop().slideToggle(500);//liã®åè¦ç´ ã®ã¹ã©ã¤ããééãããâ»æ°åã大ãããªãã»ã©ãã£ããéã 70 return false;//ãªã³ã¯ã®ç¡å¹å 71 }); 72 }else{//æ¨ªå¹ ã768px以ä¸ã®å ´å 73 $(".has-child").off('click');//has-childã¯ã©ã¹ãã¤ããaã¿ã°ã®onã¤ãã³ããoff(ç¡å¹)ã«ã 74 $(".has-child").removeClass('active');//activeã¯ã©ã¹ãåé¤ 75 $('.has-child').children('ul').css("display","");//ã¹ã©ã¤ããã°ã«ã§åä½ããdisplayãç¡å¹åã«ãã 76 } 77} 78 79// ãã¼ã¸ããªãµã¤ãºããããåããããå ´åã®è¨è¿° 80$(window).resize(function() { 81 mediaQueriesWin();/* ãããããã¦ã³ã®é¢æ°ãå¼ã¶*/ 82}); 83 84// ãã¼ã¸ãèªã¿è¾¼ã¾ãããããã«åããããå ´åã®è¨è¿° 85$(window).on('load',function(){ 86 mediaQueriesWin();/* ãããããã¦ã³ã®é¢æ°ãå¼ã¶*/ 87});
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.