-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexample.html
54 lines (53 loc) · 1.39 KB
/
example.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Input search</title>
<link rel="stylesheet" href="./build/build.css" />
<style>
html {
background-color: rgb(87, 163, 222);
font-family: Helvetica;
font-size: 16px;
line-height: 24px;
padding: 100px;
}
head {
display: block;
}
title {
font-size: 3em;
color: white;
display: block;
margin-bottom: 24px;
}
fieldset {
border: none;
margin: 0;
padding: 0;
}
.themed.magnifier {
border-color: steelblue;
}
.themed.magnifier.focus {
border-color: lightsteelblue;
}
</style>
</head>
<body>
<a href="https://github.com/hkjels/input-search">
<img style="position: absolute; top: 0; right: 0; border: 0;" src="https://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png" alt="Fork me on GitHub" />
</a>
<form action="./">
<fieldset class="container-to-span-width-of">
<input class="themed" type="search" name="query" placeholder="With placeholder support" />
</fieldset>
</form>
<script src="./build/build.js"></script>
<script>
var magnify = require('input-search')
, input = document.querySelector('[name="query"]');
magnify(input);
</script>
</body>
</html>