Folge dem Video um zu sehen, wie unsere Website als Web-App auf dem Startbildschirm installiert werden kann.
Anmerkung: Diese Funktion ist in einigen Browsern möglicherweise nicht verfügbar.
function Flieg() {
$('canvas').drawArc({
layer: true,
name: 'myBox' + j,
fillStyle: '#' + Math.floor(Math.random() * 16777215).toString(16),
x: Math.floor(Math.random() * 600) + 100,
y: 400,
radius: 40,
click: function (layer) {
layer.fillStyle = 'blue';
}
});
$('canvas').animateLayer('myBox' + j, {
y: -80
}, {
duration: 4000,
easing: 'linear',
step: function (now, fx, layer) {
// do something for each step of the animation
},
complete: function (layer) {
console.log("complete", layer.fillStyle);
if (layer.fillStyle == 'blue') console.log("clicked");
}
});
console.log($('canvas').getLayer('myBox' + j).fillStyle);
j++;
}