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
| var els = document.querySelectorAll('*'); | |
| var l = els.length; | |
| var maxWidth = window.innerWidth; | |
| console.log('Elements wider than ' + maxWidth); | |
| for(var i = 0 ; i < l; i ++){ | |
| var e = els[i]; | |
| var width =e.offsetWidth; | |
| rect = e.getBoundingClientRect(); | |
| if(rect.width > maxWidth){ |
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
| <?php | |
| /** | |
| *Reduce the strength requirement on the woocommerce password. | |
| * | |
| * Strength Settings | |
| * 3 = Strong (default) | |
| * 2 = Medium | |
| * 1 = Weak | |
| * 0 = Very Weak / Anything | |
| */ |
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
| <?php | |
| /** | |
| * Brazillian states | |
| * Function - Vender Somente para Estados Específicos - WooCommerce | |
| */ | |
| function wc_especifico_estado( $states ) { | |
| $states['BR'] = array( | |
| 'SP' => __( 'São Paulo', 'woocommerce' ), | |
| 'RJ' => __( 'Rio de Janeiro', 'woocommerce' ), | |
| ); |
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 ($) { | |
| $(function(){ | |
| $('#home, #me, #footer').carousel({}); | |
| var $root = $('html, body'); | |
| $('a').click(function() { | |
| var href = $.attr(this, 'href'); | |
| $root.animate({ | |
| scrollTop: $(href).offset().top |