1. Benoît Allard
  2. harvesim

Commits

Benoît Allard  committed 98304bb

Validate the html as HTML5

  • Participants
  • Parent commits 53ee551
  • Branches default

Comments (0)

Files changed (1)

File index.html

View file
  • Ignore whitespace
 <!DOCTYPE html>
 <html> <head>
+<meta charset="utf-8">
 <title>Harvester simulation</title>
 <link rel="stylesheet" type="text/css" href="style.css">
 <script type="text/javascript" src="osm_fields.js" ></script>
  <div id="stack">
   <canvas width="760" height="760" id="harvester"></canvas>
   <canvas width="760" height="760" id="field">
-   <pre>If you can read this, your browser does not support the
-        <canvas> HTML5 element, please try with a more recent one.
-   </pre>
+   <p>
+    If you can read this, your browser does not support the
+    &lt;canvas&gt; HTML5 element, please try with a more recent one.
+   </p>
   </canvas>
+<!-- Commenting until we have real support for it
   <img id="map" alt="Map">
+-->
  </div>
 
  <div>
          id="speed"
          type="number"
          value="1"
-         min=".1"
+         min="0.1"
          max="2"
-         step=".1"
+         step="0.1"
          onchange="sim.harvester.fullworkingspeed=this.value" />
  </div>
  <div>
    <strong>Reset</strong> the simulation. When the simulation is not
    running, one can also execute it step-by-step with the
    <strong>Perform one Step</strong> button.
-   <p>
+  </p>
+  <p class="note">
     The speed of the harvester can also be changed. Beware that higher
     speed decrease the accuracy as it increases the sampling period.
-   </p>
   </p>
 
 
   </p>
   <p>
    The available fields are:
-   <ul>
-    <li>Some precalculated ones, named <i>Example &lt;n&gt;</i></li>
-    <li>some others, extracted from <a
+  </p>
+  <ul>
+   <li>Some precalculated ones, named <i>Example &lt;n&gt;</i></li>
+   <li>some others, extracted from <a
    href="http://osm.org">openstreetmap</a> <a
    href="http://wiki.openstreetmap.org/wiki/Tag:landuse%3Dfarm">data</a>,
    named <i>osm-&lt;way_id&gt;</i></li>
-    <li>complete random ones, regenerated everytime, named <i>Random-&lt;n&gt;points</i></li>
-   </ul>
+   <li>complete random ones, regenerated everytime, named <i>Random-&lt;n&gt;points</i></li>
+  </ul>
+
   <p>
+   And the available pilots are:
   </p>
-   And the available pilots are:
-   <dl>
-    <dt>Simple spiral</dt>
-    <dd>A pilot that follow the left edge of the remaining bit of the
-     field, and progress at its own pace toward the center.</dd>
-    <dt>Enhanced</dt>
-    <dd>A pilot that starts like the simple spiral, and after three
-     <i>laps</i>, having cleared the <i>headlands</i>, it switches to
-     another method: going back and forth along the same edge</dd>
-   </dl>
+  <dl>
+   <dt>Simple spiral</dt>
+   <dd>A pilot that follow the left edge of the remaining bit of the
+    field, and progress at its own pace toward the center.</dd>
+   <dt>Enhanced</dt>
+   <dd>A pilot that starts like the simple spiral, and after three
+    <i>laps</i>, having cleared the <i>headlands</i>, it switches to
+    another method: going back and forth along the same edge</dd>
+  </dl>
+  <p>
    Those pilots have no notion of being <i>done</i>, and, after having
    performed their task, will have a less predictible behavior until
    the <strong>Pause</strong> button is pressed.