define([ '/customize/messages.js', //'/customize/DecorateToolbar.js', '/customize/application_config.js', '/common/cryptpad-common.js', '/bower_components/lil-uri/uri.min.js', '/customize/languageSelector.js', '/bower_components/jquery/dist/jquery.min.js', ], function (Messages, Config, Cryptpad, LilUri, LS) { var $ = window.$; var APP = window.APP = { Cryptpad: Cryptpad, }; var padTypes = { '/pad/': Messages.type.pad, '/code/': Messages.type.code, '/poll/': Messages.type.poll, '/slide/': Messages.type.slide, }; var $table; var $tbody; var $tryit; var now = new Date(); var hasRecent = false; var forgetPad = Cryptpad.forgetPad; var displayCreateButtons = function () { var $parent = $('#buttons'); Config.availablePadTypes.forEach(function (el) { $('#create-' + el).detach().appendTo($parent).show(); }); }; var $sel = $('#language-selector'); Object.keys(Messages._languages).forEach(function (code) { $sel.append($('