Skip to content

Instantly share code, notes, and snippets.

View alexbaumgertner's full-sized avatar
💻
Digital Nomad

Alex Baumgertner alexbaumgertner

💻
Digital Nomad
View GitHub Profile
block vcard {
tag: 'span'
this.elem {
tag: 'span'
cls: this.ctx.elem == 'fn' ? this.ctx.elem + ' org' : this.ctx.elem
}
}
@alexbaumgertner
alexbaumgertner / dabblet.css
Created October 24, 2013 09:57
:after – галочка
body {
font: 0.8em Arial, Helvetica, sans-serif;
color: #000;
}
.popup {
position: absolute;
z-index: 32700;
padding: 1px;
[
{ thumb: 'name_of_thumb_photo'},
{ main: 'name_of_main_photo' },
{ extra: ['photo_1', 'photo_2', 'photo_3'] },
{ colors: [
{
green: ['photo_1', 'photo_2', 'photo_3'],
gray: ['photo_1', 'photo_2', 'photo_3'],
another_color: ['photo_1', 'photo_2', 'photo_3']
}
@alexbaumgertner
alexbaumgertner / index-promo-carousel.bemhtml
Created September 17, 2013 09:25
Блок промо-карусели
@alexbaumgertner
alexbaumgertner / i-promo-carousel.js
Created September 17, 2013 09:24
Промо-карусель
@alexbaumgertner
alexbaumgertner / index.bemjson.js
Created September 17, 2013 09:22
Главная страница http://hunterboat.ru/
({
block: 'b-page',
mods: { page: 'index' },
title: 'Title of the page',
favicon: '/favicon.ico',
head: [
{ elem: 'css', url: '_index.css', ie: false },
{ elem: 'css', url: '_index', ie: true },
{ block: 'i-jquery', elem: 'core'},
{ elem: 'js', url: '_index.js' }
@alexbaumgertner
alexbaumgertner / index.twig
Created August 12, 2013 07:59
цикл для отрисовки главной в адмике
{% for menuItem in data %}
<tr class="site-sections-table__tr">
{# Контрол порядка #}
<td class="site-sections-table__td site-sections-table__td_section_order">
<div class="order-control"></div>
</td>
@alexbaumgertner
alexbaumgertner / testpage.bemjson.js
Created July 18, 2013 15:30
Вопрос по i-bem
({
block: 'b-page',
title: 'testpage',
head: [
{ elem: 'css', url: '_testpage.css', ie: false},
{ elem: 'css', url: '_testpage', ie: true },
{ block: 'i-jquery', elem: 'core'},
{ elem: 'js', url: '_testpage.js'},
],
content: [
/** @requires BEM */
/** @requires BEM.DOM */
(function(undefined) {
BEM.DOM.decl({ block: 'authorization', modName: 'state', modVal: 'recovery'}, {
onSetMod : {
'js' : function() {
/** @requires BEM */
/** @requires BEM.DOM */
(function(undefined) {
BEM.DOM.decl({ block: 'authorization', modName: 'state', modVal: 'initial'}, {
onSetMod : {
'js' : function() {