top of page
CODE
import wixLocation from 'wix-location';
var clickCounter
$w.onReady(function () {
clickCounter = 0
});
export function button1_click(event) {
clickCounter=clickCounter+1
if (clickCounter>0) {$w('#vector1').show()}
if (clickCounter>1) {$w('#vector2').show()}
if (clickCounter>2) {$w('#vector3').show()}
if (clickCounter>3) {hide_allSTARS(), wixLocation.to("https://www.google.de")}
$w("#TXT").text = clickCounter.toString()
}
function hide_allSTARS (parameter) {$w('#vector1').hide()}
bottom of page