PluginProbe
NotificationX – FOMO, Live Sales Notification, WooCommerce Sales Popup, GDPR, Social Proof, Announcement Banner & Floating Notification Bar / 3.2.8
NotificationX – FOMO, Live Sales Notification, WooCommerce Sales Popup, GDPR, Social Proof, Announcement Banner & Floating Notification Bar v3.2.8
3.3.3 3.3.2 3.3.1 3.3.0 3.2.14 3.2.13 3.2.12 3.2.11 3.2.10 3.2.9 3.2.8 3.2.7 trunk 0.2.5.5 0.2.5.6 0.2.5.7 1.0.0 1.0.1 1.0.2 1.0.3 1.1.0 1.1.1 1.1.2 1.1.3 1.1.4 All 158 releases
notificationx / vendor / wpdeveloper / lib-utility / scripts / udx.spa.js

udx.spa.js in NotificationX – FOMO, Live Sales Notification, WooCommerce Sales Popup, GDPR, Social Proof, Announcement Banner & Floating Notification Bar 3.2.8, at vendor/wpdeveloper/lib-utility/scripts/udx.spa.js

1 lines 1.7 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 define("udx.spa",["module","require","exports","knockout","knockout.mapping","knockout.localStorage","pace","udx.utility","udx.utility.imagesloaded"],function(a,b){function c(a){if(Object.extend(a||{},{name:void 0,debug:void 0,api:window.location.href+"api",bodyClass:"spa-enabled"}),a.node||(a.node=document.body),"function"!=typeof a.node.getAttribute)return console.error("udx.spa","Target not specifed."),this;a.node.getAttribute("data-version"),a.node.getAttribute("data-ajax"),a.node.getAttribute("data-home"),a.node.getAttribute("data-debug")||!1;return this}console.debug("udx.spa","spaReady");{var d=b("pace");b("knockout"),b("knockout.mapping"),b("udx.utility"),b("udx.utility.imagesloaded")}return d.options={document:!0,ajax:!0,eventLag:!1,restartOnPushState:!0,restartOnRequestAfter:!0},d.start(),Object.defineProperties(c.prototype,{configure:{value:function(){},enumerable:!0,configurable:!0,writable:!0},ViewModel:{value:function(){console.debug("udx.spa","ViewModel");var a=this;return a.schedules=b("knockout").observableArray([]),a.processes=b("knockout").observableArray([]),a.state=b("knockout").observableArray([]),"function"==typeof jQuery&&jQuery("li.menu-item > a").click(c.bindNavigation),this},enumerable:!0,configurable:!0,writable:!0},bindNavigation:{value:function(a){return a.preventDefault(),a.target.pathname&&"/"!==a.target.pathname?void jQuery("main").load(a.target.href+" main"):null},enumerable:!0,configurable:!0,writable:!0},applyBindings:{value:function(){},enumerable:!0,configurable:!0,writable:!0}}),Object.defineProperties(c,{create:{value:function(a){return this instanceof Node&&this.parentElement&&(console.log("SPA is instance of Node"),a=a||{}),new c(a||{})},enumerable:!0,configurable:!0,writable:!0}}),c});