Skip to content

Commit 402f137

Browse files
author
Becky Sroufe
committed
Merged production-readiness + finished spinner implementation
1 parent 3541884 commit 402f137

File tree

3 files changed

+21
-9
lines changed

3 files changed

+21
-9
lines changed
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<h1>Loading ...</h1>
1+

app/app-js/modules/loading/loading.view.js

+19-5
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,33 @@
11
define(function (require) {
22
var Marionette = require('marionette'),
33
template = require('hgn!modules/loading/loading.view'),
4+
Spinner = require('spinner'),
45
LoadingView;
56

67
LoadingView = Marionette.ItemView.extend({
78
template: template,
89
className: 'loading-modal',
910

10-
/*
1111
onShow: function() {
12-
var spinner = new Spinner().spin();
13-
target.appendChild(spinner.el);
12+
var opts = {
13+
lines: 10,
14+
length: 12,
15+
width: 8,
16+
radius: 15,
17+
corners: 1,
18+
rotate: 0,
19+
direction: 1,
20+
color: '#fff',
21+
speed: 1, // Rounds per second
22+
trail: 60, // Afterglow percentage
23+
className: 'spinner',
24+
top: '25%'
25+
};
26+
27+
var spinner = new Spinner(opts).spin();
28+
this.$el.append(spinner.el);
1429
}
15-
*/
16-
30+
1731
});
1832

1933
return LoadingView;

app/less/loading.less

+1-3
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,5 @@
77
width: 100%;
88
padding-top: 10%;
99
height: 100%;
10-
color: #fff;
11-
background-color: rgba(0,0,0,0.8);
12-
text-align: center;
10+
background-color: rgba(0,0,0,0.65);
1311
}

0 commit comments

Comments
 (0)