-
Notifications
You must be signed in to change notification settings - Fork 7
Adding a demo to static demoes.html
Håvard Heitlo Holm edited this page Feb 3, 2015
·
2 revisions
###(Currently only valid for havahol_demoStatic branch)
The website found on <your_domain>/trell/static/demoes.html
gives you a user friendly list of demoes which can be launched by just one click. In order to add a new demo, do the following:
Add a new html table row in the file static/demoes.html
as follows:
<tr>
<td class="clickable" onClick="demo_newDemo();"><img src="images/newDemoLogo.png"\></td>
<td class="clickable" onClick="demo_newDemo();">New Demo name</td>
<td class="clickable" onClick="demo_newDemo();">New Demo description</td>
</tr>
where newDemo
should be exchanged by a sensible name for your new demo, of course.
Create the java script function demo_newDemo()
in static/demoes.js
. It should be very simple, and should just call the function addDemoJob
with the correct arguments. For a job with two arguments, it would be:
function demo_newDemo()
{
addDemoJob("executable", '<arg>arg_1</arg><arg>arg_2</arg>');
}
Add a logo or icon to the folder static/images/
to keep the demo page pretty.
Rebuild tinia and you are good to show off with your new demo!