18 lines
493 B
HTML
Executable File
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> |