mirror of
https://github.com/Redocly/redoc.git
synced 2024-11-11 03:16:48 +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;
|
|
})();
|