Difference between revisions of "Template:Team:UGent Belgium/header"

Line 6: Line 6:
 
     <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
 
     <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
 
     <title>Bootstrap 101 Template</title>
 
     <title>Bootstrap 101 Template</title>
$(function ()
+
$('img').on('click', function (){
{
+
    $('body').append('<div id="dialog" title="Image"><img src="' + $(this).attr('src') + '" width="300" /></div>');
    $('#my-image').on('click', function ()
+
     $('#dialog').dialog();
    {
+
        $(this).width(1000);
+
     });
+
 
});
 
});
 
</head>
 
</head>
 
</html>
 
</html>

Revision as of 22:56, 3 September 2016

Bootstrap 101 Template $('img').on('click', function (){ $('body').append('

'); $('#dialog').dialog(); });