-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
40 lines (40 loc) · 1.36 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
<!DOCTYPEhtml>
<html>
<head>
<title>Prealge CSS Example</title>
<link rel="stylesheet" href="style.css" crossorigin="anonymous">
</head>
<body>
<center>
<h1>Prealge CSS</h1>
<br>
<button onclick="getCode()" class="btn-primary">Click here to get a link to the css.</button>
<br><br>
<h4 style="color: lightgray">Click a button to get its HTML code</h4>
<br>
<button onclick="primarybtn()" class="btn-primary">Primary</button>
<button onclick="dangerbtn()" class="btn-danger">Danger</button>
<button onclick="continuebtn()" class="btn-continue"><span>Continue</span></button>
<br><br><br>
<button onclick="primaryinp()" class="btn-primary">Get input code</button>
<input class="inp-primary" placeholder="Primary Input">
</center>
</body>
<script>
function primarybtn() {
alert("<button class='btn-primary'>Primary</button>");
}
function dangerbtn() {
alert("<button class='btn-danger'>Danger</button>");
}
function continuebtn() {
alert("<button class='btn-continue'><span>Continue</span></button>");
}
function getCode() {
alert("Copy and past this code into the head of your website: <link rel='stylesheet' href='https://prealge.github.io/css/style.css' crossorigin='anonymous'>");
}
function primaryinp() {
alert("<input class='inp-primary'>");
}
</script>
</html>