Pure CSS glitched, noisy, analog-y text.
A Pen by Lucas Bebber on CodePen.
Pure CSS glitched, noisy, analog-y text.
A Pen by Lucas Bebber on CodePen.
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
<?php | |
/** | |
* Return a product obj depending on field and value | |
* Authorised fields : term_id, name, slug | |
* @author Franck LEBAS | |
* @param string $field | |
* @param string $value | |
* @return obj, array or string $response | |
*/ | |
function wc_get_product_category($field, $value) { |
<?php | |
/** | |
* Custom PayPal Adaptive Payments args. | |
* | |
* @param array $args | |
* @param WC_Order $order | |
* @return array | |
*/ | |
function wc_adaptive_payment_custom_args( $args, $order ) { | |
$args['receiverList'] = array( |
<div id="wrapper"> | |
<div class="row"> | |
<div class="col12"></div> | |
</div> | |
<div class="row"> | |
<div class="col6"></div> | |
<div class="col6"></div> | |
</div> | |
<div class="row"> | |
<div class="col4"></div> |
function resizeIframe() { | |
if ( $('iframe') ) { | |
var iframe = $('iframe'); | |
iframe.each(function(){ | |
var parent = $(this).parent(); | |
var ratio = $(this).attr('width') / $(this).attr('height'); | |
$(this).attr('width', parent.width()); | |
$(this).attr('height', parent.width()/ratio); | |
}); | |
} |
.vid-player { | |
position: relative; | |
padding-bottom: 56.25%; | |
padding-top: 35px; | |
height: 0; | |
overflow: hidden; | |
} | |
.vid-player iframe { | |
position: absolute; | |
top:0; |
* { | |
box-sizing: border-box; | |
} | |
html, body { | |
margin: 0; | |
} | |
@mixin animation() { | |
transition-duration: 0.5s; |
(function() { | |
var timer = setTimeout(function() { | |
if (window.jQuery) { | |
clearTimeout(timer); | |
// Jquery code goes here | |
} | |
}, 50) | |
})(); |