Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Fix the chref() helper function so that it correctly renders the class attribute on the generated hyperlink with hyperlink display is delayed as an anti-robot defense. |
---|---|
Downloads: | Tarball | ZIP archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
f54b4bf1bd764ef7dce791feb3956a50 |
User & Date: | drh 2019-01-26 02:26:56.464 |
Context
2019-01-26
| ||
02:50 | Disable the HH:MM timestamps on narrow display using javascript. ... (check-in: 4a1a474f user: drh tags: trunk) | |
02:36 | Does not work. Was: Do not display the "HH:MM" timestamps to the left of the graph on very narrow displays (phones in viewed in portrait mode) as the HH:MM takes up precious horizontal space and does not add that much value to the display. ... (Closed-Leaf check-in: 31c64c3b user: drh tags: mistake) | |
02:26 | Fix the chref() helper function so that it correctly renders the class attribute on the generated hyperlink with hyperlink display is delayed as an anti-robot defense. ... (check-in: f54b4bf1 user: drh tags: trunk) | |
2019-01-23
| ||
03:09 | Make it easier to build multiple configurations of Fossil with MSVC. ... (check-in: 8db943fa user: mistachkin tags: trunk) | |
Changes
Changes to src/style.c.
︙ | ︙ | |||
154 155 156 157 158 159 160 | char *chref(const char *zExtra, const char *zFormat, ...){ char *zUrl; va_list ap; va_start(ap, zFormat); zUrl = vmprintf(zFormat, ap); va_end(ap); if( g.perm.Hyperlink && !g.javascriptHyperlink ){ | | | 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 | char *chref(const char *zExtra, const char *zFormat, ...){ char *zUrl; va_list ap; va_start(ap, zFormat); zUrl = vmprintf(zFormat, ap); va_end(ap); if( g.perm.Hyperlink && !g.javascriptHyperlink ){ char *zHUrl = mprintf("<a class=\"%s\" href=\"%h\">", zExtra, zUrl); fossil_free(zUrl); return zHUrl; } needHrefJs = 1; return mprintf("<a class='%s' data-href='%z' href='%R/honeypot'>", zExtra, zUrl); } |
︙ | ︙ |