diff --git a/deck/b01.jpg b/deck/b01.jpg new file mode 100644 index 0000000..86e1109 Binary files /dev/null and b/deck/b01.jpg differ diff --git a/deck/b02.jpg b/deck/b02.jpg new file mode 100644 index 0000000..ec4179a Binary files /dev/null and b/deck/b02.jpg differ diff --git a/deck/b03.jpg b/deck/b03.jpg new file mode 100644 index 0000000..52b8035 Binary files /dev/null and b/deck/b03.jpg differ diff --git a/deck/b04.jpg b/deck/b04.jpg new file mode 100644 index 0000000..367bbdd Binary files /dev/null and b/deck/b04.jpg differ diff --git a/deck/b05.jpg b/deck/b05.jpg new file mode 100644 index 0000000..13a34a0 Binary files /dev/null and b/deck/b05.jpg differ diff --git a/deck/b06.jpg b/deck/b06.jpg new file mode 100644 index 0000000..8f98081 Binary files /dev/null and b/deck/b06.jpg differ diff --git a/deck/b07.jpg b/deck/b07.jpg new file mode 100644 index 0000000..8923173 Binary files /dev/null and b/deck/b07.jpg differ diff --git a/deck/b08.jpg b/deck/b08.jpg new file mode 100644 index 0000000..8a7bcb8 Binary files /dev/null and b/deck/b08.jpg differ diff --git a/deck/b09.jpg b/deck/b09.jpg new file mode 100644 index 0000000..2246732 Binary files /dev/null and b/deck/b09.jpg differ diff --git a/deck/b10.jpg b/deck/b10.jpg new file mode 100644 index 0000000..ede1f11 Binary files /dev/null and b/deck/b10.jpg differ diff --git a/deck/b11.jpg b/deck/b11.jpg new file mode 100644 index 0000000..3f8ebea Binary files /dev/null and b/deck/b11.jpg differ diff --git a/deck/b12.jpg b/deck/b12.jpg new file mode 100644 index 0000000..25f7445 Binary files /dev/null and b/deck/b12.jpg differ diff --git a/deck/b13.jpg b/deck/b13.jpg new file mode 100644 index 0000000..99c8771 Binary files /dev/null and b/deck/b13.jpg differ diff --git a/deck/back1.jpg b/deck/back1.jpg new file mode 100644 index 0000000..e934f0f Binary files /dev/null and b/deck/back1.jpg differ diff --git a/deck/g01.jpg b/deck/g01.jpg new file mode 100644 index 0000000..fd5d602 Binary files /dev/null and b/deck/g01.jpg differ diff --git a/deck/g02.jpg b/deck/g02.jpg new file mode 100644 index 0000000..3a42626 Binary files /dev/null and b/deck/g02.jpg differ diff --git a/deck/g03.jpg b/deck/g03.jpg new file mode 100644 index 0000000..68a8de9 Binary files /dev/null and b/deck/g03.jpg differ diff --git a/deck/g04.jpg b/deck/g04.jpg new file mode 100644 index 0000000..0d302a2 Binary files /dev/null and b/deck/g04.jpg differ diff --git a/deck/g05.jpg b/deck/g05.jpg new file mode 100644 index 0000000..8d19e0a Binary files /dev/null and b/deck/g05.jpg differ diff --git a/deck/g06.jpg b/deck/g06.jpg new file mode 100644 index 0000000..d92ab3d Binary files /dev/null and b/deck/g06.jpg differ diff --git a/deck/g07.jpg b/deck/g07.jpg new file mode 100644 index 0000000..df2d434 Binary files /dev/null and b/deck/g07.jpg differ diff --git a/deck/g08.jpg b/deck/g08.jpg new file mode 100644 index 0000000..d4eaf80 Binary files /dev/null and b/deck/g08.jpg differ diff --git a/deck/g09.jpg b/deck/g09.jpg new file mode 100644 index 0000000..a58cf88 Binary files /dev/null and b/deck/g09.jpg differ diff --git a/deck/g10.jpg b/deck/g10.jpg new file mode 100644 index 0000000..0a43f20 Binary files /dev/null and b/deck/g10.jpg differ diff --git a/deck/g11.jpg b/deck/g11.jpg new file mode 100644 index 0000000..4c86d7a Binary files /dev/null and b/deck/g11.jpg differ diff --git a/deck/g12.jpg b/deck/g12.jpg new file mode 100644 index 0000000..732d3a5 Binary files /dev/null and b/deck/g12.jpg differ diff --git a/deck/g13.jpg b/deck/g13.jpg new file mode 100644 index 0000000..2b72e96 Binary files /dev/null and b/deck/g13.jpg differ diff --git a/deck/mask.png b/deck/mask.png new file mode 100644 index 0000000..c826812 Binary files /dev/null and b/deck/mask.png differ diff --git a/deck/n1.jpg b/deck/n1.jpg new file mode 100644 index 0000000..203ebd0 Binary files /dev/null and b/deck/n1.jpg differ diff --git a/deck/n2.jpg b/deck/n2.jpg new file mode 100644 index 0000000..ef023a7 Binary files /dev/null and b/deck/n2.jpg differ diff --git a/deck/n3.jpg b/deck/n3.jpg new file mode 100644 index 0000000..f721786 Binary files /dev/null and b/deck/n3.jpg differ diff --git a/deck/n4.jpg b/deck/n4.jpg new file mode 100644 index 0000000..473f51d Binary files /dev/null and b/deck/n4.jpg differ diff --git a/deck/r01.jpg b/deck/r01.jpg new file mode 100644 index 0000000..07b73ba Binary files /dev/null and b/deck/r01.jpg differ diff --git a/deck/r02.jpg b/deck/r02.jpg new file mode 100644 index 0000000..d9b0c8f Binary files /dev/null and b/deck/r02.jpg differ diff --git a/deck/r03.jpg b/deck/r03.jpg new file mode 100644 index 0000000..cb576f6 Binary files /dev/null and b/deck/r03.jpg differ diff --git a/deck/r04.jpg b/deck/r04.jpg new file mode 100644 index 0000000..62bcdee Binary files /dev/null and b/deck/r04.jpg differ diff --git a/deck/r05.jpg b/deck/r05.jpg new file mode 100644 index 0000000..88de8a2 Binary files /dev/null and b/deck/r05.jpg differ diff --git a/deck/r06.jpg b/deck/r06.jpg new file mode 100644 index 0000000..f8ca864 Binary files /dev/null and b/deck/r06.jpg differ diff --git a/deck/r07.jpg b/deck/r07.jpg new file mode 100644 index 0000000..21057f8 Binary files /dev/null and b/deck/r07.jpg differ diff --git a/deck/r08.jpg b/deck/r08.jpg new file mode 100644 index 0000000..5aeb6b3 Binary files /dev/null and b/deck/r08.jpg differ diff --git a/deck/r09.jpg b/deck/r09.jpg new file mode 100644 index 0000000..e0b8c7c Binary files /dev/null and b/deck/r09.jpg differ diff --git a/deck/r10.jpg b/deck/r10.jpg new file mode 100644 index 0000000..3dc2fe2 Binary files /dev/null and b/deck/r10.jpg differ diff --git a/deck/r11.jpg b/deck/r11.jpg new file mode 100644 index 0000000..e06feee Binary files /dev/null and b/deck/r11.jpg differ diff --git a/deck/r12.jpg b/deck/r12.jpg new file mode 100644 index 0000000..331c5b9 Binary files /dev/null and b/deck/r12.jpg differ diff --git a/deck/r13.jpg b/deck/r13.jpg new file mode 100644 index 0000000..b3ffa43 Binary files /dev/null and b/deck/r13.jpg differ diff --git a/deck/y01.jpg b/deck/y01.jpg new file mode 100644 index 0000000..ae2bd5d Binary files /dev/null and b/deck/y01.jpg differ diff --git a/deck/y02.jpg b/deck/y02.jpg new file mode 100644 index 0000000..b4cad49 Binary files /dev/null and b/deck/y02.jpg differ diff --git a/deck/y03.jpg b/deck/y03.jpg new file mode 100644 index 0000000..2f00fef Binary files /dev/null and b/deck/y03.jpg differ diff --git a/deck/y04.jpg b/deck/y04.jpg new file mode 100644 index 0000000..8614a09 Binary files /dev/null and b/deck/y04.jpg differ diff --git a/deck/y05.jpg b/deck/y05.jpg new file mode 100644 index 0000000..d91ba97 Binary files /dev/null and b/deck/y05.jpg differ diff --git a/deck/y06.jpg b/deck/y06.jpg new file mode 100644 index 0000000..109680d Binary files /dev/null and b/deck/y06.jpg differ diff --git a/deck/y07.jpg b/deck/y07.jpg new file mode 100644 index 0000000..eba3ce4 Binary files /dev/null and b/deck/y07.jpg differ diff --git a/deck/y08.jpg b/deck/y08.jpg new file mode 100644 index 0000000..cd56f37 Binary files /dev/null and b/deck/y08.jpg differ diff --git a/deck/y09.jpg b/deck/y09.jpg new file mode 100644 index 0000000..60cbeec Binary files /dev/null and b/deck/y09.jpg differ diff --git a/deck/y10.jpg b/deck/y10.jpg new file mode 100644 index 0000000..5641467 Binary files /dev/null and b/deck/y10.jpg differ diff --git a/deck/y11.jpg b/deck/y11.jpg new file mode 100644 index 0000000..8245939 Binary files /dev/null and b/deck/y11.jpg differ diff --git a/deck/y12.jpg b/deck/y12.jpg new file mode 100644 index 0000000..4b1e841 Binary files /dev/null and b/deck/y12.jpg differ diff --git a/deck/y13.jpg b/deck/y13.jpg new file mode 100644 index 0000000..c28035d Binary files /dev/null and b/deck/y13.jpg differ diff --git a/deck/z1.jpg b/deck/z1.jpg new file mode 100644 index 0000000..32dfe59 Binary files /dev/null and b/deck/z1.jpg differ diff --git a/deck/z2.jpg b/deck/z2.jpg new file mode 100644 index 0000000..4f0e2d3 Binary files /dev/null and b/deck/z2.jpg differ diff --git a/deck/z3.jpg b/deck/z3.jpg new file mode 100644 index 0000000..4e5be3a Binary files /dev/null and b/deck/z3.jpg differ diff --git a/deck/z4.jpg b/deck/z4.jpg new file mode 100644 index 0000000..0bddc47 Binary files /dev/null and b/deck/z4.jpg differ diff --git a/templates/home/gplayer.html b/templates/home/gplayer.html index 8be0593..b63cca9 100644 --- a/templates/home/gplayer.html +++ b/templates/home/gplayer.html @@ -48,17 +48,17 @@ window.onload = function() function addResources(loader) { - loader.add("mask", "https://www.denkmair.de/wizard-pixi/deck/mask.png"); - loader.add("back", "https://www.denkmair.de/wizard-pixi/deck/back1.jpg"); + loader.add("mask", "/js-cardgame/deck/mask.png"); + loader.add("back", "/js-cardgame/deck/back1.jpg"); for (let i = 0; i < 14; i++) { ["r", "g", "b", "y"].forEach(function (c) { let name = c + ((i < 10) ? "0" + i : i); - loader.add(name, "https://www.denkmair.de/wizard-pixi/deck/" + name + ".jpg"); + loader.add(name, "/js-cardgame/deck/" + name + ".jpg"); }); } for (let i = 1; i < 5; i++) { - loader.add("z" + i, "https://www.denkmair.de/wizard-pixi/deck/z" + i + ".jpg"); - loader.add("n" + i, "https://www.denkmair.de/wizard-pixi/deck/n" + i + ".jpg"); + loader.add("z" + i, "/js-cardgame/deck/z" + i + ".jpg"); + loader.add("n" + i, "/js-cardgame/deck/n" + i + ".jpg"); } } diff --git a/views/js_cardgame.py b/views/js_cardgame.py index 797458e..4d5d63d 100644 --- a/views/js_cardgame.py +++ b/views/js_cardgame.py @@ -15,6 +15,19 @@ def css(req, resp, file): with open(full_file, encoding='utf-8') as fin: resp.content = fin.read() +@api.route("/js-cardgame/deck/{file}") +def css(req, resp, file): + resp.headers['Content-Type'] = 'image/jpeg' + full_file = os.path.join( + os.path.dirname(__file__), + '..', + 'deck/', + file + ) + with open(full_file, 'rb') as fin: + resp.content = fin.read() + + @api.route("/js-cardgame/js/{file}") def css(req, resp, file): resp.headers['Content-Type'] = 'application/javascript'