efront 3.30.1 → 3.30.2
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/coms/basic/#decrypt.js +1 -15
- package/coms/basic/#decrypt_.js +2 -3
- package/coms/basic/#loader.js +2 -3
- package/coms/zimoli/zimoli.js +0 -1
- package/package.json +1 -1
- package/public/efront.js +1 -1
package/coms/basic/#decrypt.js
CHANGED
|
@@ -1,16 +1,3 @@
|
|
|
1
|
-
if (document) {
|
|
2
|
-
if (document.head) {
|
|
3
|
-
var efrontsign = document.head.lastElementChild.attributes[0];
|
|
4
|
-
if (efrontsign && /^compiledinfo\-/.test(efrontsign.name)) efrontsign = efrontsign.name.slice(efrontsign.name.indexOf('-') + 1);
|
|
5
|
-
else efrontsign = '';
|
|
6
|
-
}
|
|
7
|
-
else if (document.getElementsByTagName) {
|
|
8
|
-
document.head = document.getElementsByTagName("head")[0];
|
|
9
|
-
efrontsign = /\<script\s+compiledinfo\-(\S*?)\s*\=/i.exec(document.head.lastChild.outerHTML);
|
|
10
|
-
if (efrontsign) efrontsign = efrontsign[1];
|
|
11
|
-
else efrontsign = '';
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
1
|
var uncode = function (text) {
|
|
15
2
|
var ratio = 1;
|
|
16
3
|
var sum = 0;
|
|
@@ -21,8 +8,7 @@ var uncode = function (text) {
|
|
|
21
8
|
}
|
|
22
9
|
return sum;
|
|
23
10
|
}
|
|
24
|
-
var decrypt = function (text) {
|
|
25
|
-
var start = parseInt(efrontsign, 36) % 128;
|
|
11
|
+
var decrypt = function (text, start) {
|
|
26
12
|
var rest = [];
|
|
27
13
|
for (var cx = 0, dx = text.length; cx < dx; cx++) {
|
|
28
14
|
var delta = text.charCodeAt(cx);
|
package/coms/basic/#decrypt_.js
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
if
|
|
2
|
-
|
|
3
|
-
}
|
|
1
|
+
// <!--if(false)-->
|
|
2
|
+
text = decrypt(text, decrypt.sign);
|
package/coms/basic/#loader.js
CHANGED
|
@@ -809,6 +809,7 @@ var modules = {
|
|
|
809
809
|
load: loadModule,
|
|
810
810
|
devicePixelRatio,
|
|
811
811
|
renderPixelRatio,
|
|
812
|
+
efrontsign: "",
|
|
812
813
|
debug() {
|
|
813
814
|
document.addEventListener("blur", e => e.stopPropagation(), true);
|
|
814
815
|
},
|
|
@@ -848,9 +849,7 @@ var initIfNotDefined = function (defined, path, onload) {
|
|
|
848
849
|
if (document) loadResponseTreeFromStorage();
|
|
849
850
|
initIfNotDefined([].map, "[]map", map => map);
|
|
850
851
|
initIfNotDefined(Promise, "Promise", promise => Promise = promise);
|
|
851
|
-
// <!--
|
|
852
|
-
window.modules = modules;
|
|
853
|
-
// -->
|
|
852
|
+
// <!-- window.modules = modules; -->
|
|
854
853
|
var onload = function () {
|
|
855
854
|
window.onload = null;
|
|
856
855
|
hook(--requires_count);
|
package/coms/zimoli/zimoli.js
CHANGED
|
@@ -657,7 +657,6 @@ rootElements.splice = function () {
|
|
|
657
657
|
};
|
|
658
658
|
appendChild.transition = transition;
|
|
659
659
|
remove.transition = transition;
|
|
660
|
-
window.modules = modules;
|
|
661
660
|
zimoli.prepare = prepare;
|
|
662
661
|
zimoli.setStorage = function (storage) {
|
|
663
662
|
hostoryStorage = storage;
|