Fixed typo in template
diff --git a/public/js/hint.js b/public/js/hint.js
index 786c185..0ec79b8 100644
--- a/public/js/hint.js
+++ b/public/js/hint.js
@@ -176,6 +176,8 @@
function changed (e) {
var el = e.target;
+console.log("Change " + e.key);
+
if (e.key === '/' || e.key === '=') {
var start = el.selectionStart;
mirror.firstChild.textContent = el.value.substring(0, start);
@@ -216,8 +218,14 @@
e.stopPropagation();
e.preventDefault();
return false;
+ }
+ else if (e.key !== 'Shift' &&
+ e.key !== 'Alt' &&
+ e.key !== 'AltGraph' &&
+ e.key !== 'CapsLock') {
+ that.hide();
};
- that.hide();
+ return true;
};
function qlSelect () {
@@ -235,5 +243,5 @@
window.onresize = init;
search.addEventListener("keyup", changed, false);
search.addEventListener("keydown", select, false);
- qlField.addEventListener('change', qlSelect, false);
+ qlField.addEventListener("change", qlSelect, false);
};
diff --git a/public/js/tutorialCookie.js b/public/js/tutorialCookie.js
index 0ae1b1d..31741a0 100644
--- a/public/js/tutorialCookie.js
+++ b/public/js/tutorialCookie.js
@@ -23,8 +23,6 @@
function getTutorialPage() {
var pc = 'tutorial_page';
var c_value = document.cookie;
- console.log("Found cookie " + c_value);
-
var c_start = c_value.indexOf(" " + pc + "=");
if (c_start == -1)
c_start = c_value.indexOf(pc + "=");
@@ -41,6 +39,5 @@
c_value = unescape(c_value.substring(c_start,c_end));
};
-console.log("got tutpage " + c_value);
return c_value;
};