Compare commits

...

2 commits

Author SHA1 Message Date
rick 6ca3c7b3df
add informations and change textarea sized 2024-02-06 00:16:34 +01:00
rick 24956dae55
add smoll css 2024-02-06 00:16:01 +01:00
2 changed files with 27 additions and 5 deletions

View file

@ -2,23 +2,28 @@
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Parser Juniper</title>
<link rel=stylesheet href="style.css" />
<title>Juniper Parser</title>
</head>
<body>
<form style="display: flex;">
<textarea id="input" name="inputConf" cols="90" rows="50"></textarea>
<h1>Juniper Parser</h1>
<p>Put your Juniper configuration in the first textarea, then click on the button. It'll convert the configuration to a series of set commands. </p>
<form style="display: flex; flex-direction: column; justify-content: space-around;">
<textarea id="input" name="inputConf" cols="80" rows="16"></textarea>
<input type="button" onClick="letsParse()" value="Parse !">
<textarea id="output" name="outputConf" cols="90" rows="50" disabled></textarea>
<textarea id="output" name="outputConf" cols="80" rows="16" disabled></textarea>
</form>
<h2>Informations</h2>
<h3>Authors</h3>
<p>Tim Price writed a PHP script to convert Juniper conf to a series of set commands. You can find it on <a href="https://github.com/pgnuta/juniper-config-to-set">this github</a>. I just rewrite it in JS and add an interface. You can find the source code on <a href="https://github.com/rick-gnous/juniper-config-to-set/tree/implWeb">this github</a>.</p>
<p>Tim Price wrote a PHP script to convert Juniper conf to a series of set commands. You can find it on <a href="https://github.com/pgnuta/juniper-config-to-set">this github</a>. I just rewrote it in JS and add an interface. You can find the source code on <a href="https://github.com/rick-gnous/juniper-config-to-set/">this github</a>.</p>
<h3>Contact</h3>
<p>My email address : <code>rick@gnous.eu</code></p>
<p>My Github page : <a href="https://github.com/rick-gnous">here we go</a></p>
<h3>About the code</h3>
<p>All the code is under <a href="https://www.gnu.org/licenses/gpl-3.0.fr.html">GPL3 licence</a>.</p>
<p>It can be used offline, the parsing is done locally, on your PC.</p>
<script src="parser.js"></script>
<script src="changeDom.js"></script>
</body>

17
style.css Normal file
View file

@ -0,0 +1,17 @@
form {
margin: 3em;
}
form input {
margin: 5em;
margin-top: 2em;
line-height: 3.5;
}
#input {
background-color: lightblue;
}
#output {
background-color: lightgrey;
}