Commit ca535dc9 by Piotr Mitros

More logging, typo fixes

parent 20e0bdef
$("#accordion").accordion({active:${ active_chapter }});
$('.ui-accordion').bind('accordionchange', function(event, ui) {
var event_data = {'newheader':ui.newHeader.text(),
'oldheader':ui.oldHeader.text()};
log_event('accordion', event_data);
});
\ No newline at end of file
......@@ -76,7 +76,7 @@ $(function() {
<span class="ui-icon ui-icon-bullet" style="display:inline-block;"></span>
<a href="/profile"><b>Profile</b></a>
<span class="ui-icon ui-icon-bullet" style="display:inline-block;"></span>
<a href="/help">Help</a> <span class="ui-icon ui-icon-bullet" style="display:inline-block;"></span>
<a href="/s/help.html">Help</a> <span class="ui-icon ui-icon-bullet" style="display:inline-block;"></span>
<a href="/logout">Log out</a>
</td></tr><tr><td valign=top>
</td></tr></table>
......
......@@ -20,16 +20,16 @@ function goto_page(n) {
};
function prev_page() {
page=page-1;
if(page<1) page=1;
goto_page(page);
var newpage=page-1;
if(newpage<1) newpage=1;
goto_page(newpage);
log_event("book", {"type":"prevpage","new":page});
}
function next_page() {
page=page+1;
if(page>1764) page=1764;
goto_page(page);
var newpage=page+1;
if(newpage>1764) newpage=1764;
goto_page(newpage);
log_event("book", {"type":"nextpage","new":page});
}
......@@ -48,7 +48,7 @@ function next_page() {
<span class="ui-icon ui-icon-bullet" style="display:inline-block;"></span>
<a href="/profile">Profile</a>
<span class="ui-icon ui-icon-bullet" style="display:inline-block;"></span>
<a href="/help">Help</a> <span class="ui-icon ui-icon-bullet" style="display:inline-block;"></span>
<a href="/s/help.html">Help</a> <span class="ui-icon ui-icon-bullet" style="display:inline-block;"></span>
<a href="/logout">Log out</a>
</div>
<table>
......
......@@ -21,7 +21,7 @@
<span class="ui-icon ui-icon-bullet" style="display:inline-block;"></span>
<a href="/profile">Profile</a>
<span class="ui-icon ui-icon-bullet" style="display:inline-block;"></span>
<a href="/help">Help</a> <span class="ui-icon ui-icon-bullet" style="display:inline-block;"></span>
<a href="/s/help.html">Help</a> <span class="ui-icon ui-icon-bullet" style="display:inline-block;"></span>
<a href="/logout">Log out</a>
</div>
<div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment