redoc/demo/main.js
2016-02-11 13:38:44 +02:00

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