mirror of
https://github.com/Redocly/redoc.git
synced 2024-11-29 20:13:43 +03:00
14 lines
357 B
JavaScript
14 lines
357 B
JavaScript
;(function() {
|
|
'use strict';
|
|
|
|
var schemaUrlForm = document.getElementById('schema-url-form');
|
|
var schemaUrlInput = document.getElementById('schema-url-input');
|
|
schemaUrlForm.addEventListener('submit', function(event) {
|
|
event.preventDefault();
|
|
Redoc.init(schemaUrlInput.value);
|
|
return false;
|
|
})
|
|
|
|
//window.redocDebugMode = true;
|
|
})();
|