1jQuery(function($) { 2 3 4// ----------------------------------------------------------------------------------------------------------------------------> 5// imgchange > 6// ----------------------------------------------------------------------------------------------------------------------------> 7$(function(){ 8 var $setElem = $('.imgChange'), 9 pcName = '_pc', 10 spName = '_sp', 11 replaceWidth = 750; 12 var ua = navigator.userAgent; 13 14 $setElem.each(function(){ 15 var $this = $(this); 16 function imgSize(){ 17 var windowWidth = window.innerWidth; 18 if (ua.match(/Mac|PPC/)) { 19 windowWidth = $(window).innerWidth(); 20 } 21 if(windowWidth >= replaceWidth) { 22 $this.attr('src',$this.attr('src').replace(spName,pcName)).css({visibility:'visible'}); 23 } else if(windowWidth < replaceWidth) { 24 $this.attr('src',$this.attr('src').replace(pcName,spName)).css({visibility:'visible'}); 25 } 26 } 27 $(window).resize(function(){imgSize();}); 28 imgSize(); 29 }); 30}); 31 32/*header*/ 33/*$(function() { 34 var target = $('#js_head_copy'); 35 var addClass_p = 'js_nav_prepare'; 36 var addClass_e = 'js_nav_emerge'; 37 38 var w = $(window); 39 function change_head() { 40 if (w.scrollTop() > 300){ 41 target.addClass(addClass_p); 42 if (w.scrollTop() > 350) { 43 target.addClass(addClass_e); 44 } 45 } else { 46 if (target.hasClass(addClass_p)) { 47 target.removeClass(addClass_e); 48 setTimeout(function(){ 49 target.removeClass(addClass_p); 50 }, 400); 51 } 52 } 53 } 54 55 change_head(); 56 57 w.on('scroll', change_head); 58});*/ 59 60$(function(){ 61 $('.scroll a, a.scroll').click(function(){ 62 var speed = 500; 63 var href= $(this).attr("href"); 64 var target = $(href == "#" || href == "" ? 'html' : href); 65 var position = target.offset().top; 66 $("html, body").animate({scrollTop:position}, speed, "swing"); 67 return false; 68 }); 69}); 70 71/*slider*/ 72/*$(function(){ 73 $('.bxslider1').bxSlider({auto: true}); 74 $('.bxslider2').bxSlider({auto: true}); 75 76 var replaceWidth = 750; 77 var ua = navigator.userAgent; 78 79 function changeSlider(){ 80 var windowWidth = window.innerWidth; 81 if (ua.match(/Mac|PPC/)) { 82 windowWidth = $(window).innerWidth(); 83 } 84 if (window.innerWidth < replaceWidth) { 85 $('.bx-wrapper:has(#bxpc)').hide(); 86 $('.bx-wrapper:has(#bxsp)').show(); 87 } else { 88 $('.bx-wrapper:has(#bxpc)').show(); 89 $('.bx-wrapper:has(#bxsp)').hide(); 90 } 91 } 92 $(window).resize(function(){changeSlider();}); 93 changeSlider(); 94 95});*/ 96 97 98/*particlesJS*/ 99/*$(function(){ 100 $(window).on('load', function() { 101 particlesJS('particles-js', 102 { 103 "particles": { 104 "number": { 105 "value": 80, 106 "density": { 107 "enable": true, 108 "value_area": 800 109 } 110 }, 111 "color": { 112 "value": "#ffffff" 113 }, 114 "shape": { 115 "type": "circle", 116 "stroke": { 117 "width": 0, 118 "color": "#000000" 119 }, 120 "polygon": { 121 "nb_sides": 5 122 }, 123 "image": { 124 "src": "img/github.svg", 125 "width": 100, 126 "height": 100 127 } 128 }, 129 "opacity": { 130 "value": 0.5, 131 "random": false, 132 "anim": { 133 "enable": false, 134 "speed": 1, 135 "opacity_min": 0.1, 136 "sync": false 137 } 138 }, 139 "size": { 140 "value": 5, 141 "random": true, 142 "anim": { 143 "enable": false, 144 "speed": 40, 145 "size_min": 0.1, 146 "sync": false 147 } 148 }, 149 "line_linked": { 150 "enable": true, 151 "distance": 150, 152 "color": "#ffffff", 153 "opacity": 0.4, 154 "width": 1 155 }, 156 "move": { 157 "enable": true, 158 "speed": 6, 159 "direction": "none", 160 "random": false, 161 "straight": false, 162 "out_mode": "out", 163 "attract": { 164 "enable": false, 165 "rotateX": 600, 166 "rotateY": 1200 167 } 168 } 169 }, 170 "interactivity": { 171 "detect_on": "canvas", 172 "events": { 173 "onhover": { 174 "enable": true, 175 "mode": "repulse" 176 }, 177 "onclick": { 178 "enable": true, 179 "mode": "push" 180 }, 181 "resize": true 182 }, 183 "modes": { 184 "grab": { 185 "distance": 400, 186 "line_linked": { 187 "opacity": 1 188 } 189 }, 190 "bubble": { 191 "distance": 400, 192 "size": 40, 193 "duration": 2, 194 "opacity": 8, 195 "speed": 3 196 }, 197 "repulse": { 198 "distance": 200 199 }, 200 "push": { 201 "particles_nb": 4 202 }, 203 "remove": { 204 "particles_nb": 2 205 } 206 } 207 }, 208 "retina_detect": true, 209 "config_demo": { 210 "hide_card": false, 211 "background_color": "#b61924", 212 "background_image": "", 213 "background_position": "50% 50%", 214 "background_repeat": "no-repeat", 215 "background_size": "cover" 216 } 217 } 218); 219 }); 220});*/ 221 222 223/*--------------------------------- 224 CSS Class 225-----------------------------------*/ 226 227/* if($.browser.msie){ $('body').addClass('msie'); }*/ 228 if(navigator.userAgent.indexOf('MSIE')!== -1 || navigator.userAgent.indexOf('Trident')!== -1){ $('body').addClass('msie'); } 229 230 $('input[type=checkbox]').addClass('checkbox'); 231 $('input[type=radio]').addClass('radio'); 232 $('input[type=file]').addClass('file'); 233 $('[disabled=disabled]').addClass('disabled'); 234 $('table').find('tr:even').addClass('alt'); 235 $('table').find('tr:first-child').addClass('first'); 236 $('table').find('tr:last-child').addClass('last'); 237 $('ul').find('li:first-child').addClass('first'); 238 $('ul').find('li:last-child').addClass('last'); 239 $('hr').before('<div class="cB"></div>'); 240 $('[class*=col_]').not('input, label,dl,table,.tabs li').addClass('column').each( 241 function (i,o){ 242 var div = document.createElement('div'); div.className="inner"; 243 while (o.firstChild) div.appendChild(o.firstChild); 244 o.appendChild(div); 245 } 246 ); 247 $('.main-body ul').not('.timeline,.tabs,.noicon,[class*=col_],[class*=grid_]').addClass('list-icon').each( 248 function(){ 249 $(this).find('li')
250 .prepend('<i class="fa fa-angle-right arrow"></i>'); 251 }); 252/* $('.button').not('.noicon,.noicon a').each( 253 function(){ 254 $(this).prepend('<i class="fa fa-angle-right arrow"></i>'); 255 });*/ 256 257 $('ol li').each( 258 function (i,o){ 259 var span = document.createElement('span'); span.className="ol-li"; 260 while (o.firstChild) span.appendChild(o.firstChild); 261 o.appendChild(span); 262 } 263 ); 264 265 266/*--------------------------------------------- 267 * jQuery Fix Height Simple 2.0 - 2015-06-09 268* jquery.matchHeight-min.js v0.6.0 269* http://brm.io/jquery-match-height/ 270* License: MIT 271---------------------------------------------*/ 272(function(c){var n=-1,f=-1,g=function(a){return parseFloat(a)||0},r=function(a){var b=null,d=[];c(a).each(function(){var a=c(this),k=a.offset().top-g(a.css("margin-top")),l=0<d.length?d[d.length-1]:null;null===l?d.push(a):1>=Math.floor(Math.abs(b-k))?d[d.length-1]=l.add(a):d.push(a);b=k});return d},p=function(a){var b={byRow:!0,property:"height",target:null,remove:!1};if("object"===typeof a)return c.extend(b,a);"boolean"===typeof a?b.byRow=a:"remove"===a&&(b.remove=!0);return b},b=c.fn.matchHeight= 273function(a){a=p(a);if(a.remove){var e=this;this.css(a.property,"");c.each(b._groups,function(a,b){b.elements=b.elements.not(e)});return this}if(1>=this.length&&!a.target)return this;b._groups.push({elements:this,options:a});b._apply(this,a);return this};b._groups=[];b._throttle=80;b._maintainScroll=!1;b._beforeUpdate=null;b._afterUpdate=null;b._apply=function(a,e){var d=p(e),h=c(a),k=[h],l=c(window).scrollTop(),f=c("html").outerHeight(!0),m=h.parents().filter(":hidden");m.each(function(){var a=c(this); 274a.data("style-cache",a.attr("style"))});m.css("display","block");d.byRow&&!d.target&&(h.each(function(){var a=c(this),b="inline-block"===a.css("display")?"inline-block":"block";a.data("style-cache",a.attr("style"));a.css({display:b,"padding-top":"0","padding-bottom":"0","margin-top":"0","margin-bottom":"0","border-top-width":"0","border-bottom-width":"0",height:"100px"})}),k=r(h),h.each(function(){var a=c(this);a.attr("style",a.data("style-cache")||"")}));c.each(k,function(a,b){var e=c(b),f=0;if(d.target)f= 275d.target.outerHeight(!1);else{if(d.byRow&&1>=e.length){e.css(d.property,"");return}e.each(function(){var a=c(this),b={display:"inline-block"===a.css("display")?"inline-block":"block"};b[d.property]="";a.css(b);a.outerHeight(!1)>f&&(f=a.outerHeight(!1));a.css("display","")})}e.each(function(){var a=c(this),b=0;d.target&&a.is(d.target)||("border-box"!==a.css("box-sizing")&&(b+=g(a.css("border-top-width"))+g(a.css("border-bottom-width")),b+=g(a.css("padding-top"))+g(a.css("padding-bottom"))),a.css(d.property, 276f-b))})});m.each(function(){var a=c(this);a.attr("style",a.data("style-cache")||null)});b._maintainScroll&&c(window).scrollTop(l/f*c("html").outerHeight(!0));return this};b._applyDataApi=function(){var a={};c("[data-match-height], [data-mh]").each(function(){var b=c(this),d=b.attr("data-mh")||b.attr("data-match-height");a[d]=d in a?a[d].add(b):b});c.each(a,function(){this.matchHeight(!0)})};var q=function(a){b._beforeUpdate&&b._beforeUpdate(a,b._groups);c.each(b._groups,function(){b._apply(this.elements, 277this.options)});b._afterUpdate&&b._afterUpdate(a,b._groups)};b._update=function(a,e){if(e&&"resize"===e.type){var d=c(window).width();if(d===n)return;n=d}a?-1===f&&(f=setTimeout(function(){q(e);f=-1},b._throttle)):q(e)};c(b._applyDataApi);c(window).bind("load",function(a){b._update(!1,a)});c(window).bind("resize orientationchange",function(a){b._update(!0,a)})})(jQuery); 278 279$(function() { 280 $('.entry-content .column').matchHeight(); 281 $('.row-eq-height .column').matchHeight(); 282 $('.box-link a').matchHeight(); 283}); 284 285 /*--------------------------------- 286 Tabs 287 -----------------------------------*/ 288 // tab setup 289 $('.tab-content').addClass('clearfix').not(':first').hide(); 290 $('ul.tabs').each(function(){ 291 var current = $(this).find('li.current'); 292 if(current.length < 1) { $(this).find('li:first').addClass('current'); } 293 current = $(this).find('li.current a').attr('href'); 294 $(current).show(); 295 }); 296 297 // tab click 298/* $('ul.tabs a[href^="#"]').live('click', function(e){ */ 299 $(document).on('click','ul.tabs a[href^="#"]', function(e){
300 301 e.preventDefault(); 302 var tabs = $(this).parents('ul.tabs').find('li'); 303 var tab_next = $(this).attr('href'); 304 var tab_current = tabs.filter('.current').find('a').attr('href'); 305 $(tab_current).hide(); 306 tabs.removeClass('current'); 307 $(this).parent().addClass('current'); 308 $(tab_next).show(); 309 history.pushState(null, null, encodeURI(window.location.search) + $(this).attr('href')); 310 return false; 311 }); 312 313 // tab hashtag identification and auto-focus 314 var wantedTag = window.location.hash; 315 if (wantedTag != "") 316 { 317 var allTabs = $("ul.tabs a[href^=" + wantedTag + "]").parents('ul.tabs').find('li'); 318 var defaultTab = allTabs.filter('.current').find('a').attr('href'); 319 $(defaultTab).hide(); 320 allTabs.removeClass('current'); 321 $("ul.tabs a[href^=" + wantedTag + "]").parent().addClass('current'); 322 $("#" + wantedTag.replace('#','')).show(); 323 } 324 325/*--------------------------------- 326 drawer 327-----------------------------------*/ 328 329$(document).ready(function() { 330 $(".drawer").drawer(); 331}); 332 333// ã¡ã¤ã³ã³ã³ãã³ãåºå® 334 $(function(){ 335 var state = false; 336 var scrollpos; 337 338 $('.toggle').on('click', function(){ 339 if(state == false) { 340 scrollpos = $(window).scrollTop(); 341 $('body').addClass('drawer-open').css({'top': -scrollpos}); 342 $('.drawer-nav').addClass('open'); 343 state = true; 344 } else { 345 $('body').removeClass('drawer-open').css({'top': 0}); 346 window.scrollTo( 0 , scrollpos ); 347 $('.drawer-nav').removeClass('open'); 348 state = false; 349 } 350 }); 351 352}); 353//END// 354 355// ç¾å¨ã®ãã¼ã¸ãã¢ã¯ãã£ãã« 356$(function() { 357 $('.drawer-nav ul.g-nav > li a.dropdown-link').each(function(){ 358 var $href = $(this).attr('href'); 359 var $pathname = location.pathname + '/'; 360 if($pathname.match($href)) { 361 // $(this).parent().addClass('open'); 362 } else { 363 $(this).parent().removeClass('open'); 364 } 365 }); 366}); 367 368 369/*--------------------------------- 370 Link active 371-----------------------------------*/ 372/* 373$(document).ready(function() { 374 $('.submenu-box .container ul li a').each(function() { 375 var activeUrl = location.pathname.split("/")[1]; 376 var $href = $(this).attr('href').split("/")[1]; 377 if ($href == activeUrl ) { 378 $(this).addClass("active"); 379 } 380 }); 381});*/ 382//END// 383 384/*--------------------------------- 385 megamenu 386-----------------------------------*/ 387$('ul.gnav li').hover(function(){ 388 $(this).find('.megamenu').stop(true, true).fadeIn('fast'); 389 }, 390 function(){ 391 $(this).find('.megamenu').stop(true, true).fadeOut('fast'); 392 }); 393});
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.