Files
freeCodeCamp/client/commonFramework/end.js

22 lines
481 B
JavaScript
Raw Normal View History

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-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' &&
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
}
});