Add Stimulus
This commit is contained in:
@ -2,16 +2,9 @@
|
||||
<h1>Welcome to an example of browsing with WebSockets over the Wire</h1>
|
||||
<p>You will be able to experience a simple structure with a registration, a login and a private page.</p>
|
||||
</section>
|
||||
<section>
|
||||
<h2>Laps</h2>
|
||||
<p>
|
||||
<button id="add-lap">Add lap</button>
|
||||
</p>
|
||||
<ul id="laps"></ul>
|
||||
</section>
|
||||
<section>
|
||||
<section data-controller="todo">
|
||||
<h2>TODO</h2>
|
||||
<input type="text" id="task">
|
||||
<button id="add-task">Add task</button>
|
||||
<ul id="todo"></ul>
|
||||
<input type="text" data-todo-target="task">
|
||||
<button data-action="click->todo#addNewTask">Add task</button>
|
||||
<ul id="todo-list"></ul>
|
||||
</section>
|
||||
|
Reference in New Issue
Block a user