1// source --> https://getyourboost.be/wp-content/plugins/simple-banner/simple-banner.js?ver=2.11.0 2jQuery(document).ready(function ($) { 3 var isSimpleBannerTextSet = simpleBannerScriptParams.simple_banner_text != ""; 4 var isSimpleBannerEnabledOnPage = !simpleBannerScriptParams.pro_version_enabled || 5 (simpleBannerScriptParams.pro_version_enabled && !simpleBannerScriptParams.disabled_on_current_page); 6 var isSimpleBannerVisible = isSimpleBannerTextSet && isSimpleBannerEnabledOnPage; 7 8 if (isSimpleBannerVisible) { 9 if (!simpleBannerScriptParams.wp_body_open || !simpleBannerScriptParams.wp_body_open_enabled) { 10 var closeButton = simpleBannerScriptParams.close_button_enabled ? '<button id="simple-banner-close-button" class="simple-banner-button">✕</button>' : ''; 11 $('<div id="simple-banner" class="simple-banner"><div class="simple-banner-text"><span>' 12 + simpleBannerScriptParams.simple_banner_text 13 + '</span></div>' + closeButton + '</div>') 14 .prependTo('body'); 15 } 16 17 var bodyPaddingLeft = $('body').css('padding-left') 18 var bodyPaddingRight = $('body').css('padding-right') 19 20 if (bodyPaddingLeft != "0px") { 21 $('head').append('<style type="text/css" media="screen">.simple-banner{margin-left:-' + bodyPaddingLeft + ';padding-left:' + bodyPaddingLeft + ';}</style>'); 22 } 23 if (bodyPaddingRight != "0px") { 24 $('head').append('<style type="text/css" media="screen">.simple-banner{margin-right:-' + bodyPaddingRight + ';padding-right:' + bodyPaddingRight + ';}</style>'); 25 } 26 27 // Add scrolling class 28 function scrollClass() { 29 var scroll = document.documentElement.scrollTop; 30 if (scroll > $("#simple-banner").height()) { 31 $("#simple-banner").addClass("simple-banner-scrolling"); 32 } else { 33 $("#simple-banner").removeClass("simple-banner-scrolling"); 34 } 35 } 36 window.onscroll = function() {scrollClass()}; 37 } 38 39 // Add close button function to close button and close if cookie found 40 function closeBanner() { 41 if (!simpleBannerScriptParams.keep_site_custom_css && document.getElementById('simple-banner-site-custom-css')) document.getElementById('simple-banner-site-custom-css').remove(); 42 if (!simpleBannerScriptParams.keep_site_custom_js && document.getElementById('simple-banner-site-custom-js')) document.getElementById('simple-banner-site-custom-js').remove(); 43 if (document.getElementById('simple-banner-header-margin')) document.getElementById('simple-banner-header-margin').remove(); 44 if (document.getElementById('simple-banner-header-padding')) document.getElementById('simple-banner-header-padding').remove(); 45 if (document.getElementById('simple-banner')) document.getElementById('simple-banner').remove(); 46 } 47 48 if (isSimpleBannerVisible) { 49 var sbCookie = "simplebannerclosed"; 50 51 if (simpleBannerScriptParams.close_button_enabled){ 52 if (getCookie(sbCookie) === "true") { 53 closeBanner(); 54 // Set cookie again here in case the expiration has changed 55 setCookie(sbCookie, "true", simpleBannerScriptParams.close_button_expiration); 56 } else { 57 document.getElementById("simple-banner-close-button").onclick = function() { 58 closeBanner(); 59 setCookie(sbCookie, "true", simpleBannerScriptParams.close_button_expiration); 60 }; 61 } 62 } else { 63 // disable cookie if it exists 64 if (getCookie(sbCookie) === "true") { 65 document.cookie = "simplebannerclosed=true; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;"; 66 } 67 } 68 } 69 70 // Cookie Getter/Setter 71 function setCookie(cname,cvalue,expiration) { 72 var d; 73 if (expiration === '' || expiration === '0' || parseInt(expiration)) { 74 var exdays = parseInt(expiration) || 0; 75 d = new Date(); 76 d.setTime(d.getTime() + (exdays*24*60*60*1000)); 77 } else { 78 d = new Date(expiration); 79 } 80 var expires = "expires=" + d.toUTCString(); 81 document.cookie = cname + "=" + cvalue + ";" + expires + ";path=/"; 82 } 83 function getCookie(cname) { 84 var name = cname + "="; 85 var decodedCookie = decodeURIComponent(document.cookie); 86 var ca = decodedCookie.split(';'); 87 for(var i = 0; i < ca.length; i++) { 88 var c = ca[i]; 89 while (c.charAt(0) == ' ') { 90 c = c.substring(1); 91 } 92 if (c.indexOf(name) == 0) { 93 return c.substring(name.length, c.length); 94 } 95 } 96 return ""; 97 } 98 99 // Debug Mode 100 // Console log all variables
vendor: 4,233 bytes, lines 101-106
101 if (simpleBannerScriptParams.pro_version_enabled && simpleBannerScriptParams.debug_mode) { 102 console.log(simpleBannerScriptParams); 103 } 104}); 105// source --> https://getyourboost.be/wp-content/themes/oceanwp/assets/js/vendors/smoothscroll.min.js?ver=3.1.3 106!function(){"use strict";function o(){var o=window,t=document;if(!("scrollBehavior"in t.documentElement.style&&!0!==o.__forceSmoothScrollPolyfill__)){var l,e=o.HTMLElement||o.Element,r=468,i={scroll:o.scroll||o.scrollTo,scrollBy:o.scrollBy,elementScroll:e.prototype.scroll||n,scrollIntoView:e.prototype.scrollIntoView},s=o.performance&&o.performance.now?o.performance.now.bind(o.performance):Date.now,c=(l=o.navigator.userAgent,new RegExp(["MSIE ","Trident/","Edge/"].join("|")).test(l)?1:0);o.scroll=o.scrollTo=function(){void 0!==arguments[0]&&(!0!==f(arguments[0])?h.call(o,t.body,void 0!==arguments[0].left?~~arguments[0].left:o.scrollX||o.pageXOffset,void 0!==arguments[0].top?~~arguments[0].top:o.scrollY||o.pageYOffset):i.scroll.call(o,void 0!==arguments[0].left?arguments[0].left:"object"!=typeof arguments[0]?arguments[0]:o.scrollX||o.pageXOffset,void 0!==arguments[0].top?arguments[0].top:void 0!==arguments[1]?arguments[1]:o.scrollY||o.pageYOffset))},o.scrollBy=function(){void 0!==arguments[0]&&(f(arguments[0])?i.scrollBy.call(o,void 0!==arguments[0].left?arguments[0].left:"object"!=typeof arguments[0]?arguments[0]:0,void 0!==arguments[0].top?arguments[0].top:void 0!==arguments[1]?arguments[1]:0):h.call(o,t.body,~~arguments[0].left+(o.scrollX||o.pageXOffset),~~arguments[0].top+(o.scrollY||o.pageYOffset)))},e.prototype.scroll=e.prototype.scrollTo=function(){if(void 0!==arguments[0])if(!0!==f(arguments[0])){var o=arguments[0].left,t=arguments[0].top;h.call(this,this,void 0===o?this.scrollLeft:~~o,void 0===t?this.scrollTop:~~t)}else{if("number"==typeof arguments[0]&&void 0===arguments[1])throw new SyntaxError("Value could not be converted");i.elementScroll.call(this,void 0!==arguments[0].left?~~arguments[0].left:"object"!=typeof arguments[0]?~~arguments[0]:this.scrollLeft,void 0!==arguments[0].top?~~arguments[0].top:void 0!==arguments[1]?~~arguments[1]:this.scrollTop)}},e.prototype.scrollBy=function(){void 0!==arguments[0]&&(!0!==f(arguments[0])?this.scroll({left:~~arguments[0].left+this.scrollLeft,top:~~arguments[0].top+this.scrollTop,behavior:arguments[0].behavior}):i.elementScroll.call(this,void 0!==arguments[0].left?~~arguments[0].left+this.scrollLeft:~~arguments[0]+this.scrollLeft,void 0!==arguments[0].top?~~arguments[0].top+this.scrollTop:~~arguments[1]+this.scrollTop))},e.prototype.scrollIntoView=function(){if(!0!==f(arguments[0])){var l=function(o){for(;o!==t.body&&!1===(e=p(l=o,"Y")&&a(l,"Y"),r=p(l,"X")&&a(l,"X"),e||r);)o=o.parentNode||o.host;var l,e,r;return o}(this),e=l.getBoundingClientRect(),r=this.getBoundingClientRect();l!==t.body?(h.call(this,l,l.scrollLeft+r.left-e.left,l.scrollTop+r.top-e.top),"fixed"!==o.getComputedStyle(l).position&&o.scrollBy({left:e.left,top:e.top,behavior:"smooth"})):o.scrollBy({left:r.left,top:r.top,behavior:"smooth"})}else i.scrollIntoView.call(this,void 0===arguments[0]||arguments[0])}}function n(o,t){this.scrollLeft=o,this.scrollTop=t}function f(o){if(null===o||"object"!=typeof o||void 0===o.behavior||"auto"===o.behavior||"instant"===o.behavior)return!0;if("object"==typeof o&&"smooth"===o.behavior)return!1;throw new TypeError("behavior member of ScrollOptions "+o.behavior+" is not a valid value for enumeration ScrollBehavior.")}function p(o,t){return"Y"===t?o.clientHeight+c<o.scrollHeight:"X"===t?o.clientWidth+c<o.scrollWidth:void 0}function a(t,l){var e=o.getComputedStyle(t,null)["overflow"+l];return"auto"===e||"scroll"===e}function d(t){var l,e,i,c,n=(s()-t.startTime)/r;c=n=n>1?1:n,l=.5*(1-Math.cos(Math.PI*c)),e=t.startX+(t.x-t.startX)*l,i=t.startY+(t.y-t.startY)*l,t.method.call(t.scrollable,e,i),e===t.x&&i===t.y||o.requestAnimationFrame(d.bind(o,t))}function h(l,e,r){var c,f,p,a,h=s();l===t.body?(c=o,f=o.scrollX||o.pageXOffset,p=o.scrollY||o.pageYOffset,a=i.scroll):(c=l,f=l.scrollLeft,p=l.scrollTop,a=n),d({scrollable:c,method:a,startTime:h,startX:f,startY:p,x:e,y:r})}}"object"==typeof exports&&"undefined"!=typeof module?module.exports={polyfill:o}:o()}();
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.