-
Notifications
You must be signed in to change notification settings - Fork 23
/
index_debug.html
executable file
·46 lines (46 loc) · 2.92 KB
/
index_debug.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="description" content="Peer to Peer Web Site hosting at your fingertips! Send full featured HTML (incl. CSS, JS) sites from your browser and attach files eg. videos, images, etc.">
<meta name="keywords" content="webtorrent, peerweb, webrtc, site-webtorrents, javascript, decentralized, peer-to-peer, p2p, dweb, dapp, realtime, ipfs, ipfs-web, js-ipfs, distributed, immutable">
<meta name="author" content="Weedshaker">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
<!-- https://www.muicss.com/docs/v1/css-js/buttons -->
<link rel="stylesheet" type="text/css" href="css/mui.css">
<link rel="stylesheet" type="text/css" href="css/style.css">
<!--
TODO: Use Version 2.+ but there are still bugs, like no function .getBlob() on file object
<script type="module">
import WebTorrent from 'https://cdn.jsdelivr.net/npm/webtorrent@*/dist/webtorrent.min.js'
self.WebTorrent = WebTorrent
</script>
-->
<script src="https://cdn.jsdelivr.net/npm/webtorrent@latest/webtorrent.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/ipfs@*/dist/index.min.js"></script>
<link rel="prefetch" href="./jspm_packages/github/twbs/bootstrap@3.3.7/fonts/glyphicons-halflings-regular.eot" as="font" type="font/eot" crossorigin="anonymous">
<link rel="prefetch" href="./jspm_packages/github/twbs/bootstrap@3.3.7/fonts/glyphicons-halflings-regular.svg" as="font" type="font/svg" crossorigin="anonymous">
<link rel="prefetch" href="./jspm_packages/github/twbs/bootstrap@3.3.7/fonts/glyphicons-halflings-regular.ttf" as="font" type="font/ttf" crossorigin="anonymous">
<link rel="prefetch" href="./jspm_packages/github/twbs/bootstrap@3.3.7/fonts/glyphicons-halflings-regular.woff" as="font" type="font/woff" crossorigin="anonymous">
<link rel="prefetch" href="./jspm_packages/github/twbs/bootstrap@3.3.7/fonts/glyphicons-halflings-regular.woff2" as="font" type="font/woff2" crossorigin="anonymous">
<title>Peer Web Site</title>
</head>
<body id='body'>
<!-- chokidar-socket-emitter (must be executed from this path: ./JavaScript/js/)-->
<!-- git push -u origin --all -->
<script type="text/javascript" src="./jspm_packages/system.js"></script>
<script type="text/javascript" src="./config.js"></script>
<script>
//if(location.origin.match(/localhost/)){
System.trace = true;
System.import('capaj/systemjs-hot-reloader').then(function(HotReloader){
new HotReloader.default(`http://${window.location.hostname}:5776`); // chokidar-socket-emitter port
});
//}
System.import('./JavaScript/js/debug.js').then(function(){
System.import('./JavaScript/js/init.js');
});
</script>
</body>
</html>