-
Notifications
You must be signed in to change notification settings - Fork 15
/
index.html
204 lines (176 loc) · 9.26 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
---
layout: index
title: Home
permalink: /
---
<title>ZeroNet's Meta Proxy</title>
<body>
<!-- The navbar, the thing that goes on top of the webpage -->
<nav class="navbar navbar-default navbar-custom sticky">
<div class="container">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<a class="navbar-brand" href="" onclick=" return Load('/');">AceZeroProxy</a>
<p style="float: right;margin-top: 23px;">front end by <a class="scoll" style="font-weight: bold;" href="https://twitter.com/gabriicom">@gabriicom</a>, idea and other stuff by <a class="scoll" style="font-weight: bold;" href="https://twitter.com/_AceLewis">@_AceLewis</a></p>
</div>
</div><!-- /.container-fluid -->
</nav>
<!-- Main section of webpage -->
<section class="section-lg home-alt bg-solid-1" id="home">
<div class="container">
<div class="row">
<div class="col-md-8 col-md-offset-2">
<div class="home-wrapper text-center">
<!-- Text box and form used so the user can input the URL
that they want to go to-->
<div class="">
<h1 class="banner">ZeroNet's Meta Proxy</h1>
</div>
<p>Input a ZeroNet url and get taken to a proxy</p>
</div>
<div class="text-center subscribe-form">
<form id="use-proxy-form" class="form" autocomplete="off">
<input type="text" placeholder="" id="proxy-input" value="{{ query }}" autofocus>
<button id="use-proxy-button" type="button">Use a Proxy</button>
</form>
</div>
<!-- Form and text box to allow a user to create a link that
they can share with a friend-->
<div class="home-wrapper text-center">
<br>
<p>Create link meta proxy link to share with others</p>
</div>
<div class="text-center subscribe-form">
<form id="make-link-form" class="form" autocomplete="off">
<input type="text" placeholder="" id="make-input" value="{{ query }}" autofocus>
<button id="make-link-button" type="button">Make Link</button>
</form>
</div>
<!-- A list of popular ZeroNet sites so a user can find a site
to browse without knowing any URLs-->
<div class="home-wrapper text-center">
<br>
<h1 style="margin-bottom: 20px !important" class="banner">Popular ZeroNet sites</h1>
</div>
<br>
<div class="text-center popular-form">
<form id="link-form" class="form" autocomplete="off">
<input type="text" value="ZeroHello - ZeroNet's Homepage" id="make-input" value="{{ query }}" autofocus readonly>
<button type="button" onclick="location.href='/##';">Go</button>
</form>
</div>
<br>
<div class="text-center popular-form">
<form id="link-form" class="form" autocomplete="off">
<input type="text" value="ZeroMe - A decentalised microblogging website" id="make-input" value="{{ query }}" autofocus readonly>
<button type="button" onclick="location.href='/#Me.ZeroNetwork.bit';">Go</button>
</form>
</div>
<br>
<div class="text-center popular-form">
<form id="link-form" class="form" autocomplete="off">
<input type="text" value="Kaffiene Search - A client site search engine for ZeroNet" id="make-input" value="{{ query }}" autofocus readonly>
<button type="button" onclick="location.href='/#kaffiene.bit';">Go</button>
</form>
</div>
<br>
<!-- Some text at the bottom of the page explaing why, how and how you can help -->
<div class="home-wrapper">
<br><br>
<p><b>Why?<br>
Sometimes ZeroNet proxies go down, so if you are linking to a ZeroNet site on social media, for example on your blog, Reddit, Facebook or Twitter that link will stop working when the proxy goes down. By using AceZeroProxy you can make a link that will work 100% of the time so you will not need to update your blog if the ZeroNet proxy you linked to goes down.</p>
<br>
<p><b>How?<br>
This site simply links to ZeroNet proxies for the link given, none of the proxies are not run by me so I reccomend that you only browse using them and don't log in as it is technically possible for the proxy to steal your login details (although that has never happened yet). I will not know the ZeroNet sites you visit however the ZeroNet proxy you use will.</p>
<br>
<p><b>How you can help<br>
There are not that many ZeroNet proxies currently running, you could help out this site and others by running your own ZeroNet proxy and telling me about it via <a style="color: #FFFFFF; font-weight: bold;" href="https://twitter.com/_AceLewis">Twitter</a> or <a style="color: #FFFFFF; font-weight: bold;" href="https://reddit.com/u/_AceLewis">Reddit</a>.</p>
</div>
</div>
</div>
</div>
</section>
<script type="text/javascript">
var host = "{{ host }}";
</script>
<!-- js placed at the end of the document so the pages load faster -->
<!-- Script to take user to a proxy -->
<script type="text/javascript">
var proxybtn = document.getElementById("use-proxy-button")
var our_url = window.location.href.replace(window.location.hash, '');
proxybtn.onclick = function(){
var proxy_input= document.getElementById('proxy-input').value;
var indexs = proxy_input.indexOf(":43110");
if (indexs == -1) {
// Assume no 127.0.0.1
var unique_identifier = proxy_input;
location.href = our_url + '#' + unique_identifier;
window.location.reload()
}
else{
var unique_identifier = proxy_input.substring(indexs+7);
location.href = our_url + '#' + unique_identifier;
window.location.reload()
}
}
</script>
<!-- Script to make the proxy link but NOT go to the link just display it-->
<script type="text/javascript">
var makebtn = document.getElementById("make-link-button")
var our_url = window.location.href.replace(window.location.hash, '');
makebtn.onclick = function(){
var proxy_input= document.getElementById('make-input').value;
var indexs = proxy_input.indexOf(":43110");
if (indexs == -1) {
// Assume no 127.0.0.1
var unique_identifier = proxy_input;
make_url = our_url + '#' + unique_identifier;
document.getElementById('make-input').value = make_url;
}
else{
var unique_identifier = proxy_input.substring(indexs+7);
make_url = our_url + '#' + unique_identifier;
document.getElementById('make-input').value = make_url;
}
}
</script>
<!-- The script to redirect the user to a working proxy -->
<script type="text/javascript">
setInterval(function() {
var hash = window.location.hash.substr(1);
if (hash) {
// Get the proxies from a CSV so I only need to update the CSV when I
//change the proxy list
var proxy_list = [];
{% for proxy_info in site.data.zeronet_proxies %}
proxy_list.push("{{ proxy_info.zeronet_proxy }}");
{% endfor %}
var proxy_to_use = proxy_list[Math.floor(Math.random()*proxy_list.length)];
var redirect_url = proxy_to_use+hash
location.href = redirect_url
}
}, 1000);
</script>
<script src="{{ "/assets/jquery-2.1.4.min.js" | prepend: site.baseurl }}"></script>
<script src="{{ "/assets/css/bootstrap.min.css" | prepend: site.baseurl }}"></script>
<!-- Jquery easing -->
<script type="text/javascript" src="{{ "/assets/jquery.easing.1.3.min.js" | prepend: site.baseurl }}"></script>
<!--sticky header-->
<script type="text/javascript" src="{{ "/assets/jquery.sticky.js" | prepend: site.baseurl }}"></script>
<!--common script for all pages-->
<script src="{{ "/assets/jquery.app.js" | prepend: site.baseurl }}"></script>
<!-- <script src="{{ "/assets/js.cookie.js" | prepend: site.baseurl }}"></script> -->
<script type="text/javascript">
//sticky header on scroll
$(window).load(function () {
$(".sticky").sticky({topSpacing: 0});
});
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-70463146-1', 'auto');
ga('send', 'pageview');
</script>
<script src="{{ "/assets/main.js" | prepend: site.baseurl }}"></script>
</body>