1(function($) { 2 skel.init({ 3 reset: 'full', 4 breakpoints: { 5 large: { 6 media: '(min-width: 980px)', 7 containers: 980 8 }, 9 medium: { 10 media:'(min-width:870px) and (max-width: 979px)', 11 containers: '90%' 12 }, 13 small: { 14 media: '(max-width: 979px)', 15 containers: '95%!' 16 }, 17 xsmall: { 18 media: '(max-width: 640px)' 19 } 20 }, 21 grid: { 22 gutters: [20, 0] 23 }, 24 plugins: { 25 layers: { 26 GlobalBar: { 27 breakpoints: ['small'], 28 position: 'top-left', 29 width: '100%', 30 height: 40, 31 speed: 300, 32 html: '<div class="toggle" data-action="toggleLayer" data-args="GlobalPanel"><i class="fa fa-bars"></i></div>' + 33 '<span class="title t-upper">Menu</span>' 34 }, 35 GlobalPanel: { 36 breakpoints: ['small'], 37 position: 'top', 38 width: '100%', 39 height: 'auto', 40 orientation: 'vertical', 41 side: 'top', 42 hidden: true, 43 animation: 'pushY', 44 clickToHide: false, 45 position: 'fixed', 46 html:'<div class="panel-sub-nav">' + document.querySelector('#header .sub-nav').outerHTML + '</div>' + 47 '<div class="panel-language">' + document.querySelector('#header .language').outerHTML + '</div>' + 48 '<div class="panel-global-nav">' + document.querySelector('#global-nav .global-nav').innerHTML + '</div>' + 49 '<div class="panel-search">' + document.getElementById('side-search').innerHTML + '</div>' 50 }, 51 QuickBar: { 52 breakpoints: ['small'], 53 position: 'top-right', 54 width: '50%', 55 height: 40, 56 html: '<div class="toggle" data-action="toggleLayer" data-args="QuickPanel"><i class="fa fa-bars"></i></div>' + 57 '<span class="title">Quick Menu</span>' 58 }, 59 QuickPanel: { 60 breakpoints: ['small'], 61 position: 'top-right', 62 width: '250px', 63 height: 'auto', 64 orientation: 'vertical', 65 side: 'right', 66 hidden: true, 67 animation: 'pushX', 68 clickToHide: false, 69 html:'<div class="panel-quickmenu">' + document.querySelector('#quick_menu_contentsSP').outerHTML + '</div>' 70 }, 71 LocalBar: { 72 breakpoints: ['small'], 73 position: 'top-left', 74 width: '50%', 75 height: 40, 76 html: '<div class="toggle" data-action="toggleLayer" data-args="LocalPanel"><i class="fa fa-bars"></i></div>' + 77 '<span class="title">Sub Menu</span>' 78 }, 79 LocalPanel: { 80 position: 'top-left', 81 width: '250px', 82 height: 'auto', 83 orientation: 'vertical', 84 side: 'left', 85 hidden: true, 86 animation: 'pushX', 87 clickToHide: true, 88 html: '<div class="panel-side-nav">' + document.getElementById('side-menu').innerHTML + '</div>' 89 } 90 } 91 } 92 }); 93 94$(function($){ 95 96 var wind = $(window); 97 if(document.getElementById("loader-bg") !== null) { 98 var loading = $('#loader-bg'); 99 if(window.matchMedia("(max-width:979px)").matches){ 100 // wind.on("load",function(){ 101 102 // }); 103 loading.delay(5).fadeOut(150, function(){$(this).remove();} ); 104 setTimeout(function(){ $('#loader-bg').delay(5).fadeOut(150, function(){$(this).remove();} ); }, 10000); 105 }else{ 106 loading.remove(); 107 } 108 } 109 110 111 $('#global-nav .global-nav').naviRollOver( { 112 type:'html', 113 keepFlg: false, 114 tag:'ul li a', 115 firstStrictCheck:true, 116 className:'current' 117 } ); 118 119 var glayer = skel.plugins.layers.get('GlobalPanel'); 120 var llayer = skel.plugins.layers.get('LocalPanel'); 121 var qlayer = skel.plugins.layers.get('QuickPanel'); 122 123 glayer.on('show',function(){ 124 setTimeout(function(){ 125 $('#GlobalPanel').addClass('active'); 126 },1000); 127 }); 128 glayer.on('hide',function(){ 129 $('#GlobalPanel').removeClass('active'); 130 $('#skel-layers-parent').css('top',0); 131 setTimeout(function(){ 132 if($('#GlobalBar').css('top') != 0 ) { 133 $('#skel-layers-wrapper').css('top',0); 134 $('#GlobalBar, #QuickBar, #LocalBar').css('top',0); 135 } 136 },500); 137 }); 138 139 llayer.on('show',function(){ 140 setTimeout(function(){ 141 $('#LocalPanel').addClass('active'); 142 },1000); 143 }); 144 llayer.on('hide',function(){ 145 $('#LocalPanel').removeClass('active'); 146 }); 147 148 qlayer.on('show',function(){ 149 setTimeout(function(){ 150 $('#QuickPanel').addClass('active'); 151 },1000); 152 }); 153 qlayer.on('hide',function(){ 154 $('#QuickPanel').removeClass('active'); 155 }); 156 157 158 // quick menu 159 var quickmenu = $('#quick_menu_wrap'); 160 var quickmenuTrigger = $('#quickmenuTrigger'); 161 quickmenuTrigger.on('click', function(e) { 162 e.preventDefault();
163 quickmenu.toggle(); 164 165 $('#close_quick_menu').on('click', function() { 166 quickmenu.hide(); 167 }); 168 }); 169 170 // clear:both 171 skel.on('+large', function() { 172 $('div.row > *').removeClass('clearBoth'); 173 if($('div.row > .4u').length) $('div.row > .4u:nth-child(3n+1)').addClass('clearBoth'); 174 if($('div.row > .6u').length) $('div.row > .6u:nth-child(2n+1)').addClass('clearBoth'); 175 }); 176 skel.on('+medium', function() { 177 $('div.row > *').removeClass('clearBoth'); 178 if($('div.row > .4u(medium)').length) $('div.row > .4u(medium):nth-child(3n+1)').addClass('clearBoth'); 179 if($("div.row > .6u(medium)").length) $("div.row > .6u(medium):nth-child(2n+1)").addClass('clearBoth'); 180 }); 181 skel.on('+small', function() { 182 $('div.row > *').removeClass('clearBoth'); 183 }); 184 185 // matchHeight 186 if($('.mh-container').length){ 187 setTimeout(function(){ 188 $('.mh-container').each(function() { 189 $(this).find('.mh-item').matchHeight(); 190 }); 191 },300); 192 } 193 194 // popup window 195 $('.contact_popup').click(function(){ 196 var win = window.open(this.href,"contact","width=850,height=800,resizable=yes,scrollbars=yes"); 197 if(screen.availWidth < 850) { 198 win.resizeTo(screen.availWidth,screen.availHeight); 199 } else { 200 win.resizeTo(850,screen.availHeight); 201 } 202 return false; 203 }); 204 205 // top page 206 if($('body').hasClass('top')){ 207 var rssContent = $('#rss_cafe_contents').find('.newslist'); 208 rssContent.hide(); 209 rssContent.eq(0).show(); 210 211 var rssTab = $('#rss_cafe_menu li'); 212 rssTab.click(function(e){ 213 e.preventDefault(); 214 var showID = $(this).find('a').attr('href'); 215 rssTab.removeClass('current'); 216 $(this).addClass('current'); 217 rssContent.hide(); 218 $(showID).show(); 219 }); 220 221 } 222 223 if(document.getElementById("about_rss_wrap") != null) { 224 var aboutRSS = $('#about_rss_wrap'); 225 $('#about_rss a').click(function(e) { 226 e.preventDefault(); 227 aboutRSS.toggle(); 228 229 $('#close_about_rss').on('click', function() { 230 aboutRSS.hide(); 231 }); 232 }); 233 } 234 235 //placeholder for IE8,9 236 var supportsInputAttribute = function (attr) { 237 var input = document.createElement('input'); 238 return attr in input; 239 }; 240 if (!supportsInputAttribute('placeholder')) { 241 $('[placeholder]').each(function () { 242 var 243 input = $(this), 244 placeholderText = input.attr('placeholder'), 245 placeholderColor = 'GrayText', 246 defaultColor = input.css('color'); 247 input. 248 focus(function () { 249 if (input.val() === placeholderText) { 250 input.val('').css('color', defaultColor); 251 } 252 }). 253 blur(function () { 254 if (input.val() === '') { 255 input.val(placeholderText).css('color', placeholderColor); 256 } else if (input.val() === placeholderText) { 257 input.css('color', placeholderColor); 258 } 259 }). 260 blur(). 261 parents('form'). 262 submit(function () { 263 if (input.val() === placeholderText) { 264 input.val(''); 265 } 266 }); 267 }); 268 } 269 270 // accordion - add - 2015.06.24 271 $('.acc-year-menu').each(function() { 272 var accBtn = $(this).find('.acc-btn'); 273 var accContainer = $(this).find('.acc-container'); 274 accContainer.hide(); 275 accBtn.on('click', function(){ 276 if(accBtn.hasClass('active')) { 277 accBtn.removeClass('active'); 278 accContainer.slideUp('fast'); 279 } else { 280 accBtn.addClass('active'); 281 accContainer.slideDown('fast'); 282 } 283 }); 284 }); 285 286}); 287 288$(document).ready(function(){ 289 //link popup 290 //$('a[href^=http]').not('[href*="'+location.hostname+'"]').attr("target","_blank"); 291 var httplink = $('a[href^=http]').not('[href*="'+location.hostname+'"]'); 292 httplink.each(function() { 293 var linkurl = $(this).attr('href'); 294 $(this).click(function(e){ 295 e.preventDefault(); 296 window.open(linkurl); 297 return false; 298 }); 299 }); 300 301 if($('body').hasClass('top')){ 302 cal_init(); 303 slider = $('.bxslider').bxSlider({ 304 auto : true, 305 speed : 2500, 306 pause : 6000, 307 touchEnabled: false 308 }); 309 var timer = false;
310 $(window).resize(function() { 311 if (timer !== false) { 312 clearTimeout(timer); 313 } 314 timer = setTimeout(function() { 315 slider.reloadSlider(); 316 }, 200); 317 }); 318 } 319 320}); 321 322function openWindow( url, windowID, width, height, left, top, menubar, toolbar, location, status, scrollbars, resizable ) { 323 if ( width == 'max' ) { 324 width = document.all ? document.documentElement.clientWidth : window.innerWidth; 325 } 326 if ( height == 'max' ) { 327 height = document.all ? document.documentElement.clientHeight : window.innerHeight; 328 } 329 var settings = 'width='+width+', height='+height+', left='+left+', top='+top+', menubar='+menubar+', toolbar='+toolbar+', location='+location+', status='+status+', scrollbars='+scrollbars+', resizable='+resizable; 330 if(typeof(win)!='undefined' && !win.closed) { 331 win.blur(); 332 } 333 win = window.open( url, windowID, settings ); 334 win.focus(); 335} 336 337})(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.