summaryrefslogtreecommitdiff
path: root/action_popup
diff options
context:
space:
mode:
authorAlex Xu (Hello71) <alex_y_xu@yahoo.ca>2018-09-18 16:08:48 -0400
committerAlex Xu (Hello71) <alex_y_xu@yahoo.ca>2018-09-18 16:08:48 -0400
commit0d046223e2b2478473bef39e053d3021fbe169b0 (patch)
tree1c1cec190c8c2f78a2982408ca80e76701e2bc8a /action_popup
downloadyorku-web-helper-0d046223e2b2478473bef39e053d3021fbe169b0.tar.xz
yorku-web-helper-0d046223e2b2478473bef39e053d3021fbe169b0.zip
Initial commit
Diffstat (limited to 'action_popup')
-rw-r--r--action_popup/action_popup.html19
-rw-r--r--action_popup/action_popup.js5
2 files changed, 24 insertions, 0 deletions
diff --git a/action_popup/action_popup.html b/action_popup/action_popup.html
new file mode 100644
index 0000000..720b4ec
--- /dev/null
+++ b/action_popup/action_popup.html
@@ -0,0 +1,19 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <meta charset="utf-8">
+ <link rel="stylesheet" href="choose_beast.css"/>
+ </head>
+ <body>
+ <header class="panel-section panel-section-header">
+ <!--<div class="icon-section-header">[insert image here]</div>-->
+ <div class="text-section-header">YorkU Web Helper</div>
+ </header>
+ <div class="panel-section panel-section-list">
+ <div id="course-query-link" class="panel-list-item">
+ <div class="text">Course Query</div>
+ </div>
+ </div>
+ <script src="action_popup.js"></script>
+ </body>
+</html>
diff --git a/action_popup/action_popup.js b/action_popup/action_popup.js
new file mode 100644
index 0000000..914041a
--- /dev/null
+++ b/action_popup/action_popup.js
@@ -0,0 +1,5 @@
+document.getElementById("course-query-link").addEventListener("click", function () {
+ chrome.tabs.create({
+ "url": "/yorku-course-query/index.html"
+ });
+});