"use strict"; /** ***** WebPerl - http://webperl.zero-g.net ***** * * Copyright (c) 2018 Hauke Daempfling (haukex@zero-g.net) * at the Leibniz Institute of Freshwater Ecology and Inland Fisheries (IGB), * Berlin, Germany, http://www.igb-berlin.de * * This program is free software; you can redistribute it and/or modify * it under the same terms as Perl 5 itself: either the GNU General Public * License as published by the Free Software Foundation (either version 1, * or, at your option, any later version), or the "Artistic License" which * comes with Perl 5. * * This program is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * See the licenses for details. * * You should have received a copy of the licenses along with this program. * If not, see http://perldoc.perl.org/index-licence.html **/ function make_emscr_ide (textarea, callbacks) { var defaulttext = "use warnings;\nuse 5.028;\nuse WebPerl qw/js/;\n\n"; var div = $('
').addClass("emide"); var ide = { elem: div, cleanval: '' }; var tb = $('
').addClass("toolbar").appendTo(div); var file_new = $('