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
#!/bin/bash | |
# Removes old revisions of snaps | |
# CLOSE ALL SNAPS BEFORE RUNNING THIS | |
set -eu | |
LANG=en_US.UTF-8 snap list --all | awk '/disabled/{print $1, $3}' | | |
while read snapname revision; do | |
snap remove "$snapname" --revision="$revision" | |
done |
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
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |
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
/* stylelint-disable */ | |
/* Safari 7.1+ */ | |
::-webkit-full-page-media, _:future, :root .parallax-image-block { | |
background-position: center 0 !important; | |
background-attachment: scroll; | |
background-size: cover; | |
} | |
/* stylelint-enable */ |
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
<div class="blog-banner" style="background-image: url('<?php echo get_stylesheet_directory_uri () ?>/images/bg-news.jpg')"> |
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
$('.search-product a.btn-submit').click(function (e) { | |
e.preventDefault(); | |
var data = $(this).closest('form').serialize(); | |
var url = $(this).attr('href'); | |
url = url + '?products-filters&' + data; | |
window.open(url,"_self") | |
}) | |
$('.section-product form').change(function () { | |
var data = $(this).serialize(); |
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
if( $.trim( $('.services-section .col:nth-child(2)').text() ) == "" ){ | |
$('.services-section .col:nth-child(2)').parent('.text').addClass('single-col'); | |
}; |
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
.gform_ajax_spinner { | |
position: absolute; | |
bottom: 45px; | |
right: 19px; | |
} |
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
// Fix woo scroll to notice | |
add_action( | |
'get_footer', | |
static function () { | |
?> | |
<script> | |
jQuery( function( $ ) { | |
function init() { | |
if ( typeof $.scroll_to_notices === 'function' ) { | |
$.scroll_to_notices = function( $scrollElement ) { |
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
<div class="age-confirm-popup popup mfp-hide" data-url="not-allowed.html"> | |
<div class="inner"> | |
<div class="wrap"> | |
<h2 class="title">Are you over age 21?</h2> | |
<a href="#" class="btn btn-cancel">No</a> | |
<a href="#" class="btn btn-submit">Yes</a> | |
</div> | |
</div> | |
</div> |
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
$('.banners').slick({ | |
adaptiveHeight: false, | |
dots: true, | |
arrows: false, | |
autoplay: true, | |
autoplaySpeed: 6000111, | |
infinite: true, | |
appendDots: $('.banner .text') | |
}).on( 'afterChange', function( event, slick, currentSlide ) { | |
$.each(slick.$dots, (i, el) => { |
NewerOlder