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
// Slightly modified from https://github.com/auth0/jwt-decode/blob/master/build/jwt-decode.js | |
/** | |
* The code was extracted from: | |
* https://github.com/davidchambers/Base64.js | |
*/ | |
var chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/='; | |
function InvalidCharacterError(message) { |
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
// LZW-compress a string | |
function lzw_encode(s) { | |
var dict = {}; | |
var data = (s + "").split(""); | |
var out = []; | |
var currChar; | |
var phrase = data[0]; | |
var code = 256; | |
for (var i=1; i<data.length; i++) { | |
currChar=data[i]; |
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
(function (angular) { | |
'use strict'; | |
angular.module('angularAwesomeSlider', []) | |
// DIRECTIVE | |
.directive('slider', [ | |
'$compile', '$templateCache','$timeout', '$window', 'slider', | |
function(compile, templateCache, timeout, win, Slider) { | |
return { | |
restrict : 'AE', |