fixed chromeicon css, fixed minor redirect bug
This commit is contained in:
parent
994a7f2973
commit
e096b7eb7c
@ -3,25 +3,6 @@ Template.checkout.helpers({
|
|||||||
return Chromebooks.find({}, {sort: {number: 1}});
|
return Chromebooks.find({}, {sort: {number: 1}});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
Template.checkout.events({
|
|
||||||
'click .edit': function() {
|
|
||||||
if (Roles.userIsInRole(Meteor.userId(), ['admin'])) {
|
|
||||||
Router.go('/admin');
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
alert("Access Denied");
|
|
||||||
}
|
|
||||||
},
|
|
||||||
'click .teacher': function() {
|
|
||||||
if (Roles.userIsInRole(Meteor.userId(), ['admin', 'teacher'])) {
|
|
||||||
Router.go('/teacher');
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
alert("Access Denied");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
Template.checkout.rendered = function() {
|
Template.checkout.rendered = function() {
|
||||||
|
|
||||||
$(".chckChromebooks").mCustomScrollbar({
|
$(".chckChromebooks").mCustomScrollbar({
|
||||||
|
|||||||
@ -28,17 +28,20 @@
|
|||||||
.chromeicon {
|
.chromeicon {
|
||||||
height: 30px;
|
height: 30px;
|
||||||
width: 30px;
|
width: 30px;
|
||||||
float: right;
|
margin-left: -2%;
|
||||||
margin-right: 37.3%;
|
|
||||||
margin-top: .6%;
|
|
||||||
}
|
}
|
||||||
p.bottom {
|
p.bottom {
|
||||||
padding-left:0px;
|
padding-left:0px;
|
||||||
padding-top:0%;
|
padding-top:0%;
|
||||||
margin-left:37.5%;
|
margin-left: 2.5%;
|
||||||
margin-right:auto;
|
margin-right:auto;
|
||||||
color:#f7f7f7;
|
color:#f7f7f7;
|
||||||
max-width:325px;
|
max-width:325px;
|
||||||
font:27px 'Lato';
|
font:27px 'Lato';
|
||||||
display: inline;
|
display: inline;
|
||||||
}
|
}
|
||||||
|
div.bottom {
|
||||||
|
margin-left: auto;
|
||||||
|
margin-right: auto;
|
||||||
|
max-width: 340px;
|
||||||
|
}
|
||||||
@ -2,8 +2,5 @@ Template.login.events({
|
|||||||
'click .chromeicon': function() {
|
'click .chromeicon': function() {
|
||||||
var randomint = Math.floor(Math.random() * (links.length - 1));
|
var randomint = Math.floor(Math.random() * (links.length - 1));
|
||||||
window.open(links[randomint], "_blank");
|
window.open(links[randomint], "_blank");
|
||||||
},
|
|
||||||
'click .submit': function() {
|
|
||||||
Router.go('/login');
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@ -26,7 +26,19 @@ Momentum.registerPlugin('slide-fade', function(options) {
|
|||||||
var $node = $(node);
|
var $node = $(node);
|
||||||
|
|
||||||
$node
|
$node
|
||||||
.velocity('fadeOut');
|
.velocity('fadeOut')
|
||||||
|
.velocity('slideUp', {
|
||||||
|
easing: options.easing,
|
||||||
|
duration: options.duration,
|
||||||
|
complete: function() {
|
||||||
|
$node.remove();
|
||||||
|
done();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user