-
-
Notifications
You must be signed in to change notification settings - Fork 170
/
rescue.html
26 lines (26 loc) · 964 Bytes
/
rescue.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
<html>
<head><title>OpenAPI-GUI rescue utility</title>
<script type='text/javascript' src='js/jquery.min.js'></script>
</head>
<h1><a href="/index.html">OpenAPI-GUI</a> rescue utility</h1>
<h2>This page attempts to fix problems with OpenAPI-GUI not starting</h2>
<h3>Current stored definition. Copy and paste this to save it</h3>
<textarea id="txtDef" placeholder="None"></textarea>
<button id="btnReset">Remove</button>
<button id="btnUpdate">Update</button>
<h3><a href="https://github.com/mermade/openapi-gui/issues">Report a bug</a></h3>
<script type="text/javascript">
$(document).ready(function(){
if (window.localStorage && window.localStorage) {
$('#txtDef').val(window.localStorage.getItem('openapi3'));
}
$('#btnReset').click(function(){
window.localStorage.setItem('openapi3','');
$('#txtDef').val('');
});
$('#btnUpdate').click(function(){
window.localStorage.setItem('openapi3',$('#txtDef').val());
});
});
</script>
</html>