You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
46 lines
1.3 KiB
HTML
46 lines
1.3 KiB
HTML
<html>
|
|
<head>
|
|
{{css "home.css"}}
|
|
{{js "jquery-1.9.1.min.js"}}
|
|
{{js "underscore-min.js"}}
|
|
{{js "skeam.js"}}
|
|
<script type="application/template" id="request-template">
|
|
<div class="request">
|
|
<pre><%= message %></pre>
|
|
</div>
|
|
</script>
|
|
<script type="application/template" id="response-template">
|
|
<div class="response">
|
|
<pre><%= message %></pre>
|
|
</div>
|
|
</script>
|
|
<script type="application/template" id="error-template">
|
|
<div class="error">
|
|
<pre><%= message %></pre>
|
|
</div>
|
|
</script>
|
|
<script type="application/template" id="sys-template">
|
|
<div class="sys">
|
|
<pre><%= message %></pre>
|
|
</div>
|
|
</script>
|
|
<script>
|
|
$(document).ready(function() {
|
|
var skeam = new Skeam({
|
|
inputSelector: "#txt-repl",
|
|
outputSelector: "#responses",
|
|
requestTemplateSelector: "#request-template",
|
|
responseTemplateSelector: "#response-template",
|
|
errorTemplateSelector: "#error-template",
|
|
sysTemplateSelector: "#sys-template",
|
|
wsPath: "{{.ws_path}}"
|
|
});
|
|
});
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<div id="responses"></div>
|
|
<textarea id="txt-repl"></textarea>
|
|
</body>
|
|
</html>
|