From 7ca5f47d02047f737a6aa3ad1c9b65d88d12441c Mon Sep 17 00:00:00 2001 From: ansuz Date: Mon, 18 Apr 2016 17:31:37 +0200 Subject: [PATCH] remove multitest pad since it offers no significant benefit --- www/multitest/index.html | 40 ---------------------------------------- www/multitest/main.js | 32 -------------------------------- 2 files changed, 72 deletions(-) delete mode 100644 www/multitest/index.html delete mode 100644 www/multitest/main.js diff --git a/www/multitest/index.html b/www/multitest/index.html deleted file mode 100644 index 5459a8cdb..000000000 --- a/www/multitest/index.html +++ /dev/null @@ -1,40 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/www/multitest/main.js b/www/multitest/main.js deleted file mode 100644 index 30d36508c..000000000 --- a/www/multitest/main.js +++ /dev/null @@ -1,32 +0,0 @@ -define([ - '/api/config?cb=' + Math.random().toString(16).substring(2), - '/common/realtime-input.js', - '/common/messages.js', - '/common/crypto.js', - '/bower_components/jquery/dist/jquery.min.js', - '/customize/pad.js' -], function (Config, Realtime, Messages, Crypto) { - var $ = window.jQuery; - $(window).on('hashchange', function() { - window.location.reload(); - }); - if (window.location.href.indexOf('#') === -1) { - window.location.href = window.location.href + '#' + Crypto.genKey(); - return; - } - - var key = Crypto.parseKey(window.location.hash.substring(1)); - - var rts = $('textarea').toArray().map(function (e, i) { - var config = { - textarea: e, - websocketURL: Config.websocketURL, - userName: Crypto.rand64(8), - channel: key.channel, - cryptKey: key.cryptKey - }; - - var rt = Realtime.start(config); - return rt; - }); -});