PageSourceSearch

https://kenaz-re.com/js/home.js

js kenaz-re.com collected 2026-10-08 08:34:56 UTC 6,037 bytes, 218 lines download raw bytes

1
2$(document).ready(function(){
3  var lan = $("#language").val();
4	/*
5  if (lan == "EN") {
6	$("#lang-control").addClass('go');
7  }
8  */
9  $("#lang-mode").click(function(){
10    if ($("#language").val() == "KR") {
11      if (!$("#lang-control").hasClass("go")) {
12	$("#language").val("EN");
13	$(".laguage-control .label3").removeClass("opa_10");
14	$(".laguage-control .label3").addClass("opa_04");
15	$(".laguage-control .label2").removeClass("opa_04");
16	$(".laguage-control .label2").addClass("opa_10");
17	$("#lang-control").removeClass('back');
18	$("#lang-control").addClass('go');
19      } 
20    } else {
21      if ($("#lang-control").hasClass("go")) {
22	$("#language").val("KR");
23	$(".laguage-control .label3").removeClass("opa_04");
24	$(".laguage-control .label3").addClass("opa_10");
25	$(".laguage-control .label2").removeClass("opa_10");
26	$(".laguage-control .label2").addClass("opa_04");
27	$("#lang-control").removeClass('go');
28	$("#lang-control").addClass('back');
29	//window.location.href="/"
30      } 
31    }
32    changed_language($("#language").val());
33  });
34  function changed_language(current_lang){
35	  const queryString = window.location.search;
36	  const hash = window.location.hash;
37	  const path = window.location.pathname;
38	  const lan_val = $("#language").val();
39	  var url;
40	  if (queryString != ""){
41            if (queryString.includes("lan=")) {
42	       if (lan_val == "KR") {
43	           url = queryString.replace("?lan=EN", "");
44	           url = url.replace("&lan=EN", "");
45	       } else {
46	           url = queryString.replace("lan=KR", "lan=EN");
47	       }
48            } else {
49		  url = queryString+"&lan="+lan_val;
50            }
51
52	  } else {
53		  url = "?lan="+lan_val;
54	  }
55	  url = path+url+hash;
56	  window.location.href=url;
57
58	  //location.reload();
59  }
60  const icons = document.querySelectorAll('.nav-icon');
61    icons.forEach (icon => {
62      icon.addEventListener('click', (event) => {
63	$("header").removeClass('bg-gray');
64	$("header").addClass('bg-dark');
65        icon.classList.toggle("open");
66	if ($(".nav-icon").hasClass("open")) {
67	    $('.gnb_drop_area').css("display", "none");
68            $("#d_hover").val('');
69	    $("#sitemap_area").removeClass("d-none");
70	} else {
71	    $(".sitemap").addClass("d-none");
72	}
73    });
74  });
75  $(".sitemap_li").click(function(){
76      $(".nav-icon").removeClass("open");
77      $(".sitemap").addClass("d-none");
78  })
79  $('.dropdown').mouseenter(function() {
80    if($('.gnb_drop_area').css("display") == "none") {
81       if ($(".nav-icon").hasClass("open")) {
82	  $('.gnb_drop_area').css("display", "none");
83          $("#d_hover").val('');
84       } else {
85
86		  $("header").removeClass('bg-dark');
87		  $("header").addClass('bg-gray');
88	  $('.gnb_drop_area').fadeIn(1000, function(){
89              $("#d_hover").val('y');
90	  });
91       }
92    } else {
93    }
94  });
95  $('.dropdown').mouseleave(function() {
96	  $('.gnb_drop_area').mouseenter(function() {
97              $("#d_hover").val('y');
98	  });
99	  $('.gnb_drop_area').mouseleave(function() {
100              $("#d_hover").val('');
101	  });
102  });
103  $('.gnb_drop_area').mouseenter(function() {
104      $("#d_hover").val('y');
105  });
106  $('.gnb_drop_area').mouseleave(function() {
107      $("#d_hover").val('');
108		  $("header").removeClass('bg-gray');
109		  $("header").addClass('bg-dark');
110      $('.gnb_drop_area').fadeOut(1000);
111  });
112  $('.footer-button').click(function() {
113	  if ($(".dropdown-menu").hasClass("show")) {
114		  $(".dropdown-menu").removeClass("show")
115	  }else {
116		  $(".dropdown-menu").addClass("show")
117	  }
118  });
119});
120$(document).click(function(e){
121  const icons = document.querySelectorAll('.icon');
122  if (!$(".sitemap").hasClass("d-none")) {
123	   var container = $(".icon")
124	   var stmap = $(".sitemap")
125    if (!$(e.target).is('#sitemap_area') && stmap.has(e.target).length === 0 && !$(e.target).is('#icon5') && container.has(e.target).length === 0) {
126	  $(".sitemap").addClass("d-none");
127          $("#icon5").removeClass("open");
128
129                $("nav").removeClass('bg-gray');
130                $("nav").addClass('bg-dark')
131    }
132  }
133});
134function move_link(url) {
135	window.location.href=url;
136}
137function sleep(ms) {
138  const wakeUpTime = Date.now() + ms;
139  while (Date.now() < wakeUpTime) {}
140}
141AOS.init();
142var ww = $(window).width();
143var mySwiper = undefined;
144
145
146  var mySwiper = new Swiper ('.mySwiper', {
147  // Optional parameters
148    slidesPerView: 1,
149    spaceBetween: 30,
150    loop: true,
151    speed: 1200,
152    centeredSlides: true,
153    // Enable lazy loading
154    lazy: true,
155    navigation: {
156      nextEl: '.swiper-button-next',
157      prevEl: '.swiper-button-prev',
158    },
159    keyboard: {
160      enabled: true,
161    },
162    breakpoints: {
163      0: { /* when window >=0px - webflow mobile portriat */
164        slidesPerView: 1.6,
165        slidesPerGroup: 1,
166        spaceBetween: 30,
167    centeredSlides: true,
168      },
169      1280: { 
170        slidesPerView: 3.9,
171        slidesPerGroup: 2,
172        spaceBetween: 30,
173        centeredSlides: false,
174      },
175    },
176  })
177
178
179/* */
180function activeIndex($i) {
181}
182// Get the button:
183let mybutton = document.getElementById("myBtn");
184let togo = document.getElementById("togo");
185
186// When the user scrolls down 20px from the top of the document, show the button
187window.onscroll = function() {scrollFunction()};
188
189function scrollFunction() {
190  if (document.body.scrollTop > 20 || document.documentElement.scrollTop > 20) {
191    mybutton.style.display = "block";
192    togo.style.display = "block";
193  } else {
194    mybutton.style.display = "none";
195    togo.style.display = "none";
196  }
197}
198
199// When the user clicks on the button, scroll to the top of the document
200function topFunction() {
201  document.body.scrollTop = 0; // For Safari
202  document.documentElement.scrollTop = 0; // For Chrome, Firefox, IE and Opera
203}
204
205function move_control() {
206  document.querySelector(".control").classList.add("go");
207}
208var h_con_swiper = new Swiper(".h_con_swiper", {
209  slidesPerView: "auto",
210  centeredSlides: true,
211  spaceBetween: 30,
212  scrollbar: {
213  el: ".swiper-scrollbar",
214  hide: false,
215  draggable: true,
216  },
217});
218

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.