public
Clone URL: git://github.com/robbyrussell/rubyurl.git
Search Repo:
Adding _clipboard.swf
robbyrussell (author)
Wed May 14 08:22:22 -0700 2008
commit  f288173ad00278e5364b331748679bffdbec0416
tree    08eafc0b7509cb1c7554917cd0d6348856120e50
parent  163114acf14c5dd4c3bed8508ef3155a83a2e1bf
...
 
...
1
0
@@ -1 +1,2 @@
0
+CWSyxœ«``g`àÀÃàÿÿ{æ†u†ä‚¤üԼôà’Ô†âg¸Ô&É'4—‰A&ÂÀ4‰ƒ ,É$Îäwºÿ
...
1
2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
0
@@ -1,3 +1,22 @@
0
 // Place your application-specific JavaScript functions and classes here
0
 // This file is automatically included by javascript_include_tag :defaults
0
+
0
+//
0
+// copied from: http://www.tek-tips.com/viewthread.cfm?qid=1465395&page=5
0
+// TODO: reference original author...
0
+//
0
+function copy(rubyurl) {
0
+ var flashcopier = 'flashcopier';
0
+ if(!document.getElementById(flashcopier)) {
0
+ var divholder = document.createElement('div');
0
+ divholder.id = flashcopier;
0
+ document.body.appendChild(divholder);
0
+ }
0
+ document.getElementById(flashcopier).innerHTML = '';
0
+ var divinfo = '<embed src="/_clipboard.swf" FlashVars="clipboard='+encodeURIComponent(rubyurl)+'" width="0" height="0" type="application/x-shockwave-flash"></embed>';
0
+ document.getElementById(flashcopier).innerHTML = divinfo;
0
+ $('x_copy_button').hide();
0
+ $('x_copied').show();
0
+
0
+}

Comments

    No one has commented yet.