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
ol { | |
list-style-type: none; | |
counter-reset: item; | |
margin: 0 0 15px; | |
padding: 0; | |
} | |
ol > li { | |
display: table; | |
counter-increment: item; |
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
$('#card_number').keyup(function(event) { | |
if (this.selectionStart == 1) { | |
if ($(this).val() == '4') { | |
$(this).parent().removeClass('is-mastercard').addClass('is-visa'); | |
} | |
if ($(this).val() == '5') { | |
$(this).parent().removeClass('is-visa').addClass('is-mastercard'); | |
} | |
} |
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
<select name="month" id="month"> | |
<option selected disabled>Month</option> | |
<option value="1">January</option> | |
<option value="2">February</option> | |
<option value="3">March</option> | |
<option value="4">April</option> | |
<option value="5">May</option> | |
<option value="6">June</option> | |
<option value="7">July</option> | |
<option value="8">August</option> |
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
// Add class to Selected form | |
$('select').on('change', function() { | |
if ($(this).val()) { | |
return $(this).addClass('is-selected'); | |
} else { | |
return $(this).removeClass('is-selected'); | |
} | |
}); |
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
// HTML | |
<section> | |
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 100 100" preserveAspectRatio="none" id="skew-top"> | |
<polygon points="0,0 0,100 100,0"/> | |
</svg> | |
... | |
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 100 100" preserveAspectRatio="none" id="skew-bottom"> | |
<polygon points="0,100 100,0 100,100"/> | |
</svg> |
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
h1 { | |
overflow: hidden; | |
&::after, | |
&::before { | |
border-bottom: 4px solid black; | |
content: ''; | |
display: inline-block; | |
height: .1em; | |
position: relative; |
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
filter: drop-shadow(5px 5px 5px #222); |
NewerOlder