This file contains hidden or 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
/** | |
* Dynamically load a list JS files sequentially. | |
* | |
* @param {(string|Object)[]} aList The list of JS files to load | |
* @param {string} aList[].url The url of the JS file to load | |
* @param {function} aList[].loaded Callback when the file is loaded | |
* @param {function} aList[].shouldSkip Check before loading the file. | |
* Note: if `loaded` is set, it will be called no matter this loading is skiped or not. | |
* Skipping loading means only to skip the loading part. | |
* |
This file contains hidden or 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
/** | |
* Dynamically load a JS file. | |
* | |
* @param {string|Object} item | |
* @param {string} item.url The url of the JS file to load | |
* @param {function} item.loaded Callback function when the file is loaded | |
* @param {function} item.shouldSkip Check before loading the file. | |
* Note: if `loaded` is set, it will be called no matter this loading is skiped or not. | |
* Skipping loading means only to skip the loading part. | |
* |
This file contains hidden or 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
<div class="wildfire_thread"></div> | |
<script type="text/javascript"> | |
const wildfireConfig = () => ({ | |
databaseProvider: 'wilddog', | |
databaseConfig: { | |
siteId: 'wd2168973289ifdmcg' | |
}, | |
pageURL: 'http://chengkang.me/wildfire', | |
pageTitle: 'Wildfire Home Page', | |
theme: 'light', |
NewerOlder