wepub

Check-in [e4c67a9fe8]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:We have a styling file, use it.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | master | trunk
Files: files | file ages | folders
SHA3-256:e4c67a9fe833d4910dc8114be9ce1b700fc7d62fb8e6eaa52cebc49be5d05576
User & Date: vandys 2018-06-29 00:22:37
Context
2019-01-14
00:16
Implement explicit thread excusion when updating var/state stuff. Bit by fact that int's/float's can't be keys in JS objects; map back to str of int for secnum storage. Add a bit of debug logging for corrupt JSON. check-in: 8382ca6fac user: vandys tags: master, trunk
2018-06-29
00:22
We have a styling file, use it. check-in: e4c67a9fe8 user: vandys tags: master, trunk
2018-06-12
23:41
Normalize use of [un]quote_plus. Fix chapter numbering error (very first chapter was previously not reachable). check-in: e73f6a45c6 user: vandys tags: master, trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to css/epub.css.

1
2
3
4
5
6
7






body {
 background: black;
 border-width: 0px;
}
body > a {
 color: gold;
}













>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
body {
 background: black;
 border-width: 0px;
}
body > a {
 color: gold;
}
#textview {
 color: white;
 background: black;
 width: 100%;
 font-size: 14px;
}

Changes to get.py.

155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
            buf = self.build_header(head)
            buf += '<script src="/js/reader.js"></script>\n'
            if chapnum > 0:
                buf += '<a href="%d">Previous Chapter</a>\n' % \
                 (chapnum,)
	    buf += '<link rel="stylesheet" type="text/css"'
	    buf += ' href="/css/epub.css" />\n'
            buf += '<div id="textview"\n'
            buf += '  style="color: white; background: black;'
            buf += '  width: 100%; font-size: 14px;">\n'
            buf += chore.utils.uncharenc(chap.read())
            buf += '</div>\n'
            if chapnum < len(book.chapters)-1:
                buf += '<a href="%d">Next Chapter</a>\n' % \
                 (chapnum+2,)
            doc.close()
            buf += '<script>reading("%s", "%s", "%s");</script>\n' % \







|
<
<







155
156
157
158
159
160
161
162


163
164
165
166
167
168
169
            buf = self.build_header(head)
            buf += '<script src="/js/reader.js"></script>\n'
            if chapnum > 0:
                buf += '<a href="%d">Previous Chapter</a>\n' % \
                 (chapnum,)
	    buf += '<link rel="stylesheet" type="text/css"'
	    buf += ' href="/css/epub.css" />\n'
            buf += '<div id="textview">\n'


            buf += chore.utils.uncharenc(chap.read())
            buf += '</div>\n'
            if chapnum < len(book.chapters)-1:
                buf += '<a href="%d">Next Chapter</a>\n' % \
                 (chapnum+2,)
            doc.close()
            buf += '<script>reading("%s", "%s", "%s");</script>\n' % \