PageSourceSearch

https://www.spiritualskyincense.com/_scripts.js?ver=1790570744318

js spiritualskyincense.com collected 2026-10-08 20:33:43 UTC 2,261 bytes, 84 lines download raw bytes

1$(document).ready(function() {
2
3
4//Remove root slash on menu links on homepage (no refresh)
5var width = $(window).width();	
6if(width>560){$(".cmsHomePage #menu a").each(function(){target=$(this).attr("href"),-1===target.indexOf("#")||$(this).attr("href",$(this).attr("href").substring(1))})};
7
8//Add footer spacing if no Contentbox content
9if( $("#cmsPageContainer .containsContentBox").length == 0){
10	$("#cmsPageContainer").addClass("noContentBox");
11}
12
13
14//Rework button pricing to be on a new line (add tags)
15/*$(".cmsOptionButtonSet button").each(function(){
16	let optval = $(this).val();
17	let valstr = $(this).text();
18	valarray = valstr.split(optval);
19	$(this).html('<span class="optText">'+optval+'</span><span class="optAdj">'+valarray[1]+'</span>');
20	
21});*/
22
23
24
25});
26
27$(window).scroll(function() {    
28    var scroll = $(window).scrollTop();
29    var width = $(window).width();	
30
31    if (scroll >= 300 && width > 0) {
32        $("body").addClass("fixedHeader");
33    } else {
34        $("body").removeClass("fixedHeader");
35    }
36});
37
38
39$(document).ready(function(){
40	mobilise();
41	menuise();
42});
43
44
45function mobilise() {
46
47//efficient use of page size by duplicating content
48$('.mobilemenucontainer').html($("#menu>#nav").html());
49$('.mobilecatmenucontainer').html($("#catnav").html());
50
51//click button already in page
52$("#mobbtn").on('click',function(){
53$("body").addClass("mobilemenuactive");
54          $(window).scrollTop(0);
55});
56
57//overlay click exit       
58$(".is-mobile-menu .is-overlay").on('click',function(){
59 $("body").removeClass("mobilemenuactive");
60});
61
62//exit button exit
63$("#mobbtnx").on('click',function(){
64 $("body").removeClass("mobilemenuactive");
65});
66
67}
68
69function menuise(){
70
71//IF MENU ITEM HAS DROPDOWN
72$('.menulilink,.mobilecatmenucontainer li').has("ul").each(function(){
73	$(this).has(".catsubmenu,.submenu").addClass("hassubmenu inactive");
74	$(this).find("a:first").after('<button class="toggle"><div class="plus"></div></button>');	
75});
76
77$(".menuliactive,.selectedCategory.hassubmenu").removeClass("inactive").addClass("active");
78
79$(".hassubmenu button.toggle").click(function(e){
80	e.preventDefault();
81	$(this).parent().toggleClass("active inactive");
82});
83
84}

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.