-
Notifications
You must be signed in to change notification settings - Fork 0
/
wizard.html
executable file
·118 lines (117 loc) · 2.8 KB
/
wizard.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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
<html>
<head>
<link href="https://fonts.googleapis.com/css?family=Lobster+Two|Open+Sans" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs,cloudflare.com/ajax/libs/normalize/5.0.0/normalize.css">
<style>
header {
text-align: center;
background: url("http://members.madasafish.com/~cj_whitehound/Fanfic/map_of_Hogwarts/artwork/castle_Hogwarts_WB.jpg");
background-size: cover;
/*font-family: "Century Gothic";*/
}
h1 {
font-size: 70px;
font-family: "Lobster Two";
}
img {
margin: 40px 0 0 0;
/*border: 7px solid red;
border-radius: 20px;
background-color: brown;*/
}
a {
color: white;
text-decoration: none;
background-color: #4768a5;
padding: 5px;
border-radius: 5px;
}
ul {
padding: 10px;
font-family: "Open Sans";
}
li {
display: inline ;
padding: 0px 10px 0px 10px;
}
.title {
margin: 0;
}
article {
width: 500px;
padding: 20px;
margin: 0 auto;
font-size: 50px;
}
@media (max-width: 500px) {
.title {
font-size: 36px;
}
li {
display: block;
padding: 7px 0 7px 0;
}
a {
padding: 5px 40% 5px 40%;
}
}
</style>
</head>
<body>
<header>
<h1 class="title">Do You Belong at Hogwarts?</h1>
<img src ="https://s-media-cache-ak0.pinimg.com/originals/7b/1c/76/7b1c766850406c705525cc5e8d870322.jpg" width="300px">
<ul>
<li>
<a href="sortingHat.html">Sorting Hat</a>
</li>
<li>
<a href="patronus.html">Patronus</a>
</li>
<li>
<a href="quidditch.html">Quidditch</a>
</li>
</ul>
</header>
<article>
<input style="width:175px;height:50px;font-size:36px" type="text" placeholder="name" id="name"/>
<button style="width:300px;height:50px;font-size:30px">Open your Letter!</button>
</article>
<div id="article-container" style ="font-size: 36px">
<article>
<!-- <h2>Title</h2> -->
<!-- <p>Lorem ipsum dolor sit amet consectetur adipisicinh elit.</p> -->
</article>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.1/jquery.js"></script>
<script>
//var name = document.getElementById("name")
//var name = $("input").val();
$("button").on("click", function() {
//alert("You're a wizard, Pusheen!");
$("#article-container").append("You're a wizard, " + document.getElementById("name").value + "!");
})
//comments
// function greet(name, age) {
// console.log("Hello " + name + age);
// }
// var name = "Sashank";
// var age = 18;
// greet(name, age);
// function multiplyAndDoSomething(number, action) {
// var newNumber = number * 5;
// action(newNumber);
// }
// var name = "Sashank";
// var printIt = function(input) {
// console.log(input);
// }
// var alertIt = function(input) {
// alert(input);
// }
// multiplyAndDoSomething(10, function(input) {
// console.log(input);
// });
</script>
</body>
</html>