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 item, classes = <какие-то переменные>; | |
{ | |
elem: 'icon-container', | |
elemMods: {}, | |
content: { | |
elem: 'icon', | |
tag: 'i', | |
cls: classes[item], | |
elemMods: {expanded: 'no'}, |
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
modules.define('login-form', ['i-bem__dom', 'jquery'], function(provide, BEMDOM, $) { | |
provide(BEMDOM.decl( | |
this.name, | |
{ | |
onSetMod: { | |
'js': { | |
'inited': function() { | |
this.findElem('icon').each(function(item){ | |
console.log($(item).data('authtype')); | |
}); |
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
modules.define('widget-base', ['i-bem__dom'], function(provide, BEMDOM) { | |
provide(BEMDOM.decl( | |
this.name, | |
{ | |
UpdateData: function() { | |
alert('update base'); | |
}, | |
ShowSettings: function() { | |
alert('settings'); |
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
UpdateData: function(newsSourceId) { | |
var items = this._GetNewsFromServer(newsSourceId).map(function(item, index, array) { | |
return { | |
block: 'news', | |
elem: 'link-outer', | |
content: [ | |
{ | |
elem: 'link-number', | |
content: index + 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
//./desktop.blocks/service/_type/service_type_twitter.node.js: | |
modules.define('twitter', function(provide) { | |
var vow = require('vow'), | |
moment = require('moment'), | |
twitter = require('twit'), | |
twitterText = require('twitter-text'), | |
config = require('./service_type_twitter.config'), | |
twit = new twitter(config); |
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
// server.js | |
module.exports = { | |
run: function(portNum) { | |
// Код методов сервера и его запуска | |
}, | |
app: [Object] // Сам сервер (объект) | |
} | |
var gulp = require('gulp'), |
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 : 'page', | |
head : [ | |
{ elem : 'meta', attrs : { name : 'description', content : '' } }, | |
{ elem : 'css', url : '/build/bundle.css' }, | |
], | |
scripts: [{ elem : 'js', url : '/build/bundle.browser.js' }], | |
content: [ | |
{ | |
block: 'main', |
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
/* begin: /home/philip/BEM/sixth-bem/blocks/header/header.bemhtml.js */ | |
block('header')( | |
content()(function () { | |
return | |
[ | |
{ | |
elem: 'header-content', | |
content: [] | |
}, | |
{ |
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('header')( | |
content()(function () { | |
return [ | |
{ | |
elem: 'header-content', | |
content: [] | |
}, | |
{ | |
elem: 'stripe', | |
elemMods: { color: 'light', height: 'thick' } |
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
.login-form { | |
margin-top: 20px; | |
border-radius: 3px; | |
} | |
.login-form__header-tab { | |
display: inline-block; | |
width: 50%; | |
padding: 0.5em 0; | |
border: 1px solid #cfcfcf; | |
} |