PageSourceSearch

https://www.flexingit.com/static/ui23/js/cms-index.js

js flexingit.com collected 2026-09-25 19:38:38 UTC 8,909 bytes, 359 lines download raw bytes

1
2
3$(document).on('click','.header_search .form-control',function(){
4$('.search_option').slideDown();
5});
6$(document).on('click','.search_option li a',function(){
7 var search_val = $(this).text();
8 $(this).parents('.header_search').find('input').attr('placeholder',search_val);
9 $(this).parents('.search_option').slideUp();
10});
11document.addEventListener("mousedown", function (event) {
12  if (event.target.closest(".header_search .form-control,.search_option"))
13      return;
14  $('.search_option').hide();
15});
16
17$(window).scroll(function (event) {
18var scroll = $(window).scrollTop();
19if(scroll >= 1240 && scroll <=2360){
20  $(".header_All").addClass("fixed");
21}
22else{
23  $(".header_All").removeClass("fixed");
24}
25
26});
27
28var prevScrollpos = window.pageYOffset;
29
30window.onscroll = function() {
31var currentScrollPos = window.pageYOffset;
32console.log(currentScrollPos);
33  var common_section = $('.common_section').height();
34
35
36        console.log("Section Height: " + common_section);
37
38        if (currentScrollPos >= common_section) {
39          $('.fixed_social').hide();
40        } else {
41          $('.fixed_social').show();
42        }
43  prevScrollpos = currentScrollPos;
44    progressBarScroll();
45}
46
47
48$(window).scroll(function (event) {
49    var scroll = $(window).scrollTop();
50  if(scroll >= 5){
51    $('.after_login_hum span').removeClass('active');
52    $('.after_login_hum ul').hide();
53      $('.common_box').hide();
54  $('.search_option').hide();
55  }
56  });
57
58  $(document).on('click','.after_login_hum span',function(){
59  if($(this).hasClass('active')){
60    $(this).removeClass('active');
61    $('.after_login_hum ul').slideUp();
62  }
63  else{
64    $(this).addClass('active');
65    $('.after_login_hum ul').slideDown();
66  }
67  });
68
69  $(document).on('click','span.noti_icon',function(){
70    $(this).parents('.notification_det').find('.common_box').slideToggle();
71  });
72  document.addEventListener("mousedown", function (event) {
73    if (event.target.closest(".common_box ,.noti_icon"))
74        return;
75    $('.common_box').hide();
76  });
77  document.addEventListener("mousedown", function (event) {
78  if (event.target.closest(".after_login_hum span ,.after_login_hum ul"))
79      return;
80  $('.after_login_hum ul').hide();
81  $('.after_login_hum span').removeClass('active');
82});
83$(window).on('load', function () {
84  var screen_width = $(window).width();
85  // alert(screen_width);
86
87  if (screen_width <= 996) {
88    $(document).on('click','.hum_burger.open',function(){
89      $(".header_menu").animate({top:"0"});
90        $(this).removeClass('open').addClass('closed');
91      });
92      $(document).on('click','.hum_burger.closed',function(){
93        $(".header_menu").animate({top:"-100vh"});
94        $(this).removeClass('closed').addClass('open');
95      });
96            $(document).on('click','.footer_Content h3',function(){
97        $('.footer_Content h3').removeClass('active');
98        $(this).addClass('active');
99        $('.footer_Content ul').removeClass('active');
100        $(this).siblings('ul').addClass('active');
101
102        // $(this).parent('.footer_Content').find('ul').slideDown();
103
104      });
105      $(document).on('click','.header_search span.search',function(){
106        $(this).addClass('active');
107        $(this).siblings('input').addClass('active');
108      });
109  }
110});
111
112
113jQuery("#benchmarking").owlCarousel({
114  autoplay: false,
115  rewind: true, /* use rewind if you don't want loop */
116  margin: 30,
117  dots: false,
118
119  responsiveClass: true,
120  loop:true,
121  autoHeight: true,
122  autoplayTimeout: 7000,
123  smartSpeed: 800,
124  nav: true,
125  navText: ["<img src='/static/ui23/images/arrow_right.svg'>","<img src='/static/ui23/images/arrow_left.svg'>"],
126  responsive: {
127    0: {
128      items: 1
129    },
130
131    600: {
132      items: 1
133    },
134
135    1024: {
136      items: 1
137    },
138
139    1366: {
140      items: 1
141    }
142  }
143});
144
145$(document).on('click','.hum_burger',function(){
146  $(this).addClass('active');
147
148});
149$(document).on('click','.hum_burger.active',function(){
150  $(this).removeClass('active');
151});
152$(document).on('click','.hum_burger.open',function(){
153$(".header_menu").animate({left: "0"});
154  $(this).removeClass('open').addClass('closed');
155});
156$(document).on('click','.hum_burger.closed',function(){
157  $(".header_menu").animate({left: "-300px"});
158  $(this).removeClass('closed').addClass('open');
159});
160
161
162
163
164
165
166
167$(window).on('load', function () {
168  var screen_width = $(window).width();
169
170  if (screen_width <= 520) {
171    $(document).on('click','.hum_burger.open',function(){
172      $(".header_menu").animate({top:"0"});
173        $(this).removeClass('open').addClass('closed');
174      });
175      $(document).on('click','.hum_burger.closed',function(){
176        $(".header_menu").animate({top:"-100vh"});
177        $(this).removeClass('closed').addClass('open');
178      });
179  }
180});
181
182
183// ****************** template code start ************************
184
185jQuery("#template_with").owlCarousel({
186  loop:true,
187  margin:30,
188  autoplay: true,
189  slideTransition: 'linear',
190  nav:false,
191  loop: true,
192smartSpeed: 1000,
193autoplayTimeout:4000,
194  responsive: {
195    0: {
196      items: 2,
197        margin:10,
198    },
199    600: {
200      items: 2
201    },
202
203    850: {
204      items: 3
205    },
206
207    1024: {
208      items: 6,
209    },
210
211    1401: {
212      items: 8
213    }
214  }
215});
216
217
218
219jQuery("#template_slider").owlCarousel({
220  margin: 30,
221  dots: false,
222 center: false,
223  responsiveClass: true,
224  loop:false,
225   autoplay:false,
226  autoHeight: true,
227  autoplayTimeout: 7000,
228  smartSpeed: 800,
229  nav: true,
230  navText: ["<img src='/static/ui23/images/arrow_right.svg'>","<img src='/static/ui23/images/arrow_left.svg'>"],
231  responsive: {
232    0: {
233      items: 1
234    },
235
236    600: {
237      items: 1
238    },
239
240    1000: {
241      items: 2
242    },
243
244    1201: {
245      items: 3
246    }
247  }
248});
249
250//  ********************************* con showcase code start **************************************
251
252$(document).on('click','.wish_listed',function(){
253  $(this).hide();
254  $(this).siblings('.add_wishlist').show();
255});
256$(document).on('click','.add_wishlist',function(){
257  $(this).hide();
258  $(this).siblings('.wish_listed').show();
259});
260$(window).scroll(function (event) {
261  var scroll = $(window).scrollTop();
262if(scroll >= 5){
263  $(this).unbind("scroll");
264$('.fixed_box').show();
265}
266});
267$(document).on('click','.closed_post',function(){
268  $('.fixed_box').hide();
269});
270
271
272$(document).on('click','.fixed_box p span',function(){
273  $(this).parents('.fixed_box').hide();
274  $('.plane_btn').show();
275});
276$(document).on('click','.plane_btn',function(){
277  $(this).hide();
278  $('.fixed_box').show();
279});
280//  ********************************* con showcase code end **************************************
281
282
283$(window).on('load', function () {
284  var screen_width = $(window).width();
285
286
287  if (screen_width <= 996) {
288
289         $(document).on('click','.footer_Content h3',function(){
290        $('.footer_Content h3').removeClass('active');
291        $(this).addClass('active');
292        $('.footer_Content ul').removeClass('active');
293        $(this).siblings('ul').addClass('active');
294
295      });
296
297  }
298});
299
300
301function progressBarScroll() {
302  let winScroll = document.body.scrollTop || document.documentElement.scrollTop,
303      height = document.documentElement.scrollHeight - document.documentElement.clientHeight,
304      scrolled = (winScroll / height) * 100;
305  document.getElementById("progressBar").style.width = scrolled + "%";
306}
307
308
309$(document).ready(function(){
310    $(".project-wrapper .col-sm-4").slice(6).hide();
311    $("#toggleProjects").on("click", function(){
312        let hiddenProjects = $(".project-wrapper .col-sm-4:hidden");
313
314        if(hiddenProjects.length > 0){
315            hiddenProjects.slideDown();
316           $(this).html('Show Less <img src="/static/ui23/images/refresh.svg" alt="" loading="lazy">');
317        } else {
318            $(".project-wrapper .col-sm-4").slice(6).slideUp();
319              $(this).html('Show More <img src="/static/ui23/images/refresh.svg" alt="" loading="lazy">');
320        }
321    });
322});
323$(window).on("load", function() {
324    var count = $(".all_load_projects .col-sm-4").length;
325    if (count <= 6) {
326     $('.load_more_btn').hide();
327    $('.all_load_projects').parents('section.Template_Third_jobs.common_section').css('padding-bottom','10px');
328    } else {
329         $('.load_more_btn').show();
330    }
331});
332     $(document).ready(function(){
333    $(".job_vecanvy_det").each(function () {
334        var $ul = $(this);
335        var $lis = $ul.find("li");
336
337        if ($lis.length > 2) {
338            var extraCount = $lis.length - 2;
339            $lis.slice(2).hide();
340         /*   $ul.append('<li class="more-items">+' + extraCount + '</li>');*/
341        }
342    });
343        $(".Skill_Required_list").each(function () {
344        var $ul = $(this);
345        var $lis = $ul.find("li");
346
347        if ($lis.length > 2) {
348            var extraCount = $lis.length - 2;
349            $lis.slice(2).hide();
350       /*     $ul.append('<li class="more-items">+' + extraCount + '</li>');*/
351        }
352    });
353        });
354
355
356
357
358
359

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.