1
0
mirror of https://github.com/ArcticFoxes-net/ONC-Converter synced 2024-12-22 00:11:33 -05:00

Give button a better name

This commit is contained in:
thomkeh 2018-07-15 12:26:35 +01:00 committed by GitHub
parent 5195af0d83
commit 552770e79b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -19,8 +19,8 @@
* pressed. * pressed.
*/ */
function setHandler () { function setHandler () {
let clickButton = document.getElementById('clickbutton') let convertButton = document.getElementById('convertbutton')
clickButton.addEventListener('click', handler, false) convertButton.addEventListener('click', handler, false)
} }
/** /**
@ -363,11 +363,20 @@
<div> <div>
<h1>ovpn2onc</h1> <h1>ovpn2onc</h1>
<ul> <ul>
<li><label for="connname">Name for connection (can be chosen freely):</label> <input type="text" id="connname"></li> <li>
<li><label for="inputopenvpn">OpenVPN config file (*.ovpn):</label> <input type="file" id="inputopenvpn"></li> <label for="connname">Name for connection (can be chosen freely):</label>
<li><label for="inputcertificates">Certificates and keys (can be multiple files):</label> <input type="file" id="inputcertificates" multiple></li> <input type="text" id="connname">
</li>
<li>
<label for="inputopenvpn">OpenVPN config file (*.ovpn):</label>
<input type="file" id="inputopenvpn">
</li>
<li>
<label for="inputcertificates">Certificates and keys (can be multiple files):</label>
<input type="file" id="inputcertificates" multiple>
</li>
</ul> </ul>
<button id="clickbutton" type="button">Convert</button> <button id="convertbutton" type="button">Convert</button>
</div> </div>
<div> <div>
<p>Output (copy this into a new file and load it in ChromeOS)</p> <p>Output (copy this into a new file and load it in ChromeOS)</p>