$(function() { //Merge all editor components. OOP for the win. O rly. //TODO Change this. Otherwise it will fuck people up, //because it's really confusing if the variables and the code are //split over 6 files. $.extend(CodeOceanEditor, CodeOceanEditorAJAX, CodeOceanEditorEvaluation, CodeOceanEditorFlowr, CodeOceanEditorSubmissions, CodeOceanEditorTurtle, CodeOceanEditorWebsocket); if ($('#editor').isPresent() && CodeOceanEditor) { if (CodeOceanEditor.isBrowserSupported()) { CodeOceanEditor.initializeEverything(); } else { $('#alert').show(); } } });