-
Notifications
You must be signed in to change notification settings - Fork 1
/
zerodata.html
117 lines (106 loc) · 6.05 KB
/
zerodata.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
<!DOCTYPE html>
<html lang="en-ZA">
<head>
<title>Info</title>
<meta charset="utf-8" />
<link rel="stylesheet" href="https://unpkg.com/[email protected]/build/pure-min.css" integrity="sha384-cg6SkqEOCV1NbJoCu11+bm0NvBRc8IYLRGXkmNrqUBfTjmMYwNKPWBTIKyw9mHNJ" crossorigin="anonymous">
<meta name="viewport" content="width=device-width, initial-scale=1">
<script type="text/javascript">
function convert()
{
var text=document.getElementById("url").value;
var exp = /(\b(https?|ftp|file):\/\/[-A-Z0-9+&@#\/%?=~_|!:,.;]*[-A-Z0-9+&@#\/%=~_|])/ig;
var text1=text.replace(exp, "<a href='$1'>$1</a>");
var exp2 =/(^|[^\/])(www\.[\S]+(\b|$))/gim;
document.getElementById("converted_url").innerHTML=text1.replace(exp2, '$1<a target="_blank" href="http://$2">$2</a>');
}
</script>
</head>
<body>
<style>
body {background-color:powderblue;}
h1 {color:slateblue;}
</style>
<div class="pure-g">
<div class="pure-u-1-3"><p>One</p></div>
<div class="pure-u-1-3"><p>Two</p></div>
<div class="pure-u-1-3"><p>Thirds</p></div>
</div>
<textarea id="url" Placeholder="Enter Some Text With Links">
<p>Below are a list of websites that are free – there are no data costs associated when viewing these via the Network.</p>
<p>Apha ngezantsi ngamakhasi weminatha asimahla, awuhlawuleli kwa ndleko ze data xa uwavula usebenzisa i-Network.</p>
<li>Official Site of the National Institute for Communicable Diseases (NICD) – <a href="https://www.nicd.ac.za">https://www.nicd.ac.za</a> </li>
<li>Official Site of the South African Government – https://www.gov.za </li>
<li>Official Site of the Department of Health South Africa – https://www.health.gov.za </li>
<li>Official Site of the World Health Organization – https://www.who.int </li>
<li>National Emergency Library – https://www.archive.org/details/nationalemergencylibrary </li>
<li>Department of Basic Education and Higher Education – https://www.education.gov.za/ </li>
<li>Boland FET College – http://www.bolandcollege.com/ </li>
<li>Cape Peninsula University of Technology – http://www.cput.ac.za/ </li>
<li>Capricorn FET College – http://www.capricorncollege.co.za/ </li>
<li>Central Johannesburg FET College – http://www.cjc.edu.za/ </li>
<li>Central University of Technology – http://www.cut.ac.za/ </li>
<li>Coastal FET College – http://www.coastalkzn.co.za/ </li>
<li>College of Cape Town – http://www.cct.edu.za/ </li>
<li>Durban University of Tech – http://www.dut.ac.za/ </li>
<li>Eastcape Midlands FET College – http://www.emcol.co.za/ </li>
<li>Ehlanzeni FET College – http://www.ehlanzenicollege.co.za/ </li>
<li>Ekurhuleni East FET College – http://www.eec.edu.za/ </li>
<li>Ekurhuleni West FET College – http://www.ewc.edu.za/ </li>
<li>Elangeni FET College – http://www.efet.co.za/ </li>
<li>Everything Maths – http://everythingmaths.co.za </li>
<li>Everything Science – http://everythingscience.co.za </li>
<li>False Bay FET College – http://www.falsebaycollege.co.za/ </li>
<li>Flavius Mareka FET College – http://www.flaviusmareka.net/ </li>
<li>Gert Sibande FET College – https://educonnect.co.za/institutions/institution/gert-sibande-tvet-college/ </li>
<li>Goldfields FET College – http://goldfieldstvet.edu.za/ </li>
<li>Ikhala FET College – https://www.ikhala.edu.za/ </li>
<li>Khan Academy – https://www.khanacademy.org </li>
<li>King Satha Dalindyebo FET College – http://www.ksdcollege.edu.za/ </li>
<li>Lephalale FET College – http://leptvetcol.edu.za/ </li>
<li>Letaba FET College – http://www.letabafet.co.za/ </li>
<li>Maluti FET College – http://www.malutitvet.co.za/ </li>
<li>Mangosuthu University of Technology – http://www.mut.ac.za/ </li>
<li>Mindset – https://learn.mindset.africa/ </li>
<li>Mopani South East FET College – http://www.mopanicollege.edu.za </li>
<li>Motheo FET College – https://www.motheotvet.co.za/ </li>
<li>Nelson Mandela Metropolitan University – https://www.mandela.ac.za/ </li>
<li>Nkangala FET College – http://www.nkangalafet.edu.za/ </li>
<li>North West University – http://www.nwu.ac.za/ </li>
<li>Northern Cape Rural FET College – http://ncrtvet.com/ </li>
<li>Northlink FET College – http://www.northlink.co.za/ </li>
<li>Orbit FET College – http://www.orbitcollege.co.za/ </li>
<li>Rhodes University – http://www.ru.ac.za/ </li>
<li>Sedibeng FET College – http://www.sedcol.co.za/ </li>
<li>Sekhukhune FET College – http://www.sekfetcol.org/ </li>
<li>South Cape FET College – http://www.sccollege.co.za/ </li>
<li>South West FET College – http://www.swgc.co.za/ </li>
<li>Stellenbosch University – http://www.sun.ac.za/ </li>
<li>Taletso FET College – https://taletso.edu.za/ </li>
<li>Thekwini FET College –http://www.thekwinicollege.co.za/ </li>
<li>Tshwane North FET College – https://www.tnc.edu.za/ </li>
<li>Tshwane South FET College – http://www.tsc.edu.za/ </li>
<li>Tshwane University of Technology – http://www.tut.ac.za/ </li>
<li>Umfolozo FET College – http://www.umfolozicollege.co.za/ </li>
<li>University of Cape Town – http://www.uct.ac.za/ </li>
<li>University of Johannesburg – http://www.uj.ac.za/ </li>
<li>University of Kwazulu-Natal – http://www.ukzn.ac.za/ </li>
<li>University of Limpopo – http://www.ul.ac.za/ </li>
<li>University of Pretoria – https://www.up.ac.za/ </li>
<li>University of the Free State – http://www.ufs.ac.za/ </li>
<li>University of the Western Cape – http://www.uwc.ac.za/ </li>
<li>University of Venda – http://www.univen.ac.za/ </li>
<li>University of Zululand – http://www.unizulu.ac.za/ </li>
<li>Vaal University of Technology – http://www.vut.ac.za/ </li>
<li>Vuselela FET College – http://www.vuselelacollege.co.za/ </li>
<li>Walter Sisulu University – http://www.wsu.ac.za/</li>
<li>West Coast FET College – http://www.westcoastcollege.co.za/</li>
<li>Western College for FET – http://www.westcol.co.za/</li>
<p>
Source: Zenzeleni - https://zenzeleni.net</p>
</textarea>
<input type="button" value="Convert" onclick="convert();">
<p id="converted_url"></p>
Go on, try it, convert a list of urls into clickable links.
</body>
</html>