redoc/demo/main.js
2016-01-23 00:00:41 +02:00

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();
})
})();