PageSourceSearch

https://cannabispol.com/assets/js/theme.js

js cannabispol.com collected 2026-10-08 19:03:11 UTC 4,024 bytes, 208 lines download raw bytes

1
2$(document).ready(function(){
3
4	 //Header Search
5    if($('.search-box-outer').length) {
6        $('.search-box-outer').on('click', function() {
7            $('body').addClass('search-active');
8        });
9        $('.close-search').on('click', function() {
10            $('body').removeClass('search-active');
11        });
12    }
13	// Mobile Menu
14    $('.mobile-menu nav').meanmenu({
15        meanScreenWidth: "991",
16        meanMenuContainer: ".mobile-menu",
17        onePage: false,
18    });
19
20	// to wow Jquery
21		new WOW().init();
22
23	// sticky
24    var wind = $(window);
25    var sticky = $('#sticky-header');
26    wind.on('scroll', function () {
27        var scroll = wind.scrollTop();
28        if (scroll < 100) {
29            sticky.removeClass('sticky');
30        } else {
31            sticky.addClass('sticky');
32        }
33    });
34
35	// Screenshot Jquery	
36	$('.screenshot-slide').owlCarousel({
37		loop:true,
38		margin:0,
39		autoplay:true,
40		nav:true,
41		items:5,
42		dots: true,
43		responsive:{
44			0:{
45				items:1
46			},
47			600:{
48				items:2
49			},
50			768:{
51				items:3
52			},
53			992:{
54				items:4
55			},
56			1170:{
57				items:4
58			},
59			1200:{
60				items:4
61			},
62			1500:{
63				items:5
64			},
65			 1920:{
66				items:5
67			}
68		}
69	});
70
71		// brand Jquery	
72		$('.brand-slide').owlCarousel({
73		loop:true,
74		margin:0,
75		autoplay: true,
76		nav:true,
77		items:3,
78		dots: false,
79		responsive:{
80			0:{
81				items:1
82			},
83			320:{
84				items:1
85			},
86			600:{
87				items:2
88			},
89			 768:{
90				items:3
91			},
92			992:{
93				items:4
94			},
95			1200:{
96				items:5
97			},
98			1500:{
99				items:5
100			},
101			
102			1920:{
103				items:5
104			}
105		}
106	});
107	
108	
109    /*---- scrollUp----- */
110    $.scrollUp({
111        scrollText: '<i class="fa fa-angle-up"></i>',
112        easingType: 'linear',
113        scrollSpeed: 900,
114        animation: 'fade'
115    });
116
117 // Calender Jquery
118	var curDate = (new Date()).getDate();
119	var curMonth = (new Date()).getMonth();
120	var curYear = (new Date()).getFullYear();
121	var startDay = (new Date(curYear, curMonth, 1)).getDay();
122	var months = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "
122November", "December"];
123	var noofdays = ["31", "29", "31", "30", "31", "30", "31", "31", "30", "31", "30", "31"];
124	var prevMonth = noofdays[curMonth - 1];
125	if (curMonth == 11) {
126	prevMonth = noofdays[0]
127	} else if (curMonth == 0) {
128	prevMonth = noofdays[11]
129	};
130	var totalDays = noofdays[curMonth];
131	var counter = 0;
132	var precounter = prevMonth - (startDay - 1);
133	var rightbox = 6;
134	var flag = true;
135
136	jQuery('.curr-month b').text(months[curMonth]);
137	for (var i = 0; i < 42; i++) {
138	if (i >= startDay) {
139	counter++;
140	if (counter > totalDays) {
141	counter = 1;
142	flag = false;
143	}
144	if (flag == true) {
145	jQuery('.all-date ul').append('<li class="monthdate">' + counter + '</li>');
146	} else {
147	jQuery('.all-date ul').append('<li style="opacity:.8">' + counter + '</li>');
148	}
149	} else {
150	jQuery('.all-date ul').append('<li style="opacity:.8">' + precounter + '</li>');
151	precounter++;
152	}
153
154	if (i == rightbox) {
155	jQuery(jQuery('.all-date ul li')[rightbox]).addClass("b-right");
156	rightbox = rightbox + 7;
157	}
158
159	if (i > 34) {
160	jQuery(jQuery('.all-date ul li')[i]).addClass("b-bottom");
161	}
162
163	if ((jQuery(jQuery('.all-date ul li')[i]).text() == curDate) && (jQuery(jQuery('.all-date ul li')[i]).css('opacity') == 1)) {
164	jQuery(jQuery('.all-date ul li')[i]).css({
165	"background-color": "#533EFF",
166	"color": "rgb(255, 255, 255)"
167	});
168	}
169	};
170
171// faq Jquery
172	$('.accordion > li:eq(0) a').addClass('active').next().slideDown();
173
174		$('.accordion a').click(function(j) {
175			var dropDown = $(this).closest('li').find('p');
176
177			$(this).closest('.accordion').find('p').not(dropDown).slideUp();
178
179			if ($(this).hasClass('active')) {
180				$(this).removeClass('active');
181			} else {
182				$(this).closest('.accordion').find('a.active').removeClass('active');
183				$(this).addClass('active');
184			}
185
186			dropDown.stop(false, true).slideToggle();
187
188			j.preventDefault();
189	});
190
191		// Loder  //
192		$(function () {
193		  $('body').addClass('loaded');
194		});
195
196
197
198
199
200
201
202
203
204
205
206
207
208});

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.