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
<!DOCTYPE html> | |
<html lang="ru"> | |
<head> | |
<meta charset="UTF-8" /> | |
<title>Document</title> | |
</head> | |
<body> | |
<style> | |
body { |
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
$(function(){ | |
var elements = document.querySelectorAll('.js-chart'), | |
el = [].slice.call(elements); | |
el.forEach(function (item, i) { | |
var options = { | |
value: item.getAttribute('data-value') || 3, | |
size: item.getAttribute('data-size') || 128, |
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
//- bemto | |
//- Copyright(c) 2012 Roman Komarov <[email protected]> | |
//- MIT Licensed | |
//- Settings | |
- var bemto_settings_prefix = '' | |
- var bemto_settings_element = '__' | |
- var bemto_settings_modifier = '--' | |
- var bemto_settings_default_tag = 'div' |
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
// Локальный сервер | |
gulp.task("serve", function() { | |
server.init({ | |
server: "build" | |
}); | |
gulp.watch("sass/**/*.{scss,sass}", ["style"]); | |
gulp.watch("*.html", ["copyhtml"]); | |
gulp.watch("build/*.html").on("change", server.reload); | |
}); |
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
// Определение: | |
// Функция первого класса – функция принимающая в качестве аргумента другие функции или возвращающая функцию в качестве аргумента. | |
/** | |
* flip преобразовывает другую функцию так, чтобы порядок ее аргументов был обратным | |
* | |
* @param {Function} fn | |
* @returns {Function} | |
*/ |
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
/** | |
* Проверяет, загружены ли все изображения (или изобрание) | |
* | |
* @param {Array.<string> | string} images ссылки на изображения | |
* @returns {Promise.<Event>} | |
* | |
* Пример использования: | |
* | |
* checkImagesLoad(['img/IMG_01.jpg', 'img/IMG_02.jpg', 'img/IMG_03.jpg']) | |
* .then(result => console.log('изрображения загружены')) |
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
// THE QUESTION: How could I display a 404 page and keep the path in case '/games/wrong-id'. | |
// ------------------------------------------------------------------ | |
// ROUTES CONFIG | |
// ------------------------------------------------------------------ | |
import * as auth from './helpers/authenticationHelper'; | |
import React from 'react'; | |
import { | |
Route, | |
IndexRoute |