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
$("img").on("dragstart", function(event) { event.preventDefault(); }); |
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
<?php if ( have_posts() ) : query_posts('p=1'); | |
while (have_posts()) : the_post(); ?> | |
<?php the_title(); ?> | |
<?php the_content(); ?> | |
<?php the_post_thumbnail(array(100, 100)); ?> | |
<? endwhile; endif; wp_reset_query(); ?> |
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 Gallery = new Object(); | |
window.onload= function() | |
{ | |
Gallery.Images = ['istockphoto_14149033.jpg', 'istockphoto_14232771.jpg', 'istockphoto_14667148.jpg']; | |
Gallery.CurrentIndex = 0; | |
Gallery._loopInterval = setInterval(Gallery.Next, 2500); | |
}; | |
Gallery.Next = 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
<div class="section_header"> | |
<h2><?php | |
$idObj = get_category_by_slug('s_portfolio'); | |
$id = $idObj->term_id; | |
echo get_cat_name($id); | |
?></h2> | |
<div class="s_descr_wrap"> | |
<div class="s_descr"><?php | |
echo category_description($id); | |
?></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
<h3>Адрес:</h3> | |
<p><?php | |
$options = get_option('sample_theme_options'); | |
echo $options['addresstext']; ?></p> | |
</div> | |
<div class="contact_box"> | |
<div class="contacts_icon icon-basic-smartphone"></div> | |
<h3>Телефон:</h3> | |
<p><?php | |
$options = get_option('sample_theme_options'); |
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
http://www.internet-technologies.ru/articles/article_2899.html |
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
https://gist.github.com/anonymous/549087211fbab446b5c24941a235a357#file-bloomberg-article-scroll-indicator-markdown |
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'; | |
// Требует node.js и пакета mkdirp | |
// Пакет mkdirp: https://www.npmjs.com/package/mkdirp#install — установить глобально или прописать установку в package.json, в секции devDependencies | |
// Использование: | |
// - поместить этот файл в корень проекта | |
// - исправить пути к генерируемым папкам и файлам, если блоки проекта лежат не в ./src/blocks/ | |
// - в терминале, будучи в корневой папке проекта, выполнить node createBlock.js [имя блока] [доп. расширения через пробел] | |
const fs = require('fs'); // будем работать с файловой системой |
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'; | |
// Генератор файлов блока | |
// Использование: node createBlock.js [имя блока] [доп. расширения через пробел] | |
const fs = require('fs'); // будем работать с файловой системой | |
const pjson = require('./package.json'); // получим настройки из package.json | |
const dirs = pjson.config.directories; // отдельно имеем объект с директориями (где лежаи папка с блоками) | |
const mkdirp = require('mkdirp'); // зависимость |
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
form action="" class="form"> | |
<input type="radio" class="form__place-type-1" id="place-type-1" name="place-type" /> | |
<input type="radio" class="form__place-type-2" id="place-type-2" name="place-type" checked /> | |
<div class="form__step"> | |
<h2>some step</h2> | |
<p>11111</p> | |
</div> | |
<div class="form__step"> | |
<h2>radiobuttons</h2> | |
<label for="place-type-1">hotels</label> |
OlderNewer