define([ '/customize/messages.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 USE_TABLE = Config.USE_HOMEPAGE_TABLE; var USE_FS_STORE = Config.USE_FS_STORE; 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).attr('target', '_blank').show(); }); }; var $sel = $('#language-selector'); Object.keys(Messages._languages).forEach(function (code) { $sel.append($('