feat: reset all fields on refresh
This commit is contained in:
parent
082d7effaf
commit
31322964b3
|
@ -15,7 +15,7 @@
|
||||||
in mind in order to accommodate different use-cases and threat models.
|
in mind in order to accommodate different use-cases and threat models.
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<div id="wizard-container">
|
<form id="wizard-container">
|
||||||
<section>
|
<section>
|
||||||
<h2>Time Based Rules</h2>
|
<h2>Time Based Rules</h2>
|
||||||
<p>
|
<p>
|
||||||
|
@ -165,11 +165,18 @@
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<button onclick="generatePolicy()">Generate Policy</button>
|
<button onclick="generatePolicy()">Generate Policy</button>
|
||||||
</div>
|
</form>
|
||||||
|
|
||||||
<textarea id="policy" disabled placeholder="Click 'Generate Policy'"></textarea>
|
<textarea id="policy" disabled placeholder="Click 'Generate Policy'"></textarea>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
function resetFormFields() {
|
||||||
|
const form = document.getElementById('wizard-container');
|
||||||
|
form.reset();
|
||||||
|
}
|
||||||
|
|
||||||
|
window.onload = resetFormFields;
|
||||||
|
|
||||||
function extractValues() {
|
function extractValues() {
|
||||||
const policy = {}
|
const policy = {}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue