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
| const queryString = 'm-object'; | |
| const observables = Array.from(document.querySelectorAll(`.${queryString}`)); | |
| const options = { | |
| root: null, | |
| rootMargin: '0px', | |
| threshold: [], | |
| }; | |
| function buildThresholdList(startPoint, numSteps) { |
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
| const queryString = 'm-object'; | |
| const observables = Array.from(document.querySelectorAll(`.${queryString}`)); | |
| const options = { | |
| root: null, | |
| rootMargin: '0px', | |
| threshold: [], | |
| }; | |
| function buildThresholdList(startPoint, numSteps) { |
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
| 1. Стили для веб, адаптив и мобайл будут полностью независимыми. | |
| 2. Некоторые компоненты будут "общими" (common). Они будут одинаковыми во всех версиях. | |
| 3. Глобальные компоненты нельзя будет переопределять, то есть вносить небольшие отличия в разных версиях. | |
| 4. Победила раскладка suffix.txt |
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 activateVkWidget = function() { | |
| VK.Widgets.Group("vk_groups", { | |
| mode: 0, | |
| width: "auto", | |
| height: "247", | |
| color1: 'FFFFFF', | |
| color2: '2B587A', | |
| color3: '5B7FA6' | |
| }, {{ config('widget_vk') }}); | |
| }; |
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
| &:-ms-input-placeholder { | |
| } | |
| &::-moz-placeholder { | |
| } | |
| &::-webkit-input-placeholder { | |
| } | |
| &.placeholder { |
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
| Array.prototype.slice.call(arguments, 0).join("\n"); | |
| // Array.prototype.slice.call – уловка для превращения объекта, похожего на массив, | |
| // такого как arguments, в настоящий массив, чтобы мы могли применить к нему join |
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 daysInMonth(month,year) { | |
| return new Date(year, month, 0).getDate(); | |
| } | |
| //July | |
| daysInMonth(7,2009); //31 | |
| //February | |
| daysInMonth(2,2009); //28 | |
| daysInMonth(2,2008); //29 |
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
| s >= 90 ? "A" : s >= 80 ? "B" : s >= 70 ? "C" : s >= 60 ? "D" : "F" |
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
| [].constructor === Array | |
| // http://stackoverflow.com/questions/767486/how-do-you-check-if-a-variable-is-an-array-in-javascript |
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
| // Синхронное подсвечивание одинковых ссылок при наведении hover | |
| // (например наводим на подпись - подсвечивается еще и картинка | |
| var addDoubleHovers = (function() { | |
| return $('a[href].js-dh').hover(function() { | |
| var href; | |
| href = $(this).attr('href'); | |
| return $('a[href="' + href + '"]').addClass('js-hover'); | |
| }, function(){ | |
| var href; |