PageSourceSearch

https://www.crimes-of-persuasion.com/js/bskit-scripts.js

js crimes-of-persuasion.com collected 2026-09-24 09:58:23 UTC 5,223 bytes, 180 lines download raw bytes

1/*	Javascript code for all elements
2/*----------------------------------------------------*/
3$(document).ready(function() {
4	initMaps();
5});
6
7
8$(document).ready(function() {
9    count(".coming-soon");           
10});
11
12
13/* -------- Owl Carousel MTCH -------- */
14$(".quote-carousel").owlCarousel({
15	slideSpeed : 300,
16	autoPlay : true,
17	paginationSpeed : 400,
18	singleItem : true,		
19});
20// End Owl Carousel
21
22
23/* -------- Counter Up -------- */
24$('.counter').counterUp({
25	delay: 10,
26	time: 1000
27});
28// End Counter Up
29
30
31/*	Count Down
32/*---------------------------------------------------- MTCH*/
33function count(elem){
34    var $e = $(elem);
35	if($e.length==0){
36		return 0;
37	};
38
39	//CountDown
40    var dateOfBeginning = new Date(),
41        dateOfEnd = $e.closest('[data-end-date]').attr('data-end-date') || new Date((new Date()).getTime() + 3*30*24*3600*1000);
42
43    countDown(dateOfBeginning, dateOfEnd); 
44
45}
46
47
48/* -------- Isotope Filtering -------- */
49var $container = $('.isotope-gallery-container');
50var $filter = $('.filter');
51$(window).load(function () {
52    // Initialize Isotope
53    $container.isotope({
54        itemSelector: '.gallery-item-wrapper'
55    });
56    $('.filter a').click(function () {
57        var selector = $(this).attr('data-filter');
58        var $iso_container = $(this).closest('.content-block,body').find('.isotope-gallery-container');
59        $iso_container.isotope({ filter: selector });
60
61        var $iso_filter = $(this).closest('.filter');
62        $iso_filter.find('a').parent().removeClass('active');
63        $(this).parent().addClass('active');
64        return false;
65    });
66  /*  $filter.find('a').click(function () {
67        var selector = $(this).attr('data-filter');
68        $filter.find('a').parent().removeClass('active');
69        $(this).parent().addClass('active');
70    });*/
71});
72$(window).smartresize(function () {
73    $container.isotope('reLayout');
74});
75// End Isotope Filtering
76
77
78/* -------- Gallery Popup -------- */
79$(document).ready(function(){
80	$('.gallery-zoom').magnificPopup({ 
81		type: 'image'
82		// other options
83	});
84});
85// End Gallery Popup
86
87
88/* -------- Google Map -------- MTCH */
89function initMap(elem) {
90
91    var $e = $(elem);
92	if($e.length==0){
93		return 0;
94	};
95
96    var lat = parseFloat($e.attr('data-map-lat') || 51.5111507);
97    var long = parseFloat($e.attr('data-map-long') || -0.1239844);
98    var zoom = parseInt($e.attr('data-map-zoom') || 15);
99
100    var marker_image = $e.attr('data-marker-image') || 'images/map-pin.png';
101
102	//Map start init
103    var mapOptions = {
104        center: new google.maps.LatLng(lat, long),
105        zoom: zoom,
106        zoomControl: true,
107        zoomControlOptions: {
108            style: google.maps.ZoomControlStyle.DEFAULT,
109        },
110        disableDoubleClickZoom: false,
111        mapTypeControl: true,
112        mapTypeControlOptions: {
113            style: google.maps.MapTypeControlStyle.DROPDOWN_MENU,
114        },
115        scaleControl: true,
116        scrollwheel: false,
117        streetViewControl: true,
118        draggable : true,
119        overviewMapControl: false,
120        mapTypeId: google.maps.MapTypeId.ROADMAP,
121		styles: [{stylers:[{saturation:-100},{gamma:1}]},{elementType:"labels.text.stroke",stylers:[{visibility:"off"}]},{featureType:"poi.business",elementType:"labels.text",stylers:[{visibility:"off"}]},{featureType:"poi.business",elementType:"labels.icon",stylers:[{visibility:"off"}]},{featureType:"poi.place_of_worship",elementType:"labels.text",stylers:[{visibility:"off"}]},{featureType:"poi.place_of_worship",elementType:"labels.icon",stylers:[{visibility:"off"}]},{featureType:"road",elementType:"geometry",stylers:[{visibility:"simplified"}]},{featureType:"water",stylers:[{visibility:"on"},{saturation:50},{gamma:0},{hue:"#50a5d1"}]},{featureType:"administrative.neighborhood",elementType:"labels.text.fill",stylers:[{color:"#333333"}]},{featureType:"road.local",elementType:"labels.text",stylers:[{weight:0.5},{color:"#333333"}]},{featureType:"transit.station",elementType:"labels.icon",stylers:[{gamma:1},{saturation:50}]}]
122		}
123                    
124    var map = new google.maps.Map($e.get(0), mapOptions);
125    var marker = new google.maps.Marker({
126    	icon: marker_image,
127        map: map,
128        position: map.getCenter() 
129    });
130}
131
132function initMaps() {
133    $('.map').each(function(i, e) {
134        initMap(e);
135    })
136}
137//end Google Map
138
139
140
141/* -------- Header 1 Nav -------- */
142$(".headroom").headroom({
143});
144
145/* Soft scroll */
146$(function() {
147    $('.soft-scroll a[href^="#"], a[href^="#"].soft-scroll').bind('click', function(event) {
148        var $anchor = $(this);
149        var href = $anchor.attr('href');
150        try {
151            var elem = $(href);
152            if(elem.length) {
153                $('html, body').stop().animate({
154                    scrollTop: elem.offset().top
155                }, 1000);
156
157                event.preventDefault();
158            }
159        }
160        catch(err) {}
161    });
162});
163
164    
165/* -------- Header 3 Nav -------- MTCH */
166
167function initHeader3() {
168    $('.nav-slide-btn').click(function() {
169        $('.pull').slideToggle();
170    });
171
172    $('#nav-toggle').click(function(e) {
173        $(this).toggleClass('active');
174        e.preventDefault();
175    })
176}
177$(function() {
178    initHeader3();
179});
180

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.