Skip to content

Commit

Permalink
Add page numbers (issue #47) but work still needs done to highlight a…
Browse files Browse the repository at this point in the history
…nd scroll to current page
  • Loading branch information
JohnSmith-LT committed Mar 13, 2014
1 parent 31ab004 commit d5fa26a
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion modules/xerte/parent_templates/Nottingham/models_html5/menu.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,14 @@
$thisItem = $menuItem;
}

$thisItem.html(x_pages[i+numOffset].getAttribute("name"));
$thisItem.html((i+1) + ") " + x_pages[i+numOffset].getAttribute("name"));
}

// First attempt at setting current page...
// problem is that this needs to change each time page is changed so needs to go there...
//$menuItems = $("#menuItems")[x_currentPage].addClass("current");


$("#menuItems .menuItem")
.button()
.click(function() {
Expand Down Expand Up @@ -134,6 +139,10 @@
width: 100%;
}

#menuItems .menuItem.current {
color: white;
}

</style>

<div id="menuHolder" class="splitScreen">
Expand Down

0 comments on commit d5fa26a

Please sign in to comment.