-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathindex.html
66 lines (56 loc) · 1.99 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
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
<html>
<head>
<title>Demo Sidebar Service</title>
<link href="css/bootstrap.min.css" rel="stylesheet">
<link id="siteicon" rel="icon" href="./firefox.png"/>
<style>
body {
padding-top: 50px;
}
.starter-template {
padding: 40px 15px;
text-align: center;
}
</style>
<script src="https://code.jquery.com/jquery.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="./manifest.js" type="text/javascript"></script>
<script>
var loc = location.href;
var baseurl = loc.substring(0,loc.lastIndexOf('/'));
function activate(node) {
var manifest = getManifest();
var event = new CustomEvent("ActivateSocialFeature");
node.setAttribute("data-service", JSON.stringify(manifest));
node.dispatchEvent(event);
}
</script>
</head>
<body>
<div class="navbar navbar-inverse navbar-fixed-top" role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#">SocialAPI Sidebar Example</a>
</div>
<div class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li><a href="https://github.com/mixedpuppy/socialapi-sidebar">Github</a></li>
<li><a href="https://developer.mozilla.org/en-US/docs/Social_API">Documentation</a></li>
</ul>
</div><!--/.nav-collapse -->
</div>
</div>
<div class="container">
<div class="starter-template">
<h1>A simple sidebar provider example</h1>
<p class="lead">This website has a simple social sidebar. It doesn't do anything, it is just a template to start from.</p>
<dl><button class="btn" onclick="activate(this)" title="activate the demo provider">Activate >></button></dl>
</div><!-- /.container -->
</body>
</html>