You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
439 B
13 lines
439 B
window.addEventListener('load', function(event) {
|
|
var loadingWrapper = document.getElementById('loading-wrapper');
|
|
loadingWrapper.classList.add('fadeOut');
|
|
|
|
var root = document.getElementById('graphql-playground');
|
|
root.classList.add('playgroundIn');
|
|
|
|
var data = JSON.parse(document.getElementById('graphql-playground-data').innerText);
|
|
GraphQLPlayground.init(root, {
|
|
'endpoint': data.entrypoint
|
|
})
|
|
});
|