Commit 9b710934 authored by Leonard Marschke's avatar Leonard Marschke

remove console loggings and fix array comparsion

parent 2bb665eb
Pipeline #2352 passed with stage
in 1 minute and 16 seconds
......@@ -6,18 +6,16 @@ function initRot() {
jQuery('#firstChar').val(data.firstChar);
jQuery('#lastChar').val(data.lastChar);
if(data.mode == 'decrypt') {
console.log('DECC');
jQuery('#runMode_decrypt').prop('checked', true);
jQuery('#modeButtons .btn').removeClass('active');
jQuery('#runMode_decrypt').parent().addClass('active');
}
rot.trigger();
charChoose.activateCorrectCharMode(0);
console.log(data);
} catch(err) {}
});
//taken from http://www.jquerybyexample.net/2012/06/get-url-parameters-using-jquery.html
// taken from http://www.jquerybyexample.net/2012/06/get-url-parameters-using-jquery.html
function getURLParameter(param) {
var sPageURL = window.location.search.substring(1);
var sURLVariables = sPageURL.split('&');
......
......@@ -15,7 +15,7 @@ function rotBase() {
function run() {
var textInput = jQuery('#textinput').val().split('');
if(textInput == '') {
if(textInput.length <= 0) {
return;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment