mirror of
https://github.com/Redocly/redoc.git
synced 2024-11-25 10:03:45 +03:00
10 lines
260 B
JavaScript
10 lines
260 B
JavaScript
|
;(function() {
|
||
|
'use strict';
|
||
|
|
||
|
var loadButton = document.getElementById('load-button');
|
||
|
var schemaUrlInput = document.getElementById('schema-url-input');
|
||
|
loadButton.addEventListener('click', function() {
|
||
|
Redoc.init(schemaUrlInput.value);
|
||
|
})
|
||
|
})();
|