Created
November 3, 2016 15:07
-
-
Save geocine/c93ba07c9956f403f0f11ff9c1b39a55 to your computer and use it in GitHub Desktop.
stand alone graphiql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<meta name="keywords" content="graphql,graphiql" /> | |
<title>GraphiQL</title> | |
<script src="//use.typekit.net/pea2oar.js"></script> | |
<script>try{Typekit.load({ async: true });}catch(e){}</script> | |
<link rel="stylesheet" media="screen" href="https://cdn.jsdelivr.net/graphql-toolbox/1.0.1/graphiql.min.css"> | |
<style> | |
@font-face { | |
font-family: 'Glyphicons Halflings'; | |
src: url(https://cdn.jsdelivr.net/bootstrap/3.3.7/fonts/glyphicons-halflings-regular.eot); | |
src: url(https://cdn.jsdelivr.net/bootstrap/3.3.7/fonts/glyphicons-halflings-regular.eot) format("embedded-opentype"), url(https://cdn.jsdelivr.net/bootstrap/3.3.7/fonts/glyphicons-halflings-regular.woff2) format("woff2"), url(https://cdn.jsdelivr.net/bootstrap/3.3.7/fonts/glyphicons-halflings-regular.woff) format("woff"), url(https://cdn.jsdelivr.net/bootstrap/3.3.7/fonts/glyphicons-halflings-regular.ttf) format("truetype"), url(https://cdn.jsdelivr.net/bootstrap/3.3.7/fonts/glyphicons-halflings-regular.svg) format("svg"); | |
} | |
</style> | |
<script src="https://cdn.jsdelivr.net/graphql-toolbox/1.0.1/graphiql.min.js" type="text/javascript"></script> | |
</head> | |
<body> | |
<div id="graphiql-tool"></div> | |
<script> | |
graphiql.bootstrap({ | |
defaultUrl: window.location.origin + window.location.pathname, | |
defaultQuery: '', | |
defaultVariables: '' | |
}); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For some reason this cdn is not resolving. Cant pinpoint what it is. Im running this in chrome on a mac from local machine. Any ideas? Thanks.