sugilog / jquery.clipify Goto Github PK
View Code? Open in Web Editor NEWjquery plugin to copy text
License: MIT License
jquery plugin to copy text
License: MIT License
to handle mouseover event in Javascript, clipify actionscript need to implement mouseover callback.
―――――――――――――――――――――――
【サンプル】何らかのテキスト
―――――――――――――――――――――――
SyntaxError: unterminated string literal
/javascripts/jquery.js
Line 2
f(a=undefined, c=undefined) jquery...8057154 (2 行目)
setCopyText(target=jQuery(img.clipify_target /images/...47452453)) jquery...7515096 (15 行目)
(?)(_event=Object { originalEvent=Event mouseover, type="mouseover", timeStamp=0, もっと見る...}) jquery...7515096 (66 行目)
add(c=Object { originalEvent=Event mouseover, type="mouseover", timeStamp=0, もっと見る...}) jquery...8057154 (3 行目)
add(a=mouseover clientX=1378, clientY=405) jquery...8057154 (3 行目)
... __flash__toXML((function(){ jQuery.clipify.afterClick('――――――――――――――――――――――― jquery...8057154 (2 行目, 60 列目)
Index: public/plugins/jquery.clipify/actionscript/Clipify.as
===================================================================
--- public/plugins/jquery.clipify/actionscript/Clipify.as>(リビジョン 28481)
+++ public/plugins/jquery.clipify/actionscript/Clipify.as>(作業コピー)
@@ -48,21 +48,21 @@
private function onClick(event:MouseEvent):void
{
System.setClipboard(_copyText);
_logger("set clipboard: " + _copyText);
afterClick();
}
private function afterClick():void
{
- ExternalInterface.call("(function(){ jQuery.clipify.afterClick('" + _copyText + "'); })");
+ ExternalInterface.call("(function(){ jQuery.clipify.afterClick('" + _copyText.replace(/\r\n|\r|\n/g, '\\n') + "'); })");
_logger("afterClick");
}
private function _setMode():void
{
var flashvars:Object = LoaderInfo(this.root.loaderInfo).parameters;
var mode:String = String(flashvars["mode"]);
if (mode == "debug")
{
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.