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
| Function.prototype.default = function() { | |
| var that = this, | |
| defArgs = arguments, | |
| count = arguments.length; | |
| return function() { | |
| var args = Array.prototype.slice.call(arguments); | |
| if (count) { | |
| for (var i=0; i<count; ++i) { | |
| if(typeof args[i] === 'undefined') { |
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
| <div id="wrap"> | |
| <button>Click Me</button> | |
| <button>Click Me</button> | |
| <button>Click Me</button> | |
| <button>Click Me</button> | |
| <button>Click Me</button> | |
| <button>Click Me</button> | |
| </div> |
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
| function fib (i) { | |
| var f = 1, s = 1; | |
| function recur(i, f, s) { | |
| if (!i) { | |
| return 1; | |
| } | |
| return s + recur(--i, s, f+s); | |
| } | |
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
| .content | |
| { | |
| width: 500px; | |
| height: 150px; | |
| background: #ddd; | |
| position: relative; | |
| } | |
| .content div | |
| { |
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
| /* | |
| Суть модуляций состоит в том, | |
| что некоторые заранее | |
| определенные свойства элемента | |
| (цвет, позиционирование и т.д.) | |
| изменяются не резко, | |
| как это обычно бывает | |
| с добавлением класса, | |
| в котором переопределены | |
| текущие свойства элемента, |
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
| body | |
| { | |
| font-size: 24px; | |
| } | |
| .parent | |
| { | |
| position: static; | |
| width: 50%; | |
| } |
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
| /* testtask */ | |
| @font-face { | |
| font-family: 'PT Sans'; | |
| font-style: normal; | |
| font-weight: 400; | |
| src: local('PT Sans'), local('PTSans-Regular'), url(http://themes.googleusercontent.com/static/fonts/ptsans/v4/7YGmE4Ls5b94ct65u07hVQLUuEpTyoUstqEm5AMlJo4.woff) format('woff'); | |
| } | |
| @-webkit-keyframes chooser-label { | |
| from { left: 0 } |
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
| td | |
| { | |
| width: 20px; | |
| height: 20px; | |
| background-color: red; | |
| } | |
| td.selected | |
| { |
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
| .wrapper div | |
| { | |
| float: left; | |
| width: 20px; | |
| height: 20px; | |
| background-color: red; | |
| } | |
| div.asd | |
| { |