-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added a modifed NProgress (called CProgress, how clever!) to show enc…
…ryption or decryption is happening in the browser
- Loading branch information
Showing
10 changed files
with
692 additions
and
65 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
meteor-nprogress [](https://travis-ci.org/zhouzhuojie/meteor-nprogress) | ||
================ | ||
|
||
NProgress for Meteor | ||
|
||
Installation | ||
``` | ||
meteor add mrt:nprogress | ||
``` | ||
|
||
Basic usage | ||
------------- | ||
|
||
Simply call `start()` and `done()` to control the progress bar. | ||
|
||
Note that NProgress needs to access DOM, so you may want to call NProgress when DOM is ready. In other words, call it | ||
inside Meteor.startup or Template.foo.rendered function. | ||
|
||
~~~ js | ||
Meteor.startup(function(){ | ||
NProgress.start(); | ||
// Do something, like loading... | ||
NProgress.done(); | ||
}); | ||
~~~ | ||
|
||
More | ||
----------- | ||
|
||
Official Documentation for NProgress: [https://github.com/rstacruz/nprogress](https://github.com/rstacruz/nprogress) | ||
|
||
Demo: [http://ricostacruz.com/nprogress/](http://ricostacruz.com/nprogress/) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
/* Make clicks pass-through */ | ||
#cprogress { | ||
pointer-events: none; | ||
} | ||
|
||
#cprogress .bar { | ||
background: #ff0000; | ||
|
||
position: fixed; | ||
z-index: 1031; | ||
bottom: 0; | ||
left: 0; | ||
|
||
width: 100%; | ||
height: 1px; | ||
} | ||
|
||
/* Fancy blur effect */ | ||
#cprogress .peg { | ||
display: block; | ||
position: absolute; | ||
right: 0px; | ||
width: 100px; | ||
height: 100%; | ||
box-shadow: 0 0 10px #ff0000, 0 0 5px #ff0000; | ||
opacity: 1.0; | ||
|
||
-webkit-transform: rotate(3deg) translate(0px, 4px); | ||
-ms-transform: rotate(3deg) translate(0px, 4px); | ||
transform: rotate(3deg) translate(0px, 4px); | ||
} | ||
|
||
/* Remove these to get rid of the spinner */ | ||
#cprogress .spinner { | ||
display: block; | ||
position: fixed; | ||
z-index: 1031; | ||
bottom: 15px; | ||
right: 15px; | ||
} | ||
|
||
#cprogress .spinner-icon { | ||
width: 18px; | ||
height: 18px; | ||
box-sizing: border-box; | ||
|
||
border: solid 2px transparent; | ||
border-top-color: #ff0000; | ||
border-left-color: #ff0000; | ||
border-radius: 50%; | ||
|
||
-webkit-animation: cprogress-spinner 400ms linear infinite; | ||
animation: cprogress-spinner 400ms linear infinite; | ||
} | ||
|
||
.cprogress-custom-parent { | ||
overflow: hidden; | ||
position: relative; | ||
} | ||
|
||
.cprogress-custom-parent #cprogress .spinner, | ||
.cprogress-custom-parent #cprogress .bar { | ||
position: absolute; | ||
} | ||
|
||
@-webkit-keyframes cprogress-spinner { | ||
0% { -webkit-transform: rotate(0deg); } | ||
100% { -webkit-transform: rotate(360deg); } | ||
} | ||
@keyframes cprogress-spinner { | ||
0% { transform: rotate(0deg); } | ||
100% { transform: rotate(360deg); } | ||
} | ||
|
Oops, something went wrong.