var _____WB$wombat$assign$function_____ = function(name) {return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name)) || self[name]; };
if (!self.__WB_pmw) { self.__WB_pmw = function(obj) { this.__WB_source = obj; return this; } }
{
let window = _____WB$wombat$assign$function_____("window");
let self = _____WB$wombat$assign$function_____("self");
let document = _____WB$wombat$assign$function_____("document");
let location = _____WB$wombat$assign$function_____("location");
let top = _____WB$wombat$assign$function_____("top");
let parent = _____WB$wombat$assign$function_____("parent");
let frames = _____WB$wombat$assign$function_____("frames");
let opener = _____WB$wombat$assign$function_____("opener");
/*
Project Name : NSure
## Document Ready
- Scrolling Navigation
- Responsive Caret
- Remove p empty tag for Shortcode
## Window Load
- Site Loader
*/
(function($) {
"use strict"
/* Google-map-black & white */
function initialize(obj) {
var lat = $('#'+obj).attr("data-lat");
var lng = $('#'+obj).attr("data-lng");
var contentString = $('#'+obj).attr("data-string");
var myLatlng = new google.maps.LatLng(lat,lng);
var map, marker, infowindow;
var image = 'images/marker.png';
var zoomLevel = parseInt($('#'+obj).attr("data-zoom"), 10);
var styles = [{"featureType":"landscape","stylers":[{"saturation":-100},{"lightness":65},{"visibility":"on"}]},{"featureType":"poi","stylers":[{"saturation":-100},{"lightness":51},{"visibility":"simplified"}]},{"featureType":"road.highway","stylers":[{"saturation":-100},{"visibility":"simplified"}]},{"featureType":"road.arterial","stylers":[{"saturation":-100},{"lightness":30},{"visibility":"on"}]},{"featureType":"road.local","stylers":[{"saturation":-100},{"lightness":40},{"visibility":"on"}]},{"featureType":"transit","stylers":[{"saturation":-100},{"visibility":"simplified"}]},{"featureType":"administrative.province","stylers":[{"visibility":"off"}]},{"featureType":"water","elementType":"labels","stylers":[{"visibility":"on"},{"lightness":-25},{"saturation":-100}]},{"featureType":"water","elementType":"geometry","stylers":[{"hue":"#ffff00"},{"lightness":-25},{"saturation":-97}]}]
var styledMap = new google.maps.StyledMapType(styles,{name: "Styled Map"});
var mapOptions = {
zoom: zoomLevel,
disableDefaultUI: true,
center: myLatlng,
scrollwheel: false,
mapTypeControlOptions: {
mapTypeIds: [google.maps.MapTypeId.ROADMAP, 'map_style']
}
}
map = new google.maps.Map(document.getElementById(obj), mapOptions);
map.mapTypes.set('map_style', styledMap);
map.setMapTypeId('map_style');
infowindow = new google.maps.InfoWindow({
content: contentString
});
marker = new google.maps.Marker({
position: myLatlng,
map: map,
icon: image
});
google.maps.event.addListener(marker, 'click', function() {
infowindow.open(map,marker);
});
}
/* ## Document Scroll - Window Scroll */
$( document ).scroll(function()
{
var scroll = $(window).scrollTop();
var height = $(window).height();
/*** set sticky menu ***/
if( scroll >= height )
{
$('.ow-navigation').addClass("navbar-fixed-top animated fadeInDown").delay( 2000 ).fadeIn();
}
else if ( scroll <= height )
{
$('.ow-navigation').removeClass("navbar-fixed-top animated fadeInDown");
}
else
{
$('.ow-navigation').removeClass("navbar-fixed-top animated fadeInDown");
} // set sticky menu - end
if ($(this).scrollTop() >= 50)
{
// If page is scrolled more than 50px
$('#back-to-top').fadeIn(200); // Fade in the arrow
}
else
{
$('#back-to-top').fadeOut(200); // Else fade out the arrow
}
});
/* ## Document Ready - Handler for .ready() called */
$(document).ready(function($) {
/* - Scrolling Navigation */
var scroll = $(window).scrollTop();
var height = $(window).height();
/*** set sticky menu ***/
if( scroll >= height -500 )
{
$('.ow-navigation').addClass("navbar-fixed-top").delay( 2000 ).fadeIn();
}
else if ( scroll <= height )
{
$('.ow-navigation').removeClass("navbar-fixed-top");
}
else
{
$('.ow-navigation').removeClass("navbar-fixed-top");
} // set sticky menu - end
/* local url of page (minus any hash, but including any potential query string) */
var url = location.href.replace(/#.*/,'');
/* Find all anchors */
$('#navbar').find('a[href]').each(function(i,a) {
var $a = $(a);
var href = $a.attr('href');
/* check is anchor href starts with page's URI */
if ( href.indexOf(url+'#') == 0 ) {
/* remove URI from href */
href = href.replace(url,'');
/* update anchors HREF with new one */
$a.attr('href',href);
}
});
/* Add Easing Effect on Section Scroll */
$('.navbar-nav li a[href*=#]:not([href=#]), .site-logo a[href*=#]:not([href=#])').on('click', function() {
if ( location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname ) {
var target = $(this.hash);
target = target.length ? target : $('[name=' + this.hash.slice(1) +']');
if (target.length) {
$('html, body').animate( { scrollTop: target.offset().top - 83 }, 1000, 'easeInOutExpo' );
return false;
}
}
});
/* - Responsive Caret */
$('.ddl-switch').on('click', function() {
var li = $(this).parent();
if ( li.hasClass('ddl-active') || li.find('.ddl-active').length !== 0 || li.find('.dropdown-menu').is(':visible') ) {
li.removeClass('ddl-active');
li.children().find('.ddl-active').removeClass('ddl-active');
li.children('.dropdown-menu').slideUp();
}
else {
li.addClass('ddl-active');
li.children('.dropdown-menu').slideDown();
}
});
/* - Remove p empty tag for Shortcode */
$( 'p' ).each(function() {
var $this = $( this );
if( $this.html().replace(/\s| /g, '').length == 0) {
$this.remove();
}
});
/* Banner Shape */
$(".right-shape").css("clip-path",'url("#clipPolygon4")');
$(".right-shape-blue").css("clip-path",'url("#clipPolygon3")');
$(".left-shape").css("clip-path",'url("#clipPolygon1")');
$(".left-shape-blue").css("clip-path",'url("#clipPolygon2")');
/* - Team Section */
if( $(".team-carousel").length ) {
$(".team-carousel").owlCarousel({
loop: true,
margin: 0,
dots: false,
nav:false,
autoplay:false,
autoplayHoverPause:true,
responsive:{
0:{
items:1
},
640:{
items:2
},
992:{
items:3
},
1200:{
items:3
}
}
});
}
/* - Counter App */
if( $(".counter-app").length ) {
$('.counter-app').each(function () {
var $this = $(this);
var myVal = $(this).data("value");
$this.appear(function() {
var statistics_item_count = 0;
var statistics_count = 0;
statistics_item_count = $( "[id*='statistics_count-']" ).length;
for(var i=1; i<=statistics_item_count; i++) {
statistics_count = $( "[id*='statistics_count-"+i+"']" ).attr( "data-statistics_percent" );
$("[id*='statistics_count-"+i+"']").animateNumber({ number: statistics_count }, 2000);
}
});
});
}
/* -- Portfolio */
if( $("#portfolio").length ) {
setTimeout(function() {
var $container = $("#portfolio");
$container.isotope({
itemSelector: '.portfolio-item',
gutter: 0,
transitionDuration: "0.5s"
});
$("#filters a").on("click",function(){
$("#filters a").removeClass("active");
$(this).addClass("active");
var selector = $(this).attr("data-filter");
$container.isotope({ filter: selector });
return false;
});
}, 2000);
}
/* Portfolio Light Box */
$('.portfolio-item').magnificPopup({
delegate: ' > a',
type: 'image',
tLoading: 'Loading image #%curr%...',
mainClass: 'mfp-img-mobile',
gallery: {
enabled: true,
navigateByImgClick: true,
preload: [0,1] // Will preload 0 - before current, and 1 after the current image
},
image: {
tError: 'The image #%curr% could not be loaded.',
/*titleSrc: function(item) {
return item.el.attr('title') + 'by Marsel Van Oosten';
}*/
}
});
/* Contact Map */
if($('#map-canvas-contact').length==1){
initialize('map-canvas-contact');
}
/* Quick Contact Form */
$( "#btn_submit" ).on( "click", function(event) {
event.preventDefault();
var mydata = $("form").serialize();
$.ajax({
type: "POST",
dataType: "json",
url: "contact.php",
data: mydata,
success: function(data) {
if( data["type"] == "error" ){
$("#alert-msg").html(data["msg"]);
$("#alert-msg").removeClass("alert-msg-success");
$("#alert-msg").addClass("alert-msg-failure");
$("#alert-msg").show();
} else {
$("#alert-msg").html(data["msg"]);
$("#alert-msg").addClass("alert-msg-success");
$("#alert-msg").removeClass("alert-msg-failure");
$("#input_name").val("");
$("#input_email").val("");
$("#input_phone").val("");
$("#textarea_message").val("");
$("#alert-msg").show();
}
},
error: function(xhr, textStatus, errorThrown) {
//alert(textStatus);
}
});
return false;
$('#contact-form').attr("action", "saveQuery").submit();
});
});
/* ## Window Load - Handler for .load() called */
$(window).load(function() {
/* - Site Loader */
if ( !$('html').is('.ie6, .ie7, .ie8') ) {
$("#site-loader").delay(1000).fadeOut("slow");
}
else {
$("#site-loader").css('display','none');
}
});
})(jQuery);
}
/*
FILE ARCHIVED ON 22:23:26 Jan 21, 2019 AND RETRIEVED FROM THE
INTERNET ARCHIVE ON 04:59:20 Sep 14, 2021.
JAVASCRIPT APPENDED BY WAYBACK MACHINE, COPYRIGHT INTERNET ARCHIVE.
ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C.
SECTION 108(a)(3)).
*/
/*
playback timings (ms):
PetaboxLoader3.datanode: 159.268 (5)
PetaboxLoader3.resolve: 196.816 (2)
CDXLines.iter: 21.137 (3)
LoadShardBlock: 124.571 (3)
esindex: 0.01
exclusion.robots: 0.145
RedisCDXSource: 0.801
captures_list: 149.83
load_resource: 287.357 (2)
exclusion.robots.policy: 0.137
*/