### Box Model
* http://www.w3schools.com/css/css_boxmodel.asp
### Positioning of CSS:
* http://www.barelyfitz.com/screencast/html-training/css/positioning/
### Display of CSS
* http://quirksmode.org/css/css2/display.html
### Overflow
* http://css-tricks.com/the-css-overflow-property/
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
/************************************************************* | |
* Adds iterator to javascript Arrays | |
*************************************************************/ | |
/** | |
* Returns previous element in the iteration | |
* @return {[object]} [Returns null if iteration has not started or if limit has reached] | |
*/ | |
Array.prototype.prev = function(){ | |
if(isNaN(this.index) || this.index <=0){ |
- Colors: http://flatuicolors.com/ http://www.flatuicolorpicker.com/
- Bootstrap theme: designmodo.github.io/Flat-UI/
- Inspiration: http://flatinspire.com/
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
angular.module('service', []).service('localstorageservice', [ | |
function() { | |
/** | |
* This module contains all library function for localstorage usage | |
*/ | |
this.methods = { | |
/** | |
* Checks if localstorage is supported on the current browser | |
*/ |
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 is called when setItem(), removeItem(), or clear() changes something on localstorage | |
* This event not triggered for the tab/window where the event is initiated. It is triggered in other tabs | |
*/ | |
localStorage.setItem('locKey', '1'); | |
var fn = function (event) { | |
if (event.key == 'locKey') { | |
console.log("Old Value : " + event.oldValue); | |
console.log("New Value : " + event.newValue); |
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
/* | |
//////////////////////////////////////////// | |
============================ | |
Spacing Adjusting Classes: | |
===========================*/ | |
/*margin-top 0-50*/ | |
.mt0 {margin-top: 0;} |
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
.cls{ | |
position: fixed; | |
top: 0; | |
right: 0; | |
bottom: 0; | |
background-image: url("home.jpg"); | |
min-width: 100%; | |
min-height: 100%; | |
-webkit-filter: blur(18px); | |
-o-filter: blur(18px); |
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
/** | |
* Workaround to make defining and retrieving angular modules easier and more intuitive. | |
*/ | |
(function(angular) { | |
var origMethod = angular.module; | |
var alreadyRegistered = {}; | |
/** |
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
var httpStatusCode = { | |
"100": "Continue", | |
"101": "SwitchingProtocols", | |
"102": "Processing", | |
"200": "OK", | |
"201": "Created", | |
"202": "Accepted", | |
"203": "Non-AuthoritativeInformation", | |
"204": "NoContent", | |
"205": "ResetContent", |
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
/** | |
* Returns a template object from an external template file | |
* @param {[string]} templateURL [URL from the workspace from where the template file has to be read] | |
* @return {[string]} [Returns the template file content] | |
*/ | |
function readTemplate(templateURL) { | |
if ( !! templateURL) { | |
var templateFile; | |
var templateAjax; |