- 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
.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
/* | |
//////////////////////////////////////////// | |
============================ | |
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
/** | |
* 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
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 | |
*/ |
### 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){ |
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
/** | |
* Running the array reverse function on arguments object | |
*/ | |
function reverseArgs(){ | |
return Array.prototype.reverse.call(arguments); | |
} | |
reverseArgs(12,34,55); | |
// OUTPUT | |
// [55, 34, 12] |
(function(){
var message = 'Hello Javascript';
console.log(message);
})();
{
"11": {
"value": [3, 6, 8],
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
/** | |
* Clones an object and retains the prototype chain | |
* @param {Object} fromObj Object to be cloned | |
* @returns {Object} Cloned Object | |
*/ | |
function cloneObj(fromObj) { | |
var toObj, i; | |
if (fromObj && typeof fromObj === 'object') { | |