forked from jcubic/jquery.terminal-www
-
Notifications
You must be signed in to change notification settings - Fork 0
/
rpc-demo.html
47 lines (46 loc) · 1.97 KB
/
rpc-demo.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<!DOCTYPE HTML>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8" />
<title>JSON-RPC Demo for JQuery Terminal Emulator</title>
<meta name="author" content="Jakub Jankiewicz - jcubic@onet.pl"/>
<meta name="Description" content="Demonstration for JQuery Terminal Emulator using call automaticly JSON-RPC service (in php) with authentication."/>
<script src="https://code.jquery.com/jquery-1.7.2.min.js"></script>
<script src="js/jquery.mousewheel-min.js"></script>
<script src="js/jquery.terminal.min.js"></script>
<link href="css/jquery.terminal.min.css" rel="stylesheet"/>
<script src="https://rawgit.com/cvan/keyboardevent-key-polyfill/master/index.js"></script>
<script>
jQuery(document).ready(function($) {
keyboardeventKeyPolyfill.polyfill();
$('body').terminal("json-rpc-service-demo.php", {
login: true,
greetings: "You are authenticated",
onBlur: function() {
// the height of the body is only 2 lines initialy
return false;
}
});
});
</script>
</head>
<body>
<!-- Piwik -->
<script type="text/javascript">
if (location.host == 'terminal.jcubic.pl') {
var _paq = _paq || [];
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u=(("https:" == document.location.protocol) ? "https" : "http") + "://piwik.jcubic.pl/";
_paq.push(['setTrackerUrl', u+'piwik.php']);
_paq.push(['setSiteId', 1]);
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0]; g.type='text/javascript';
g.defer=true; g.async=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s);
})();
}
</script>
<noscript><p><img src="https://piwik.jcubic.pl/piwik.php?idsite=1" style="border:0;" alt="" /></p></noscript>
<!-- End Piwik Code -->
</body>
</html>