Revision 170f094a-b2a3-48c0-9269-feebe10f67b0 - Stack Overflow

https://docs.google.com/file/d/0BzVXz9FRg0DWV3R0WUR2cTd5U00/edit


I need to call the function from the javascript linked above in my userscript. My code where I need the function looks like this:

 jQuery(document).ready(function($) {
 $('.color1').colorPicker();
 
 
 });

I tried:


 var decolorpicker = '<script type="text/javascript" scr=”www.drive.google.com/file/d/0BzVXz9FRg0DWV3R0WUR2cTd5U00/edit?usp=sharing”></script>'
 $("script[src*='merged/game']").after(decolorpicker);


And then:

 window.colorPicker(); 

Wich gives the error:

Uncaught exception: TypeError: 'window.colorPicker' is not a function


How can I do this correctly?

AltStyle によって変換されたページ (->オリジナル) /