# Anchor
click_link 'Save'
# Button
click_button 'awesome'
# Both above
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
Map<String, double> produtos = new Map(); | |
bool mostrarMenuNaCompra = true; | |
bool mostrarDebug = false; | |
void montarCatalogoDeProdutos() { | |
produtos["Borracha"] = 123.20; | |
produtos["Lápis"] = 0.50; | |
produtos["Caneta"] = 10.10; | |
produtos["Apontador"] = 2.50; | |
} |
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 closure () { | |
// progressively draw each <svg> without .no-draw class | |
Array.prototype.forEach.call(document.querySelectorAll('svg:not(.no-draw)'), function(svg) { | |
// animation duration & delay (default values overriden by data attributes) | |
var animationTimeInSeconds = Number(svg.getAttribute('data-draw-time')) || 2; | |
var animationStartDelay = Number(svg.getAttribute('data-draw-start-delay'))*1000 || 0; | |
// init, hide all svgs | |
var totalFrames = animationTimeInSeconds * 60; |