Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
19567cc3
Commit
19567cc3
authored
Feb 26, 2013
by
Brian Wilson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update styling of pdfs to be more like textbooks
parent
fc9ab346
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
8 deletions
+24
-8
lms/templates/static_pdfbook.html
+24
-8
No files found.
lms/templates/static_pdfbook.html
View file @
19567cc3
...
@@ -41,17 +41,20 @@
...
@@ -41,17 +41,20 @@
</script>
</script>
</
%
block>
</
%
block>
<
%
use_nav_images =
False
%
>
<
%
include
file=
"/courseware/course_navigation.html"
args=
"active_page='pdftextbook/{0}'.format(book_index)"
/>
<
%
include
file=
"/courseware/course_navigation.html"
args=
"active_page='pdftextbook/{0}'.format(book_index)"
/>
<div
id=
"outerContainer"
>
<div
id=
"outerContainer"
>
<div
id=
"mainContainer"
>
<div
id=
"mainContainer"
class=
"book-wrapper"
>
<div
class=
"toolbar"
>
<div
class=
"toolbar"
>
<div
id=
"toolbarContainer"
>
<div
id=
"toolbarContainer"
>
<div
id=
"toolbarViewer"
>
<div
id=
"toolbarViewer"
>
<div
id=
"toolbarViewerLeft"
>
<div
id=
"toolbarViewerLeft"
>
<div
class=
"splitToolbarButton"
>
<div
class=
"splitToolbarButton"
>
%if use_nav_images != True:
<button
class=
"toolbarButton pageUp"
title=
"Previous Page"
id=
"previous"
tabindex=
"5"
>
<button
class=
"toolbarButton pageUp"
title=
"Previous Page"
id=
"previous"
tabindex=
"5"
>
<span>
Previous
</span>
<span>
Previous
</span>
</button>
</button>
...
@@ -59,6 +62,7 @@
...
@@ -59,6 +62,7 @@
<button
class=
"toolbarButton pageDown"
title=
"Next Page"
id=
"next"
tabindex=
"6"
>
<button
class=
"toolbarButton pageDown"
title=
"Next Page"
id=
"next"
tabindex=
"6"
>
<span>
Next
</span>
<span>
Next
</span>
</button>
</button>
%endif
</div>
</div>
<label
id=
"pageNumberLabel"
class=
"toolbarLabel"
for=
"pageNumber"
>
Page:
</label>
<label
id=
"pageNumberLabel"
class=
"toolbarLabel"
for=
"pageNumber"
>
Page:
</label>
<input
type=
"number"
id=
"pageNumber"
class=
"toolbarField pageNumber"
value=
"1"
size=
"4"
min=
"1"
tabindex=
"7"
>
<input
type=
"number"
id=
"pageNumber"
class=
"toolbarField pageNumber"
value=
"1"
size=
"4"
min=
"1"
tabindex=
"7"
>
...
@@ -103,13 +107,13 @@
...
@@ -103,13 +107,13 @@
%if 'chapters' in textbook:
%if 'chapters' in textbook:
<section
aria-label=
"Textbook Navigation"
class=
"book-sidebar"
>
<section
aria-label=
"Textbook Navigation"
class=
"book-sidebar"
>
<
div
id=
"pdf
booknav"
class=
"treeview-booknav"
>
<
ul
id=
"
booknav"
class=
"treeview-booknav"
>
<
%
def
name=
"print_entry(entry, index_value)"
>
<
%
def
name=
"print_entry(entry, index_value)"
>
<
div
id=
"pdfchapter-${index_value}"
>
<
li
id=
"pdfchapter-${index_value}"
>
<
span
class=
"chapter"
>
<
a
class=
"chapter"
>
${entry.get('title')}
${entry.get('title')}
</
span
>
</
a
>
</
div
>
</
li
>
</
%
def>
</
%
def>
<
%
index =
0
%
>
<
%
index =
0
%
>
...
@@ -117,11 +121,23 @@
...
@@ -117,11 +121,23 @@
<
%
index
+=
1
%
>
<
%
index
+=
1
%
>
${print_entry(entry, index)}
${print_entry(entry, index)}
% endfor
% endfor
</
div
>
</
ul
>
</section>
</section>
%endif
%endif
<div
id=
"viewerContainer"
>
<section
id=
"viewerContainer"
class=
"book"
>
%if use_nav_images:
<nav>
<ul>
<li
class=
"last"
>
<a
id=
"previous"
>
Previous page
</a>
</li>
<li
class=
"next"
>
<a
id=
"next"
>
Next page
</a>
</li>
</ul>
</nav>
%endif
<div
id=
"viewer"
contextmenu=
"viewerContextMenu"
></div>
<div
id=
"viewer"
contextmenu=
"viewerContextMenu"
></div>
</div>
</div>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment