mirror of
https://github.com/Redocly/redoc.git
synced 2024-11-24 17:43:45 +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;
|
|
})();
|