-
commit + 5f33082b9863d6e257e771371c417db1a8097aa2 Merge: 25f190f 5fda93c Author: Vladimir Grinenko i@tadatuta.com Date: Fri Mar 20 17:49:02 2015 +0300 Merge pull request #621 from bem/bemhtml-reference-fix fix typo + removed broken links + removed links to Russian talks from en...
-
commit + 5fda93c6e6caeb13397cdf77b149f36dd2b8453f Author: Inna Belaya neige@yandex-team.ru Date: Fri Mar 20 17:37:45 2015 +0300
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
block gallery, mod type accordion{ | |
elem header { | |
elemMods: {d:'d'}, // эта модификация не проходит, но если изменить тег то он меняется | |
content: [ | |
{ | |
elem: 'cover', | |
elemMods: {f:'f'}, // эта проходит | |
content: [ | |
{ | |
tag: 'img' |
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
// доработать BEM.DOM.decl('gallery', { | |
this.lightBoxSettings = this.params.style || { | |
style: { | |
'border-radius': '20px', | |
'border': '2px solid white' | |
} | |
}; |
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 allLikesDelete() { | |
var likeNodes = document.querySelectorAll('.my_like'), | |
length = likeNodes.length, | |
i = 0, | |
timeOut = 600; // ms | |
function likeDelete() { | |
likeNodes[i].parentNode.onclick({}); | |
if(i < length - 1) { |
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
/** | |
* CLI/server | |
* ======== | |
* | |
* Этот файл запускает ENB-сервер из командной строки. | |
*/ | |
var cdir = process.cwd(); | |
var Server = require('enb-magic-platform').runServer; | |
var Vow = require('vow'); |
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
'use strict'; | |
var Template = require('../../template'); | |
exports.API_VER = 2; | |
exports.techMixin = { | |
template: ['block(\'{{bemBlockName}}\')(', ' ', ');'], |
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
nb make examples desktop.examples/share-dropdown/ | |
16:17:58.922 - build started | |
16:17:59.921 - build failed | |
16:17:59.922 - build failed | |
TypeError: Cannot read property 'replace' of undefined | |
at resultTechMethods._preprocessTargetName (/Users/alexbaum/Projects/islands/node_modules/enb/lib/build-flow.js:626:34) | |
at inherit.configureUsages (/Users/alexbaum/Projects/islands/node_modules/enb/lib/build-flow.js:726:18) | |
at /Users/alexbaum/Projects/islands/node_modules/enb/lib/build-flow.js:558:27 | |
at Array.forEach (native) | |
at resultTechMethods.configure (/Users/alexbaum/Projects/islands/node_modules/enb/lib/build-flow.js:557:24) |
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
block('link')( | |
def()(function() { | |
var ctx = this.ctx; | |
typeof ctx.url === 'object' && // url could contain bemjson | |
(ctx.url = this.reapply(ctx.url)); | |
return applyNext(); | |
}), | |
tag()('a'), |
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
var phoneMask = (function() { | |
var block = $('.js-phone-mask'); | |
function init() { | |
block.inputmask("mask", {"mask": "8 (999) 999-9999"}); | |
} | |
return { | |
init: init | |
}; |
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> | |
<head> | |
<meta charset="utf-8"> | |
<title>title is required in html</title> | |
</head> | |
<body> | |
<!-- HTML code for validation, see https://validator.w3.org/nu/#textarea --> |
OlderNewer