
////site-uploads/1001361/scribt/speed.js
$(function () {
	/*Delete slider component in mobile*/
	if ($(window).width() < 700) {
		$('.slide').remove();
		$('.hidden-xs').remove();
		$('.desktop-only').remove();
 

	}
	// let count = 0

 
	// const userInteractionEvents = ["mouseover", "keydown", "touchmove", "touchstart"];
	// userInteractionEvents.forEach(function (event) {
	// 	window.addEventListener(event, triggerScriptLoader, {
	// 		passive: true
	// 	});
	// });

	// function triggerScriptLoader() {
	// 	loadScripts();
		
	// 	userInteractionEvents.forEach(function (event) {
	// 		window.removeEventListener(event, triggerScriptLoader, {
	// 			passive: true
	// 		});
	// 	});
	// }
	// function loadScripts() {
	// 	if (count == 0 ) {
	// 		$(`<iframe allow="autoplay; clipboard-write; encrypted-media; picture-in-picture; web-share" allowfullscreen="true" frameborder="0" height="500" scrolling="no" src="https://www.facebook.com/plugins/page.php?href=https%3A%2F%2Fwww.facebook.com%2FNorthernWellingtonRV%2F&amp;tabs=timeline&amp;width=340&amp;height=500&amp;small_header=false&amp;adapt_container_width=true&amp;hide_cover=false&amp;show_facepile=true&amp;appId" style="border:none;overflow:hidden" width="100%"></iframe>`).insertAfter(".myface");

	// 		count++
	// 	}

 
	// }

});
////site-uploads/1001361/scribt/front.js



$(function() {
    $(window).on("scroll", function() {
        if ($(window).scrollTop() > 150) {
            $("#comp_1638391835478").addClass("sticky-header");
            var centerDivMargin = $('#comp_1638391835478').height();
            $('#CenterDiv').css({ "margin-top": centerDivMargin });
        } else {
            $("#comp_1638391835478").removeClass("sticky-header");
            $('#CenterDiv').css({ "margin-top": 0 });
        }
    });
});
 
var   divs = document.getElementsByClassName( 'contact-us-btn' );

[].slice.call( divs ).forEach(function ( div ) {
    div.innerHTML = "<span class='glyphicon glyphicon-info-sign'>&nbsp;</span>Request More Pictures";
});