Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Lists with varying numbers of columns depending on screen width are converted to work off of CSS rather than using javascript. |
---|---|
Downloads: | Tarball | ZIP archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
bae1400568ff37afbef4ffb556238869 |
User & Date: | drh 2020-02-08 21:52:13.820 |
Context
2020-02-10
| ||
17:23 | Work toward splitting up the "lang.in" source file into individual source files, one for each language topic. (check-in: 90730870c5 user: drh tags: trunk) | |
2020-02-08
| ||
21:52 | Lists with varying numbers of columns depending on screen width are converted to work off of CSS rather than using javascript. (check-in: bae1400568 user: drh tags: trunk) | |
2020-02-03
| ||
16:23 | Add change log for 3.32.0. (check-in: 69840d9eb5 user: drh tags: trunk) | |
Changes
Changes to rawpages/sqlite.css.
︙ | ︙ | |||
282 283 284 285 286 287 288 | } th.sort.asc:after { content: '\2193'; } th.sort.desc:after { content: '\2191' } | > > > > > > > > > > > > > > > > > > > > | 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 | } th.sort.asc:after { content: '\2193'; } th.sort.desc:after { content: '\2191' } div.columns { padding: 0 2em 0 2em; max-width: 2000px; } div.columns > ul { margin: 0; padding: 0 0 0 1em; list-style-type: none; padding: 10px; margin: 0px; white-space: nowrap; } div.columns > ul li:first-child { margin-top:0px; } .columns li { break-inside: avoid; page-break-inside: avoid; } |
Changes to wrap.tcl.
︙ | ︙ | |||
208 209 210 211 212 213 214 | } return $hd(rootpath-aux)$glink($kw) } } return "" } | < < < < < < < < < < < < < < < < | < < < < < < | < < | < < | > | | | | < < < < < < < < < < > > | > > > > | | | | < < < < < > | < < < < < < < < < < < < < < < < < | < < | 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 | } return $hd(rootpath-aux)$glink($kw) } } return "" } # Output HTML/JS that displays the list $lx in multiple columns # under the assumption that each column is $w pixels wide. The # number of columns automatically adjusts to fill the available # screen width. # # If $title is not an empty string, then it is used as a title for # the list of links # # $lx is a list of triples. Each triple is {KEYWORD LABEL S}. The # S determines a suffix added to each list element: # # 0: Add nothing (the default and common case) # 1: Add the "(exp)" suffix # 2: Strike through the text and do not hyperlink # 3: Strike through the text and add ¹ # 4: Add ² # 5: Add ³ # proc hd_list_of_links {title w lx} { set w [expr {$w/20}]em hd_puts "<div class='columns' style='columns: ${w} auto;'>\n" hd_puts "<ul style='padding-top:0;'>\n" foreach x $lx { foreach {kw lbl s} $x break set suffix {} set prefix {} switch $s { 1 {set suffix "<small><i>(exp)</i></small>"} 2 {set suffix "</s>"; set prefix "<s>"; set kw ""} 3 {set suffix "¹</s>"; set prefix "<s>"} 4 {set suffix "²"} 5 {set suffix "³"} } if {$kw!=""} { set url [hd_keyword_to_uri $kw] hd_puts "<li><a href='$url'>$prefix$lbl$suffix</a></li>\n" } else { hd_puts "<li>$prefix$lbl$suffix</li>\n" } } hd_puts "</ul>\n" hd_puts "</div>\n" } # Record the fact that all keywords given in the argument list should # cause a jump to the current location in the current file. # # If only the main output file is open, then all references to the # keyword jump to the main output file. If both main and aux are |
︙ | ︙ |