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
angular.module('cssLoadingService', []).factory("CssLoadingService", function () { | |
return { | |
loadCss: function (url) { | |
if (document.createStyleSheet) { | |
document.createStyleSheet(url); //IE | |
} else { | |
var link = document.createElement("link"); | |
link.type = "text/css"; | |
link.rel = "stylesheet"; | |
link.href = url; |
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
module.directive('angularChosen', function () { | |
return { | |
restrict: 'A', | |
require: '?ngModel', | |
link: function (scope, element, attrs) { | |
scope.$watch(attrs.ngModel, function () { | |
element.trigger('liszt:updated'); |
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
CSS: | |
====== | |
<div class="kpi-boxes"> | |
<div class="kpi-box kpi-first"> | |
</div> | |
<div class="kpi-box"> |
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
// We need to create a chat client. | |
// The messages pulling policy to should be: | |
// 1. Get the latest messages from the server | |
// 2. Wait 2 sec. | |
// 3. Back to no. 1 again | |
// Q: what is wrong with the following solution? | |
// What would be the right way to do that? |
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
{ | |
"name": "dev", | |
"version": "0.0.0", | |
"dependencies": { | |
"gulp": { | |
"version": "3.8.10", | |
"from": "gulp@^3.8.8", | |
"resolved": "https://registry.npmjs.org/gulp/-/gulp-3.8.10.tgz", | |
"dependencies": { | |
"archy": { |