I would like to add a sound effect when a page is turned, using the turn.js jquery plugin. So the first step would be to test the function that does that according to the online documentation. So the code should be something like:
<script type="text/javascript">
function loadApp() {
// Create the flipbook
$('.flipbook').turn({
width:1000,
height:680,
elevation: 50,
gradients: true,
autoCenter: false,
});
$("#flipbook").bind("turned", function(event, page, view) {
alert("Page: "+page);
});
}
yepnope({
test : Modernizr.csstransforms,
yep: ['../res_cod/js/turn.js'],
nope: ['../res_cod/js/turn.html4.min.js'],
both: ['../res_cod/css/basic.css'],
complete: loadApp
});
</script>
But the thing is nothing happens in the developers console. No alert, no nothing.