Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
67 lines (61 loc) · 1.64 KB
/
Copy pathindex.html
File metadata and controls
67 lines (61 loc) · 1.64 KB
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
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<title>Identifiers Widget</title>
<link rel="icon" href="img/favicon.png">
<!-- the library for the webcomponent -->
<script src="dist/bundle.js" type="module"></script>
<style>
/* here's some basic styling for the demo pages. It's included embedded in the
page HTML so that it doesn't accidentally end up inside your component ;) */
body.demo {
font-family: roboto, sans-serif;
display: flex;
flex-direction: column;
height: 100%;
align-items: center;
justify-content: center;
}
#nav {
display: flex;
width: 100%;
height: 10vh;
justify-content: space-around;
align-items: center;
font-size: 20px;
}
#biojs_link {
display: flex;
justify-content: center;
align-items: center;
}
#nav > a {
width: 400px;
text-align: center;
}
#icon {
width: 50px;
height: 50px;
margin-right: 10px;
}
a {
font-size: inherit;
text-decoration: none;
}
</style>
</head>
<body class="demo">
<h1>Identifiers Widget Visualization</h1>
<form id="customId">
<label> Type an ID, in the form of <code>ns:someId</code>
<input type="text" name="id">
<button type="submit">Show me identifiers!</button>
</label>
</form>
<!-- good use case-->
<identifiers-widget id="defaultWidget" allowUrlFromWindow="true" identifier="fb:FBgn0004053" class="IdentifiersWidget"></identifiers-widget>
<!-- error use case - bad identifier, but should handle other errors too.
<identifiers-widget identifier="ASDASDASD" class="IdentifiersWidget"></identifiers-widget> -->
</body>
</html>