You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stratos.apache.org by ma...@apache.org on 2013/07/21 13:18:04 UTC

svn commit: r1505342 - /incubator/stratos/site/trunk/templates/skeleton.html

Author: madhura
Date: Sun Jul 21 11:18:04 2013
New Revision: 1505342

URL: http://svn.apache.org/r1505342
Log:
thumbnail link added to the architecture diagram

Modified:
    incubator/stratos/site/trunk/templates/skeleton.html

Modified: incubator/stratos/site/trunk/templates/skeleton.html
URL: http://svn.apache.org/viewvc/incubator/stratos/site/trunk/templates/skeleton.html?rev=1505342&r1=1505341&r2=1505342&view=diff
==============================================================================
--- incubator/stratos/site/trunk/templates/skeleton.html (original)
+++ incubator/stratos/site/trunk/templates/skeleton.html Sun Jul 21 11:18:04 2013
@@ -110,6 +110,37 @@
   
   <script src="/js/jquery-1.9.1.min.js"></script> 
   <script src="/js/bootstrap.min.js"></script>
+<script src="http://code.jquery.com/jquery-1.6.2.min.js"></script>
+  <script>
+jQuery(document).ready(function($) {
+	
+	$('.lightbox_trigger').click(function(e) {
+		e.preventDefault();
+		var image_href = $(this).attr("href");
+		if ($('#lightbox').length > 0) { // #lightbox exists
+			$('#content').html('<img src="' + image_href + '" />');
+			$('#lightbox').show();
+		}
+		
+		else { 
+			
+			var lightbox = 
+			'<div id="lightbox">' +
+				'<p>Click to close</p>' +
+				'<div id="content">' + 
+					'<img src="' + image_href +'" />' +
+				'</div>' +	
+			'</div>';
+			$('body').append(lightbox);
+		}
+		
+	});
 
+	$('#lightbox').live('click', function() {
+		$('#lightbox').hide();
+	});
+
+});
+</script>
 </body>
 </html>