Add gulp build of commonFramework
This commit is contained in:
21
client/commonFramework/end.js
Normal file
21
client/commonFramework/end.js
Normal file
@@ -0,0 +1,21 @@
|
||||
$(document).ready(function() {
|
||||
var common = window.common;
|
||||
|
||||
common.init.forEach(function(init) {
|
||||
init($);
|
||||
});
|
||||
|
||||
var $preview = $('#preview');
|
||||
if (typeof $preview.html() !== 'undefined') {
|
||||
$preview.load(function() {
|
||||
common.executeChallenge(true);
|
||||
});
|
||||
} else if (
|
||||
common.challengeType !== '2' &&
|
||||
common.challengeType !== '3' &&
|
||||
common.challengeType !== '4' &&
|
||||
common.challengeType !== '7'
|
||||
) {
|
||||
common.executeChallenge(true);
|
||||
}
|
||||
});
|
Reference in New Issue
Block a user