13 lines
725 B
Plaintext
13 lines
725 B
Plaintext
<div id="page-root" data-model="test-page" class="page">
|
|
<h1>Test page</h1>
|
|
<p>{{greeting}}</p>
|
|
<button id="test-btn">Button clicked: {{counter}} times</button>
|
|
|
|
<p>If you have a .rcss file with the same name as the page in the pages directory, it will be loaded at runtime so you can add custom styling to a page, which is why the header is red on this page only.</p>
|
|
|
|
<p>This next section demonstates two things, the custom <code>"healthbar"</code> rml element, and scoped lua with the damage and heal buttons</p>
|
|
|
|
<healthbar id="hp-bar" current="100" max="100"></healthbar>
|
|
<button onclick="TestPage.Damage(event)">Damage</button>
|
|
<button onclick="TestPage.Heal(event)">Heal</button>
|
|
</div> |