/
index.html
40 lines (40 loc) · 1.19 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<!DOCTYPE html>
<html>
<head>
<title>Stimulus with Parcel Example</title>
<meta charset="utf-8" />
</head>
<body>
<div class="container">
<header class="header">
<h1 class="title">
<span>Stimulus With Parcel</span>
</h1>
<span>using fetch API and SWAPI</span>
</header>
<section class="main">
<div data-controller="planet">
<h2>Search in Planets</h2>
<div class="row">
<div class="col-6">
<input
type="text"
name="search"
placeholder="Endor, Tatooine, etc."
data-action="planet#searchInPlanets"
data-target="planet.term"
/>
</div>
<div class="col-6">
<button data-action="planet#searchInPlanets">Search</button>
</div>
</div>
<div class="search-results" data-target="planet.searchResults"></div>
<div class="planet-content" data-target="planet.content"></div>
</div>
</section>
<footer></footer>
</div>
<script src="./assets/scripts/index.js" type="module" async></script>
</body>
</html>