1(function($){ 2 3 $(document).ready(function(){ 4 //setting 5 //on off rollover,advance load 6 var src_on = "_on.", 7 src_off = "_off.", 8 9 //to page,to top 10 offset = 0, 11 scroll_speed = "slow", 12 13 //opacty rollover 14 on_speed = 0, 15 off_speed = "fast", 16 transp = 0.7, 17 18 //pngfix exclusion 19 png_exc = "exc"; 20 21 //to page 22 $("a.to_page").click(function(){ 23 var href = $(this).attr("href"); 24 href = href.split("#"); 25 if($("#" + href[1]).size() > 0 || href[0] == ""){ 26 var p = $("#" + href[1]).offset().top - offset; 27 $("html,body").animate({ 28 scrollTop:p 29 },scroll_speed); 30 31 } 32 }); 33 34 //to top 35 $("a.to_top").click(function(){ 36 $("html,body").animate({ 37 scrollTop:0 38 },scroll_speed); 39 return false; 40 }); 41 42 if (navigator.userAgent.match(/(iPhone|iPad|iPod|Android)/)) { 43 $(function() { 44 $('.tel').each(function() { 45 var str = $(this).html(); 46 if ($(this).children().is('img')) { 47 $(this).html($('<a>').attr('href', 'tel:' + $(this).children().attr('alt').replace(/-/g, '')).append(str + '</a>')); 48 } else { 49 $(this).html($('<a>').attr('href', 'tel:' + $(this).text().replace(/-/g, '')).append(str + '</a>')); 50 } 51 }); 52 }); 53 } 54 55 $(function(){ 56 var ua = navigator.userAgent; 57 if(ua.indexOf('iPhone') > 0 || ua.indexOf('Android') > 0){ 58 $('.tel-link').each(function(){ 59 var str = $(this).text(); 60 $(this).html($('<a>').attr('href', 'tel:' + str.replace(/-/g, '')).append(str + '</a>')); 61 }); 62 } 63 }); 64 65 //menu-trigger 66 $('.btnmenu').on('click', function() { 67 $('.btnmenu').toggleClass('active'); 68 $('.gnavwrap').toggleClass('active'); 69 $("body").toggleClass("is_active"); 70 return false; 71 }); 72 $(".is_active .btnmenu").on("click",function(){ 73 $("body").removeClass("is_active"); 74 $('.btnmenu').removeClass('active'); 75 $(".headwrap01").removeClass('active'); 76 }); 77 $("#t_clear").on("click",function(){ 78 $("body").removeClass("is_active"); 79 $('.btnmenu').removeClass('active'); 80 $(".headwrap01").removeClass('active'); 81 }); 82 83 //menu accordion 84 $(".btnmenu").click(function(){ 85 if($(".gnavwrap").css("display") == "none"){ 86 $("header").before('<div id="t_clear"></div>'); 87 $("#t_clear").click(function(){ 88 $(".gnavwrap").slideToggle("fast"); 89 $("#t_clear").remove(); 90 $(".btnmenu").removeClass('active'); 91 }); 92 $(".gnavwrap a").click(function(){ 93 $(".gnavwrap").slideUp("fast"); 94 $("#t_clear").remove(); 95 $(".btnmenu").removeClass('active'); 96 $("body").removeClass("is_active"); 97 }); 98 }else{ 99 $("#t_clear").remove(); 100 } 101 $(".gnavwrap").slideToggle("normal"); 102 return false; 103 }); 104 $(".gnavwrap").find("a").click(function(){ 105 $("#t_clear").remove(); 106 $("#gnav").slideUp("normal"); 107 }); 108 109 //acc 110 $(".acctitle").click(function(){ 111 $(this).next(".acccont").slideToggle(); 112 $(this).toggleClass("open"); 113 }); 114 115 if($(".first01").size() > 0){ 116 // ã¢ã¼ãã«ã®å¦ç 117 var bg = document.getElementById('c-modal_bg'); 118 bg.addEventListener('click', modal_close, false); 119 120 var close = document.getElementById('c-modal_close'); 121 close.addEventListener('click', modal_close, false); 122 123 function modal_close() { 124 var modal = document.getElementById('c-modal'); 125 modal.style.display = 'none'; 126 bg.style.display = 'none'; 127 128 // ãã§ãã¯ããã¯ã¹ã«ãã§ãã¯ãå ¥ã£ã¦ããå ´åã¯ã次å以é表示ããªãããã«ãã 129 if(document.getElementsByName('acs_next')[0].checked) { 130 sessionStorage.setItem('acs2', 'on'); 131 } 132 } 133 134 // ãæ¬¡å以é表示ããªããã«ãã§ãã¯ãå ¥ãã¦ããªãå ´å 135 if(sessionStorage.getItem('acs2') === null) { 136 137 } else { 138 // ãã§ãã¯ãå ¥ãã¦ããå ´åã¯ã¢ã¼ãã«ãåé¤ 139 modal_close(); 140 } 141 142 setTimeout(function(){ 143 $(".first01").stop().animate({opacity:'1'},0); 144 },30); 145 } 146 147 148 }); 149 150 $(window).on('load resize', function(){ 151 $('.mh01').matchHeight(); 152 $('.mh02').matchHeight(); 153 $('.mh03').matchHeight(); 154 }); 155 156 157 document.addEventListener('DOMContentLoaded', function () { 158 var mql = window.matchMedia('screen and (max-width: 768px)'); 159 function checkBreakPoint(mql) { 160 if (mql.matches) { 161 162 //sp 163 164 165 166 } else { 167 //pc 168 169 170 } 171 } 172 mql.addListener(checkBreakPoint); 173 checkBreakPoint(mql); 174 }); 175 176 177 178})(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.