Permalink
Browse files

Add clippy and Copy line's direct path.

  • Loading branch information...
1 parent d8751c9 commit 9af54190ac995110979bd753d4205ec93f17ef33 @ongaeshi committed Nov 26, 2012
View
@@ -121,3 +121,28 @@ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+=================================
+Clippy
+=================================
+
+Copyright (c) 2008 Tom Preston-Werner
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+'Software'), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
+CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Binary file not shown.
@@ -123,6 +123,32 @@ function update_package(package_name)
);
}
+function clippy_text(text, bgcolor)
+{
+ return ' <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"' +
+ ' width="110"' +
+ ' height="14"' +
+ ' id="clippy" >' +
+ ' <param name="movie" value="/flash/clippy.swf"/>' +
+ ' <param name="allowScriptAccess" value="always" />' +
+ ' <param name="quality" value="high" />' +
+ ' <param name="scale" value="noscale" />' +
+ ' <param NAME="FlashVars" value="text=' + text + '">' +
+ ' <param name="bgcolor" value="#FFFFFF">' +
+ ' <embed src="/flash/clippy.swf"' +
+ ' width="110"' +
+ ' height="14"' +
+ ' name="clippy"' +
+ ' quality="high"' +
+ ' allowScriptAccess="always"' +
+ ' type="application/x-shockwave-flash"' +
+ ' pluginspage="http://www.macromedia.com/go/getflashplayer"' +
+ ' FlashVars="text=' + text + '"' +
+ ' bgcolor="#FFFFFF"' +
+ ' />' +
+ ' </object>';
+}
+
function lineno_setup(path, lineno)
{
var n_lineno = "#n" + lineno;
@@ -134,6 +160,7 @@ function lineno_setup(path, lineno)
$(".code > pre > *").removeClass("select-line");
$(n_lineno).addClass("select-line");
- $("#lineno-path").text(path + lineno);
+ // $("#lineno-path").text(path + lineno);
+ $("#lineno-path").html(path + lineno + clippy_text(path + lineno));
$("#lineno-body").html($(n_lineno).html());
}

0 comments on commit 9af5419

Please sign in to comment.