Files
mythoughts/masks/read.html
2020-03-22 17:29:50 +01:00

18 lines
493 B
HTML
Executable File

<div id="read"></div>
<script type="text/javascript">
oMyThoughts.pageInit = function(asHash, bFirstPage) {
oEditor = new Editor('#read', true);
oEditor.open(asHash.items[0]);
};
oMyThoughts.onSamePageMove = function(asHash) {
$('#read').empty();
self.pageInit(self.getHash());
return false;
};
oMyThoughts.onKeydown = function(oEvent) {
if(oEvent.which == 37 || oEvent.which == 38) oEditor.prevPage();
else if(oEvent.which == 39 || oEvent.which == 40) oEditor.nextPage();
}
</script>