From dd3d9fcbaea37b12f978202dc1c03869edc50bbf Mon Sep 17 00:00:00 2001 From: sghsri Date: Wed, 16 Oct 2019 13:44:23 -0500 Subject: [PATCH] keyboard command on ut planner, updated version num --- js/config.js | 4 ++-- js/utplanner.js | 8 ++++++++ manifest.json | 4 ++-- 3 files changed, 12 insertions(+), 4 deletions(-) diff --git a/js/config.js b/js/config.js index 7b4c0eaf..e3f6e668 100644 --- a/js/config.js +++ b/js/config.js @@ -52,10 +52,10 @@ class Text { "You've Yee'd Your Last Haw.", "lol everything is already waitlisted.", "At Least You're Not At A&M.", `It's ${moment().format("h:mm")} and OU Still Sucks.`, 'TeXAs iS BaCK GuYZ', "'Academically Challenged'", 'Does McCombs teach Parseltongue?', 'Lets make Daddy Fenves proud.', 'Feel bad if you say Wampus.', 'No Cruce Enfrente Del Bus.', - 'Midterm 1 has been Unmuted', 'Omae Wa Mou Shindeiru...', 'Bevo Bucks are the new Bitcoin' + 'Midterm 1 has been Unmuted', 'Omae Wa Mou Shindeiru...', 'Bevo Bucks are the new Bitcoin', 'Subway Robber > Machete Guy', ':' ] let index = Math.floor(Math.random() * arr.length); return arr[index]; } -} \ No newline at end of file +} diff --git a/js/utplanner.js b/js/utplanner.js index 88e8eefe..0d03afe1 100644 --- a/js/utplanner.js +++ b/js/utplanner.js @@ -232,3 +232,11 @@ function close() { $("#myModal").fadeOut(Timing.fade_time); $("#snackbar").attr("class", ""); } + + +$(document).keydown(function (e) { + /*Close Modal when hit escape*/ + if (e.keyCode == 27) { + close(); + } +}); diff --git a/manifest.json b/manifest.json index bee03f1f..90ebd15b 100644 --- a/manifest.json +++ b/manifest.json @@ -2,7 +2,7 @@ "manifest_version": 2, "name": "UT Registration Plus", - "version": "0.2.2.3", + "version": "1.2.2.3", "options_page": "options.html", "description": "Improves the course registration process at the University of Texas at Austin!", "permissions": ["tabs", @@ -54,4 +54,4 @@ "48": "icons/icon48.png", "128": "icons/icon128.png" } -} \ No newline at end of file +}