PageSourceSearch

https://www.freedomdreads.co.za/wp-content/themes/beauty-salon-spa/assets/js/theme-script.js?ver=1

js freedomdreads.co.za collected 2026-10-04 21:44:44 UTC 3,712 bytes, 146 lines download raw bytes

1
2function beauty_salon_spa_gb_Menu_open() {
3	jQuery(".side_gb_nav").addClass('show');
4}
5function beauty_salon_spa_gb_Menu_close() {
6	jQuery(".side_gb_nav").removeClass('show');
7}
8
9jQuery(function($){
10	$('.gb_toggle').click(function () {
11        beauty_salon_spa_Keyboard_loop($('.side_gb_nav'));
12    });
13});
14
15jQuery('document').ready(function(){
16  var owl = jQuery('#home-services .owl-carousel');
17    owl.owlCarousel({
18    margin:20,
19    nav: true,
20    autoplay : false,
21    lazyLoad: true,
22    autoplayTimeout: 3000,
23    loop: true,
24    dots:false,
25    navText : ['<i class="fa fa-chevron-left" aria-hidden="true"></i>','<i class="fa fa-chevron-right" aria-hidden="true"></i>'],
26    responsive: {
27      0: {
28        items: 1
29      },
30      600: {
31        items: 1
32      },
33      1000: {
34        items: 2
35      }
36    },
37    autoplayHoverPause : true,
38    mouseDrag: true
39  });
40});
41
42jQuery(window).scroll(function(){
43  if (jQuery(this).scrollTop() > 50) {
44    jQuery('.scrollup').addClass('is-active');
45  } else {
46      jQuery('.scrollup').removeClass('is-active');
47  }
48});
49
50jQuery( document ).ready(function() {
51  jQuery('#beauty-salon-spa-scroll-to-top').click(function (argument) {
52    jQuery("html, body").animate({
53           scrollTop: 0
54       }, 600);
55  })
56})
57// sticky header
58jQuery(window).scroll(function(){
59    if (jQuery(this).scrollTop() > 120) {
60        jQuery('.fixed_header').addClass('fixed');
61    } else {
62            jQuery('.fixed_header').removeClass('fixed');
63    }
64});
65
66/* Custom Cursor
67 **-----------------------------------------------------*/
68// Add this in custom-cursor.js
69jQuery(document).ready(function($) {
70  var cursor = $(".custom-cursor");
71  var follower = $(".custom-cursor-follower");
72  var offsetX = 15; // Set your desired horizontal offset
73  var offsetY = 15; // Set your desired vertical offset
74
75  $(document).mousemove(function(e) {
76    cursor.css({
77      top: e.clientY - offsetY + "px",
78      left: e.clientX - offsetX + "px"
79    });
80    follower.css({
81      top: e.clientY + "px",
82      left: e.clientX + "px"
83    });
84  });
85
86  $("a, button").hover(
87    function() {
88      cursor.addClass("active");
89      follower.addClass("active");
90    },
91    function() {
92      cursor.removeClass("active");
93      follower.removeClass("active");
94    }
95  );
96});
97
98/*preloader*/
99jQuery(document).ready(function($) {
100
101  // Function to hide preloader
102  function hidePreloader() {
103    $("#preloader ").delay(2000).fadeOut("slow");
104  }
105
106  // Check if all resources have been loaded
107  if (document.readyState === "complete") {
108    hidePreloader();
109  } else {
110    window.onload = hidePreloader;
111  }
112});
113
114// TEXT COLOR
115
116jQuery(function($){
117    jQuery(".slider-title").each(function() {
118    var t = jQuery(this).text();
119    var splitT = t.split(" ");
120    var halfIndex = Math.round(splitT.length / 2);
121    var newText = "";
122    for(var i = 0; i < splitT.length; i++) {
123    if(i == halfIndex) {
124      newText += "<span style='color:#232323'>";
125    }
126      newText += splitT[i] + " ";
127    }
128    newText += "</span>";
129    jQuery(this).html(newText);
130  });
131});
132
133// SEARCH POPUP
134
135jQuery(document).ready(function($) {
136    $('.header-search-wrapper .search-main').click(function() {
137        $('.search-form-main').toggleClass('active-search');
138        $('.search-form-main .search-field').focus();
139        $('.header-search-wrapper').toggleClass('icon-toggle');
140    });
141
142    $('.search-close-icon').click(function() {
143        $('.search-form-main').removeClass('active-search');
144        $('.header-search-wrapper').removeClass('icon-toggle');
145    });
146});

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.