This file contains 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
############### COLOCAR ESSE CÓDIGO NO BLANK ############### | |
$x = array(); | |
if(isset($_POST['id'])) { | |
$sql = "SELECT region, customer_name, sales, product FROM sales WHERE id = ".$_POST['id']; | |
sc_select(rs, $sql); | |
$x['region'] = $rs->fields[0]; | |
$x['customer'] = $rs->fields[1]; | |
$x['sales'] = $rs->fields[2]; | |
$x['product'] = $rs->fields[3]; | |
echo json_encode($x); |
This file contains 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
{ | |
"vars": { | |
"@gray-base": "#000", | |
"@gray-darker": "lighten(@gray-base, 13.5%)", | |
"@gray-dark": "lighten(@gray-base, 20%)", | |
"@gray": "lighten(@gray-base, 33.5%)", | |
"@gray-light": "lighten(@gray-base, 46.7%)", | |
"@gray-lighter": "lighten(@gray-base, 93.5%)", | |
"@brand-primary": "darken(#428bca, 6.5%)", | |
"@brand-success": "#5cb85c", |
This file contains 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 custom_variable_price_html( $price, $product ) { | |
$price = ''; | |
if ( ! $product->min_variation_price || $product->min_variation_price !== $product->max_variation_price ) { | |
$price .= '<span class="from">' . __( 'A partir de' ) . ' </span>'; | |
} | |
$price .= woocommerce_price( $product->get_price() ); | |
return $price; |
This file contains 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
// Script jQuery para esconder um elemento na página quando a rolagem ultrapassar 200px | |
$(window).scroll(function(){ | |
if($(document).scrollTop() > 200){// se a rolagem passar de 200px esconde o elemento | |
$('#elementoAEsconder').hide(); | |
} else { // senão ele volta a ser visivel | |
$('#elementoAEsconder').show(); |