-
-
Notifications
You must be signed in to change notification settings - Fork 29
/
vpn.html
595 lines (578 loc) · 25.6 KB
/
vpn.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
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
<!DOCTYPE HTML>
<html lang="en" prefix="og: https://ogp.me/ns#">
<head>
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
<link rel="icon" type="image/png" href="/favicon.ico">
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
<link rel="manifest" href="/site.webmanifest">
<meta name="msapplication-TileColor" content="#000000">
<meta name="theme-color" content="#000">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta charset="UTF-8">
<meta property="og:image" content="/assets/preview/vpn.png"/>
<meta property="og:type" content="website" />
<meta property="og:url" content="https://techlore.tech/vpnchart.html"/>
<meta property="og:title" content="Techlore VPN Toolkit" />
<meta property="og:description" content="Transparent, open source VPN tools for your privacy & security."/>
<link rel="stylesheet" href="assets/css/style.css?t=129" type="text/css">
<link rel="stylesheet" href="assets/css/tabulator.min.css" type="text/css">
<link rel="stylesheet" href="assets/css/vpn.css" type="text/css">
<title> Techlore | VPN Toolkit: Open-Source Comparison Chart</title>
<meta name="title" content="Techlore VPN Toolkit">
<meta name="description"
content="Transparent, open source VPN tools for your privacy & security."/>
<meta itemprop="name" content=" Techlore | VPN Toolkit: Open-Source Comparison Chart ">
<meta itemprop="description"
content="Transparent, open source VPN tools for your privacy & security.">
<meta itemprop="image" content="./assets/svg/logo_v2.svg">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="Techlore VPN Toolkit">
<meta name="twitter:description"
content="Transparent, open source VPN tools for your privacy & security.">
<meta name="twitter:image" content="./assets/svg/logo_v2.svg">
<base target="_blank">
<noscript>
<style>
[class*=_aos],
._aos {
opacity: 1 !important;
transform: translate3d(0px, 0px, 0px) !important;
}
</style>
</noscript>
</head>
<body class="page" id="vpn">
<div class="container">
<span class="cmp-btn">Compare</span>
<div class="content">
<div class="head">
</div>
<div class="tb" id="tb">
<table>
</table>
</div>
</div>
</div>
<nav>
<input type="checkbox" id="menu-btn"/>
<label for="menu-btn"><span></span></label>
<ul>
<li><a target="_self" href="./index.html">Home</a></li>
<li><a target="_self" href="./about.html">About</a></li>
<li><a target="_self" href="./videos.html"> Videos </a></li>
<li><a target="_self" href="./goincognito.html">Go Incognito</a></li>
<li><a target="_self" href="https://discuss.techlore.tech/">Forum</a></li>
<li><a target="_self" href="https://blog.techlore.tech"> Blog </a></li>
<li><a target="_self" href="./resources.html">Resources</a></li>
<li><a target="_self" href="./support.html">Support Us</a></li>
<li class="social-cnt">
<div><a href="https://github.com/techlore" target="_blank" rel="me"><img alt="github"
src="assets/svg/github.svg"></a>
</div>
<div><a href="https://www.patreon.com/techlore" target="_blank" rel="me"><img alt="patreon"
src="assets/svg/patreon.svg"></a>
</div>
<div><a href="https://social.lol/@techlore" target="_blank" rel="me"><img alt="mastodon"
src="assets/svg/mastodon.svg"></a>
</div>
<div><a href="https://discuss.techlore.tech/t/signal-usernames-are-here-join-our-signal-group-techlore/7640" target="_blank" rel="me"><img alt="signal"
src="assets/logos/signal.svg"></a>
</div>
<div><a href="./rss.html" target="_self" rel="me"><img alt="RSS"
src="assets/svg/rss.svg"></a>
</div>
</li>
</ul>
</nav>
<svg viewBox="0 0 120 20" class="wavet">
<path class="wave"
d="M 0 0 v 6 C 30 6 30 10 60 10 C 91 10 90 6 120 6 C 150 6 150 10 180 10 C 210 10 210 6 240 6 v -6 h -240 z" />
</svg>
<div class="_pt0 cnt">
<div>
<h1>Techlore VPN Toolkit 🧰</h1>
<h4>Transparent, open source VPN tools for your privacy & security 🔐</h4>
</div>
<div class="row">
<div class="col-4">
<select id="flt-field">
<option></option>
<option value="VPN" selected>VPN</option>
</select></div>
<div class="col-4"><input id="flt-value" class="_mt0" type="text" placeholder="Value to filter"></div>
<div class="col-4">
<button id="flt-clear" class="_brd-less _blue">Clear</button></div>
</div>
<div class="_mb2">
<b><em>Tip: Select up to 3 VPNs to compare them. Resize the chart using the black bar on the right.</b></em>
</div>
</div>
<div id="vpn-table"></div>
<div class="cnt">
<div class="grid card _bg-black-t _m-revert">
<div>
<h1>VPN Toolkit FAQ 🧰</h1>
<h6>VPNs are <u>NOT</u> all-in-one anonymity tools! Our goal is to educate users on the benefits & shortcomings of VPN providers, while bringing transparency to the industry 🤝</h6>
</div>
<div>
<details>
<summary>🙋 <i>Do I need a VPN? What should I look for?</i></summary>
<p>
Depends on your use-case and threat model. We recommend the following resources to help you on your journey:
<ul>
<li>
<a href="https://youtu.be/u-uj_dLXu5s">Techlore: 'The VPN You Use Probably Sucks - Here's Why'</a>
</li>
<li>
<a href="https://www.doineedavpn.com/">'Do I Need a VPN?' Quiz</a>
</li>
<li>
<a href="https://innovation.consumerreports.org/wp-content/uploads/2021/12/VPN-White-Paper.pdf">Consumer Reports' VPN White Paper</a>
</li>
<li>
<a href="https://www.ivpn.net/blog/why-you-dont-need-a-vpn/">IVPN's Why you don't need a VPN</a>
</li>
<li>
<a href="https://www.privacyguides.org/en/vpn/">Privacy Guides' VPN Breakdown</a>
</li>
</ul>
</p>
</details>
<details>
<summary>🙋 <i>How do I use the VPN Toolkit?</i></summary>
<p>However you want! We're not here to tell you which VPN to buy. Our goal is to offer objective data for every VPN so you can make a personal, calculated decision based on your personal requirements.</p>
</details>
<details>
<summary>🙋 <i>What does each column mean?</i></summary>
<p>You can find documentation on what each column means <a href="https://github.com/techlore/website/blob/master/assets/vpn/documentation.md">here.</a></p>
</details>
<details>
<summary>🙋 <i>Where is X VPN? What about missing/incorrect data?</i></summary>
<p>This is an open source project reliant on contributors to keep data updated. <a href="https://github.com/techlore/website/tree/master/assets/vpn">Please contribute to improve it for everyone!</a> You can help fix errors, contribute new data, and add new VPNs to make this the best VPN chart on the web 😀</p>
</details>
<details>
<summary>🙋 <i>Is this open source?</i></summary>
<p><a href="https://github.com/techlore/website/tree/master/assets/vpn"> Yes!</a></p>
</details>
<details>
<summary>🙋 <i>Why do some areas have a question mark?</i></summary>
<p>We aren't able to test every feature of every VPN service ourselves. If you see a '?' and are able to answer it—please <a href="https://github.com/techlore/website/tree/master/assets/vpn">contribute to the chart</a> so that we can turn question marks into real data for everyone else ❤️</p>
</details>
<details>
<summary>🙋 <i>How is the chart sorted?</i></summary>
<p>The chart is loosely sorted from 'best' to 'worst', but this is ultimately personal preference. The VPN at the top of the chart may be perfect for individual A, and terrible for individual B. We encourage users to focus on the data of each service rather than strictly the order.</p>
</details>
<details>
<summary>🙋 <i>Can I get my VPN added to the chart?</i></summary>
<p>Yes, but you'll go through the same process as everyone else. We don't accept sponsorship/affiliate/paid offers to prioritize any service. <a href="https://github.com/techlore/website/tree/master/assets/vpn">If you want to be on the chart - contribute directly to it - it's that simple!</a></p>
</details><br>
<div><i style="background:#000" class="ir">
<img src="./assets/logos/aflink2.svg" alt="affiliated">
</i> Affiliate Link - Some services have a link to their official site, and a separate affiliate link if you choose to support Techlore. View our strict requirements <a href="https://discuss.techlore.tech/pub/sponsors-affiliates"
target="blank" class="URL_link"> here. </a></div><br>
</div>
</div>
</div>
<svg viewBox="0 0 120 20">
<path class="wave"
d="M 0,10 C 30,10 30,15 60,15 90,15 90,10 120,10 150,10 150,15 180,15 210,15 210,10 240,10 v 28 h -240 z" />
</svg>
<footer>
<div class="col-3 _flex-center">
Techlore © <script>document.write(new Date().getFullYear())</script> | <a href="./contact.html" class="footerURL">Contact</a> |<a href="./privacy.html" class="footerURL"> Privacy</a>
<a href="https://www.eff.org/">
<img alt="EFF Member" style="width:44px;height:44px;" src="assets/svg/eff.svg">
</a>
</div></div>
</footer>
<div class="gt-link hide" id="gt-link">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 6">
<path d="M12 6H0l6-6z" /></svg>
</a>
</body>
<script src="assets/javascript/tabulator.min.js" type="text/javascript"></script>
<script src="assets/javascript/script.js" type="text/javascript"></script>
<script>
const linkIcon = '<svg xmlns="http://www.w3.org/2000/svg" width="20px" viewBox="0 0 63.85 61.38"><path fill="#049be0" d="M28.6 38.44a13.11 13.11 0 01-4.86-6.69 12.1 12.1 0 01.74-8.6c.42-.7.4-.72 1.26-1.73 1.3-1.49 3.68-3.8 5.55-5.66l5.84-5.84a7.56 7.56 0 014.05-1.94 16.6 16.6 0 015.92.21 12.44 12.44 0 018.56 8.57c.47 1.73.43 4.5-.08 6.17-.9 2.92-1.17 3.29-7.23 9.4a224.25 224.25 0 01-6.07 5.86c.54-2.63.5-5.45-.56-8.05l3.68-3.49c4.15-3.94 4.42-4.65 4.42-6.9a5.47 5.47 0 00-3.22-5.15 5.8 5.8 0 00-4.98-.01c-.99.48-1.82 1.24-6.1 5.55-5.19 5.25-5.52 5.67-5.9 7.58a5.74 5.74 0 002.26 5.5c.89.67.93.73.92 1.5 0 .46-.16 1.18-.36 1.62-.36.8-2.19 2.82-2.56 2.82-.11 0-.69-.32-1.28-.72z"/><path fill="#0078d2" d="M18.21 55.55a11.61 11.61 0 01-6.22-3.1c-4.01-3.79-4.95-9.32-2.42-14.26.67-1.3 1.16-1.86 6.12-6.85 4.82-4.87 6.94-6.83 7.15-6.62-1.37 3.74-.66 5.63.12 7.95l-3.8 3.83c-4.43 4.46-4.77 4.97-4.78 7.25 0 1.15.08 1.5.57 2.5a5.47 5.47 0 005.16 3.21c2.29 0 2.53-.17 8.29-5.96 3.2-3.21 5.21-5.38 5.54-5.96.66-1.15.84-3.17.4-4.48a6.16 6.16 0 00-2.8-3.25l-1.07-.57.1-.94a5.63 5.63 0 011.73-3.5l.95-1.01c2.03.9 4.02 2.36 5.27 3.96a12 12 0 01.26 14c-.75 1.1-9.2 9.66-10.89 11.02a13.2 13.2 0 01-4.77 2.53c-1.38.35-3.68.47-4.91.25z"/></svg>';
const linkIconAf = '<svg xmlns="http://www.w3.org/2000/svg" width="20px" viewBox="0 0 63.85 61.38"><path d="M21.99 12.7c0 1.85-1.75 3.35-3.9 3.35-2.16 0-3.9-1.5-3.9-3.35s1.74-3.36 3.9-3.36c2.15 0 3.9 1.5 3.9 3.36zM11.2 19.68l.11 12.2 13.41-.12-.02-11.86c-.53-2.29-10.92-2.43-13.5-.22z" paint-order="stroke fill markers"/><path fill="#049be0" d="M28.6 38.44a13.11 13.11 0 01-4.86-6.69 12.1 12.1 0 01.74-8.6c.42-.7.4-.72 1.26-1.73 1.3-1.49 3.68-3.8 5.55-5.66l5.84-5.84a7.56 7.56 0 014.05-1.94 16.6 16.6 0 015.92.21 12.44 12.44 0 018.56 8.57c.47 1.73.43 4.5-.08 6.17-.9 2.92-1.17 3.29-7.23 9.4a224.25 224.25 0 01-6.07 5.86c.54-2.63.5-5.45-.56-8.05l3.68-3.49c4.15-3.94 4.42-4.65 4.42-6.9a5.47 5.47 0 00-3.22-5.15 5.8 5.8 0 00-4.98-.01c-.99.48-1.82 1.24-6.1 5.55-5.19 5.25-5.52 5.67-5.9 7.58a5.74 5.74 0 002.26 5.5c.89.67.93.73.92 1.5 0 .46-.16 1.18-.36 1.62-.36.8-2.19 2.82-2.56 2.82-.11 0-.69-.32-1.28-.72z"/><path fill="#0078d2" d="M18.21 55.55a11.61 11.61 0 01-6.22-3.1 11.75 11.75 0 01-2.42-14.26c.67-1.3 1.16-1.86 6.12-6.85 4.82-4.87 6.94-6.83 7.15-6.62-1.37 3.74-.66 5.63.12 7.95l-3.8 3.83c-4.43 4.46-4.77 4.97-4.78 7.25 0 1.15.08 1.5.57 2.5a5.47 5.47 0 005.16 3.21c2.29 0 2.53-.17 8.29-5.96 3.2-3.21 5.21-5.38 5.54-5.96.66-1.15.84-3.17.4-4.48a6.16 6.16 0 00-2.8-3.25l-1.07-.57.1-.94a5.63 5.63 0 011.73-3.5l.95-1.01c2.03.9 4.02 2.36 5.27 3.96a12 12 0 01.26 14c-.75 1.1-9.2 9.66-10.89 11.02a13.2 13.2 0 01-4.77 2.53c-1.38.35-3.68.47-4.91.25z"/><path d="M48.65 31.54c0 1.85-1.75 3.35-3.9 3.35-2.16 0-3.9-1.5-3.9-3.35s1.74-3.35 3.9-3.35c2.15 0 3.9 1.5 3.9 3.35zm-10.77 6.98l.1 12.2 13.41-.12-.02-11.86c-.53-2.29-10.92-2.43-13.5-.22z" paint-order="stroke fill markers"/></svg>';
function getCheckValue(cellValue) {
if (cellValue === "No")
return '<svg xmlns="http://www.w3.org/2000/svg" class="icon-t" width="24" height="24" fill="none" stroke="#CE1515" stroke-linecap="round" stroke-linejoin="round" stroke-width="2.3"><path stroke="none" d="M0 0h24v24H0z"/><path d="M18 6 6 18M6 6l12 12"/></svg>';
else if (cellValue === "Yes")
return '<svg xmlns="http://www.w3.org/2000/svg" class="icon-t" width="24" height="24" fill="none" stroke="#2DC214" stroke-linecap="round" stroke-linejoin="round" stroke-width="2.3"><path stroke="none" d="M0 0h24v24H0z"/><path d="m5 12 5 5L20 7"/></svg>';
else if (cellValue === "??")
return '<svg xmlns="http://www.w3.org/2000/svg" class="icon-t" width="24" height="24" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2.3"><path stroke="none" d="M0 0h24v24H0z"/><path d="M8 8a3.5 3 0 0 1 3.5-3h1A3.5 3 0 0 1 16 8a3 3 0 0 1-2 3 3 4 0 0 0-2 4M12 19v.01"/></svg>';
else
return cellValue;
}
Tabulator.extendModule("format", "formatters", {
name:function(cell, formatterParams){
if(cell.getValue() == "None")
return "None";
var r =cell.getRow().getData();
var s="";
if(r["VPN Affiliate Link"]!= "None") s= " <a href='" + r["VPN Affiliate Link"] + "' target='_blank'>"+linkIconAf+"</a>";
return cell.getValue() + " <a href='" + r["VPN Standard Link"] + "' target='_blank'>"+linkIcon+"</a>"+s;
},
link2:function(cell, formatterParams){
if(cell.getValue() == "None")
return "None";
return "<a href='" + cell.getValue() + "' target='_blank'>" + cell.getValue() + "</a>";
},
check:function(cell, formatterParams){
return getCheckValue(cell.getValue())
},
history:function(cell, formatterParams){
if(cell.getValue() == "None")
return "None";
var h=cell.getRow().getData();
var i="";
return " <a href='" + h["History"] + "' target='_blank'>"+linkIcon+"</a>"+i;
}
});
$("#info-afl").html(linkIconAf);
$("#info-nafl").html(linkIcon);
function CSVToJSON(csvData) {
var data = CSVToArray(csvData);
var objData = [];
for (var i = 1; i < data.length; i++) {
objData[i - 1] = {};
for (var k = 0; k < data[0].length && k < data[i].length; k++) {
var key = data[0][k];
objData[i - 1][key] = data[i][k]
}
}
var jsonData = JSON.stringify(objData);
jsonData = jsonData.replace(/},/g, "},\r\n");
return jsonData;
}
function CSVToArray(csvData, delimiter) {
delimiter = (delimiter || ",");
var pattern = new RegExp((
"(\\" + delimiter + "|\\r?\\n|\\r|^)" +
"(?:\"([^\"]*(?:\"\"[^\"]*)*)\"|" +
"([^\"\\" + delimiter + "\\r\\n]*))"), "gi");
var data = [
[]
];
var matches = null;
while (matches = pattern.exec(csvData)) {
var matchedDelimiter = matches[1];
if (matchedDelimiter.length && (matchedDelimiter != delimiter)) {
data.push([]);
}
if (matches[2]) {
var matchedDelimiter = matches[2].replace(
new RegExp("\"\"", "g"), "\"");
} else {
var matchedDelimiter = matches[3];
}
data[data.length - 1].push(matchedDelimiter);
}
return (data);
}
$(document).ready(function () {
var opened = false;
$('.cmp-btn').on("click", () => {
opened = !opened;
if (opened) $(".cmp-btn").html("Close");
else $(".cmp-btn").html("Compare");
$('.cmp-btn').parent().toggleClass('expand');
$('body').toggleClass("noscroll");
gt_btn.className = "gt-link hide";
});
var table;
var fieldEl = document.getElementById("flt-field");
var valueEl = document.getElementById("flt-value");
function customFilter(data) {
return data.car && data.rating < 3;
}
//Trigger setFilter function with correct parameters
function updateFilter() {
var filterVal = fieldEl.options[fieldEl.selectedIndex].value;
var filter = filterVal == "function" ? customFilter : filterVal;
if (filterVal == "function")
valueEl.disabled = true;
else
valueEl.disabled = false;
if (filterVal) {
var filterType = "like";
table.setFilter(filter, filterType, valueEl.value);
}
}
//Update filters on value change
document.getElementById("flt-field").addEventListener("change", updateFilter);
document.getElementById("flt-value").addEventListener("keyup", updateFilter);
//Clear filters on "Clear Filters" button click
document.getElementById("flt-clear").addEventListener("click", function () {
fieldEl.value = "";
valueEl.value = "";
table.clearFilter();
});
//Get CSV data
var jsonData;
fetch("https://raw.githubusercontent.com/techlore/website/master/assets/vpn/VPNchart.csv")
.then(response => response.text())
.then(text => {
//Use CSV text and convert to json
jsonData = JSON.parse(CSVToJSON(text));
var f=jsonData.length - 1 ;
table = new Tabulator("#vpn-table", {
data: jsonData, //load row data from array
autoResize: false,
placeholder: "No Data Available", //display message to user on empty table
layout: "fitData",
selectable: 3, //make rows selectable
selectableRollingSelection: false,
autoColumns: true,
autoColumnsDefinitions: [{
field: "VPN",
hozAlign: "left",
formatter: "name",
resizable: false,
frozen: true
},
{
field: "VPN Affiliate Link",
visible: false,
resizable: false
},
{
field: "VPN Standard Link",
visible: false,
resizable: false
},
{
field: "History",
formatter: "history",
resizable: false
},
{
field: "OpenVPN",
formatter: "check",
resizable: false
},
{
field: "Wireguard",
formatter: "check",
resizable: false
},
{
field: "Killswitch",
formatter: "check",
resizable: false
},
{
field: "Diskless",
formatter: "check",
resizable: false
},
{
field: "Max Data Encryption",
formatter: "check",
resizable: false
},
{
field: "Max Handshake Encryption",
formatter: "check",
resizable: false
},
{
field: "IPV6 Protection",
formatter: "check",
resizable: false
},
{
field: "1st-Party DNS",
formatter: "check",
resizable: false
},
{
field: "1st-Party Servers",
formatter: "check",
resizable: false
},
{
field: "Custom DNS",
formatter: "check",
resizable: false
},
{
field: "2FA",
formatter: "check",
resizable: false
},
{
field: "Honest Marketing",
formatter: "check",
resizable: false
},
{
field: "Outside 14 Eyes",
formatter: "check",
resizable: false
},
{
field: "Transparency Report",
formatter: "check",
resizable: false
},
{
field: "Warrant Canary",
formatter: "check",
resizable: false
},
{
field: "No Analytics",
formatter: "check",
resizable: false
},
{
field: "Anon Payment",
formatter: "check",
resizable: false
},
{
field: "Anon Registration",
formatter: "check",
resizable: false
},
{
field: "Misleading Marketing",
formatter: "check",
resizable: false
},
{
field: "Total Servers",
formatter: "check",
resizable: false
},
{
field: "Windows Client",
formatter: "check",
resizable: false
},
{
field: "MacOS Client",
formatter: "check",
resizable: false
},
{
field: "Android Client",
formatter: "check",
resizable: false
},
{
field: "iOS Client",
formatter: "check",
resizable: false
},
{
field: "Linux Client",
formatter: "check",
resizable: false
},
{
field: "Connect on Boot",
formatter: "check",
resizable: false
},
{
field: "P2P Friendly",
formatter: "check",
resizable: false
},
{
field: "Open Source Clients",
formatter: "check",
resizable: false
},
{
field: "Multihop",
formatter: "check",
resizable: false
},
{
field: "Audits",
formatter: "check",
resizable: false
},
{
field: "Port Forwarding",
formatter: "check",
resizable: false
},
{
field: "Affiliate Program",
formatter: "check",
resizable: false
},
{
field: "Helps Privacy Causes",
formatter: "check",
resizable: false
},
{
field: "Native F-Droid Client",
formatter: "check",
resizable: false
},
],
});
table.on("rowSelectionChanged", function(data, rows, selected, deselected){
if (data.length > 1) {
$('.container').show();
var tb = "<table class='rt" + data.length + "'>";
var strh = "<div class='row keep-width _centered'>";
for (var j = 0; j < data.length; j++) {
strh += "<div class='title'>" + data[j]["VPN"] + " </div>";
}
$(".head").html(strh + "</div>");
var keys = Object.keys(data[0]);
keys.splice(0, 4);
for (const key in keys) {
tb += "<tr><td colspan='" + data.length + "' class='tb-b'><h4>" + keys[key] +
"</h4></td></tr><tr>";
for (var i = 0; i < data.length; i++) {
var v = data[i];
v = v[keys[key]];
tb += "<td>" + getCheckValue(v) + "</td>";
}
tb += "</tr>";
}
tb += "</table>";
$("#tb").html(tb);
} else {
$('.container').hide();
}
});
table.on("tableBuilt", function(){
const tbl = document.getElementById('vpn-table');
tbl.classList.add("resizerT");
var resizer = document.createElement('div');
resizer.className = 'resizer-h';
tbl.appendChild(resizer);
resizer.addEventListener('mousedown', initDrag, false);
var startX, startY, startWidth, startHeight;
function initDrag(e) {
tbl.style.userSelect = "none";
startX = e.clientX;
console.log("startx--> " + startX);
startWidth = parseInt(document.defaultView.getComputedStyle(tbl).width, 10);
console.log("startw--> " + startWidth);
document.documentElement.addEventListener('mousemove', doDrag, false);
document.documentElement.addEventListener('mouseup', stopDrag, false);
}
function doDrag(e) {
tbl.style.width = (startWidth + 2 * (e.clientX - startX)) + 'px';
}
function stopDrag(e) {
tbl.style.userSelect = "auto";
document.documentElement.removeEventListener('mousemove', doDrag, false);
document.documentElement.removeEventListener('mouseup', stopDrag, false);
}
});
});
});
</script>
</html>