summaryrefslogtreecommitdiffstats
path: root/devtools/client/webide/content/simulator.xhtml
blob: 3ab9162484788fa06a6f8569fe21ec991aa7ae2c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
<?xml version="1.0" encoding="UTF-8"?>

<!-- This Source Code Form is subject to the terms of the Mozilla Public
   - License, v. 2.0. If a copy of the MPL was not distributed with this
   - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->

<!DOCTYPE html [
  <!ENTITY % webideDTD SYSTEM "chrome://devtools/locale/webide.dtd" >
  %webideDTD;
]>

<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta charset="utf8"/>
    <link rel="stylesheet" href="chrome://webide/skin/deck.css" type="text/css"/>
    <link rel="stylesheet" href="chrome://webide/skin/simulator.css" type="text/css"/>
    <script type="application/javascript;version=1.8" src="chrome://webide/content/simulator.js"></script>
  </head>
  <body>

    <div id="controls">
      <a id="remove" class="hidden">&simulator_remove;</a>
      <a id="reset">&simulator_reset;</a>
      <a id="close">&deck_close;</a>
    </div>

    <form id="simulator-editor">

      <h1>&simulator_title;</h1>

      <h2>&simulator_software;</h2>

      <ul>
        <li>
          <label>
            <span class="label">&simulator_name;</span>
            <input type="text" name="name"/>
          </label>
        </li>
        <li>
          <label>
            <span class="label">&simulator_version;</span>
            <select name="version"/>
          </label>
        </li>
        <li>
          <label>
            <span class="label">&simulator_profile;</span>
            <select name="profile"/>
          </label>
        </li>
      </ul>

      <h2>&simulator_hardware;</h2>

      <ul>
        <li>
          <label>
            <span class="label">&simulator_device;</span>
            <select name="device"/>
          </label>
        </li>
        <li>
          <label>
            <span class="label">&simulator_screenSize;</span>
            <input name="width" data-device="" type="number"/>
            <span>×</span>
            <input name="height" data-device="" type="number"/>
          </label>
        </li>
        <li class="hidden">
          <label>
            <span class="label">&simulator_pixelRatio;</span>
            <input name="pixelRatio" data-device="" type="number" step="0.05"/>
          </label>
        </li>
      </ul>

      <!-- This menu is shown when simulator type is television-->
      <p id="tv_simulator_menu" style="visibility:hidden;">
        <h2>&simulator_tv_data;</h2>

        <ul>
          <li>
            <label>
              <span class="label">&simulator_tv_data_open;</span>
              <button id="open-tv-dummy-directory">
                &simulator_tv_data_open_button;
              </button>
            </label>
          </li>
        </ul>

      </p>

    </form>

  </body>
</html>