2012-06-05 15:26:41 +04:00
|
|
|
|
|
|
|
|
<!--
|
|
|
|
|
-->
|
|
|
|
|
|
2012-06-08 18:30:54 +04:00
|
|
|
<link rel="stylesheet" href="gallery.css">
|
2012-06-05 15:26:41 +04:00
|
|
|
<script src="jquery.js"></script>
|
2012-06-07 14:59:30 +04:00
|
|
|
|
2012-06-13 15:16:43 +04:00
|
|
|
<script src="jquery.touchSwipe.js"></script>
|
2012-06-08 01:01:34 +04:00
|
|
|
<!-- script src="jquery.wipetouch.js"></script-->
|
2012-06-07 14:59:30 +04:00
|
|
|
<!-- XXX this does not work on android... -->
|
2012-06-13 15:16:43 +04:00
|
|
|
<!-- script src="jquery.gestures.js"></script-->
|
2012-06-07 14:59:30 +04:00
|
|
|
<!-- XXX need to figure out how to disable all the bling -->
|
|
|
|
|
<!-- script src="jquery.mobile.js"></script-->
|
2012-06-05 17:50:58 +04:00
|
|
|
|
2012-06-08 18:30:54 +04:00
|
|
|
<!-- XXX STUB -->
|
|
|
|
|
<script src="images.js"></script>
|
|
|
|
|
<script src="gallery-prototype.js"></script>
|
2012-06-05 16:28:47 +04:00
|
|
|
|
2012-07-24 14:55:10 +04:00
|
|
|
<script src="ui.js"></script>
|
|
|
|
|
|
2012-06-08 18:30:54 +04:00
|
|
|
<!--script src="gallery.js"></script-->
|
2012-06-05 16:28:47 +04:00
|
|
|
|
2012-06-08 18:30:54 +04:00
|
|
|
<script>
|
2012-07-24 14:55:10 +04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
function setup(){
|
|
|
|
|
// XXX load state...
|
|
|
|
|
// initial state (default)...
|
|
|
|
|
setDefaultInitialState()
|
|
|
|
|
|
|
|
|
|
// setup event handlers...
|
|
|
|
|
setupKeyboard()
|
|
|
|
|
setupGestures()
|
|
|
|
|
setupControlElements()
|
|
|
|
|
|
2012-07-24 15:38:54 +04:00
|
|
|
// XXX
|
|
|
|
|
//fieldSize(800, 500)
|
|
|
|
|
|
2012-07-24 14:55:10 +04:00
|
|
|
// load images...
|
|
|
|
|
// XXX not allowed...
|
|
|
|
|
//$.getJSON('images.js', loadImages})
|
|
|
|
|
// XXX STUB
|
|
|
|
|
loadImages(image_list)
|
|
|
|
|
|
|
|
|
|
// set the default position and init...
|
|
|
|
|
$('.current.image').click()
|
|
|
|
|
}
|
|
|
|
|
$(document).ready(setup);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-06-05 15:26:41 +04:00
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style>
|
|
|
|
|
</style>
|
|
|
|
|
|
2012-06-08 15:17:48 +04:00
|
|
|
<div class="viewer">
|
|
|
|
|
<div class="controller">
|
|
|
|
|
<div class="demote">^</div>
|
|
|
|
|
<div class="prev-image"><</div>
|
|
|
|
|
<div class="promote">v</div>
|
|
|
|
|
<div class="toggle-single">[ ]</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="container">
|
|
|
|
|
<div class="field">
|
|
|
|
|
<div class="ribbon">
|
2012-06-08 17:59:38 +04:00
|
|
|
<!--div class="image mock-image"></div>
|
2012-06-08 15:17:48 +04:00
|
|
|
<div class="image mock-image"></div>
|
2012-06-08 17:59:38 +04:00
|
|
|
<div class="image mock-image"></div-->
|
2012-06-08 15:17:48 +04:00
|
|
|
</div>
|
2012-06-05 15:26:41 +04:00
|
|
|
</div>
|
|
|
|
|
</div>
|
2012-06-08 15:17:48 +04:00
|
|
|
<div class="controller">
|
|
|
|
|
<div class="demote">^</div>
|
|
|
|
|
<div class="next-image">></div>
|
|
|
|
|
<div class="promote">v</div>
|
|
|
|
|
<div class="toggle-wide">+/-</div>
|
|
|
|
|
</div>
|
2012-06-05 15:26:41 +04:00
|
|
|
</div>
|
|
|
|
|
|
2012-06-08 15:17:48 +04:00
|
|
|
<div class="demo-buttons">
|
2012-06-05 16:28:47 +04:00
|
|
|
|
2012-06-08 15:17:48 +04:00
|
|
|
<button onclick="firstImage()">first (home)</button>
|
|
|
|
|
<button onclick="prevImage()">prev (left)</button>
|
|
|
|
|
<button onclick="nextImage()">next (right)</button>
|
|
|
|
|
<button onclick="lastImage()">last (end)</button>
|
2012-06-06 16:47:53 +04:00
|
|
|
|
2012-07-24 15:53:34 +04:00
|
|
|
<!--br><br>
|
|
|
|
|
LEGACY:
|
2012-06-08 15:17:48 +04:00
|
|
|
<button onclick="showSingle()">single</button>
|
|
|
|
|
<button onclick="showRibbon()">ribbon</button>
|
2012-07-24 15:59:32 +04:00
|
|
|
<button onclick="toggleRibbonView()">toggle ribbon view (f)</button-->
|
2012-06-07 01:50:44 +04:00
|
|
|
|
2012-07-24 15:59:32 +04:00
|
|
|
<br><br>
|
2012-07-24 15:53:34 +04:00
|
|
|
|
|
|
|
|
<button onclick="zoomContainerBy(2)">Zoom in</button>
|
|
|
|
|
<button onclick="zoomContainerBy(0.5)">Zoom out</button>
|
|
|
|
|
<button onclick="setContainerZoom(1)">Original</button>
|
|
|
|
|
<button onclick="fitImage()">Image</button>
|
|
|
|
|
<button onclick="fitThreeImages()">Three</button>
|
|
|
|
|
|
2012-06-08 15:17:48 +04:00
|
|
|
<br><br>
|
2012-06-07 01:50:44 +04:00
|
|
|
|
2012-06-08 15:17:48 +04:00
|
|
|
<button onclick="toggleWideView()">toggle wide view</button>
|
2012-06-07 01:50:44 +04:00
|
|
|
|
2012-06-08 15:17:48 +04:00
|
|
|
<br><br>
|
2012-06-07 01:50:44 +04:00
|
|
|
|
2012-06-08 15:17:48 +04:00
|
|
|
<button onclick="createRibbonAbove()" disabled>create ribbon above (helper)</button><br>
|
|
|
|
|
<button onclick="createRibbonBelow()" disabled>create ribbon below (helper)</button>
|
2012-06-07 01:50:44 +04:00
|
|
|
|
2012-06-08 15:17:48 +04:00
|
|
|
<br><br>
|
2012-06-07 01:50:44 +04:00
|
|
|
|
2012-06-08 15:17:48 +04:00
|
|
|
<button onclick="mergeRibbonsUp()">merge ribbons up</button><br>
|
|
|
|
|
<button onclick="mergeRibbonsDown()">merge ribbons down</button>
|
2012-06-07 01:50:44 +04:00
|
|
|
|
2012-06-08 15:17:48 +04:00
|
|
|
<br><br>
|
2012-06-07 02:14:17 +04:00
|
|
|
|
2012-06-16 21:52:23 +04:00
|
|
|
<button onclick="shiftImageUp()">demote image (shift-up)</button><br>
|
|
|
|
|
<button onclick="shiftImageDown()">promote image (shift-down)</button><br>
|
2012-06-08 15:17:48 +04:00
|
|
|
NOTE: ctrl-shift-up / ctrl-shift-down will demote / promote an image to a new empty ribbon (the default if no ribbon exists)
|
2012-06-07 02:14:17 +04:00
|
|
|
|
2012-06-08 15:17:48 +04:00
|
|
|
<br><br>
|
2012-06-07 01:50:44 +04:00
|
|
|
|
2012-06-08 15:17:48 +04:00
|
|
|
<button onclick="focusAboveRibbon()">focus above ribbon (up)</button><br>
|
|
|
|
|
<button onclick="focusBelowRibbon()">focus below ribbon (down)</button>
|
|
|
|
|
|
|
|
|
|
</div>
|
2012-06-06 16:59:32 +04:00
|
|
|
|
2012-06-05 16:28:47 +04:00
|
|
|
<!-- vim:set ts=4 sw=4 nowrap : -->
|