The SSH host key has changed on 8 April, 2022 to this one: SHA256:573uTBSeh74kvOo0HJXi5ijdzRm8me27suzNEDlGyrQ

Add draw functionality

sqla-i18n-post
Gergely Polonkai 8 years ago
parent 009491c52f
commit b491f8ceed
  1. 14
      index.html

@ -60,6 +60,8 @@
<option value="pisces">Halak / Pisces</option>
</select>
<button id="draw">Húzz egyet / Draw one</button>
<hr>
<div id="holder">
@ -515,6 +517,18 @@
$(window).resize(function () {
resize_holder();
});
$('#draw').click(function () {
count = $('div.card').length;
draw_num = Math.floor(Math.random() * count) + 1;
num_str = (draw_num < 10) ? '0' + draw_num : draw_num;
draw_id = '#card_' + num_str;
console.log(draw_id);
$(draw_id).click();
});
</script>
</body>
</html>

Loading…
Cancel
Save