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
/*work with Date*/ | |
/* | |
* DATA.JS | |
* https://code.google.com/p/datejs/wiki/APIDocumentation#between | |
* http://www.datejs.com/ | |
*/ | |
Date.today(); |
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
/* | |
* Architecture - Object Literal | |
* Advantages: | |
* - Easer to navigate and discuss | |
* - Profilers give you actual names to work with | |
* - You can execute these from firebug console | |
* - You can write unit tests against them | |
*/ | |
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
/* | |
* BACKBONE | |
*/ | |
// VIEW | |
define([ | |
'jquery', | |
'backbone', | |
'text!..template.php' |
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
<script type="text/javascript" src="https://getfirebug.com/firebug-lite.js"></script> |
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
/* | |
* PATTERNS | |
*/ | |
// Singleton | |
var Singleton = new function() { | |
var single = this; | |
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
var a = 2 + 2; | |
switch (a) { | |
case 4: | |
alert('Верно!'); | |
break; | |
case 3: | |
case 5: | |
alert('Неверно!'); |
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
/* | |
* --------------------- | |
* Deferreds | |
* --------------------- | |
*/ | |
// What the heck is a deferred object? | |
// - A Deferred is a state storage object - 'pending' or 'resolved | rejected' | |
var def = $.Deferred(); //def.state() === 'pending' |
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
/* | |
* MATCHMEDIA API | |
* info: | |
* http://loftblog.ru/2013/05/22/izuchaem-matchmedia-api-i-object-mediaquerylist/#more-686 | |
* http://dbaron.org/log/20110422-matchMedia | |
* http://dev.w3.org/csswg/cssom-view/#extensions-to-the-window-interface | |
* browser support polyfill: | |
* https://github.com/weblinc/media-match | |
*/ |
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
@font-face { | |
font-family: 'bebas'; | |
src: url('../fonts/firasans-book.eot'); | |
src: url('../fonts/firasans-book.eot?#iefix') format('eot'), | |
url('../fonts/firasans-book.woff') format('woff'), | |
url('../fonts/bebas.ttf') format('truetype'), | |
url('../fonts/firasans-book.svg#svgFirasans-book') format('svg'); | |
font-weight: normal; | |
font-style: normal; | |
} |
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
© - спецсимвол для значка копирайтов | |
« - кавычки красивые | |
- пробел |