Created
September 23, 2019 13:41
-
-
Save yellow1912/bf63dce7e49d21fc4a862d42dd41b83a to your computer and use it in GitHub Desktop.
sample webpack result
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function(){'use strict'; | |
(function(f) { | |
function c(a) { | |
if (e[a]) { | |
return e[a].exports; | |
} | |
var b = e[a] = {i:a, l:!1, exports:{}}; | |
f[a].call(b.exports, b, b.exports, c); | |
b.l = !0; | |
return b.exports; | |
} | |
var e = {}; | |
c.m = f; | |
c.c = e; | |
c.d = function(a, b, d) { | |
c.o(a, b) || Object.defineProperty(a, b, {enumerable:!0, get:d}); | |
}; | |
c.r = function(a) { | |
"undefined" !== typeof Symbol && Symbol.toStringTag && Object.defineProperty(a, Symbol.toStringTag, {value:"Module"}); | |
Object.defineProperty(a, "__esModule", {value:!0}); | |
}; | |
c.t = function(a, b) { | |
b & 1 && (a = c(a)); | |
if (b & 8 || b & 4 && "object" === typeof a && a && a.__esModule) { | |
return a; | |
} | |
var d = Object.create(null); | |
c.r(d); | |
Object.defineProperty(d, "default", {enumerable:!0, value:a}); | |
if (b & 2 && "string" != typeof a) { | |
for (var e in a) { | |
c.d(d, e, function(b) { | |
return a[b]; | |
}.bind(null, e)); | |
} | |
} | |
return d; | |
}; | |
c.n = function(a) { | |
var b = a && a.__esModule ? function() { | |
return a["default"]; | |
} : function() { | |
return a; | |
}; | |
c.d(b, "a", b); | |
return b; | |
}; | |
c.o = function(a, b) { | |
return Object.prototype.hasOwnProperty.call(a, b); | |
}; | |
c.p = ""; | |
return c(c.s = 0); | |
})([function(f, c) { | |
(function(c) { | |
c.ready(function() { | |
for (var a = c.querySelectorAll(".nl-widget-sleek-form-contact"), b = 0; b < a.length; b++) { | |
var d = c.querySelector("form", a[b]); | |
c.addEventListener(d, "submit", function(a) { | |
console.log("a"); | |
c.querySelector("button", a.target).setAttribute("disabled", "disabled"); | |
}); | |
let e = ni.provider.get("service").get("event"); | |
d = ni.provider.get("const").get("plugin.form.events").SUBMIT_DONE.replace("%s", d.getAttribute("data-form-id")); | |
e.on(d, d, function(a) { | |
console.log("b"); | |
c.querySelector("button", a.form).removeAttribute("disabled"); | |
}); | |
} | |
}); | |
})(nu); | |
}]); | |
}).call(this || window) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment