mirror of
https://github.com/Redocly/redoc.git
synced 2024-11-26 02:23:43 +03:00
11 lines
305 B
JavaScript
11 lines
305 B
JavaScript
;(function() {
|
|
'use strict';
|
|
|
|
var schemaUrlForm = document.getElementById('schema-url-form');
|
|
var schemaUrlInput = document.getElementById('schema-url-input');
|
|
schemaUrlForm.addEventListener('submit', function(event) {
|
|
Redoc.init(schemaUrlInput.value);
|
|
event.preventDefault();
|
|
})
|
|
})();
|