diff --git a/chromebook-checkout-meteor/client/chromebook.js b/chromebook-checkout-meteor/client/chromebook.js
index fd3754a..124d215 100644
--- a/chromebook-checkout-meteor/client/chromebook.js
+++ b/chromebook-checkout-meteor/client/chromebook.js
@@ -16,6 +16,9 @@ Template.chromebook.helpers({
} else {
return moment(this.last_checkout).fromNow();
}
+ },
+ url: function() {
+ return Router.current().originalUrl.replace("/", "");
}
});
diff --git a/chromebook-checkout-meteor/client/initial.js b/chromebook-checkout-meteor/client/initial.js
index 568ac27..eb13d6c 100644
--- a/chromebook-checkout-meteor/client/initial.js
+++ b/chromebook-checkout-meteor/client/initial.js
@@ -4,7 +4,9 @@ var links = [
"https://translate.google.com",
"https://keep.google.com/",
"https://mail.google.com/mail/u/0/",
- "https://classroom.google.com/h"
+ "https://classroom.google.com/h",
+ "https://maps.google.com/",
+ "https://earth.google.com/",
]
Template.initial.events({
@@ -16,3 +18,12 @@ Template.initial.events({
Router.go('/checkout');
}
})
+Template.login.events({
+ 'click .chromeicon': function() {
+ var randomint = Math.floor(Math.random() * (links.length - 1));
+ window.open(links[randomint], "_blank");
+ },
+ 'click .submit': function() {
+ Router.go('/checkout');
+ }
+})
diff --git a/chromebook-checkout-meteor/client/teacher.html b/chromebook-checkout-meteor/client/teacher.html
index 20faa1b..06d44f9 100644
--- a/chromebook-checkout-meteor/client/teacher.html
+++ b/chromebook-checkout-meteor/client/teacher.html
@@ -8,22 +8,26 @@
+ {{#momentum plugin='slide-fade'}}
{{#each chromebooks}}
{{> chromebook}}
{{/each}}
+ {{/momentum}}
+ {{#momentum plugin='slide-fade'}}
{{#each carts}}
{{>cart}}
{{/each}}
+ {{/momentum}}
{{/teacherTabs}}
diff --git a/chromebook-checkout-meteor/server/users.js b/chromebook-checkout-meteor/server/users.js
index 87cb2cc..cc8f3de 100644
--- a/chromebook-checkout-meteor/server/users.js
+++ b/chromebook-checkout-meteor/server/users.js
@@ -33,7 +33,8 @@ var teachers = [
// Add all Teachers here
"mminer@bloomfield.org",
"qalieh.yaman90@bloomfield.org",
- "ruhelski@bloomfield.org"
+ "ruhelski@bloomfield.org",
+ "jao.kenneth43@bloomfield.org"
];
for (var i = 0; i < teachers.length; i++) {
var teacher = teachers[i];