PageSourceSearch

https://goosevpn.com/wp-content/themes/goosevpn/dist/scripts/custom.js?ver=20

js goosevpn.com collected 2026-09-24 11:18:08 UTC 2,902 bytes, 94 lines download raw bytes

1jQuery('.pricing-section .el-button, .home-new-pricing .el-button,.packages-new .el-button').click(function () {
2	var button = jQuery(this)
3	var menu = jQuery('.pricing-section .el-dropdown-menu, .home-new-pricing .el-dropdown-menu,.packages-new .el-dropdown-menu')
4	var container = menu.parent()
5	
6	// menu.css('top',button.offset().top - container.offset().top + 40)
7	// menu.css('left',button.offset().left - container.offset().left - 2)
8	
9	menu.css('top', button.parent().position().top + 50)
10	menu.css('left', button.parent().position().left)
11	
12	console.log(button.offset().left)
13	console.log(container.offset().left)
14	
15	menu.toggle();
16})
17
18jQuery('.pricing-section .el-dropdown-menu li, .home-new-pricing .el-dropdown-menu li, .packages-new .el-dropdown-menu li').click(function () {
19	var elm = jQuery(this)
20	var dropdown = elm.parent()
21	var id = elm[0].dataset['id']
22	var num = elm[0].dataset['number']
23	var button = jQuery('.pricing-section .el-button')
24	
25	jQuery('.price .main-price').hide().removeClass('active');
26	jQuery('.old-price').hide().removeClass('active');
27	jQuery('.home-new-pricing .dynamic-wrp .price, .packages-new .dynamic-wrp .price').hide().removeClass('active');
28	jQuery('#price_id_' + id).show();
29	jQuery('#old_price_id_' + id).show();
30	
31	jQuery('.pricing-section .features-list, .home-new-pricing .dynamic-wrp .features-list, .packages-new .dynamic-wrp .features-list').hide().removeClass('active');
32	jQuery('.pricing-section #features_id_' + id + ', .home-new-pricing .dynamic-wrp #features_id_' + id + ', .packages-new .dynamic-wrp #features_id_' + id).show()
33	
34	let text = jQuery('.home-new-pricing .el-dropdown-menu__item[data-id=' + id + '], .packages-new .el-dropdown-menu__item[data-id=' + id + ']').text();
35	jQuery('.home-new-pricing .el-button, .packages-new .el-button').html(text);
36	
37	if (num > 1) {
38		button.html(num + ' devices')
39	} else {
40		button.html(num + ' device')
41	}
42	
43	
44	dropdown.hide();
45})
46
47jQuery(document).ready(function ($) {
48	"use strict";
49	
50	var popupCookieName = 'popup_v2_displayed_',
51		exitIntentPopupShown = false;
52	
53	function setPopupCookie() {
54		var date = new Date();
55		date.setHours(date.getHours() + 24);
56		
57		var currentDomain = window.location.hostname;
58		document.cookie = popupCookieName + '=true; expires=' + date.toUTCString() + '; path=/; domain=' + currentDomain;
59	}
60	
61	function isPopupCookieSet() {
62		return document.cookie.indexOf(popupCookieName + '=true') !== -1;
63	}
64	
65	if (!isPopupCookieSet()) {
66		
67		$(document).mouseleave(function (e) {
68			
69			if (!exitIntentPopupShown && e.clientY < 0) {
70				
71				$('.cta-popup').addClass('active');
72				
73				$('.cta-popup').find('.close-btn, .close-txt').on('click', function () {
74					
75					$('.cta-popup').removeClass('active');
76					
77					setPopupCookie();
78					
79				});
80				
81				exitIntentPopupShown = true;
82				
83			}
84			
85		});
86		
87	}
88	
89	setTimeout(function () {
90	
91		
92	}, 5000);
93	
94});

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.