aboutsummaryrefslogtreecommitdiffstats
path: root/ethereal/assets/ext/test.html
diff options
context:
space:
mode:
Diffstat (limited to 'ethereal/assets/ext/test.html')
-rw-r--r--ethereal/assets/ext/test.html30
1 files changed, 30 insertions, 0 deletions
diff --git a/ethereal/assets/ext/test.html b/ethereal/assets/ext/test.html
new file mode 100644
index 000000000..b605e8dbd
--- /dev/null
+++ b/ethereal/assets/ext/test.html
@@ -0,0 +1,30 @@
+<!doctype>
+<html>
+<head>
+<title>Tests</title>
+</head>
+
+<body>
+<button onclick="test();">Test me</button>
+
+<script type="text/javascript">
+function test() {
+ var filter = eth.watch({
+ latest: -1,
+ from: "e6716f9544a56c530d868e4bfbacb172315bdead",
+ });
+
+ filter.changed(function(messages) {
+ console.log("messages", messages)
+ })
+
+ filter.getMessages(function(messages) {
+ console.log("getMessages", messages)
+ });
+
+}
+</script>
+
+</body>
+
+</html>