1function sc_btn() { 2 $('.right li .sc_btn').attr('data-state', '1'); 3 4 $('.right li .sc_btn').bind( "click", function(e) { 5 $('#nv-m').fadeOut(150, 'swing'); 6 $('#header').removeClass('active'); 7 $('.m_btn').attr('data-state', '1').removeClass('on'); 8 $('body').css('position', 'absolute').removeClass('nv-opn'); 9 10 if ($(this).attr('data-state') === '1') { 11 $('#header .xans-layout-searchheader').fadeIn(150, function() { 12 $('#header .xans-layout-searchheader input#keyword').focus(); 13 }); 14 $(this).attr('data-state', '0'); 15 } else { 16 $('#header .xans-layout-searchheader').fadeOut(100, 'swing'); 17 $('#header .xans-layout-searchheader input#keyword').val(''); 18 $(this).attr('data-state', '1'); 19 } 20 e.preventDefault(); 21 }); 22 23 $('.clos-s').bind( "click", function(e) { 24 $('#header .xans-layout-searchheader').hide(); 25 $('input#keyword').val(''); 26 $('.right li .sc_btn').attr('data-state', '1'); 27 e.preventDefault(); 28 }); 29} 30 31function od_step() { 32 var w = $(window).width(); 33 34 if (w < 720) { 35 $('.xans-order-form .payArea .method option').each(function(i) { 36 var x = $(this).attr('value'); 37 38 if (x == 'tcash') { 39 $(this).remove(); 40 } 41 }); 42 } 43 44 $('#order_stage li').click(function(e) { 45 $('.step').hide(); 46 $('#order_stage li').removeClass('sltd'); 47 $(this).addClass('sltd'); 48 if (this.id === 'ed1') { 49 $('#st_1').show(); 50 } else if (this.id === 'ed2') { 51 $('#st_2').show(); 52 } 53 e.preventDefault(); 54 }); 55 $('#ctn_btn1').click(function(e) { 56 $('#order_stage li').removeClass('sltd'); 57 $('#order_stage li#ed2').addClass('sltd'); 58 59 var oe1 = $('#oemail1').val(), 60 oe2 = $('#oemail2').val(), 61 rname = $('#rname').val(), 62 rzip = $('#rzipcode1').val(), 63 raddr = $('#raddr1').val(), 64 rp2 = $('#rphone2_2').val(), 65 rp3 = $('#rphone2_3').val(); 66 67 if (oe1 == '' || oe2 == '' || rname == '' || rzip == '' || raddr == '' || rp2 == '' || rp3 == '') {
68 $('.st1 input[type=text]').not('#raddr2').each(function(i) { 69 if ($(this).val() == '' ) { 70 $(this).css('border-color', '#ff4c22'); 71 } 72 }); 73 } else { 74 $('#st_1').hide(); 75 $('#st_2').fadeIn(250, 'swing'); 76 e.preventDefault(); 77 } 78 }); 79 80 /* 81 $('#ctn_btn2').click(function(e) { 82 var pname = $('#pname').val(), 83 ba = $('#bankaccount').val(); 84 85 if (pname == '' || ba == '-1') { 86 $('.payArea .payment input[type=text]').each(function(i) { 87 if ($(this).val() == '' ) { 88 $(this).css('border-color', '#ff4c22').css('background', '#f9f0ee'); 89 } 90 }); 91 } else { 92 $('.step').hide(); 93 $('.xans-order-form .btn1#btn_payment').addClass('on'); 94 e.preventDefault(); 95 } 96 }); 97 $('input[type=text]').focus(function() { 98 $(this).css('border-color', '#111'); 99 });*/ 100} 101 102function tgl() { 103 $('div.etgl .title').attr('data-state', '1'); 104 $('dl.etgl dt').attr('data-state', '1'); 105 106 $('div.etgl .title').click(function(){ 107 var toggle = $(this).parent('.etgl'); 108 var tg_con = $(this).parent('.etgl').find('.contents'); 109 110 111 $('div.etgl').removeClass('selected'); 112 113 if ($(this).attr('data-state') == 1) { 114 $('div.etgl .contents').slideUp(0, 'swing'); 115 tg_con.slideDown(150, 'swing'); 116 $('div.etgl .title').attr('data-state', '1'); 117 $(this).attr('data-state', '0'); 118 $(this).parent('.etgl').addClass('selected'); 119 } else if ($(this).attr('data-state') == 0) { 120 $('div.etgl .contents').slideUp(150, 'swing'); 121 tg_con.slideUp(150, 'swing'); 122 $('div.etgl .title').attr('data-state', '1'); 123 $(this).attr('data-state', '1'); 124 $(this).parent('.etgl').removeClass('selected'); 125 } 126 }); 127 // toggle / s y made 128} 129 130function swiper() { 131 var w = $(window).width(); 132 133 var i__1 = new Swiper ('.i-1 .swiper', { 134 direction: 'horizontal', 135 loop: false, 136 slidesPerView: 'auto', 137 spaceBetween: 0, 138 speed: 450, 139 mousewheel: { 140 forceToAxis: true, 141 }, 142 navigation: { 143 nextEl: '.i-1 .swiper-button-next', 144 prevEl: '.i-1 .swiper-button-prev', 145 }, 146 autoplay: { 147 delay: 4000, 148 pauseOnMouseEnter: true, 149 }, 150 pagination: { 151 el: '.i-1 .swiper-pagination', 152 } 153 }); 154 155 var d__1 = new Swiper ('.img_area .swiper', { 156 // Optional parameters 157 direction: 'horizontal', 158 loop: false, 159 slidesPerView: 'auto', 160 spaceBetween: 0, 161 speed: 450, 162 mousewheel: { 163 forceToAxis: true, 164 }, 165 navigation: { 166 nextEl: '.img_area .swiper-button-next', 167 prevEl: '.img_area .swiper-button-prev', 168 }, 169 pagination: { 170 el: '.img_area .swiper-pagination', 171 } 172 }); 173} 174 175$().ready(function() { 176 sc_btn(); 177 tgl(); 178 od_step(); 179 swiper(); 180 181 var now = new Date(), 182 yr = now.getFullYear(); 183 184 $('#yr').text(yr); 185 186 $('.nx').bind( "click", function(e) { 187 e.preventDefault(); 188 }); 189}); 190 191$(window).resize(function() { 192});
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.