2015-08-27 00:02:07 -07:00
|
|
|
$(document).ready(function() {
|
2015-11-17 21:25:16 -08:00
|
|
|
var common = window.common;
|
2015-09-09 18:59:56 -07:00
|
|
|
|
2015-09-27 15:58:59 -07:00
|
|
|
common.init.forEach(function(init) {
|
|
|
|
init($);
|
|
|
|
});
|
|
|
|
|
2015-08-27 00:15:13 -07:00
|
|
|
var $preview = $('#preview');
|
|
|
|
if (typeof $preview.html() !== 'undefined') {
|
|
|
|
$preview.load(function() {
|
2015-11-13 11:10:23 -08:00
|
|
|
common.executeChallenge(true);
|
2015-08-27 00:15:13 -07:00
|
|
|
});
|
2015-11-08 20:04:43 -08:00
|
|
|
} else if (
|
|
|
|
common.challengeType !== '2' &&
|
2015-11-08 20:12:56 -08:00
|
|
|
common.challengeType !== '3' &&
|
|
|
|
common.challengeType !== '4' &&
|
|
|
|
common.challengeType !== '7'
|
2015-11-08 20:04:43 -08:00
|
|
|
) {
|
2015-11-13 11:10:23 -08:00
|
|
|
common.executeChallenge(true);
|
2015-08-27 00:15:13 -07:00
|
|
|
}
|
2015-08-23 21:59:29 +01:00
|
|
|
});
|