]> git.donarmstrong.com Git - neurodebian.git/commitdiff
Optional coffee art gallery
authorMichael Hanke <michael.hanke@gmail.com>
Wed, 26 Sep 2012 12:15:14 +0000 (14:15 +0200)
committerMichael Hanke <michael.hanke@gmail.com>
Wed, 26 Sep 2012 12:15:14 +0000 (14:15 +0200)
sphinx/coffeeart.rst

index e64b075befefa786f7f8ab7a13930c10871f2da1..be8f8cfdfe7ffd2fa0686c2d6199c5c811935e8a 100644 (file)
@@ -195,4 +195,14 @@ Coffee Art
 .. figure:: /pics/coffeeart/IMG_6647.JPG
 
 
+.. raw:: html
+
+  <script type="text/javascript">
+  $(document).ready(function(){
+    $('.figure img').each(function() {
+      $(this).wrap('<a class="figurelink" href="' + $(this).attr('src') + '" rel="coffee"></a>');
+    });
+    $('a.figurelink').fancybox();
+  });
+  </script>