From 581ea159d5ade07d8ceec986aca34382e5e946e0 Mon Sep 17 00:00:00 2001 From: mattab Date: Thu, 30 Jun 2016 15:38:17 +1200 Subject: Remove uneeded HTML files from a JS library --- .../mousetrap/plugins/record/tests/index.html | 29 ------------ .../mousetrap/plugins/record/tests/jelly.css | 18 -------- .../mousetrap/plugins/record/tests/jelly.js | 53 ---------------------- 3 files changed, 100 deletions(-) delete mode 100644 libs/bower_components/mousetrap/plugins/record/tests/index.html delete mode 100644 libs/bower_components/mousetrap/plugins/record/tests/jelly.css delete mode 100644 libs/bower_components/mousetrap/plugins/record/tests/jelly.js (limited to 'libs') diff --git a/libs/bower_components/mousetrap/plugins/record/tests/index.html b/libs/bower_components/mousetrap/plugins/record/tests/index.html deleted file mode 100644 index 5608f09e67..0000000000 --- a/libs/bower_components/mousetrap/plugins/record/tests/index.html +++ /dev/null @@ -1,29 +0,0 @@ - - - - - Jelly - - - - - -

Jelly

- -

For testing the record extension

- -

Click "Record" to test recording a sequence.

- -
- - - - - - - - - - diff --git a/libs/bower_components/mousetrap/plugins/record/tests/jelly.css b/libs/bower_components/mousetrap/plugins/record/tests/jelly.css deleted file mode 100644 index a071c77c98..0000000000 --- a/libs/bower_components/mousetrap/plugins/record/tests/jelly.css +++ /dev/null @@ -1,18 +0,0 @@ -body { - font-family: helvetica, arial, sans-serif; - line-height: 20px; -} - -kbd { - background-color: #ccc; - display: inline-block; - padding: 0.5ex 1em; -} - -.test-record-result { - margin-top: 20px; -} - -.test-record-result span:nth-child(n+2) { - margin-left: 10px; -} diff --git a/libs/bower_components/mousetrap/plugins/record/tests/jelly.js b/libs/bower_components/mousetrap/plugins/record/tests/jelly.js deleted file mode 100644 index 57ff01a028..0000000000 --- a/libs/bower_components/mousetrap/plugins/record/tests/jelly.js +++ /dev/null @@ -1,53 +0,0 @@ -/** - * Peanut butter goes great with jelly. - * - * @author Dan Tao - */ -var Jelly = (function() { - var recordButton = $("button.test-record"), - recordResult = $("div.test-record-result"); - - function _formatSequenceAsHtml(sequence) { - var combos = [], - i; - - for (i = 0; i < sequence.length; ++i) { - combos.push('' + _formatKeysAsHtml(sequence[i].split('+')) + ''); - } - - return combos.join(' '); - } - - function _formatKeysAsHtml(keys) { - var htmlKeys = [], - i; - - for (i = 0; i < keys.length; ++i) { - htmlKeys.push('' + keys[i] + ''); - } - - return htmlKeys.join('+'); - } - - function _prepareRecordTest() { - recordButton.prop('disabled', true); - recordButton.text('Recording'); - - Mousetrap.record(function(sequence) { - recordResult.html(_formatSequenceAsHtml(sequence)); - recordButton.prop('disabled', false); - recordButton.text('Record'); - }); - - // take focus away from the button so that Mousetrap will actually - // capture keystrokes - recordButton.blur(); - } - - return { - spread: function() { - recordButton.click(_prepareRecordTest); - } - }; - -})(); -- cgit v1.2.3