Created
June 11, 2013 15:19
-
-
Save ghooghe/5757738 to your computer and use it in GitHub Desktop.
Loader with text/font caracters
This file contains hidden or 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
| // Prepare loader | |
| var loaderSymbols = ['', '', ''], | |
| loaderEl = $(blockingOverlaySelector + ' span'), | |
| loaderIndex = 0, | |
| loader = function() { | |
| loaderEl.html(loaderSymbols[loaderIndex]); | |
| loaderIndex = loaderIndex < loaderSymbols.length - 1 ? loaderIndex + 1 : 0; | |
| }; | |
| setInterval(loader, 350); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment