1 2 3 4var WG_LOAD_FUNC = function(e) { 5 (function($){ 6 $(function(){ 7 if (e == 0) { 8 if(window.WCNewsSystem){ 9 WCNewsSystem.wcDatePicker(); 10 } 11 } 12 }) 13 })(jQuery); 14}; 15 16 17(function(){ 18 if(window.WCNewsSystem){ 19 var wcnews = new WCNewsSystem(); 20 wcnews.init({ 21 folderPath: "info", //script.php,data.jsonãªã©ãè¨ç½®ãã¦ãããã£ã¬ã¯ããªã 22 indexPath:"takatsuki",//ãµã¤ãã¾ã§ã¸ã®ãã¹(ä¾:ï½ï½ï½.com/wcnewã®å ´åã¯wcnew) 23 dataReferencePaths:['takatsuki/info'], //ã©ã®ãã©ã«ãã¼ããè¨äºãã¼ã¿ãåç §ããã wcnewãªã©ã®å ´å㯠wcnew/newsã¨ãã«ãã¦ãã ããã 24 entryDisplays: ["date","category","thumbnail","content"], //entry-displayã«æå®ããå¤ 25 top: { 26 maxDisplay: 10//topã«è¡¨ç¤ºããããã¼ã¿æ°(å ¨ãã¼ã¿è¡¨ç¤ºãããå ´å-1ãæå®) 27 } 28 }).then(function(){// 29 //ãã¼ã¿çæçµäº ãã¤ãDOMã®èªã¿è¾¼ã¿ãçµãã£ããã¨ã®è¨è¿° 30 //TOPãºã¼ã¸ 31 wcnews.newsDisplay({ 32 element:document.querySelector("#topnews1"),//ã»ã¬ã¯ã¿ã®æååãã¾ãã¯ã$()å½¢å¼ã®ãªãã¸ã§ã¯ãã§ãå¯ 33 addNewclassSinceDays: 50, //仿¥ãã使¥åã¾ã§ã®æ¥ä»ã«NEWã¯ã©ã¹ãã¤ããã 34 newClassName:'is-new', 35 onValueSet: function(name, value, elm) { 36 if (name == "thumbnail") { 37 if(!value){ 38 jQuery(elm).remove(); 39 }else{ 40 jQuery(elm).attr("src", value); 41 } 42 } 43 }, 44 }); 45 //ä¸è¦§ãºã¼ã¸ 46 wcnews.listDisplay({ 47 element: document.querySelector("#news1"),//ã»ã¬ã¯ã¿ã®æååãã¾ãã¯ã$()å½¢å¼ã®ãªãã¸ã§ã¯ãã§ãå¯ 48 addNewclassSinceDays: 50, //仿¥ãã使¥åã¾ã§ã®æ¥ä»ã«NEWã¯ã©ã¹ãã¤ããã 49 numberPerPage: 15, //1ãºã¼ã¸ã«è¡¨ç¤ºããé, 50 onValueSet: function(name, value, elm) { 51 if (name == "thumbnail") { 52 if(!value){ 53 jQuery(elm).remove(); 54 }else{ 55 jQuery(elm).attr("src", value); 56 } 57 } 58 }, 59 onSetYear: function(year, $btn) { 60 $btn.find("a").text(year + "å¹´"); 61 }, 62 onCompleteDisplay: function() { 63 if($(window).width()<768){ 64 jQuery("html,body").stop().animate({ 65 scrollTop: jQuery(".newslist").offset().top - 35 66 }, 300); 67 } 68 } 69 }); 70 }) 71 } 72})(); 73 74 75/*==================================== 76remodal 77https://vodkabears.github.io/remodal/ 78====================================*/ 79!function(t,n){"function"==typeof define&&define.amd?define(["jquery"],function(e){return n(t,e)}):"object"==typeof exports?n(t,require("jquery")):n(t,t.jQuery||t.Zepto)}(this,function(t,n){"use strict";var e,a,i,o="remodal",s=t.REMODAL_GLOBALS&&t.REMODAL_GLOBALS.NAMESPACE||o,r=n.map(["animationstart","webkitAnimationStart","MSAnimationStart","oAnimationStart"],function(t){return t+"."+s}).join(" "),d=n.map(["animationend","webkitAnimationEnd","MSAnimationEnd","oAnimationEnd"],function(t){return t+"."+s}).join(" "),c=n.extend({hashTracking:!0,closeOnConfirm:!0,closeOnCancel:!0,
79closeOnEscape:!0,closeOnOutsideClick:!0,modifier:"",appendTo:null},t.REMODAL_GLOBALS&&t.REMODAL_GLOBALS.DEFAULTS),l={CLOSING:"closing",CLOSED:"closed",OPENING:"opening",OPENED:"opened"},p={CONFIRMATION:"confirmation",CANCELLATION:"cancellation"},m=void 0!==(e=document.createElement("div").style).animationName||void 0!==e.WebkitAnimationName||void 0!==e.MozAnimationName||void 0!==e.msAnimationName||void 0!==e.OAnimationName,u=/iPad|iPhone|iPod/.test(navigator.platform);function f(t){if(m&&"none"===t.css("animation-name")&&"none"===t.css("-webkit-animation-name")&&"none"===t.css("-moz-animation-name")&&"none"===t.css("-o-animation-name")&&"none"===t.css("-ms-animation-name"))return 0;var n,e,a,i,o=t.css("animation-duration")||t.css("-webkit-animation-duration")||t.css("-moz-animation-duration")||t.css("-o-animation-duration")||t.css("-ms-animation-duration")||"0s",s=t.css("animation-delay")||t.css("-webkit-animation-delay")||t.css("-moz-animation-delay")||t.css("-o-animation-delay")||t.css("-ms-animation-delay")||"0s",r=t.css("animation-iteration-count")||t.css("-webkit-animation-iteration-count")||t.css("-moz-animation-iteration-count")||t.css("-o-animation-iteration-count")||t.css("-ms-animation-iteration-count")||"1";for(o=o.split(", "),s=s.split(", "),r=r.split(", "),i=0,e=o.length,n=Number.NEGATIVE_INFINITY;i<e;i++)(a=parseFloat(o[i])*parseInt(r[i],10)+parseFloat(s[i]))>n&&(n=a);return n}function g(){if(n(document).height()<=n(window).height())return 0;var t,e,a=document.createElement("div"),i=document.createElement("div");return a.style.visibility="hidden",a.style.width="100px",document.body.appendChild(a),t=a.offsetWidth,a.style.overflow="scroll",i.style.width="100%",a.appendChild(i),e=i.offsetWidth,a.parentNode.removeChild(a),t-e}function h(){if(!u){var t,e,a=n("html"),i=$("is-locked");a.hasClass(i)&&(e=n(document.body),t=parseInt(e.css("padding-right"),10)-g(),e.css("padding-right",t+"px"),a.removeClass(i))}}function v(t,n,e,a){var i=$("is",n),o=[$("is",l.CLOSING),$("is",l.OPENING),$("is",l.CLOSED),$("is",l.OPENED)].join(" ");t.$bg.removeClass(o).addClass(i),t.$overlay.removeClass(o).addClass(i),t.$wrapper.removeClass(o).addClass(i),t.$modal.removeClass(o).addClass(i),t.state=n,!e&&t.$modal.trigger({type:n,reason:a},[{reason:a}])}function C(t,e,a){var i=0,o=function(t){t.target===this&&i++},s=function(t){t.target===this&&0==--i&&(n.each(["$bg","$overlay","$wrapper","$modal"],function(t,n){a[n].off(r+" "+d)}),e())};n.each(["$bg","$overlay","$wrapper","$modal"],function(t,n){a[n].on(r,o).on(d,s)}),t(),0===f(a.$bg)&&0===f(a.$overlay)&&0===f(a.$wrapper)&&0===f(a.$modal)&&(n.each(["$bg","$overlay","$wrapper","$modal"],function(t,n){a[n].off(r+" "+d)}),e())}function O(t){t.state!==l.CLOSED&&(n.each(["$bg","$overlay","$wrapper","$modal"],function(n,e){t[e].off(r+" "+d)}),t.$bg.removeClass(t.settings.modifier),t.$overlay.removeClass(t.settings.modifier).hide(),t.$wrapper.hide(),h(),v(t,l.CLOSED,!0))}function $(){for(var t=s,n=0;n<arguments.length;++n)t+="-"+arguments[n];return t}function E(){var t,e,i=location.hash.replace("#","");if(i){try{e=n("[data-"+o+'-id="'+i+'"]')}catch(t){}e&&e.length&&(t=n[o].lookup[e.data(o)])&&t.settings.hashTracking&&t.open()}else a&&a.state===l.OPENED&&a.settings.hashTracking&&a.close()}function y(t,e){var a=n(document.body),i=this;i.settings=n.extend({},c,e),i.index=n[o].lookup.push(i)-1,i.state=l.CLOSED,i.$overlay=n("."+$("overlay")),null!==i.settings.appendTo&&i.settings.appendTo.length&&(a=n(i.settings.appendTo)),i.$overlay.length||(i.$overlay=n("<div>").addClass($("overlay")+" "+$("is",l.CLOSED)).hide(),a.append(i.$overlay)),i.$bg=n("."+$("bg")).addClass($("is",l.CLOSED)),i.$modal=t.addClass(s+" "+$("is-initialized")+" "+i.settings.modifier+" "+$("is",l.CLOSED)).attr("tabindex","-1"),i.$wrapper=n("<div>").addClass($("wrapper")+" "+i.settings.modifier+" "+$("is",l.CLOSED)).hide().append(i.$modal),a.append(i.$wrapper),i.$wrapper.on("click."+s,"[data-"+o+'-action="close"]',function(t){t.preventDefault(),i.close()}),i.$wrapper.on("click."+s,"[data-"+o+'-action="cancel"]',function(t){t.preventDefault(),i.$modal.trigger(p.CANCELLATION),i.settings.closeOnCancel&&i.close(p.CANCELLATION)}),i.$wrapper.on("click."+s,"[data-"+o+'-action="confirm"]',function(t){t.preventDefault(),i.$modal.trigger(p.CONFIRMATION),i.settings.closeOnConfirm&&i.close(p.CONFIRMATION)}),i.$wrapper.on("click."+s,function(t){n(t.target).hasClass($("wrapper"))&&i.settings.closeOnOutsideClick&&i.close()})}y.prototype.open=function(){var t,e=this;e.state!==l.OPENING&&e.state!==l.CLOSING&&((t=e.$modal.attr("data-"+o+"-id"))&&e.settings.hashTracking&&(i=n(window).scrollTop(),location.hash=t),a&&a!==e&&O(a),a=e,function(){if(!u){var t,e,a=n("html"),i=$("is-locked");a.hasClass(i)||(e=n(document.body),t=parseInt(e.css("padding-right"),10)+g(),e.css("padding-right",t+"px"),a.addClass(i))}}(),e.$bg.addClass(e.settings.modifier),e.$overlay.addClass(e.settings.modifier).show(),e.$wrapper.show().scrollTop(0),e.$modal.focus(),C(function(){v(e,l.OPENING)},function(){v(e,l.OPENED)},e))},y.prototype.close=function(t){var e=this;e.state!==l.OPENING&&e.state!==l.CLOSING&&e.state!==l.CLOSED&&(e.settings.hashTracking&&e.$modal.attr("data-"+o+"-id")===location.hash.substr(1)&&(location.hash="",n(window).scrollTop(i)),C(function(){v(e,l.CLOSING,!1,t)},function(){e.$bg.removeClass(e.settings.modifier),e.$overlay.removeClass(e.settings.modifier).hide(),e.$wrapper.hide(),h(),v(e,l.CLOSED,!1,t)},e))},y.prototype.getState=function(){return this.state},y.prototype.destroy=function(){var t=n[o].lookup;O(this),this.$wrapper.remove(),delete t[this.index],0===n.grep(t,function(t){return!!t}).length&&(this.$overlay.remove(),this.$bg.removeClass($("is",l.CLOSING)+" "+$("is",l.OPENING)+" "+$("is",l.CLOSED)+" "+$("is",l.OPENED)))},n[o]={lookup:[]},n.fn[o]=function(t){var e,a;return this.each(function(i,s){null==(a=n(s)).data(o)?(e=new y(a,t),a.data(o,e.index),e.settings.hashTracking&&a.attr("data-"+o+"-id")===location.hash.substr(1)&&e.open()):e=n[o].lookup[a.data(o)]}),e},n(document).ready(function(){n(document).on("click","[data-"+o+"-target]",function(t){t.preventDefault();var e=t.currentTarget.getAttribute("data-"+o+"-target"),a=n("[data-"+o+'-id="'+e+'"]');n[o].lookup[a.data(o)].open()}),n(document).find("."+s).each(function(t,e){var a=n(e),i=a.data(o+"-options");
79i?("string"==typeof i||i instanceof String)&&(i=function(t){var n,e,a,i,o={};for(i=0,e=(n=(t=t.replace(/\s*:\s*/g,":").replace(/\s*,\s*/g,",")).split(",")).length;i<e;i++)n[i]=n[i].split(":"),("string"==typeof(a=n[i][1])||a instanceof String)&&(a="true"===a||"false"!==a&&a),("string"==typeof a||a instanceof String)&&(a=isNaN(a)?a:+a),o[n[i][0]]=a;return o}(i)):i={},a[o](i)}),n(document).on("keydown."+s,function(t){a&&a.settings.closeOnEscape&&a.state===l.OPENED&&27===t.keyCode&&a.close()}),n(window).on("hashchange."+s,E)})}); 80 81 82 83 84/*==================================== 85MSTranslator 翻訳è¨èªãªã¹ã 86====================================*/ 87$(function(){ 88var a="",e=location.href; 89 $.each({ 90 "":"è¨èªé¸æãLanguage choice", 91 "tlh-Latn":"Klingon (Latin)ãtlhIngan", 92 "tlh-Piqd":"Klingon (pIqaD)ãtlhIngan", 93 "is":"ã¢ã¤ã¹ã©ã³ãèªãIcelandic", 94 "ga":"ã¢ã¤ã«ã©ã³ãèªãIrish", 95 "af":"ã¢ããªã«ã¼ã³ã¹èªãAfrikaans", 96 "ar":"ã¢ã©ãã¢èªãArabic", 97 "it":"ã¤ã¿ãªã¢èªãItalian", 98 "id":"ã¤ã³ããã·ã¢èªãIndonesian", 99 "cy":"ã¦ã§ã¼ã«ãºèªãWelsh", 100 "uk":"ã¦ã¯ã©ã¤ãèªãUkrainian", 101 "ur":"ã¦ã«ãã¥èªãUrdu", 102 "et":"ã¨ã¹ããã¢èªãEstonian", 103 "nl":"ãªã©ã³ãèªãDutch", 104 "kk":"ã«ã¶ãèªãKazakh", 105 "ca":"ã«ã¿ããã¢èªãCatalan", 106 "kn":"ã«ãã©èªãKannada", 107 "el":"ã®ãªã·ã£èªãGreek", 108 "gu":"ã°ã¸ã£ã©ã¼ãèªãGujarati", 109 "hr":"ã¯ãã¢ãã¢èªãCroat", 110 "otq":"ã±ã¬ã¿ãå·ãªããèªãOtomi", 111 "sm":"ãµã¢ã¢èªãSamoan", 112 "sv":"ã¹ã¦ã§ã¼ãã³èªãSwedish", 113 "es":"ã¹ãã¤ã³èªãSpanish", 114 "sk":"ã¹ãããã¢èªãSlovakian", 115 "sl":"ã¹ãããã¢èªãSlovenian", 116 "sw":"ã¹ã¯ããªèªãSwahili", 117 "sr-Cyrl":"ã»ã«ãã¢èª (ããªã«)ãSerbian Cyrillic", 118 "sr-Latn":"ã»ã«ãã¢èª (ã©ãã³)ãSerbian Latin", 119 "th":"ã¿ã¤èªãThai", 120 "ty":"ã¿ããèªãTahitian", 121 "ta":"ã¿ãã¼ã«èªãTamil", 122 "cs":"ãã§ã³èªãCzech", 123 "te":"ãã«ã°èªãTelugu", 124 "da":"ãã³ãã¼ã¯èªãDanish", 125 "de":"ãã¤ãèªãGerman", 126 "tr":"ãã«ã³èªãTurkish", 127 "to":"ãã³ã¬èªãTongan", 128 "nb":"ãã«ã¦ã§ã¼èªãNorwegian", 129 "ht":"ãã¤ãèªãHattic", 130 "hu":"ãã³ã¬ãªã¼èªãHungarian", 131 "bn":"ãã³ã°ã©èªãBengali", 132 "pa":"ãã³ã¸ã£ãèªãPunjabi", 133 "hi":"ãã³ãã£ã¼èªãHindi", 134 "fj":"ãã£ã¸ã¼èªãFijian", 135 "fil":"ãã£ãªãã³èªãFilipino", 136 "fi":"ãã£ã³ã©ã³ãèªãFinnish", 137 "fr":"ãã©ã³ã¹èªãFrench", 138 "bg":"ãã«ã¬ãªã¢èªãBulgarian", 139 "vi":"ãããã èªãVietnamese", 140 "he":"ããã©ã¤èªãHebrew", 141 "fa":"ãã«ã·ã£èªãPersian", 142 "pl":"ãã¼ã©ã³ãèªãPolish", 143 "bs":"ãã¹ãã¢èªãbosanski", 144 "pt":"ãã«ãã¬ã«èªï¼ãã©ã¸ã«ï¼ãPortuguese", 145 "pt-PT":"ãã«ãã¬ã«èª (ãã«ãã¬ã«)ãPortuguese", 146 "mi":"ããªãªèªãMaori", 147 "mg":"ããã¬ã¹ã«ã«èªãMalagasy", 148 "mr":"ãã©ã¼ãã£ã¼èªãMarathi", 149 "ml":"ãã©ã¤ã©ã èªãMalayalam", 150 "mt":"ãã«ã¿èªãMaltese", 151 "ms":"ãã¬ã¼èªãMalay", 152 "yua":"ã¦ã«ãã³èªãYucateco", 153 "lv":"ã©ããã¢èªãLatvian", 154 "lt":"ãªãã¢ãã¢èªãLithuanian", 155 "ro":"ã«ã¼ããã¢èªãRomanian", 156 "ru":"ãã·ã¢èªãRussian", 157 "en":"è±èªãEnglish", 158 "zh-Hans":"ç°¡ä½åä¸å½èªãä¸æç°¡ä½", 159 "ko":"éå½èªãíêµ", 160 "yue&dl":"åºæ±èªï¼ç¹ä½åï¼ã䏿ç¹ä½", 161 "ja":"æ¥æ¬èª", 162 "mww":"ç½ã¢ã³èªãHakumon", 163 "zh-Hant":"ç¹ä½åä¸å½èª", 164 },function(n,t){a+='<div><a href="https://www.translatetheweb.com/?from=ja&dl=ja&to='+n+"&a="+e+'" target="_blank" rel="noopener">'+t+"</a></div>"}),$("#mytranslatelist").html(a) 165}); 166 167 168 169/****************************************************************** 170googleFont 171******************************************************************/ 172window.WebFontConfig = { 173google: { families: ['M+PLUS+Rounded+1c:500,700,800','Noto+Sans+JP:400,500,700','Noto+Serif+JP:400,500,700'] }, 174active: function() { 175sessionStorage.fonts = true; 176} 177}; 178(function() { 179var wf = document.createElement('script'); 180wf.src = 'https://ajax.googleapis.com/ajax/libs/webfont/1.6.26/webfont.js'; 181wf.type = 'text/javascript'; 182wf.async = 'true'; 183var s = document.getElementsByTagName('script')[0]; 184s.parentNode.insertBefore(wf, s); 185})(); 186 187 188 189/****************************************************************** 190loading 191******************************************************************/ 192window.onload = function() { 193const spinner = document.getElementById('loading'); 194spinner.classList.add('loaded'); 195} 196 197 198 199/****************************************************************** 200ã°ãã¼ãã«ãããfixed 201******************************************************************/ 202$(function() { 203 var $win = $(window),
204 $main = $('main'), 205 $nav = $('nav'), 206 navHeight = $nav.outerHeight(), 207 navPos = $nav.offset().top, 208 fixedClass = 'is-fixed'; 209 $win.on('load scroll', function() { 210 var value = $(this).scrollTop(); 211 if ( value > navPos ) { 212 $nav.addClass(fixedClass); 213 $main.css('margin-top', navHeight); 214 } else { 215 $nav.removeClass(fixedClass); 216 $main.css('margin-top', '0'); 217 } 218 }); 219}); 220 221 222/****************************************************************** 223fixedãããããæ¨ªã¹ã¯ãã¼ã«ã§ããããã«ãã 224******************************************************************/ 225$(window).on("scroll", function(){ 226 $(".is-fixed").css("left", -$(window).scrollLeft()); 227}); 228 229 230 231/****************************************************************** 232ã¹ã ã¼ã¹ã¹ã¯ãã¼ã« 233******************************************************************/ 234$(function(){ 235$('a[href^="#"]').click(function() { 236var speed = 400; // ã¹ã¯ãã¼ã«ã¹ãã¼ã(ããªç§) 237var href= $(this).attr("href"); 238var target = $(href == "#" || href == "" ? 'html' : href); 239var position = target.offset().top; 240$('body,html').animate({scrollTop:position}, speed, 'swing'); 241return false; 242}); 243}); 244 245 246 247/****************************************************************** 248dropdown menu 249******************************************************************/ 250$(function(){ 251 $('.pc_navi_li').hover(function(){ 252 $("div:not(:animated)", this).slideDown(); 253 }, function(){ 254 $(".subMenu",this).slideUp(); 255 }); 256}); 257 258 259/****************************************************************** 260matchHeigtht 261******************************************************************/ 262$(function(){ 263if(document.URL.match("/?from")) { 264 //æå®ããæååãURLã«å«ã¾ããå ´åã«å®è¡ããå 容 265 } else { 266 $('.recruit201_dt,.recruit201_dd').matchHeight(); 267 $('.service304_dt,.service304_dd').matchHeight(); 268 $('.service01_link').matchHeight(); 269 $('.service01_p3').matchHeight(); 270 $('.top04_ul2_li_p1,.top04_ul2_li_p2,.top04_ul2_li_p2_s').matchHeight(); 271 $('.top04_li1,.top04_li2').matchHeight(); 272 $('.top03_li_p1').matchHeight(); 273 $('.top03_li_p2').matchHeight(); 274 $('.matchHeigtht').matchHeight(); 275 $('.dl_box_dt,.dl_box_dd').matchHeight(); 276 $('.point_ttl_in').matchHeight(); 277 $('.col_ttl').matchHeight(); 278 $('.col_ttl2').matchHeight(); 279 $('.col_txt').matchHeight(); 280 $('.col_txt2').matchHeight(); 281 $('.linkBnr').matchHeight(); 282 $('.wakuBox_in').matchHeight(); 283 $('.stepBox_in1,.stepBox_in2').matchHeight(); 284 $('.nav_p').matchHeight(); 285 } 286}); 287 288 289/** 290* jquery-match-height master by @liabru 291* http://brm.io/jquery-match-height/ 292* License: MIT 293*/ 294;(function(factory) { // eslint-disable-line no-extra-semi 295 'use strict'; 296 if (typeof define === 'function' && define.amd) { 297 // AMD 298 define(['jquery'], factory); 299 } else if (typeof module !== 'undefined' && module.exports) { 300 // CommonJS 301 module.exports = factory(require('jquery')); 302 } else { 303 // Global 304 factory(jQuery); 305 } 306})(function($) { 307 /* 308 * internal 309 */ 310 var _previousResizeWidth = -1, 311 _updateTimeout = -1; 312 /* 313 * _parse 314 * value parse utility function 315 */ 316 var _parse = function(value) { 317 // parse value and convert NaN to 0 318 return parseFloat(value) || 0; 319 }; 320 /* 321 * _rows 322 * utility function returns array of jQuery selections representing each row 323 * (as displayed after float wrapping applied by browser) 324 */ 325 var _rows = function(elements) { 326 var tolerance = 1, 327 $elements = $(elements), 328 lastTop = null, 329 rows = []; 330 // group elements by their top position 331 $elements.each(function(){ 332 var $that = $(this), 333 top = $that.offset().top - _parse($that.css('margin-top')), 334 lastRow = rows.length > 0 ? rows[rows.length - 1] : null; 335 336 if (lastRow === null) { 337 // first item on the row, so just push it 338 rows.push($that); 339 } else { 340 // if the row top is the same, add to the row group 341 if (Math.floor(Math.abs(lastTop - top)) <= tolerance) { 342 rows[rows.length - 1] = lastRow.add($that); 343 } else { 344 // otherwise start a new row group 345 rows.push($that); 346 } 347 } 348 // keep track of the last row top 349 lastTop = top; 350 }); 351 return rows; 352 }; 353 /* 354 * _parseOptions 355 * handle plugin options 356 */ 357 var _parseOptions = function(options) { 358 var opts = { 359 byRow: true, 360 property: 'height', 361 target: null, 362 remove: false 363 }; 364 if (typeof options === 'object') { 365 return $.extend(opts, options); 366 } 367 if (typeof options === 'boolean') { 368 opts.byRow = options; 369 } else if (options === 'remove') { 370 opts.remove = true; 371 } 372 return opts; 373 }; 374 /* 375 * matchHeight 376 * plugin definition 377 */ 378 var matchHeight = $.fn.matchHeight = function(options) { 379 var opts = _parseOptions(options); 380 // handle remove 381 if (opts.remove) { 382 var that = this; 383 // remove fixed height from all selected elements 384 this.css(opts.property, ''); 385 // remove selected elements from all groups 386 $.each(matchHeight._groups, function(key, group) { 387 group.elements = group.elements.not(that); 388 }); 389 // TODO: cleanup empty groups 390 return this; 391 } 392 if (this.length <= 1 && !opts.target) { 393 return this; 394 } 395 // keep track of this group so we can re-apply later on load and resize events 396 matchHeight._groups.push({ 397 elements: this, 398 options: opts 399 }); 400 // match each element's height to the tallest element in the selection 401 matchHeight._apply(this, opts); 402 return this; 403 }; 404 /* 405 * plugin global options 406 */ 407 matchHeight.version = 'master'; 408 matchHeight._groups = []; 409 matchHeight._throttle = 80; 410 matchHeight._maintainScroll = false;
411 matchHeight._beforeUpdate = null; 412 matchHeight._afterUpdate = null; 413 matchHeight._rows = _rows; 414 matchHeight._parse = _parse; 415 matchHeight._parseOptions = _parseOptions; 416 /* 417 * matchHeight._apply 418 * apply matchHeight to given elements 419 */ 420 matchHeight._apply = function(elements, options) { 421 var opts = _parseOptions(options), 422 $elements = $(elements), 423 rows = [$elements]; 424 // take note of scroll position 425 var scrollTop = $(window).scrollTop(), 426 htmlHeight = $('html').outerHeight(true); 427 // get hidden parents 428 var $hiddenParents = $elements.parents().filter(':hidden'); 429 // cache the original inline style 430 $hiddenParents.each(function() { 431 var $that = $(this); 432 $that.data('style-cache', $that.attr('style')); 433 }); 434 // temporarily must force hidden parents visible 435 $hiddenParents.css('display', 'block'); 436 // get rows if using byRow, otherwise assume one row 437 if (opts.byRow && !opts.target) { 438 // must first force an arbitrary equal height so floating elements break evenly 439 $elements.each(function() { 440 var $that = $(this), 441 display = $that.css('display'); 442 // temporarily force a usable display value 443 if (display !== 'inline-block' && display !== 'flex' && display !== 'inline-flex') { 444 display = 'block'; 445 } 446 // cache the original inline style 447 $that.data('style-cache', $that.attr('style')); 448 $that.css({ 449 'display': display, 450 'padding-top': '0', 451 'padding-bottom': '0', 452 'margin-top': '0', 453 'margin-bottom': '0', 454 'border-top-width': '0', 455 'border-bottom-width': '0', 456 'height': '100px', 457 'overflow': 'hidden' 458 }); 459 }); 460 // get the array of rows (based on element top position) 461 rows = _rows($elements); 462 // revert original inline styles 463 $elements.each(function() { 464 var $that = $(this); 465 $that.attr('style', $that.data('style-cache') || ''); 466 }); 467 } 468 $.each(rows, function(key, row) { 469 var $row = $(row), 470 targetHeight = 0; 471 if (!opts.target) { 472 // skip apply to rows with only one item 473 if (opts.byRow && $row.length <= 1) { 474 $row.css(opts.property, ''); 475 return; 476 } 477 // iterate the row and find the max height 478 $row.each(function(){ 479 var $that = $(this), 480 style = $that.attr('style'), 481 display = $that.css('display'); 482 // temporarily force a usable display value 483 if (display !== 'inline-block' && display !== 'flex' && display !== 'inline-flex') { 484 display = 'block'; 485 } 486 // ensure we get the correct actual height (and not a previously set height value) 487 var css = { 'display': display }; 488 css[opts.property] = ''; 489 $that.css(css); 490 // find the max height (including padding, but not margin) 491 if ($that.outerHeight(false) > targetHeight) { 492 targetHeight = $that.outerHeight(false); 493 } 494 // revert styles 495 if (style) { 496 $that.attr('style', style); 497 } else { 498 $that.css('display', ''); 499 } 500 }); 501 } else { 502 // if target set, use the height of the target element 503 targetHeight = opts.target.outerHeight(false); 504 } 505 // iterate the row and apply the height to all elements 506 $row.each(function(){ 507 var $that = $(this), 508 verticalPadding = 0; 509 // don't apply to a target 510 if (opts.target && $that.is(opts.target)) { 511 return; 512 } 513 // handle padding and border correctly (required when not using border-box) 514 if ($that.css('box-sizing') !== 'border-box') { 515 verticalPadding += _parse($that.css('border-top-width')) + _parse($that.css('border-bottom-width')); 516 verticalPadding += _parse($that.css('padding-top')) + _parse($that.css('padding-bottom')); 517 } 518 // set the height (accounting for padding and border) 519 $that.css(opts.property, (targetHeight - verticalPadding) + 'px'); 520 }); 521 }); 522 // revert hidden parents 523 $hiddenParents.each(function() { 524 var $that = $(this); 525 $that.attr('style', $that.data('style-cache') || null); 526 }); 527 // restore scroll position if enabled 528 if (matchHeight._maintainScroll) { 529 $(window).scrollTop((scrollTop / htmlHeight) * $('html').outerHeight(true)); 530 } 531 return this; 532 }; 533 /* 534 * matchHeight._applyDataApi 535 * applies matchHeight to all elements with a data-match-height attribute 536 */ 537 matchHeight._applyDataApi = function() { 538 var groups = {}; 539 // generate groups by their groupId set by elements using data-match-height 540 $('[data-match-height], [data-mh]').each(function() { 541 var $this = $(this), 542 groupId = $this.attr('data-mh') || $this.attr('data-match-height'); 543 if (groupId in groups) { 544 groups[groupId] = groups[groupId].add($this); 545 } else { 546 groups[groupId] = $this; 547 } 548 }); 549 // apply matchHeight to each group 550 $.each(groups, function() { 551 this.matchHeight(true); 552 }); 553 }; 554 /* 555 * matchHeight._update 556 * updates matchHeight on all current groups with their correct options 557 */ 558 var _update = function(event) { 559 if (matchHeight._beforeUpdate) { 560 matchHeight._beforeUpdate(event, matchHeight._groups); 561 } 562 $.each(matchHeight._groups, function() { 563 matchHeight._apply(this.elements, this.options); 564 }); 565 if (matchHeight._afterUpdate) { 566 matchHeight._afterUpdate(event, matchHeight._groups); 567 } 568 }; 569 matchHeight._update = function(throttle, event) { 570 // prevent update if fired from a resize event 571 // where the viewport width hasn't actually changed 572 // fixes an event looping bug in IE8 573 if (event && event.type === 'resize') { 574 var windowWidth = $(window).width(); 575 if (windowWidth === _previousResizeWidth) { 576 return; 577 } 578 _previousResizeWidth = windowWidth; 579 } 580 // throttle updates 581 if (!throttle) { 582 _update(event); 583 } else if (_updateTimeout === -1) { 584 _updateTimeout = setTimeout(function() { 585 _update(event); 586 _updateTimeout = -1; 587 }, matchHeight._throttle); 588 } 589 }; 590 /* 591 * bind events 592 */ 593 // apply on DOM ready event 594 $(matchHeight._applyDataApi); 595 // use on or bind where supported 596 var on = $.fn.on ? 'on' : 'bind'; 597 // update heights on load and resize events 598 $(window)[on]('load', function(event) { 599 matchHeight._update(false, event); 600 }); 601 // throttled update heights on resize events 602 $(window)[on]('resize orientationchange', function(event) { 603 matchHeight._update(true, event); 604 }); 605}); 606 607 608 609/****************************************************************** 610ãã³ãã¼ã¬ã¼ã¡ãã¥ã¼ 611******************************************************************/ 612$(function() { 613 $('.toggle').click(function(){ 614 $('.toggle').toggleClass('active'); 615 $('.spnavi').toggleClass('active'); 616 }); 617 $('.sparea a').on('click', function(){ 618 $('.toggle').trigger('click'); 619 }); 620}); 621 622 623 624/****************************************************************** 625ã¹ã¯ãã¼ã«ããã¨è¡¨ç¤º 626******************************************************************/ 627if (window.matchMedia('(max-width: 768px)').matches) { 628 //ã¹ããå¦ç 629} else if (window.matchMedia('(min-width:769px)').matches) { 630 //PCå¦ç 631 $(function(){ 632 ScrollReveal().reveal('.animate'); 633 ScrollReveal().reveal('.animateright', { distance: '200px', origin: 'right', viewFactor: '0.8' }); 634 ScrollReveal().reveal('.animateleft', { distance: '200px', origin: 'left', viewFactor: '0.8' }); 635 ScrollReveal().reveal('.animateup', { duration: '500', distance: '100px', origin: 'bottom', viewFactor: '0.8' }); 636 ScrollReveal().reveal('.animateslow', { duration: '5000' }); 637 ScrollReveal().reveal('.animatespeed1', { duration: '1800' } ); 638 ScrollReveal().reveal('.animatespeed2', { duration: '1800' ,delay: '500'} ); 639 ScrollReveal().reveal('.animatespeed3', { duration: '1800' ,delay: '1000'} ); 640 }); 641} 642 643 644 645/****************************************************************** 646ãã«ã¹ã¯ãªã¼ã³ããã²ã¼ã·ã§ã³ 647******************************************************************/ 648$(function(){ 649 $('.menu').on('click',function(){ 650 $('.menu__line').toggleClass('active'); 651 $('.gnav').fadeToggle(); 652 }); 653});; 654 655 656 657/****************************************************************** 658ãããããã¦ã³ã¡ãã¥ã¼ 659******************************************************************/ 660$(function(){ 661 $('.pc_navi_li').hover(function(){ 662 $("div:not(:animated)", this).slideDown(); 663 }, function(){ 664 $(".subMenu",this).slideUp(); 665 }); 666}); 667 668 669 670/****************************************************************** 671ã¿ãåãæ¿ã 672******************************************************************/ 673$(function () { 674 /*åæè¡¨ç¤º*/ 675 $('.ChangeElem_Panel').hide(); 676 $('.ChangeElem_Panel').eq(0).show(); 677 $('.ChangeElem_Btn').eq(0).addClass('is-active'); 678 /*ã¯ãªãã¯ã¤ãã³ã*/ 679 $('.ChangeElem_Btn').each(function () { 680 $(this).on('click', function () { 681 var index = $('.ChangeElem_Btn').index(this); 682 $('.ChangeElem_Btn').removeClass('is-active'); 683 $(this).addClass('is-active'); 684 $('.ChangeElem_Panel').hide(); 685 $('.ChangeElem_Panel').eq(index).show(); 686 }); 687 }); 688}); 689 690 691 692/****************************************************************** 693ãªã¼ããªã³ã¯ 694******************************************************************/ 695/* ================================================================ 696wclabs.js custom Ver.1.3 697Create: 2009/03/11 698Update: 2010/02/09 699for: jQuery 1.4.1 700================================================================ */ 701(function($) { 702// ãã¡ã³ã¯ã·ã§ã³å®è¡ 703$(function(){ 704 //èªåçæã¢ã³ã«ã¼Ver.2 705 706 var obj = $('h2,.autolink h3.planetitle,.autolink h4.planetitle,.autolink h5.planetitle'); //対象 707 var link = $('ul#autolink'); //ãªã³ã¯çæå UL 708 709 $.each(obj,function(key,value){ 710 //IDãè¨ç½®ãã 711 $(this).attr('id','anc' + key); 712 var tag = $(this).get(0).tagName; 713 714 switch(tag){ 715 case 'H2': 716 $(link).append('<li class="lv0">'+$(this).text()+'</li>'); 717 break; 718 case 'H3': 719 $(link).append('<li class="lv1"><a href="#anc'+key+'">'+$(this).text()+'</a></li>'); 720 break; 721 case 'H4': 722 $(link).append('<li class="lv2"><a href="#anc'+key+'">'+$(this).text()+'</a></li>'); 723 break; 724 case 'H5': 725 $(link).append('<li class="lv3"><a href="#anc'+key+'">'+$(this).text()+'</a></li>'); 726 break; 727 } 728 }); 729 730 //èªåçæã¢ã³ã«ã¼Fix 731 $(window).on('load',function(){ 732 var hash = "#" + location.hash.replace(/[^\w]/g, ""); 733 if($(hash).size()){ 734 $('html,body').scrollTop($(hash).offset().top); 735 } 736 }); 737}); 738})(jQuery);
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.