Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/webtorrent/webtorrent.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/chrome
diff options
context:
space:
mode:
authorFeross Aboukhadijeh <feross@feross.org>2014-01-28 07:15:22 +0400
committerFeross Aboukhadijeh <feross@feross.org>2014-01-28 07:15:22 +0400
commit337cd5d3971ca7d780ca8c1b99e747af6b3633d4 (patch)
tree2cd9c0ea5f58d9ca7bf207b2fb21c152529d9207 /chrome
parentf93448d3a757abe9fe13e5d458e1046db9469dde (diff)
show torrent info in chrome app ui
Diffstat (limited to 'chrome')
-rw-r--r--chrome/background.js4
-rw-r--r--chrome/style.css4
-rw-r--r--chrome/window.html14
3 files changed, 19 insertions, 3 deletions
diff --git a/chrome/background.js b/chrome/background.js
index 9699018..d740b15 100644
--- a/chrome/background.js
+++ b/chrome/background.js
@@ -1,8 +1,8 @@
chrome.app.runtime.onLaunched.addListener(function() {
chrome.app.window.create('window.html', {
bounds: {
- width: 400,
- height: 500
+ width: 500,
+ height: 600
}
});
}); \ No newline at end of file
diff --git a/chrome/style.css b/chrome/style.css
new file mode 100644
index 0000000..cb019c5
--- /dev/null
+++ b/chrome/style.css
@@ -0,0 +1,4 @@
+#console {
+ height: 400px;
+ overflow: scroll;
+} \ No newline at end of file
diff --git a/chrome/window.html b/chrome/window.html
index 44339ee..63c2938 100644
--- a/chrome/window.html
+++ b/chrome/window.html
@@ -1,9 +1,21 @@
<!DOCTYPE html>
<html>
<head>
+ <title>WebTorrent</title>
+ <link rel="stylesheet" href="style.css">
</head>
<body>
+ <h3>Torrent Info</h4>
+ <ul>
+ <li class="displayName">Display Name: <span></span></li>
+ <li class="infoHash">Info Hash: <span></span></li>
+ <li class="dhtNodes">DHT Nodes: <span>0</span></li>
+ <li class="dhtPeers">DHT Peers: <span>0</span></li>
+ </ul>
+
+ <h3>Console</h4>
<div id="console"></div>
- <script src='bundle.js'></script>
+
+ <script src="bundle.js"></script>
</body>
</html> \ No newline at end of file