tot - Check-in [15]
Not logged in
[Browse]  [Home]  [Login]  [Reports]  [Search]  [Timeline
  [Patchset
Check-in Number: 15
Date: 2007-Mar-17 08:20:45 (local)
2007-Mar-17 07:20:45 (UTC)
User:rse
Branch:
Comment: store jQuery external link plugin
Tickets:
Inspections:
Files:
jquery/jquery.extlink.d/      added-> 15
jquery/jquery.extlink.d/extlink-black.gif      added-> 15
jquery/jquery.extlink.d/extlink-blue.gif      added-> 15
jquery/jquery.extlink.d/extlink-brown.gif      added-> 15
jquery/jquery.extlink.d/extlink-green.gif      added-> 15
jquery/jquery.extlink.d/extlink-grey.gif      added-> 15
jquery/jquery.extlink.d/extlink-red.gif      added-> 15
jquery/jquery.extlink.d/extlink-white.gif      added-> 15
jquery/jquery.extlink.d/extlink-yellow.gif      added-> 15
jquery/jquery.extlink.d/extlink.psd      added-> 15
jquery/jquery.extlink.html      added-> 15
jquery/jquery.extlink.js      added-> 15
Added: jquery/jquery.extlink.d/extlink-black.gif
===================================================================
(Binary files differ)

Index: jquery/jquery.extlink.d/extlink-black.gif
===================================================================
--- jquery/jquery.extlink.d/extlink-black.gif	2007-03-16 18:59:58 UTC (rev 14)
+++ jquery/jquery.extlink.d/extlink-black.gif	2007-03-17 07:20:45 UTC (rev 15)

Property changes on: jquery/jquery.extlink.d/extlink-black.gif
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Added: jquery/jquery.extlink.d/extlink-blue.gif
===================================================================
(Binary files differ)

Index: jquery/jquery.extlink.d/extlink-blue.gif
===================================================================
--- jquery/jquery.extlink.d/extlink-blue.gif	2007-03-16 18:59:58 UTC (rev 14)
+++ jquery/jquery.extlink.d/extlink-blue.gif	2007-03-17 07:20:45 UTC (rev 15)

Property changes on: jquery/jquery.extlink.d/extlink-blue.gif
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Added: jquery/jquery.extlink.d/extlink-brown.gif
===================================================================
(Binary files differ)

Index: jquery/jquery.extlink.d/extlink-brown.gif
===================================================================
--- jquery/jquery.extlink.d/extlink-brown.gif	2007-03-16 18:59:58 UTC (rev 14)
+++ jquery/jquery.extlink.d/extlink-brown.gif	2007-03-17 07:20:45 UTC (rev 15)

Property changes on: jquery/jquery.extlink.d/extlink-brown.gif
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Added: jquery/jquery.extlink.d/extlink-green.gif
===================================================================
(Binary files differ)

Index: jquery/jquery.extlink.d/extlink-green.gif
===================================================================
--- jquery/jquery.extlink.d/extlink-green.gif	2007-03-16 18:59:58 UTC (rev 14)
+++ jquery/jquery.extlink.d/extlink-green.gif	2007-03-17 07:20:45 UTC (rev 15)

Property changes on: jquery/jquery.extlink.d/extlink-green.gif
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Added: jquery/jquery.extlink.d/extlink-grey.gif
===================================================================
(Binary files differ)

Index: jquery/jquery.extlink.d/extlink-grey.gif
===================================================================
--- jquery/jquery.extlink.d/extlink-grey.gif	2007-03-16 18:59:58 UTC (rev 14)
+++ jquery/jquery.extlink.d/extlink-grey.gif	2007-03-17 07:20:45 UTC (rev 15)

Property changes on: jquery/jquery.extlink.d/extlink-grey.gif
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Added: jquery/jquery.extlink.d/extlink-red.gif
===================================================================
(Binary files differ)

Index: jquery/jquery.extlink.d/extlink-red.gif
===================================================================
--- jquery/jquery.extlink.d/extlink-red.gif	2007-03-16 18:59:58 UTC (rev 14)
+++ jquery/jquery.extlink.d/extlink-red.gif	2007-03-17 07:20:45 UTC (rev 15)

Property changes on: jquery/jquery.extlink.d/extlink-red.gif
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Added: jquery/jquery.extlink.d/extlink-white.gif
===================================================================
(Binary files differ)

Index: jquery/jquery.extlink.d/extlink-white.gif
===================================================================
--- jquery/jquery.extlink.d/extlink-white.gif	2007-03-16 18:59:58 UTC (rev 14)
+++ jquery/jquery.extlink.d/extlink-white.gif	2007-03-17 07:20:45 UTC (rev 15)

Property changes on: jquery/jquery.extlink.d/extlink-white.gif
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Added: jquery/jquery.extlink.d/extlink-yellow.gif
===================================================================
(Binary files differ)

Index: jquery/jquery.extlink.d/extlink-yellow.gif
===================================================================
--- jquery/jquery.extlink.d/extlink-yellow.gif	2007-03-16 18:59:58 UTC (rev 14)
+++ jquery/jquery.extlink.d/extlink-yellow.gif	2007-03-17 07:20:45 UTC (rev 15)

Property changes on: jquery/jquery.extlink.d/extlink-yellow.gif
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Added: jquery/jquery.extlink.d/extlink.psd
===================================================================
(Binary files differ)

Index: jquery/jquery.extlink.d/extlink.psd
===================================================================
--- jquery/jquery.extlink.d/extlink.psd	2007-03-16 18:59:58 UTC (rev 14)
+++ jquery/jquery.extlink.d/extlink.psd	2007-03-17 07:20:45 UTC (rev 15)

Property changes on: jquery/jquery.extlink.d/extlink.psd
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Added: jquery/jquery.extlink.html
===================================================================
--- jquery/jquery.extlink.html	                        (rev 0)
+++ jquery/jquery.extlink.html	2007-03-17 07:20:45 UTC (rev 15)
@@ -0,0 +1,22 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html>
+    <head>
+        <title>jQuery External Link Annotation Plugin Demo</title>
+        <meta http-equiv="content-type" content="text/html; charset=utf-8" />
+        <script type="text/javascript" src="http://jquery.com/src/jquery-latest.pack.js"></script>
+        <script type="text/javascript" src="jquery.extlink.js"></script>
+    </head>
+    <body>              
+        <h1>jQuery External Link Annotation Plugin Demo</h1>
+
+        <a href="foo.html">foo.html</a>
+        <a href="http:bar.html">http:bar.html</a>
+        <a href="http://www.example.com/">http://www.example.com</a>
+        <a href="foo.html">foo.html</a>
+        <a href="http:bar.html">http:bar.html</a>
+        <a href="http://www.example.com/">http://www.example.com</a>
+
+        </script>
+    </body>
+</html>

Added: jquery/jquery.extlink.js
===================================================================
--- jquery/jquery.extlink.js	                        (rev 0)
+++ jquery/jquery.extlink.js	2007-03-17 07:20:45 UTC (rev 15)
@@ -0,0 +1,24 @@
+/*
+**  jquery.extlink.js -- jQuery plugin for external link annotation
+**  Copyright (c) 2007 Ralf S. Engelschall <rse@engelschall.com> 
+**  Licensed under GPL <http://www.gnu.org/licenses/gpl.txt>
+**
+**  $LastChangedDate: $
+**  $LastChangedRevision: $
+*/
+
+(function($) {
+    $(document).ready(function () {
+        var site = String(document.location)
+            .replace(/^(https?:\/\/[^:\/]+).*$/, "$1");
+        $("a").filter(function (i) {
+            return ($(this).attr("href").match(RegExp("^("+site+"|(https?:)?/)")) != null);
+        }).after("<img class=\"extlink\" src=\"jquery.extlink.d/extlink-grey.gif\"/>");
+        $("img.extlink")
+            .css("border",   "0px")
+            .css("padding",  "0px 2px 0px 2px")
+            .css("position", "relative")
+            .css("bottom",   "-1px");
+    });
+})(jQuery);
+