Forking what is left of ZeroNet and hopefully adding an AT Proto Frontend/Proxy
1<!DOCTYPE html>
2
3<html>
4<head>
5 <title>{title} - ZeroNet</title>
6 <meta charset="utf-8" />
7 <meta http-equiv="content-type" content="text/html; charset=utf-8" />
8 <link rel="stylesheet" href="/uimedia/all.css?rev={rev}" />
9 <link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
10 {meta_tags}
11</head>
12<body style="{body_style}" class="{themeclass}">
13
14<div class="unsupported" id="unsupported">
15 <script nonce="{script_nonce}">document.getElementById('unsupported').style.display = "none"</script>
16 <h3>ZeroNet requires JavaScript support.</h3>If you use NoScript/Tor browser: Click on toolbar icon with the notification and choose "Temp. TRUSTED" for 127.0.0.1.
17</div>
18
19<script nonce="{script_nonce}">
20// If we are inside iframe escape from it
21if (window.self !== window.top) {
22 window.open(window.location.toString().replace(/([&?])wrapper=False/, "$1").replace(/&$/, "").replace(/[&?]wrapper_nonce=[A-Za-z0-9]+/, ""), "_top");
23 window.stop();
24 document.execCommand("Stop", false);
25}
26
27// We are opened as a parent-window
28else if (window.opener && window.opener.location.toString()) {
29 document.write("Opened as child-window, stopping...");
30 window.stop();
31 document.execCommand("Stop", false);
32}
33</script>
34
35<div class="progressbar">
36 <div class="peg"></div>
37</div>
38
39<!-- Fixed button -->
40<div class='fixbutton'>
41 <div class='fixbutton-text'><img width=30 src='/uimedia/img/logo-white.svg'/></div>
42 <div class='fixbutton-burger'>≡</div>
43 <a class='fixbutton-bg' href="{homepage}/"></a>
44</div>
45
46<!-- Notifications -->
47<div class='notifications'>
48 <div class='notification template'><span class='notification-icon'>!</span> <span class='body'>Test notification</span><a class="close" href="#Close">×</a><div style="clear: both"></div></div>
49</div>
50
51<!-- Infopanel -->
52<div class='infopanel-container'>
53 <div class='infopanel'>
54 <span class='closed-num'>8</span>
55 <div class="message">
56 <span class='line line-1'>8 modified files</span><br><span class='line line-2'>content.json, data.json</span>
57 </div>
58 <a href="#Publish" class="button button-submit">Sign & Publish</a>
59 <a href="#Close" class="close">×</a>
60 </div>
61</div>
62
63<!-- Loadingscreen -->
64<div class='loadingscreen'>
65 <a href="/Config" class="loading-config">Config</a>
66 <div class='loading-text console'>
67 </div>
68 <div class="flipper-container">
69 <div class="flipper"> <div class="front"></div><div class="back"></div> </div>
70 </div>
71</div>
72
73
74<!-- Site Iframe -->
75<iframe src='about:blank' id='inner-iframe' sandbox="allow-forms allow-scripts allow-top-navigation allow-popups allow-modals allow-presentation allow-pointer-lock allow-popups-to-escape-sandbox {sandbox_permissions}" allowfullscreen="true" webkitallowfullscreen="true" mozallowfullscreen="true" oallowfullscreen="true" msallowfullscreen="true"></iframe>
76
77<!-- Site info -->
78<script id="script_init" nonce="{script_nonce}">
79iframe_src = "{file_url}{query_string}"
80console.log("Changing url from " + document.getElementById("inner-iframe").src + " to " + iframe_src)
81document.getElementById("inner-iframe").src = document.getElementById("inner-iframe").src // Workaround for Firefox back button bug
82document.getElementById("inner-iframe").src = iframe_src
83address = "{address}"
84wrapper_nonce = "{wrapper_nonce}"
85wrapper_key = "{wrapper_key}"
86ajax_key = "{ajax_key}"
87postmessage_nonce_security = {postmessage_nonce_security}
88file_inner_path = "{file_inner_path}"
89permissions = {permissions}
90show_loadingscreen = {show_loadingscreen}
91server_url = '{server_url}'
92script_nonce = '{script_nonce}'
93
94if (typeof WebSocket === "undefined") {
95 tag = document.createElement('div');
96 tag.innerHTML += "<div class='unsupported'>Your browser does not support <a href='https://caniuse.com/#search=websocket'>WebSocket connections</a>.<br>Please use the latest <a href='http://outdatedbrowser.com'>Chrome or Firefox</a> browser.</div>";
97 document.body.appendChild(tag)
98}
99</script>
100<script type="text/javascript" src="/uimedia/all.js?rev={rev}&lang={lang}" nonce="{script_nonce}"></script>
101<script nonce="{script_nonce}">setTimeout(window.wrapper.onWrapperLoad, 1)</script>
102</body>
103</html>