This file contains hidden or 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
[ | |
{ | |
"provider_name": "23HQ", | |
"provider_url": "http:\/\/www.23hq.com", | |
"endpoints": [ | |
{ | |
"schemes": [ | |
"http:\/\/www.23hq.com\/*\/photo\/*" | |
], | |
"url": "http:\/\/www.23hq.com\/23\/oembed" |
This file contains hidden or 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> | |
<div class="cc-selector"> | |
<input id="visa" type="radio" name="credit-card" value="visa" /> | |
<label class="drinkcard-cc visa" for="visa"></label> | |
<input id="mastercard" type="radio" name="credit-card" value="mastercard" /> | |
<label class="drinkcard-cc mastercard"for="mastercard"></label> | |
</div> | |
</form> |
This file contains hidden or 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
/** | |
* Implements hook_views_ajax_data_alter() | |
*/ | |
function mymodule_views_ajax_data_alter(&$commands, $view) { | |
// Do not scroll when using views_load_more module | |
if ($view->query->pager->definition['handler'] == 'views_plugin_pager_load_more') { | |
foreach($commands as $k => $command) { | |
if ($command['command'] == 'viewsScrollTop') { | |
// Remove viewsScrollTop command | |
unset($commands[$k]); |
This file contains hidden or 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
RewriteCond %{HTTP_USER_AGENT} wget [NC] | |
RewriteRule .* - [F] |
This file contains hidden or 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
RewriteCond %{HTTP_HOST} . | |
RewriteCond %{HTTP_HOST} www.site.com [NC] | |
RewriteRule (.*) http://site.com/$1 [R=301,L] | |
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /([^/]+/)*index\.(htm(l)?|php)\ HTTP/ | |
RewriteRule ^(([^/]+/)*)index\.(htm(l)?|php)$ http://site\.com/$1 [R=301,L] |
This file contains hidden or 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
$('.city-input').keyup(function() { | |
filter(this); | |
}); | |
function filter(element) { | |
var value = $(element).val().toLowerCase(); | |
$('[data-filter]').each(function() { | |
var $this = $(this), | |
lower = $this.data('filter').toLowerCase(); | |
if (lower.indexOf(value) > -1) { |
This file contains hidden or 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
HTML: | |
<div class="wrapper"> | |
<div class="tabs"> | |
<span class="tab">Вкладка 1</span> | |
<span class="tab">Вкладка 2</span> | |
<span class="tab">Вкладка 3</span> | |
</div> | |
<div class="tab_content"> | |
<div class="tab_item">Содержимое 1</div> | |
<div class="tab_item">Содержимое 2</div> |