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
@keyframes seemore-anim-1 { | |
0% { | |
clip: rect(11px, 300px, 19px, 0) | |
} | |
1.78571% { | |
clip: rect(17px, 300px, 13px, 0) | |
} | |
3.57143% { |
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_action( 'woocommerce_single_product_summary', 'woocommerce_total_product_price', 10 ); | |
function woocommerce_total_product_price() { | |
global $woocommerce, $product; | |
?> | |
<script> | |
jQuery(function($){ | |
var price = <?php echo $product->get_price(); ?>, | |
currency = '<?php echo get_woocommerce_currency_symbol(); ?>'; |
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
addEventListener('DOMContentLoaded', e => { | |
let observer = new MutationObserver((records) => { | |
let reload = false; | |
records.forEach((record) => { | |
if(record.type === 'attributes' && | |
(record.target.matches && | |
record.target.matches('body, #content, #overlay')) && | |
record.attributeName === 'style') { | |
console.log(`style attr changed on |
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
//http://epsiloncool.ru/programmirovanie/preventing-multiple-submits-in-contact-form-7 | |
jQuery(document).on('click', '.wpcf7-submit', function(e){ | |
if( jQuery('.ajax-loader').hasClass('is-active') ) { | |
e.preventDefault(); | |
return false; | |
} | |
}); |
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, body').animate({ | |
scrollTop: $("#elementID").offset().top | |
}, 2000); |
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
sass-convert -F scss -T sass application_styles.css.scss application_styles.css.sass |
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
global $wp_filter; | |
var_export($wp_filter['name of function']); |
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
function cursorPosition(elementID, mouseX, mouseY) { | |
var offset = $('#'+elementID).offset(); | |
var x = mouseX - offset.left; | |
var y = mouseY - offset.top; | |
return {'x': x, 'y': y}; | |
} |
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
{ | |
"always_show_minimap_viewport": true, | |
"bold_folder_labels": true, | |
"color_scheme": "Packages/Material Theme/schemes/Material-Theme.tmTheme", | |
"default_line_ending": "unix", | |
"draw_minimap_border": true, | |
"draw_white_space": "all", | |
"ensure_newline_at_eof_on_save": true, | |
"fallback_encoding": "Cyrillic (Windows 1251)", | |
"folder_exclude_patterns": |