Start of major refactor
This commit is contained in:
@ -6,6 +6,7 @@
|
||||
console.log it
|
||||
it
|
||||
) .catch err
|
||||
window.fetch-post = fetch-post
|
||||
const $opponent-hand = document.query-selector '#opponent-hand'
|
||||
const $own-hand = document.query-selector '#own-hand'
|
||||
const $view-card = document.query-selector '#view-card'
|
||||
@ -51,7 +52,8 @@
|
||||
const get-play-size = -> $play.get-bounding-client-rect!
|
||||
const gen-array = -> Array.from { length: it }, (_, i) -> i
|
||||
const gen-array-of = (it, val) -> Array.from { length: it }, -> val
|
||||
const cards = await fetch \./cards.json .then (.json!)
|
||||
const cards = await fetch \/cards.json .then (.json!)
|
||||
window.cards = cards
|
||||
const $make-card = ->
|
||||
$img = document.create-element \img
|
||||
$img.src = it
|
||||
|
||||
Reference in New Issue
Block a user