PageSourceSearch

https://www.sf-recruiters.com/wp-content/themes/skt-ele-agency/assets/js/script.js?ver=1

js sf-recruiters.com collected 2026-09-30 16:38:06 UTC 4,953 bytes, 124 lines download raw bytes

1jQuery.noConflict();jQuery(document).ready(function($){function lightboxPhoto(){jQuery("a[rel^='prettyPhoto']").prettyPhoto({theme:'light_square',animation_speed:'fast',slideshow:5000,show_title:false,overlay_gallery:false,autoplay:true,keyboard_shortcuts:true,allow_resize:true,allow_expand:true,modal:true});}
2if(jQuery().prettyPhoto){lightboxPhoto();}
3if(jQuery().quicksand){var $data=jQuery(".portfolio-area").clone();jQuery('.portfolio-categ li').click(function(e){jQuery(".filter li").removeClass("active");var filterClass=jQuery(this).attr('class').split(' ').slice(-1)[0];if(filterClass=='all'){var $filteredData=$data.find('.portfolio-item2');}else{var $filteredData=$data.find('.portfolio-item2[data-type='+filterClass+']');}
4jQuery(".portfolio-area").quicksand($filteredData,{duration:1000,},function(){lightboxPhoto();});jQuery(this).addClass("active");return false;});}});
5
6;var wp_skt;
7
8(function($) {
9    'use strict';
10
11    wp_skt = {
12
13    init: function() {
14        this.faqSchema();
15        this.fileDelete();
16        this.buttonPlanForContactForm();
17        this.bannerSection();
18	//this.closeMenu();
19    },
20	closeMenu:function(){
21	var menuItems = document.querySelectorAll('.sidr-class-menu-item a');
22    	menuItems.forEach(function(item) {
23        	item.addEventListener('click', function() {
24            	var sidrMain = document.getElementById('sidr-main');
25            	sidrMain.style.setProperty('display', 'none', 'important');
26        	});
27    	});
28	},
29   	bannerSection: function() {
30        window.addEventListener('scroll', function() {
31            var header = document.querySelector('.header');
32            if (window.scrollY > 100) {
33                header.classList.add('scrolled');
34            } else {
35                header.classList.remove('scrolled');
36            }
37        });
38    
39        window.addEventListener('scroll', function() {
40            var scrollPosition = window.scrollY || window.pageYOffset;
41            var header = document.querySelector('.header.type2');
42            if (scrollPosition > 100) {
43                header.style.top = '0';
44            } 
45        });
46    },
47
48
49    buttonPlanForContactForm:function(){
50    
51        var buttonElements = document.querySelectorAll('.elementor-button');
52        buttonElements.forEach(function(button) {
53            button.addEventListener('click', function() {
54                updateSelectValue(button);
55            });
56        });
57    
58        function updateSelectValue(button) {
59            var select = document.getElementById('select-for-button-agency');
60            var buttonId = button.id;
61    
62            var idToValueMap = {
63                'dedicated': 'Dedicated Salesforce Talent',
64                'part': 'Part-time Consultant',
65                'recruiting': 'Recruiting Services'
66            };
67    
68            if(buttonId in idToValueMap) {
69                select.value = idToValueMap[buttonId];
70            }
71        }
72      
73    },
74
75    
76    fileDelete(){
77        if ($("input").is("#upload")) {
78            document.getElementById("upload").onchange = function () {
79                var upload = this.value,
80                    deleteFile = $('.file__delete'),
81                    arrUpload = upload.split('\\'),
82                    elem = arrUpload[arrUpload.length - 1];
83                $('.wpcf7-form').on('submit', function () {
84                    deleteFile.css("display", "none");
85                });
86                document.getElementById("file__upload").value = elem;
87                if (elem != "") {
88                    deleteFile.css("display", "block");
89                }
90                deleteFile.on('click', function () {
91                    document.getElementById("file__upload").value = "";
92                    document.getElementById("upload").value = "";
93                    deleteFile.css("display", "none");
94                });
95            };
96        }
97    },
98    
99    faqSchema:function(){
100
101      $('.faq-accordion-wp-container .mainEntity').hide();
102
103        $('.faq-accordion-wp-container .Question').append('<div class="icon plus">&#43;</div>');
104
105        $('.faq-accordion-wp-container .Question').click(function () {
106            $(this).find('.mainEntity').slideToggle();
107            $(this).toggleClass('active');
108            if ($(this).hasClass('active')) {
109                $(this).find('.icon').removeClass('plus').addClass('cross').html('&#10006;');
110            } else {
111                $(this).find('.icon').removeClass('cross').addClass('plus').html('&#43;');
112            }
113            $('.mainEntity').not($(this).find('.mainEntity')).slideUp();
114            $('.Question').not(this).removeClass('active').find('.icon').removeClass('cross').addClass('plus').html('&#43;');
115        });
116
117    },
118
119    };
120    $(document).ready(function(){
121        wp_skt.init();
122    })
123
124}(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.