From fde280fa928fc595a62082ea648079b6faf7cdc9 Mon Sep 17 00:00:00 2001 From: demetrios-koziris Date: Mon, 26 Dec 2016 19:30:16 -0500 Subject: [PATCH] shift title to main column --- src/css/profLinks.css | 4 ++++ src/js/addProfLinks.js | 6 ++++++ src/js/init.js | 16 ++++++++-------- src/manifest.json | 2 +- 4 files changed, 19 insertions(+), 9 deletions(-) diff --git a/src/css/profLinks.css b/src/css/profLinks.css index cf7c8b9..62fbdbd 100644 --- a/src/css/profLinks.css +++ b/src/css/profLinks.css @@ -1,3 +1,7 @@ +#page-title { + padding-top: 0px !important; +} + .mcen-profDiv { margin: 6px 0px; } diff --git a/src/js/addProfLinks.js b/src/js/addProfLinks.js index 9a6a95c..9301760 100644 --- a/src/js/addProfLinks.js +++ b/src/js/addProfLinks.js @@ -17,6 +17,12 @@ The GNU General Public License can also be found at 0; - urlYearF = parseInt(url.match(/.+(20[0-9][0-9])-.+/)[1]); - urlYearW = urlYearF+1; - urlYears = urlYearF + "-" + urlYearW; - sysYear = new Date().getFullYear(); - sysMonth = new Date().getMonth(); + var courseNameRegex = /([A-Z]{3,4}[0-9]{0,1})\s([0-9]{3}[A-Za-z]{0,1}[0-9]{0,1})/g; + var isNewStyle = document.getElementsByClassName("transition").length > 0; + var urlYearF = parseInt(url.match(/.+(20[0-9][0-9])-.+/)[1]); + var urlYearW = urlYearF+1; + var urlYears = urlYearF + "-" + urlYearW; + var sysYear = new Date().getFullYear(); + var sysMonth = new Date().getMonth(); var lang = 'en'; if (url.match(/\/fr\//)) { lang = 'fr'; @@ -41,7 +41,7 @@ if (url.match(/.+www\.mcgill\.ca\/study\/.+/)) { if (url.match(/.+study.+courses.+[-]+/)) { - termNames = { + var termNames = { 'en': { 9: 'Fall', 1: 'Winter', diff --git a/src/manifest.json b/src/manifest.json index fd70f53..113b52f 100644 --- a/src/manifest.json +++ b/src/manifest.json @@ -2,7 +2,7 @@ "name": "McGill Enhanced", "author": "Demetrios Koziris", "manifest_version": 2, - "version": "3.0.289", + "version": "3.0.30", "description": "Enhance the functionality of McGill.ca", "permissions" : [ "declarativeContent",