@glitchr/transparent 1.0.30 → 1.0.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/js/transparent.js +12 -9
package/package.json
CHANGED
package/src/js/transparent.js
CHANGED
|
@@ -1280,18 +1280,21 @@
|
|
|
1280
1280
|
|
|
1281
1281
|
$('head').append(function() {
|
|
1282
1282
|
|
|
1283
|
-
$(
|
|
1283
|
+
$('body').append(function() {
|
|
1284
1284
|
|
|
1285
|
-
|
|
1285
|
+
$(Settings.identifier).append(function() {
|
|
1286
1286
|
|
|
1287
|
-
|
|
1288
|
-
callback();
|
|
1287
|
+
setTimeout(function() {
|
|
1289
1288
|
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1289
|
+
// Callback if needed, or any other actions
|
|
1290
|
+
callback();
|
|
1291
|
+
|
|
1292
|
+
// Trigger onload event
|
|
1293
|
+
dispatchEvent(new Event('transparent:load'));
|
|
1294
|
+
dispatchEvent(new Event('load'));
|
|
1293
1295
|
|
|
1294
|
-
|
|
1296
|
+
}.bind(this), 1);
|
|
1297
|
+
});
|
|
1295
1298
|
});
|
|
1296
1299
|
});
|
|
1297
1300
|
}
|
|
@@ -1652,7 +1655,7 @@
|
|
|
1652
1655
|
window.onhashchange = __main__;
|
|
1653
1656
|
document.addEventListener('click', __main__, false);
|
|
1654
1657
|
|
|
1655
|
-
$("form").submit
|
|
1658
|
+
$("form").on("submit", __main__);
|
|
1656
1659
|
}
|
|
1657
1660
|
|
|
1658
1661
|
return Transparent;
|