-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
52 lines (46 loc) · 1.74 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
41
42
43
44
45
46
47
48
49
50
51
52
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Pokedex</title>
<link rel="stylesheet" href="homestyles.css">
</head>
<body class="body" id="body">
<div id="transition"></div>
<h1>Welcome to Pokedex</h1>
<!-- <script src="/script.js"></script> -->
<!-- <div onmouseover="playAnimation()" onmouseout="stopAnimation()"> -->
<!-- </div> -->
<form action="/submit" method="POST" class="form" id="pokemonForm">
<!-- onsubmit="return playAnimation()"> -->
<label>Name: </label>
<input type="text" name="pokemon" class="text-box" required>
<input type="submit" class="btn" required>
</form>
<!-- <script src="https://cdnjs.cloudflare.com/ajax/libs/bodymovin/5.12.2/lottie.min.js"></script> -->
<!-- GOOD -->
<script>
// document.getElementById("pokemonForm").addEventListener("submit", function(event) {
// event.preventDefault(); // Prevent the default form submission
// setTimeout(function() {
// // Continue with the form submission
// document.getElementById("pokemonForm").submit();
// },3000);
// playAnimation();
// res.send("/submit");
// });
// function playAnimation() {
// var animation;
// animation = bodymovin.loadAnimation({
// container: document.getElementById("transition"),
// path: 'animation/transition.json',
// render: 'svg',
// loop: false,
// autoplay: true,
// name: "trans"
// });
// }
</script>
</body>
</html>