-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathtabs.html
More file actions
24 lines (23 loc) · 829 Bytes
/
tabs.html
File metadata and controls
24 lines (23 loc) · 829 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<!DOCTYPE html>
<html>
<head>
<link rel="canonical" href="https://gun.eco/tabs.html" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="https://gunjs.herokuapp.com/gun.js"></script>
<script src="dep/rsc/analytics.js"></script>
</head>
<body style="white-space: pre;">
loading...
<script>
var key = decodeURIComponent((location.search.match(/key\=(.*?)(\&|$)/i)||[])[1]||'') || alert("Please provide a key in a query parameter, such as `?key=example/tutorial`.");
var gun = Gun('https://gunjs.herokuapp.com/gun');
var ref = gun.get(key);
ref.on(function(data){
data = Gun.obj.copy(data);
delete data._;
$('body').text(JSON.stringify(data,0,2));
});
</script>
</body>
</html>