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>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta charset="utf-8">
<head>
<style>
body {
font-family: system-ui;
font-size: 16px;
}
.button {
color: white;
padding: 0.5em;
font-size: 16px;
border-radius: 4px;
border: none;
}
.green {
background: green;
}
div.container {
margin: 1em 0;
}
div.tall {
height: 5000px;
}
.close {
width: 40px;
height: 40px;
box-sizing: border-box;
cursor: pointer;
border-radius: 20px;
background: black;
color: white;
font-size: 24px;
line-height: 36px;
text-align: center;
}
</style>
<script>
addEventListener("load", () => {
for (const element of [...document.querySelectorAll("a, button, input, div.close")]) {
for (const type of ["mousedown", "mouseup", "click"]) {
element.addEventListener(type, event => {
const target = event.target;
if (target.events)
target.events.push(event.type);
else
target.events = [event.type];
event.preventDefault();
});
}
}
});
</script>
</head>
<body>
<div class="container"><a class="top" href="https://bugs.webkit.org">Bugzilla</a></div>
<div class="container"><button class="top green button">Sign Up</button></div>
<div class="container"><input class="top" type="text" placeholder="First name"></div>
<div class="container"><input class="top" type="submit" value="Log In"> <input class="top" type="button" value="More Info"></div>
<div onclick="javascript:void()" aria-label="Close" class="top close">x</div>
<div class="tall"></div>
<div class="container"><a class="bottom" href="https://bugs.webkit.org">Bugzilla</a></div>
<div class="container"><button class="bottom green button">Sign Up</button></div>
<div class="container"><input class="bottom" type="text" placeholder="First name"></div>
<div class="container"><input class="bottom" type="submit" value="Log In"> <input class="bottom" type="button" value="More Info"></div>
<div onclick="javascript:void()" aria-label="Close" class="bottom close">x</div>
<div class="tall"></div>
</body>
</html>
|