summaryrefslogtreecommitdiff
path: root/src/chrome
diff options
context:
space:
mode:
Diffstat (limited to 'src/chrome')
-rw-r--r--src/chrome/content/igb/trusted.html10
-rw-r--r--src/chrome/content/igb/trusted.js15
-rw-r--r--src/chrome/content/igb/unknown.html9
-rw-r--r--src/chrome/content/igb/untrusted.html12
4 files changed, 46 insertions, 0 deletions
diff --git a/src/chrome/content/igb/trusted.html b/src/chrome/content/igb/trusted.html
new file mode 100644
index 0000000..8867b73
--- /dev/null
+++ b/src/chrome/content/igb/trusted.html
@@ -0,0 +1,10 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <title>EVE-IGB Bridge</title>
+ <script src="trusted.js"></script>
+ </head>
+ <body>
+ <p>Connected to the EVE-IGB Bridge. Please do not close this window. You may minimize it, however. Note that this window will refresh repeatedly; this does not indicate a malfunction and will not count towards your internet data usage if you have one.</p>
+ </body>
+</html>
diff --git a/src/chrome/content/igb/trusted.js b/src/chrome/content/igb/trusted.js
new file mode 100644
index 0000000..3c6a6c7
--- /dev/null
+++ b/src/chrome/content/igb/trusted.js
@@ -0,0 +1,15 @@
+window.onerror = function (e) { alert(e); };
+var xhr = new XMLHttpRequest();
+xhr.onreadystatechange = function () {
+ if (xhr.readyState === 4) {
+ var obj = JSON.parse(xhr.responseText);
+ CCPEVE[obj[0]].apply(CCPEVE, obj[1]);
+ // IGB imposes a 1s delay between JS calls
+ setTimeout(function () {
+ xhr.open("GET", "trusted");
+ xhr.send();
+ }, 1000);
+ }
+};
+xhr.open("GET", "trusted");
+xhr.send();
diff --git a/src/chrome/content/igb/unknown.html b/src/chrome/content/igb/unknown.html
new file mode 100644
index 0000000..51170b3
--- /dev/null
+++ b/src/chrome/content/igb/unknown.html
@@ -0,0 +1,9 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <title>EVE-IGB Bridge</title>
+ </head>
+ <body>
+ <p>Please open this site in the EVE in-game browser.</p>
+ </body>
+</html>
diff --git a/src/chrome/content/igb/untrusted.html b/src/chrome/content/igb/untrusted.html
new file mode 100644
index 0000000..1cb7499
--- /dev/null
+++ b/src/chrome/content/igb/untrusted.html
@@ -0,0 +1,12 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <title>EVE-IGB Bridge</title>
+ <script>
+ CCPEVE.requestTrust("http://127.0.0.1:26001");
+ </script>
+ </head>
+ <body>
+ <p>Please grant trust to this site, then refresh the page.</p>
+ </body>
+</html>