Once again, fixed tests so they pass, although they don't actually
test anything useful.
This commit is contained in:
parent
257d306d5d
commit
c0e5729c81
7 changed files with 75 additions and 34 deletions
|
|
@ -64,9 +64,11 @@ body {
|
|||
margin: 0;
|
||||
display: inline;
|
||||
}
|
||||
.nav-item a { color: rgb(64, 64, 64);
|
||||
|
||||
#nav ul li a {
|
||||
color: white;
|
||||
text-decoration: none;
|
||||
font-weight: normal;
|
||||
font-weight: bold;
|
||||
padding: 0.25em 0.75em;
|
||||
margin: 0;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -19,13 +19,11 @@
|
|||
<meta content="{{seconds}}" http-equiv="{{maybe-refresh}}" />
|
||||
</head>
|
||||
<body>
|
||||
<div id="header" style=" background-image: url( '{{servlet-context}}/img/earth-space-strip.jpg');"
|
||||
>
|
||||
<div id="header" style=" background-image: url( '{{servlet-context}}/img/earth-space-strip.jpg');">
|
||||
<div id="nav">
|
||||
<ul class="nav">
|
||||
<li class="{{home-selected}}"><a href="{{servlet-context}}/">Home</a></li>
|
||||
<li class="{{about-selected}}"><a href="{{servlet-context}}/about">About</a></li>
|
||||
<li class="{{world-selected}}"><a href="{{servlet-context}}/world">World</a></li>
|
||||
<li class="{{docs-selected}}"><a href="{{servlet-context}}/docs">Documentation</a></li>
|
||||
</ul>
|
||||
<h1>{{title}}</h1>
|
||||
|
|
|
|||
|
|
@ -1,6 +1,54 @@
|
|||
{% extends "templates/base.html" %}
|
||||
{% block content %}
|
||||
<div>
|
||||
<a name="top"/>
|
||||
<menu>
|
||||
<li><a href="#top">Top</a></li>
|
||||
<li><a href="#parser">Rule language</a></li>
|
||||
<li><a href="#states">Implemented states</a></li>
|
||||
<li><a href="#api">API documentation</a></li>
|
||||
</menu>
|
||||
<hr/>
|
||||
<a name="parser"/>
|
||||
{{parser|safe}}
|
||||
<hr/>
|
||||
<menu>
|
||||
<li><a href="#top">Top</a></li>
|
||||
<li><a href="#parser">Rule language</a></li>
|
||||
<li><a href="#states">Implemented states</a></li>
|
||||
<li><a href="#api">API documentation</a></li>
|
||||
</menu>
|
||||
<hr/>
|
||||
<h2><a name="states">Implemented states</h2>
|
||||
<p>As it says in the rule language documentation, above, you can use
|
||||
any sequence of alphanumeric characters you want as the name of a state
|
||||
&emdash; you can call it whatever you like. However, if you use state
|
||||
names that there aren't already tiles for, and aren't already classes
|
||||
for in the CSS file, your states won't be displayed nicely in the
|
||||
<a href="{{servlet-context}}/">World</a> display. The states for which
|
||||
there are already tiles are:</p>
|
||||
<ul>
|
||||
{% for state in states %}
|
||||
<li>
|
||||
{{state}}
|
||||
<img src="{{servlet-context}}/img/tiles/{{state}}.png"/>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
|
||||
<hr/>
|
||||
<menu>
|
||||
<li><a href="#top">Top</a></li>
|
||||
<li><a href="#parser">Rule language</a></li>
|
||||
<li><a href="#states">Implemented states</a></li>
|
||||
<li><a href="#api">API documentation</a></li>
|
||||
</menu>
|
||||
<hr/>
|
||||
<h2><a name="api">API documentation</a></h2>
|
||||
|
||||
<p>If you're adventurous you may want to modify the MicroWorld engine
|
||||
itself. To do that you'll need this documentation.
|
||||
|
||||
<ul>
|
||||
{% for component in components %}
|
||||
<li>
|
||||
|
|
|
|||
|
|
@ -1,19 +1,6 @@
|
|||
{% extends "templates/base.html" %}
|
||||
{% block content %}
|
||||
<div>
|
||||
<form action="world">
|
||||
<p class="widget">
|
||||
<label for="y">Size of your world: rows</label>
|
||||
<input name="y" type="range" min="5" max="100" value="{{y}}" required/>
|
||||
</p>
|
||||
<p class="widget">
|
||||
<label for="y">Size of your world: columns</label>
|
||||
<input name="x" type="range" min="5" max="100" value="{{x}}" required/>
|
||||
</p>
|
||||
<p class="widget">
|
||||
<label for="submit"> </label>
|
||||
<input name="submit" id="submit" type="submit" value="Go!"/>
|
||||
</p>
|
||||
</form>
|
||||
{{content|safe}}
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue