implement config

This commit is contained in:
xmcp
2019-05-10 14:15:38 +08:00
parent 0bdc6d600f
commit 39e07f24e9
15 changed files with 286 additions and 49 deletions

View File

@@ -29,7 +29,14 @@
var _czc=_czc||[];
_czc.push(["_setAccount","1274501752"]);
_czc.push(["_setCustomVar","has_token",localStorage['TOKEN']?'yes':'no',1]);
_czc.push(["_setCustomVar","background_image",localStorage['REPLACE_ERIRI_WITH_URL']||'null',0]);
try {
var config=JSON.parse(localStorage['hole_config']||'{}');
for(var key in config)
if(config.hasOwnProperty(key))
_czc.push(["_setCustomVar","config_"+key,JSON.stringify(config[key]),0]);
} catch(e) {
console.trace(e);
}
var cnzz_s_tag = document.createElement('script');
cnzz_s_tag.type = 'text/javascript';
cnzz_s_tag.async = true;

View File

Before

Width:  |  Height:  |  Size: 324 KiB

After

Width:  |  Height:  |  Size: 324 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 316 KiB

BIN
public/static/bg/sif.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 286 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 266 KiB