summaryrefslogtreecommitdiffabout
path: root/content/generated-content.js
authorMichael Krelin <hacker@klever.net>2006-09-26 19:21:57 (UTC)
committer Michael Krelin <hacker@klever.net>2006-09-26 19:21:57 (UTC)
commitc5ea6ff7abd6e376ae151c9724d24f6fe156766e (patch) (side-by-side diff)
tree0df2e4ecf02f89c4b85d1950b5c6f4fd2f67f9bd /content/generated-content.js
parent5207247fdc837ae9de1d81db903f6cd92532595e (diff)
downloadfireflix-c5ea6ff7abd6e376ae151c9724d24f6fe156766e.zip
fireflix-c5ea6ff7abd6e376ae151c9724d24f6fe156766e.tar.gz
fireflix-c5ea6ff7abd6e376ae151c9724d24f6fe156766e.tar.bz2
Initial import into public repository0.0
git-svn-id: http://svn.klever.net/kin/fireflix/trunk@159 fe716a7a-6dde-0310-88d9-d003556173a8
Diffstat (limited to 'content/generated-content.js') (more/less context) (ignore whitespace changes)
-rw-r--r--content/generated-content.js17
1 files changed, 17 insertions, 0 deletions
diff --git a/content/generated-content.js b/content/generated-content.js
new file mode 100644
index 0000000..0ad08bb
--- a/dev/null
+++ b/content/generated-content.js
@@ -0,0 +1,17 @@
+var generated = {
+ fireflix: null,
+ data: null,
+
+ init: function() {
+ this.fireflix = window.arguments[0];
+ this.data = window.arguments[1];
+ this.databox = document.getElementById('data');
+ this.databox.value = this.data;
+ this.databox.select();
+ },
+ copy: function() {
+ var ch = Components.classes["@mozilla.org/widget/clipboardhelper;1"]
+ .getService(Components.interfaces.nsIClipboardHelper);
+ ch.copyString(this.data);
+ }
+};