diff --git a/hourglass/client/main/main.css b/hourglass/client/main/main.css
index 1ce7c0e..6978354 100644
--- a/hourglass/client/main/main.css
+++ b/hourglass/client/main/main.css
@@ -432,11 +432,12 @@ input {
}
.classWrapper {
- width: 300px;
+ width: 20vw;
height: 95%;
margin: 10px;
margin-top: 20px;
display: inline-block;
+ position: relative;
vertical-align: top;
}
@@ -455,9 +456,8 @@ input {
}
.mainClassName {
- font-size: 160%;
+ font-size: 2vw;
white-space: normal;
- word-break: break-all;
-webkit-filter: none !important;
filter: none !important;
@@ -465,15 +465,18 @@ input {
}
.mainClassHour {
+ font-size: 1.1vw;
margin-top: 0;
pointer-events: none;
}
.mainClassTeacher {
+ font-size: 1.1vw;
pointer-events: none;
}
.creWork {
+ font-size: 1.1vw;
cursor: pointer;
box-shadow: 0px 5px 5px -2px #666;
@@ -494,7 +497,7 @@ input {
.workHolder {
width: 90% !important;
- max-height: 71vh;
+ max-height: 55.5vh;
padding: 5%;
}
@@ -545,16 +548,16 @@ input {
}
.cWorkCont {
+ font-size: .97vw;
padding: 5%;
}
.cWorkType {
- height: 5px;
+ height: .3vw;
}
.cWorkName {
font-weight: 400;
- font-size: 100%;
width: 50%;
margin-top: 0;
diff --git a/hourglass/client/main/main.html b/hourglass/client/main/main.html
index ed208c2..de074eb 100644
--- a/hourglass/client/main/main.html
+++ b/hourglass/client/main/main.html
@@ -157,14 +157,14 @@
diff --git a/hourglass/client/menus/menus.js b/hourglass/client/menus/menus.js
index 12de451..b6ebe08 100644
--- a/hourglass/client/menus/menus.js
+++ b/hourglass/client/menus/menus.js
@@ -276,6 +276,16 @@ Template.registerHelper("classSelected", () => {
return !Session.equals("classInfo", null);
});
+Template.manageClass.rendered = function() {
+ $("#classBody").slimScroll({
+ width: '100%',
+ height: '',
+ touchScrollStep: 60,
+ color: '#FFF',
+ railOpacity: 0.7
+ });
+}
+
Template.manageClass.events({
'click .classBox' (event) {
var classId = event.target.getAttribute("classid");
@@ -330,6 +340,16 @@ Template.manageClass.events({
}
});
+Template.joinClass.rendered = function() {
+ $("#classBody").slimScroll({
+ width: '100%',
+ height: '',
+ touchScrollStep: 60,
+ color: '#FFF',
+ railOpacity: 0.7
+ });
+}
+
Template.joinClass.helpers({
classes() { // Loads all of the possible classes ( Limit of twenty shown ) ( Sorts by class size ) ( Only your school)
var array = classes.find({
diff --git a/hourglass/client/mobile/mobile.js b/hourglass/client/mobile/mobile.js
index 5868a92..1b75669 100644
--- a/hourglass/client/mobile/mobile.js
+++ b/hourglass/client/mobile/mobile.js
@@ -61,7 +61,7 @@ Template.mobile.rendered = function() {
Session.set("mobileMode", "main");
$("#mobileBody").velocity("fadeIn", 200);
$("#mainCircleButton").velocity("fadeIn", 200);
- timedPushback();
+ timedPushback(true);
}
});
}
@@ -78,7 +78,7 @@ Template.mobile.rendered = function() {
$("#mainCircleButton").velocity("fadeIn", 200);
$("#mobileBody").velocity("fadeIn", 200);
Session.set("mobileMode", "main");
- timedPushback();
+ timedPushback(false);
}
});
}
@@ -111,9 +111,15 @@ Template.mobile.rendered = function() {
}
});
- timedPushback();
+ timedPushback(true);
}
+Template.mobile.events({
+ 'click #mOverlay' () {
+ toggleSidebar(false);
+ }
+});
+
Template.defaultSidebar.rendered = function() {
addMobileButton($(".mSectionMode")[0], 0.2, "brightness", function() {
if(Session.equals("mobileMode", "main")) {
@@ -121,7 +127,7 @@ Template.defaultSidebar.rendered = function() {
} else {
Session.set("mobileMode","main");
toggleSidebar(false);
- timedPushback();
+ timedPushback(true);
}
});
@@ -131,7 +137,7 @@ Template.defaultSidebar.rendered = function() {
} else {
Session.set("mobileMode","done");
toggleSidebar(false);
- timedPushback();
+ timedPushback(true);
}
});
@@ -182,7 +188,7 @@ Template.defaultSidebar.rendered = function() {
addMobileButton($("#mDisableFilter")[0], -0.1, "brightness", function() {
Session.set("typeFilter", []);
Session.set("classDisp", []);
- timedPushback();
+ timedPushback(true);
});
}
@@ -364,7 +370,7 @@ Template.mSidebarClasses.rendered = function() {
array.push(classid);
}
Session.set("classDisp", array);
- timedPushback();
+ timedPushback(true);
}
});
}
@@ -386,7 +392,7 @@ Template.mSideTypeFilter.rendered = function() {
array.push(type);
}
Session.set("typeFilter", array);
- timedPushback();
+ timedPushback(true);
}
});
}
@@ -490,7 +496,7 @@ Template.mEditWork.rendered = function() {
});
/*addMobileButton($("#mDelete"), 0.2, "brightness", function() {
-
+
})*/
}
@@ -669,21 +675,27 @@ function toggleSidebar(open) {
}
}
-function timedPushback() {
+function timedPushback(type) {
var fadeTime = 10;
$(".mClassContainer").velocity("stop", true);
- $(".mClassContainer").velocity("fadeOut", fadeTime);
- setTimeout(function() {
- $(".mClassContainer").velocity({left: "-150vw"}, 0);
- $(".mClassContainer").velocity("fadeIn", 0);
- $(".mClassContainer").velocity({opacity: 1}, 0);
- var i = 0;
- var timer = setInterval(function() {
- $($(".mClassContainer")[i]).velocity({left: ""});
- if(i === $(".mClassContainer").length - 1) clearInterval(timer);
- i += 1;
- }, 100);
- }, fadeTime);
+ if(!type) {
+ setTimeout(function() {
+ $(".mClassContainer").velocity({opacity: 1}, 0);
+ }, fadeTime);
+ } else {
+ $(".mClassContainer").velocity("fadeOut", fadeTime);
+ setTimeout(function() {
+ $(".mClassContainer").velocity({left: "-150vw"}, 0);
+ $(".mClassContainer").velocity("fadeIn", 0);
+ $(".mClassContainer").velocity({opacity: 1}, 0);
+ var i = 0;
+ var timer = setInterval(function() {
+ $($(".mClassContainer")[i]).velocity({left: ""});
+ if(i === $(".mClassContainer").length - 1) clearInterval(timer);
+ i += 1;
+ }, 100);
+ }, fadeTime);
+ }
}
mobileWork = function() {
diff --git a/hourglass/client/profile/mProfile.css b/hourglass/client/profile/mProfile.css
index 6036aef..4c1ca94 100644
--- a/hourglass/client/profile/mProfile.css
+++ b/hourglass/client/profile/mProfile.css
@@ -111,12 +111,27 @@
table-layout: fixed;
}
-.mClassBox .fa {
- font-size: 4vw;
- width: 2%;
+.mProfClassDelete {
+ width: 9vw;
+ height: 9vw;
+ background-color: rgba(255,255,255,0.1);
display: table-cell;
}
+.mClassBox .fa {
+ font-size: 4vw !important;
+ line-height: 9vw !important;
+}
+
+#mProfClass .mClassBox {
+ width: 94%;
+ padding: 2% 2% 2% 4%;
+}
+
+#mProfClass .name {
+ width: 48%;
+}
+
#mProfClassTitle {
font-weight: 200;
width: 92%;
diff --git a/hourglass/client/profile/mProfile.html b/hourglass/client/profile/mProfile.html
index 4aea1c8..dfb5b3a 100644
--- a/hourglass/client/profile/mProfile.html
+++ b/hourglass/client/profile/mProfile.html
@@ -84,6 +84,8 @@
{{name}}
{{teachershort}}
{{hour}}
-
+
+
+
diff --git a/hourglass/client/profile/mProfile.js b/hourglass/client/profile/mProfile.js
index 54aab01..f3986fc 100644
--- a/hourglass/client/profile/mProfile.js
+++ b/hourglass/client/profile/mProfile.js
@@ -243,10 +243,11 @@ Template.mClassDisplay.rendered = function() {
}
Template.mClassDisplay2.rendered = function() {
- var div = this.firstNode.children[3];
- div.onclick = function() {
- var newSetting = Session.get("profile");
- newSetting.classes.splice(newSetting.classes.indexOf(div.getAttribute("classid")),1)
- Session.set("profile", newSetting);
- }
+ let div = this.firstNode.children[3];
+ addMobileButton(div, 0.1, "brightness", function() {
+ console.log(div);
+ var newSetting = Session.get("profile");
+ newSetting.classes.splice(newSetting.classes.indexOf(div.parentNode.getAttribute("classid")),1)
+ Session.set("profile", newSetting);
+ });
}
\ No newline at end of file