1// JavaScript Document 2 3// ======================== 4// ãã³ãã¼ã¬ã¼ã¡ãã¥ã¼ 5// ======================== 6$(function() { 7 $('.menu-trigger').on('click',function(){ 8 if($(this).hasClass('active')){ 9 $(this).removeClass('active'); 10 $('.navigation').removeClass('open'); 11 $('body').removeClass('is-fixed'); 12 $('.overlay').removeClass('open'); 13 } else { 14 $(this).addClass('active'); 15 $('.navigation').addClass('open'); 16 $('body').addClass('is-fixed'); 17 $('.overlay').addClass('open'); 18 } 19 }); 20 $('.navigation a').on('click',function(){ 21 if($(this).parents(".navigation").hasClass('open')){ 22 $(this).parents(".navigation").removeClass('open'); 23 $('.menu-trigger').removeClass('active'); 24 $('body').removeClass('is-fixed'); 25 $('.overlay').removeClass('open'); 26 } 27 }); 28 $('.overlay').on('click',function(){ 29 if($(this).hasClass('open')){ 30 $(this).removeClass('open'); 31 $('.menu-trigger').removeClass('active'); 32 $('.navigation').removeClass('open'); 33 $('body').removeClass('is-fixed'); 34 $('.overlay').removeClass('open'); 35 } 36 }); 37}); 38 39 40// ======================== 41// header ããã¼è¡¨ç¤ºã®ããã²ã¼ã·ã§ã³ 42// ======================== 43 44$(function(){ 45 $('.link_lang').hover(function(event){ 46 if($(this).children('.list_lang_wrapper').hasClass('open')){ 47 $(this).children('.list_lang_wrapper').removeClass('open'); 48 } else { 49 $(this).children('.list_lang_wrapper').addClass('open'); 50 } 51 event.stopPropagation(); 52 }); 53}); 54 55$(function(){ 56 $('.box_link_header').hover(function(event){ 57 if($(this).children('.list_link_wrapper').hasClass('open')){ 58 $(this).children('.list_link_wrapper').removeClass('open'); 59 } else { 60 $(this).children('.list_link_wrapper').addClass('open'); 61 $('.box_link_header').not($(this)).children('.list_link_wrapper').removeClass('open'); 62 } 63 event.stopPropagation(); 64 }); 65}); 66 67 68// ======================== 69// navigation ã¢ã³ã¼ãã£ãªã³ 70// ======================== 71 72$(function(){ 73 $('.box_link_navigation dt').click(function(event){ 74 if($(this).siblings('dd').hasClass('open')){ 75 $(this).removeClass('accOn'); 76 $(this).siblings('dd').removeClass('open'); 77 } else { 78 $(this).addClass('accOn'); 79 $(this).siblings('dd').addClass('open'); 80 $('.box_link_navigation dt').not($(this)).siblings('dd').removeClass('open'); 81 } 82 event.stopPropagation(); 83 }); 84 $('.link_lang_navigation dt').click(function(event){ 85 if($(this).siblings('dd').hasClass('open')){ 86 $(this).removeClass('accOn'); 87 $(this).siblings('dd').removeClass('open'); 88 } else { 89 $(this).addClass('accOn'); 90 $(this).siblings('dd').addClass('open'); 91 $('.link_lang_navigation dt').not($(this)).siblings('dd').removeClass('open'); 92 } 93 event.stopPropagation(); 94 }); 95}); 96 97 98// ======================== 99// éªãéããã 100// ======================== 101particlesJS("snow_particlesjs", { //HTMLã®idãæå® 102 "particles": { 103 //ã·ã§ã¤ãã®è¨å® 104 "number": { 105 "value": 150, //ã·ã§ã¤ãã®æ° 106 "density": { 107 "enable": true, //ã·ã§ã¤ãã®å¯é度ã®è¨å®è¨±å¯ 108 "value_area": 800 //ã·ã§ã¤ãã®å¯é度 109 } 110 }, 111 "shape": { 112 "type": "image", //circleãedgeãtriangleãpolygonãstarãimage ããé¸ã¹ã 113 "image": { 114 "src": "https://kakechimaru.com/wp-content/themes/kakechimaru/image/snow_particlesjs.png", //éªã®ç»åãè¨å®ãã â»ç¸å¯¾ãã¹ã§ãå¯ 115 } 116 }, 117 "opacity": { 118 "value": 0.7, //éæåº¦ 119 "random": false, //éæåº¦ã©ã³ãã ã®è¨±å¯ 120 "anim": { 121 "enable": false, //éæåº¦ã®ã¢ãã¡ã¼ã·ã§ã³ããããã©ãã 122 "speed": 1, //ã¢ãã¡ã¼ã·ã§ã³ã®ã¹ãã¼ã 123 "opacity_min": 0.1, //éæåº¦ã®æå°å¤ 124 "sync": false //ã·ã§ã¤ããåæã«ã¢ãã¡ã¼ã·ã§ã³ããããã©ãã 125 } 126 }, 127 "size": { 128 "value": 5, //ã·ã§ã¤ãã®å¤§ãã 129 "random": true, //大ããã©ã³ãã ã®è¨±å¯ 130 "anim": { 131 "enable": false, //大ããã¢ãã¡ã¼ã·ã§ã³ããããã©ãã 132 "speed": 20, //ã¹ãã¼ã 133 "size_min": 0.1, //ã¹ãã¼ãã®æå°å¤ 134 "sync": false //åæã«ã¢ãã¡ã¼ã·ã§ã³ããããã©ãã 135 } 136 }, 137 // ç·ã®è¨å® 138 "line_linked": { 139 "enable": false, //ç·ã表示ãããã©ãã 140 }, 141 // åãã®è¨å® 142 "move": { 143 "enable": true, //ã·ã§ã¤ãã®åãããã©ãã 144 "speed": 2, //ã¹ãã¼ã 145 "direction": "bottom", //ã·ã§ã¤ãã®åãæ¹å(noneãtopãtop-rightãrightãbottom-rightãbottomãbottom-leftãleftãtop-left ããé¸ã¹ã) 146 "random": true, // åãã¯ã©ã³ãã 147 "straight": false, // åããã¨ã©ããªã 148 "out_mode": "out", //ã¨ãªã¢å¤ã«åºãã·ã§ã¤ãã®åã(outãbounce ããé¸ã¹ã) 149 "bounce": false, //è·³ãè¿ããªã 150 "attract": { 151 "enable": true, 152 "rotateX": 300, 153 "rotateY": 1200 154 } 155 } 156 }, 157 "interactivity": { 158 "detect_on": "canvas", 159 "events": { 160 //ãã¦ã¹ãªã¼ãã¼æ 161 "onhover": { 162 "enable": false, //ãã¦ã¹ãªã¼ãã¼ã®è¨±å¯ 163 }, 164 //ã¯ãªãã¯æ 165 "onclick": { 166 "enable": false, //ã¯ããªã¯ã®è¨±å¯ 167 }, 168 "resize": true 169 } 170 }, 171 "retina_detect": true 172}); 173
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.