gallery
This commit is contained in:
parent
bfcb370a29
commit
267bc56c70
|
@ -29,6 +29,13 @@ $('#listLeft ul li a').live("click", function() {
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
$('.thumbsDetails').live("click", function(e) {
|
||||||
|
// alert($(this).attr("data-bigimage"));
|
||||||
|
var bigImge = $(this).attr("data-bigimage");
|
||||||
|
var $img = $('<img />').attr("src", bigImage);
|
||||||
|
$('#lightboxContent').empty().append($img);
|
||||||
|
});
|
||||||
|
|
||||||
$('.toggleNext').live("click", function(e) {
|
$('.toggleNext').live("click", function(e) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
var $next = $(this).next();
|
var $next = $(this).next();
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
<div class="thumbsGallery">
|
<div class="thumbsGallery">
|
||||||
{% for img in images %}
|
{% for img in images %}
|
||||||
{% thumbnail img.image "100x100" crop="center" as im %}
|
{% thumbnail img.image "100x100" crop="center" as im %}
|
||||||
<img class="itfInfoImg" src="{{ im.url }}" class="thumbsDetails" />
|
<img src="{{ im.url }}" class="thumbsDetails" data-bigimage="/static/{{ img.url }}"/>
|
||||||
{% endthumbnail %}
|
{% endthumbnail %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -15,6 +15,11 @@
|
||||||
|
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
|
<div id="lightBox">
|
||||||
|
<div id="lightBoxContent">
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<div id="centerInner">
|
<div id="centerInner">
|
||||||
<div id="woodPng">
|
<div id="woodPng">
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user