Omnibus commited on
Commit
82adc9e
1 Parent(s): b284476

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -8
app.py CHANGED
@@ -45,13 +45,7 @@ var scoreText;
45
  const game = new Phaser.Game(config);
46
 
47
  document.getElementById('demo').appendChild = game
48
- function addNewElement() {
49
- // creating new element
50
- const newElement = document.createElement('div')
51
- newElement.innerHTML = game
52
- // adding a new element at the end of the body
53
- document.body.appendChild(newElement)
54
- }
55
  function preload ()
56
  {
57
  this.load.image('sky', 'https://huggingface.co/spaces/Omnibus/game-test/resolve/main/assets/sky.png');
@@ -216,8 +210,9 @@ function hitBomb (player, bomb)
216
 
217
  with gr.Blocks() as app:
218
  gr.HTML("""
 
219
  <button type="testButton" onclick="testFn()"> Start </button>
220
- <div id="demo"></div>
221
  """)
222
 
223
  app.load(None,None,None,_js=load_js)
 
45
  const game = new Phaser.Game(config);
46
 
47
  document.getElementById('demo').appendChild = game
48
+
 
 
 
 
 
 
49
  function preload ()
50
  {
51
  this.load.image('sky', 'https://huggingface.co/spaces/Omnibus/game-test/resolve/main/assets/sky.png');
 
210
 
211
  with gr.Blocks() as app:
212
  gr.HTML("""
213
+ <div id="demo">
214
  <button type="testButton" onclick="testFn()"> Start </button>
215
+ </div>
216
  """)
217
 
218
  app.load(None,None,None,_js=load_js)