foxygit / infodisplay Log in
commits tags

/kiosk/templates/emulator.html · 1.16 KB

raw
<!DOCTYPE html>
<html lang="sv">
<head>
  <meta charset="UTF-8">
  <title>{{ core_label }} — {{ rom_name }}</title>
  <style>
    * { margin: 0; padding: 0; box-sizing: border-box; }
    html, body {
      width: 100%; height: 100%;
      background: #000;
      overflow: hidden;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    #game {
      width: 100%;
      height: 100%;
    }
  </style>
</head>
<body>
  <div id="game"></div>

  <script>
    EJS_player      = '#game';
    EJS_core        = '{{ core }}';
    EJS_gameUrl     = '/api/emulator/rom?path={{ rom_path | urlencode }}';
    EJS_pathtodata  = '{{ ejs_path }}';
    EJS_language    = 'sv-SE';
    EJS_color       = '#8b5cf6';
    EJS_startOnLoaded = true;

    EJS_Buttons = {
      playPause:    true,
      restart:      true,
      mute:         true,
      settings:     true,
      fullscreen:   true,
      saveState:    true,
      loadState:    true,
      screenRecord: false,
      gamepad:      true,
      cheat:        false,
      volume:       true,
      saveSavFiles: true,
    };
  </script>
  <script src="{{ ejs_path }}loader.js"></script>
</body>
</html>