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
{ | |
"liveSassCompile.settings.forceBaseDirectory": "", | |
"liveSassCompile.settings.formats": [ | |
{ | |
"format": "compressed", | |
"extensionName": ".min.css", | |
"savePath": "~/../css/" | |
} | |
] | |
} |
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
<div id="player" data-video-id="ZZ5LpwO-An4"></div> | |
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script> | |
<script type="text/javascript"> | |
var tag = document.createElement('script'); | |
var firstScriptTag = document.getElementsByTagName('script')[0]; | |
// O container do video | |
var playerDiv = $('#player'); |
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
const clampedPaginatedIndex = computed(() => { | |
const page = parseInt(response.products?.page ?? 1); | |
const lastPage = response.products?.last_page ?? 1; | |
const clampRange = Math.min(5, lastPage); | |
const offset = Math.max(0, Math.min(page - Math.ceil(clampRange / 2), lastPage - clampRange)); | |
return Array.from({ length: clampRange }, (_, index) => offset + index + 1); | |
}); |
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
//API e Código de integração | |
<script type="text/javascript" src="https://d335luupugsy2.cloudfront.net/js/integration/stable/rd-js-integration.min.js"></script> | |
//Este código de integração é encontrado nos dados da conta no painel do RD | |
<script type="text/javascript" async src="https://d335luupugsy2.cloudfront.net/js/loader-scripts/5d1f5125-2ff1-41ad-959d-5b2e3f6a2023-loader.js" > | |
jQuery('.wpcf7-form').submit(function(e){//é o form - tem que sar a tag form | |
jQuery('[type="submit"]').attr('disable','disable');//é o botão de envio | |
e.preventDefault(); | |
var postdata=jQuery('.wpcf7-form').serializeArray();//é o form - tem que sar a tag form | |
postdata.push({ |
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
@mixin sizedBox ($width: 10px, $height: $width) { | |
width: $width; | |
height: $height; | |
} | |
@mixin clampLines ($lines: 1) { | |
text-overflow: ellipsis; | |
display: -webkit-box; | |
-webkit-line-clamp: $lines; |
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
const SECONDS_PER_HOUR = 3600; | |
const SECONDS_PER_MINUTE = 60; | |
function toFloor (value) { | |
return Math.floor(value); | |
} | |
function secondsToHours (secs) { | |
const hours = toFloor(secs / SECONDS_PER_HOUR); |
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
const transactions = [ | |
{ | |
date: '2023-03-20', | |
description: 'Restaurante X-Burger', | |
amount: -30 | |
}, | |
{ | |
date: '2023-03-20', | |
description: 'Cinema', |
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
// Faça o calculo do total destes produtos que estão no carrinho | |
const cart = [ | |
{ | |
name: 'Pizza de calebreza', | |
amount: 10, | |
qty: 2, | |
addons: [ | |
{ | |
'name': 'Extra calabreza', |
NewerOlder