Add gulp build of commonFramework

This commit is contained in:
Berkeley Martinez
2015-11-19 17:27:05 -08:00
parent 29f90505b7
commit 4bdf1b2854
6 changed files with 54 additions and 38 deletions

View 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);
}
});