// jquery Tab // -------------------------------------------------------------------------------------------------------------------------** jQuery(function($){ $('#tabcontent > div').hide(); $('#tabnavi a').click(function () { $('#tabcontent > div').hide().filter(this.hash).fadeIn(); $('#tabnavi a').removeClass('active'); $(this).addClass('active'); return false; }).filter(':eq(0)').click(); }); // jquery accordion // -------------------------------------------------------------------------------------------------------------------------** jQuery(document).ready(function(){ jQuery('.lf_accordion_head').click(function() { if(jQuery(this).is(".lf_switchselected")){ jQuery(this).removeClass("lf_switchselected"); }else { jQuery(this).addClass("lf_switchselected"); } jQuery(this).next().slideToggle(); }).next().hide(); }); // jquery Rollover // -------------------------------------------------------------------------------------------------------------------------** jQuery(function(){ jQuery('.lf_swap').hover( function(){ jQuery(this).fadeTo(100, 0.6); }, function(){ jQuery(this).fadeTo(150, 1.0); } ); }); // jquery radioボタン labelクラス付与 // -------------------------------------------------------------------------------------------------------------------------** (function($) { // 読み込んだら開始 $(function() { // checkbox, radio にチェックがあったら label に class を付ける var checkboxList = $(".lf_checkboxList"); checkboxList.each(function() { var label = $(this).find("label"); // 最初の処理 $(this).find(":checked").closest("label").addClass("checked"); // ラベルクリック label.click(function() { label.filter(".checked").removeClass("checked"); label.find(":checked").closest(label).addClass("checked"); }); }); }); })(jQuery); // jquery SmoothScroll // -------------------------------------------------------------------------------------------------------------------------** jQuery(function(){ jQuery('a.lf_pagescroll[href^="#"]').click(function(){ var Hash = jQuery(this.hash); var HashOffset = jQuery(Hash).offset().top; jQuery("html,body").animate({ scrollTop: HashOffset }, 500); return false; }); }); // jquery GoTop button // -------------------------------------------------------------------------------------------------------------------------** jQuery(document).ready(function() { // Show or hide the sticky footer button jQuery(window).scroll(function() { if (jQuery(this).scrollTop() > 200) { jQuery('.lf_go-top').fadeIn(200); } else { jQuery('.lf_go-top').fadeOut(200); } }); // Animate the scroll to top jQuery('.lf_go-top').click(function(event) { event.preventDefault(); jQuery('html, body').animate({scrollTop: 0}, 300); }) }); jQuery(document).ready(function() { // Show or hide the sticky footer button jQuery(window).scroll(function() { if (jQuery(this).scrollTop() > 200) { jQuery('.fade').fadeIn(200); } else { jQuery('.fade').fadeOut(200); } }); }); // luft // -------------------------------------------------------------------------------------------------------------------------** jQuery(document).ready(function() { var that = this; that.STAGE_WIDTH = 0; that.STAGE_HEIGHT = 0; that.TopbanHeight = 0; that.$lf_btn_sp_menu = $('.lf_btn_sp_menu'); //Initialize Init(); function Init(){ $(window).on('resize', ResizeHandler).trigger('resize'); //Setup Setup(); } function Setup(){ } /** * Resize Event Handler * @param e {Event} */ function ResizeHandler(e) { // [GET] Stage Property that.STAGE_WIDTH = $(window).width(); that.STAGE_HEIGHT = $(window).height(); that.TopbanHeight = Math.round(90*that.STAGE_WIDTH/728)+60; that.$lf_btn_sp_menu.css({ top: that.TopbanHeight+'px' }); }; /** * Scroll Event Handler * @param e {Event} */ function ScrollHandler(e) { }; }); /* Detect -----------------------------------------------------------*/ function BrowserCheck(){ var b = navigator.appName; if (b == "Netscape") this.b = "NN"; else if (b == "Microsoft Internet Explorer") this.b = "IE"; else this.b = b; this.version = navigator.appVersion; this.vSub = navigator.vendorSub; this.userAgent = navigator.userAgent; this.appVersion = navigator.appVersion; this.v = parseInt(this.version); this.vs = parseFloat(this.vSub); this.NN = (this.b == "NN"); this.NN3 = (this.b == "NN" && this.v == 3); this.NN4 = (this.b == "NN" && this.v == 4); this.NN6x = (this.b == "NN" && this.v == 5 && this.vs >= 6.01); this.NN6 = (this.b == "NN" && this.v == 5); this.NN7 = (this.b == "NN" && this.v == 5 && this.vs >= 7); this.IE = (this.b == "IE"); this.IE3 = (this.userAgent.indexOf('MSIE 3')>0); this.IE45 = (this.userAgent.indexOf('MSIE 4.5')>0); this.IE401 = (this.userAgent.indexOf('MSIE 4.01')>0); this.IE4 = (this.userAgent.indexOf('MSIE 4')>0); this.IE51 = (this.userAgent.indexOf('MSIE 5.1')>0); this.IE512 = (this.userAgent.indexOf('MSIE 5.12')>0); this.IE514 = (this.userAgent.indexOf('MSIE 5.14')>0); this.IE52 = (this.userAgent.indexOf('MSIE 5.2')>0); this.IE5 = (this.userAgent.indexOf('MSIE 5')>0); this.IE6 = (this.userAgent.indexOf('MSIE 6')>0); this.GEK = (this.userAgent.indexOf("Gecko") != -1); this.SAF = (this.userAgent.indexOf("Safari",0) != -1); this.FF = (this.userAgent.indexOf("Firefox") != -1); this.CAB = (this.userAgent.indexOf("iCab",0) != -1); this.OPE = (this.userAgent.indexOf("Opera",0) != -1); this.Win = (this.userAgent.indexOf('Win',0) != -1); this.Mac = (this.userAgent.indexOf('Mac',0) != -1); this.MacOSX = (this.userAgent.indexOf('Mac OS X',0) != -1); if(this.IE512 || this.IE52){ this.MacOSX=true; } else if(this.IE514){ if (navigator.plugins) { for (i=0; i < navigator.plugins.length; i++ ) { if (navigator.plugins[i].name.indexOf('QuickTime') >= 0 && navigator.plugins[i].filename.indexOf('.plugin')!=-1){ this.MacOSX=true; } } } } this.Unix = (this.appVersion.indexOf('X11',0) != -1); } var checkB = new BrowserCheck(); /*Window Open // From HTML ____________________________________________________________*/ function subWin(var_location, var_target, var_w, var_h, var_toolbar){ var_width = parseInt(var_w); var_height = parseInt(var_h); if(checkB.Mac) { if(checkB.IE52 || checkB.IE51 ) { var_width -= 16; var_height -= 5; } else if(checkB.FF) { var_width += 10; var_height += 10; } else if(checkB.NN7) { var_width += 15; var_height += 15; } else if(checkB.OPE) { var_width += 10; var_height -= 5; } else { } } else if(checkB.Win) { if(checkB.IE) { var_width += 17; var_height += 5; } else if(checkB.FF){ var_width += 10; var_height -= 20; } else if(checkB.NN7){ var_width += 15; var_height -= 15; } else { var_width += 25; var_height += 15; } } else { } var_style = "width="+var_width+",height="+var_height+",toolbar="+var_toolbar+",scrollbars=yes,resizable=no,directories=no,menubar=no,status=no,location=no"; window.open(var_location, var_target, var_style); } function openWin(url,target){ subWin = window.open(url,target); }