mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-30 19:00:09 +00:00
minor adjustments, think I'm done, now time to merge...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
57eb32af78
commit
65ac6a179f
@ -23,6 +23,15 @@ $(document).ready(function(){
|
|||||||
$('.current.square').click()
|
$('.current.square').click()
|
||||||
})
|
})
|
||||||
|
|
||||||
|
function toggleMarkers(){
|
||||||
|
var marker = $('.v-marker, .h-marker')
|
||||||
|
if(marker.css('display') == 'none'){
|
||||||
|
marker.fadeIn()
|
||||||
|
} else {
|
||||||
|
marker.fadeOut()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
function squareClick(){
|
function squareClick(){
|
||||||
// set classes...
|
// set classes...
|
||||||
$('.current').removeClass('current')
|
$('.current').removeClass('current')
|
||||||
@ -339,13 +348,18 @@ function fitThreeImages(){
|
|||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
Zoom: <button onclick="zoomContainerBy(2)">+</button>
|
Guides:
|
||||||
|
<button onclick="toggleMarkers()">Toggle Guides</button>
|
||||||
|
<br>
|
||||||
|
|
||||||
|
Zoom:
|
||||||
|
<button onclick="zoomContainerBy(2)">+</button>
|
||||||
<button onclick="zoomContainerBy(0.5)">-</button>
|
<button onclick="zoomContainerBy(0.5)">-</button>
|
||||||
<button onclick="setContainerZoom(1)">Original</button>
|
<button onclick="setContainerZoom(1)">Original</button>
|
||||||
<button onclick="fitImage()">Image</button>
|
<button onclick="fitImage()">Image</button>
|
||||||
<button onclick="fitThreeImages()">Three</button>
|
<button onclick="fitThreeImages()">Three</button>
|
||||||
|
|
||||||
<br>
|
<br>
|
||||||
|
|
||||||
Size:
|
Size:
|
||||||
<button onclick="containerSize($('.meta-container').width()*1.5, $('.meta-container').height()*1.5)">+</button>
|
<button onclick="containerSize($('.meta-container').width()*1.5, $('.meta-container').height()*1.5)">+</button>
|
||||||
<button onclick="containerSize($('.meta-container').width()*0.75, $('.meta-container').height()*0.75)">-</button>
|
<button onclick="containerSize($('.meta-container').width()*0.75, $('.meta-container').height()*0.75)">-</button>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user