/
adoptpage.html
76 lines (65 loc) · 2.34 KB
/
adoptpage.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<link rel="stylesheet" type="text/css" href="adoptpage.css">
<!--<script> src="index.js" </script>-->
<!-- Font: Baloo 2 -->
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Baloo+2:wght@600&display=swap" rel="stylesheet">
<title>PawsTogether</title>
</head>
<body>
<!-- Top Right Buttons -->
<a class="topright" href="createanaccount.html"><u>Create Account</u></a>
<span class="topright"> or </span>
<a class="topright" href="signin.html"><u>Sign In</u></a>
<div align="left">
<a href="index.html">
<img src = "images/logo_pawstogether.png" width = "700">
</a>
</div>
<!-- Navigation Bar -->
<div align = "center">
<ul class = "topnav">
<!-- Home and Adopt a Dog -->
<li><a href="index.html">Home</a></li>
<li><a class="active" href="adoptpage.html">Adopt a Dog</a></li>
<li><a href="visitadog.html">Visit a Dog</a></li>
<!-- Visit a Dog uses Javascript -->
<!--
<script>
var currentDate = new Date();
var seconds = currentDate.getSeconds();
if ((seconds%2)==0){
document.write("<li><a href=\"hungry.html\">Visit a Dog</a></li>");
}
else{
document.write("<li><a href=\"happy.html\">Visit a Dog</a></li>");
}
</script>
-->
<!-- About -->
<li><a href="aboutpage.html">About</a></li>
</ul>
</div>
<div class = "adopt1"> <h1 align = "center"><b>Adopt a Dog</b></h1> </div>
<div align = "center" class ="adopt">
<img class = "circle" src = "images/happy_dog.png" width = "250">
</div>
<script>
function redirectToHungry(){
var dogName = document.getElementById("dogName").value;
var message = "Now visiting " + dogName + ", your dog.";
alert(message);
location.href = "hungry.html";
}
</script>
<div align = "center" class = "buttons">
<label for="link">Dog's name:</label>
<input type="text" id="dogName" name="dogName">
<button class = "pinkbutton" type="submit"
onClick="redirectToHungry()">Enter</button>
</div>
</body>
</html>