-
Notifications
You must be signed in to change notification settings - Fork 2
/
demo.html
47 lines (41 loc) · 1.79 KB
/
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>
<head>
<title>Fingers.js DEMO</title>
</head>
<body>
<script>
var proxySupported = (typeof Proxy) in {"object": 1, "function": 1}
&& Proxy.create
&& Proxy.create({ get: eval.bind(0, !0) }).xyz;
if(proxySupported)
{
// load fingers
document.write('<script src="fingers.js"><\/script>');
document.write('<h1>Fingers.js loaded<\/h1>');
document.write('<p>You can now play with on(). <strong>Please open JS panel below.</strong><\/p>');
document.write('<pre class="_cssdeck_embed" data-pane="output" data-user="" data-href="pycxrskc" data-version="0"><\/pre><script async src="http://cssdeck.com/assets/js/embed.js"><\/script>');
}
else
{
var isChrome = navigator.userAgent.toLowerCase().indexOf('chrome') > -1;
if(isChrome)
{
document.write('<h1>Your JS Harmony\'s Proxy is disabled<\/h1>');
document.write('<p>To enable JS experimental features in Chrome, go to:<\/p>');
document.write('<p>chrome://flags/#enable-javascript-harmony<\/p>');
document.write('<p>and restart your browser.<\/p>');
}
else
{
document.write('<p>Proxy is not supported by your browser. Please use latest Chrome or Firefox<\/p>');
}
}
</script>
<ul>
<li>Find me on Twitter: <a href="http://twitter.com/filip_zawada">@filip_zawada</a></li>
<li>Comment on Twitter: <a href="https://twitter.com/intent/tweet?&text=Fingers.js%2C%20operator%20overloading%20in%20JavaScript%3A%20on%28elem%29.click%20%2B%3D%20handler1%20%2B%20function%28%29%7B%7D%3B%20%23FingersJS%20%23JS">#fingersJS</a></li>
<li>Fork on Github: <a href="https://github.com/FilipZawada/Fingers.js">https://github.com/FilipZawada/Fingers.js</a></li>
</ul>
</body>
</html>