using a for loop in js to select all cards

main
mb 2 years ago
parent bb515c1dc0
commit db6e652451

@ -37,7 +37,15 @@
</section>
</body>
<script>
new CircleType(document.getElementById("up")).radius(380);
new CircleType(document.getElementById("down")).dir(-1).radius(380);
// new CircleType(document.getElementById("up")).radius(120);
// new CircleType(document.getElementById("down")).dir(-1).radius(120);
// https://www.w3schools.com/js/js_loop_for.asp
var ups = document.querySelectorAll(".up");
for (let i = 0; i < ups.length; i++) {
new CircleType(ups[i]).radius(160);
}
</script>
</html>
Loading…
Cancel
Save