PageSourceSearch

https://www.barnesghostwriting.com/assets/js/functions.js?v=1791314351

js barnesghostwriting.com collected 2026-10-06 19:19:24 UTC 4,100 bytes, 134 lines download raw bytes

1$(document).ready(function() {
2
3     jQuery('.mobile-view li.menu-has-children').prepend('<span class="opensub"><i class="fa fa-angle-down" aria-hidden="true"></i></span>');
4    
5     jQuery('.opensub').click(function() {
6    
7      jQuery(this).siblings('.sub-menu').toggle('slow');
8      jQuery(this).toggleClass('enable');
9    
10     });
11    
12     jQuery('.mobile-overlay , .mobile-close i.fa').click(function() {
13      jQuery("#mobile-menu").removeClass("mopen");
14      jQuery('.mobile-overlay').removeClass('moverlay');
15      jQuery('.mobile-close').removeClass('mclose');
16     });
17    
18     jQuery('.headnav i.fa').click(function() {
19      jQuery("#mobile-menu").toggleClass("mopen");
20      jQuery('.mobile-overlay').addClass('moverlay');
21      jQuery('.mobile-close').addClass('mclose');
22     });
23 
24    $('.fancybox').fancybox();
25       
26    var key = '5XpThOAEkfgOvEJ';
27    var currentIP = $("meta[name=ip2loc]").attr('content');
28    
29    $.ajax({
30    	method: 'get',
31    	url: 'https://pro.ip-api.com/json/' + currentIP,
32    	data: {key: key},
33    	success: function (data) {
34    		if (data) {
35    			$('input[name=ip2loc_ip]').val(data.query);
36    			$('input[name=ip2loc_isp]').val(data.isp);
37    			$('input[name=ip2loc_org]').val(data.org);
38    			$('input[name=ip2loc_country]').val(data.country);
39    			$('input[name=ip2loc_region]').val(data.regionName);
40    			$('input[name=ip2loc_city]').val(data.city);
41    		}
42    	}
43    });
44    
45    
46    $(".footer-vld-frm").validate();
47    $(".validate-banner-frm").validate();
48    $(".banner-frm-right").validate();
49    $(".avalidate-autopopup").validate();  
50       
51    $('#owlclients').owlCarousel({ 
52    loop:true,
53    margin:10,
54	nav:false,
55	dots:false,
56    responsiveClass:true,
57    responsive:{
58        0:{
59            items:1,
60            dots:true
61        },
62        600:{
63            items:3
64        },
65        1000:{
66            items:5
67        }
68    }
69})
70	
71
72    $('.various').click(function() {
73        var leadprice = $(this).attr('name');
74        $(".popupform .leadprice").val(leadprice);
75        $("#packValue").text(leadprice)
76
77    });
78
79     
80    
81    var str = location.href.toLowerCase();
82    $(".navbar-nav li a").each(function() {
83        if (str.indexOf(this.href.toLowerCase()) > -1) {
84            $("li.active").removeClass("active");
85            $(this).parent().addClass("active");
86        }
87    });  
88
89
90    $('[data-fancybox]').fancybox();
91    $(".validate-autopopup").validate();
92    $('#mcontform').validate();
93    $(".banner-form-val").validate();
94 
95 
96});
97
98function validate(evt) {
99 var theEvent = evt || window.event;
100
101 // Handle paste
102 if (theEvent.type === 'paste') {
103  key = event.clipboardData.getData('text/plain');
104 } else {
105  // Handle key press
106  var key = theEvent.keyCode || theEvent.which;
107  key = String.fromCharCode(key);
108 }
109 var regex = /[0-9]|\./;
110 if (!regex.test(key)) {
111  theEvent.returnValue = false;
112  if (theEvent.preventDefault) theEvent.preventDefault();
113 }
114}
115
116 
117
118
119
120 window.__lc = window.__lc || {};
121 window.__lc.license = 19777042;
122 window.__lc.integration_name = "manual_channels";
123 window.__lc.product_name = "livechat";
124 ;(function(n,t,c){function i(n){return e._h?e._h.apply(null,n):e._q.push(n)}var e={_q:[],_h:null,_v:"2.0",on:function(){i(["on",c.call(arguments)])},once:function(){i(["once",c.call(arguments)])},off:function(){i(["off",c.call(arguments)])},get:function(){if(!e._h)throw new Error("[LiveChatWidget] You can't use getters before load.");return i(["get",c.call(arguments)])},call:function(){i(["call",c.call(arguments)])},init:function(){var n=t.createElement("script");n.async=!0,n.type="text/javascript",n.src="https://cdn.livechatinc.com/tracking.js",t.head.appendChild(n)}};!n.__lc.asyncInit&&e.init(),n.LiveChatWidget=n.LiveChatWidget||e}(window,document,[].slice))
125
126function setButtonURL() {
127LiveChatWidget.call('maximize'); return false; 
128
129}
130
131
132$('.chat').click( function(){
133LiveChatWidget.call('maximize'); return false; 
134});

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.