Set up Grunt tasks to build web and Node versions of CyberChef using webpack

This commit is contained in:
n1474335 2017-03-21 22:41:44 +00:00
parent 99f306dc18
commit 885fbe13ac
56 changed files with 299 additions and 29138 deletions

View file

@ -1,6 +1,4 @@
var CryptoJS = require("crypto-js"),
moment = require("moment"),
$ = require("jquery");
var CryptoJS = require("crypto-js");
/**
@ -1172,36 +1170,6 @@ var Utils = module.exports = {
};
/**
* A jQuery function to select a range of text.
*
* @param {number} start
* @param {number} end
*
* @example
* // Highlights the 4th, 5th and 6th characters in the element #input-text.
* $("#input-text").selectRange(3,5);
*
* // Places the cursor at the beginning of the element #input-text.
* $("#input-text").selectRange(0);
*/
// $.fn.selectRange = function(start, end) {
// if (!end) end = start;
// return this.each(function() {
// if (this.setSelectionRange) {
// this.focus();
// this.setSelectionRange(start, end);
// } else if (this.createTextRange) {
// var range = this.createTextRange();
// range.collapse(true);
// range.moveEnd("character", end);
// range.moveStart("character", start);
// range.select();
// }
// });
// };
/**
* Removes all duplicates from an array.
*