moving working to the corner

This commit is contained in:
John Mitchell 2015-05-11 11:24:19 -04:00
parent 11eb4d325b
commit e402f4dced
2 changed files with 15 additions and 9 deletions

View File

@ -590,23 +590,22 @@ angular.module('Utilities', ['RestServices', 'Utilities', 'sanitizeFilter'])
.factory('Wait', ['$rootScope',
function ($rootScope) {
return function (directive) {
var docw, doch, spinnyw, spinnyh, x, y;
var docw, doch, spinnyw, spinnyh;
if (directive === 'start' && !$rootScope.waiting) {
$rootScope.waiting = true;
docw = $(window).width();
doch = $(window).height();
spinnyw = $('.spinny').width();
spinnyh = $('.spinny').height();
x = (docw - spinnyw) / 2;
y = (doch - spinnyh) / 2;
$('.overlay').css({
width: $(document).width(),
height: $(document).height()
}).fadeIn();
$('.spinny').css({
top: y,
left: x
bottom: 15,
right: 15
}).fadeIn(400);
console.log("got here");
} else if (directive === 'stop' && $rootScope.waiting) {
$('.spinny, .overlay').fadeOut(400, function () {
$rootScope.waiting = false;

View File

@ -361,8 +361,8 @@ textarea.allowresize {
display: none;
position: fixed;
z-index: 2000;
width: 75px;
height: 75px;
width: 138px;
height: 50px;
text-align:center;
color: #eee;
background-color: @black;
@ -371,8 +371,15 @@ textarea.allowresize {
padding-top: 10px;
p {
padding-top: 10px;
font-size: 11px;
padding-top: 0px;
font-size: 18px;
text-align: right;
margin-right: 10px;
}
i {
float: left;
margin-left: 10px;
}
}