Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Limit the width of syntax diagram images to the width of the screen. |
---|---|
Downloads: | Tarball | ZIP archive |
Timelines: | family | ancestors | descendants | both | mobile-friendly |
Files: | files | file ages | folders |
SHA1: |
2cbeb114ca3dd8603a28d059bd574718 |
User & Date: | drh 2016-08-31 21:38:55.345 |
Context
2016-09-01
| ||
00:48 | Reformat the core and aggregate function descriptions in a way that works better on mobile. Use the "output_list" proc for the lists of pragma and aggregate and core functions. (check-in: fc4a66aa03 user: drh tags: mobile-friendly) | |
2016-08-31
| ||
21:38 | Limit the width of syntax diagram images to the width of the screen. (check-in: 2cbeb114ca user: drh tags: mobile-friendly) | |
21:18 | Adjustments to the CSS for hyperlink buttons. (check-in: c40376b31c user: drh tags: mobile-friendly) | |
Changes
Changes to pages/syntax.in.
︙ | ︙ | |||
25 26 27 28 29 30 31 | foreach name $syntax_order { file mkdir $::DEST/syntax hd_open_aux syntax/$name.html hd_enable_main 0 hd_header "SQLite Syntax: $name" hd_keywords $name "$name syntax diagram" hd_putsnl "<h1 align='center'>$name</h1>" | | | 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 | foreach name $syntax_order { file mkdir $::DEST/syntax hd_open_aux syntax/$name.html hd_enable_main 0 hd_header "SQLite Syntax: $name" hd_keywords $name "$name syntax diagram" hd_putsnl "<h1 align='center'>$name</h1>" hd_putsnl "<div class='imgcontainer'>" hd_puts "<img alt=\"syntax diagram $name\" " hd_puts "src=\"../images/syntax/$name.gif\">" hd_putsnl "</img><br>" foreach {cx px} $syntax_linkage($name) break if {[llength $px]>0} { hd_puts "\nUsed by:" foreach c $px { |
︙ | ︙ | |||
56 57 58 59 60 61 62 | if {[llength $bklist]>0} { hd_puts "<br></br>\nSee also:" foreach c $bklist { hd_puts " <a href='../$c'>$c</a>" } } } | | | 56 57 58 59 60 61 62 63 64 65 66 | if {[llength $bklist]>0} { hd_puts "<br></br>\nSee also:" foreach c $bklist { hd_puts " <a href='../$c'>$c</a>" } } } hd_puts "\n</div>\n\n" hd_close_aux } </tcl> |
Changes to pages/syntaxdiagrams.in.
1 2 3 4 5 6 7 8 9 10 11 | <title>Syntax Diagrams For SQLite</title> <tcl>hd_keywords {syntax diagrams}</tcl> <h1 align=center>Syntax Diagrams For SQLite</h1> <tcl> foreach name $syntax_order { # hd_fragment $name *$name "$name syntax diagram" hd_puts "<a name=\"$name\"></a>" hd_puts "<h4>$name:</h4>" | | | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | <title>Syntax Diagrams For SQLite</title> <tcl>hd_keywords {syntax diagrams}</tcl> <h1 align=center>Syntax Diagrams For SQLite</h1> <tcl> foreach name $syntax_order { # hd_fragment $name *$name "$name syntax diagram" hd_puts "<a name=\"$name\"></a>" hd_puts "<h4>$name:</h4>" hd_puts "<div class='imgcontainer'>\n" hd_puts "<img src=\"images/syntax/$name.gif\"></img><br></br>" foreach {cx px} $syntax_linkage($name) break if {[llength $px]>0} { hd_puts "\nUsed by:" foreach c $px { hd_puts " <a href=\"#$c\">$c</a>" } |
︙ | ︙ | |||
33 34 35 36 37 38 39 | if {[llength $bklist]>0} { hd_puts "<br></br>\nSee also:" foreach c $bklist { hd_puts " <a href=\"$c\">$c</a>" } } } | | | 33 34 35 36 37 38 39 40 41 42 | if {[llength $bklist]>0} { hd_puts "<br></br>\nSee also:" foreach c $bklist { hd_puts " <a href=\"$c\">$c</a>" } } } hd_puts "\n</div>\n\n" } unset -nocomplain c cx px |
Changes to rawpages/sqlite.css.
︙ | ︙ | |||
154 155 156 157 158 159 160 161 162 163 164 165 166 167 | background: #fff; border: 1px solid #000; border-radius: 11px; padding-left: 4px; padding-right: 4px; line-height: 125%; } .doccat a { color: #044a64 ; text-decoration: none; } .doccat h { font-weight: bold; | > > > > > > | 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 | background: #fff; border: 1px solid #000; border-radius: 11px; padding-left: 4px; padding-right: 4px; line-height: 125%; } /* Container for an image */ .imgcontainer img { max-height: 100%; max-width: 100%; } .doccat a { color: #044a64 ; text-decoration: none; } .doccat h { font-weight: bold; |
︙ | ︙ |
Changes to wrap.tcl.
︙ | ︙ | |||
428 429 430 431 432 433 434 | #if {!$anonymous_flag} { # hd_resolve "<h4>\[$name:\]</h4>" #} hd_resolve "<p><b>\[$name:\]</b></p>" set alt "alt=\"syntax diagram $name\"" if {$hd(enable-main)} { | | | | | | | | | | | | | 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 | #if {!$anonymous_flag} { # hd_resolve "<h4>\[$name:\]</h4>" #} hd_resolve "<p><b>\[$name:\]</b></p>" set alt "alt=\"syntax diagram $name\"" if {$hd(enable-main)} { puts $hd(main) "<div class='imgcontainer'>\n\ <img $alt src=\"$hd(rootpath-main)images/syntax/$name.gif\"></img>\n\ </div>" } if {$hd(enable-aux)} { puts $hd(aux) "<div class='imgcontainer'>\n\ <img $alt src=\"$hd(rootpath-aux)images/syntax/$name.gif\"></img>\n\ </div>" } } proc HiddenBubbleDiagram {name} { global hd set alt "alt=\"syntax diagram $name\"" hd_resolve "<p><b>\[$name:\]</b> " if {$hd(enable-main)} { set a [hd_id] set b [hd_id] puts $hd(main) \ "<button id='$a' onclick='hideorshow(\"$a\",\"$b\")'>show</button>\ </p>\n\ <div id='$b' style='display:none;' class='imgcontainer'>\n\ <img $alt src=\"$hd(rootpath-main)images/syntax/$name.gif\"></img>\n\ </div>" } if {$hd(enable-aux)} { set a [hd_id] set b [hd_id] puts $hd(aux) \ "<button id='$a' onclick='hideorshow(\"$a\",\"$b\")'>show</button>\ </p>\n\ <div id='$b' style='display:none;' class='imgcontainer'>\n\ <img $alt src=\"$hd(rootpath-aux)images/syntax/$name.gif\"></img>\n\ </div>" } } proc RecursiveBubbleDiagram_helper {class name openlist exclude} { global hd syntax_linkage set alt "alt=\"syntax diagram $name\"" hd_resolve "<p><b>\[$name:\]</b>\n" set a [hd_id] set b [hd_id] set openflag 0 set open2 {} foreach x $openlist { if {$x==$name} { set openflag 1 } else { lappend open2 $x } } if {$openflag} { puts $hd($class) \ "<button id='$a' onclick='hideorshow(\"$a\",\"$b\")'>hide</button></p>\n\ <div id='$b' class='imgcontainer'>\n\ <img $alt src=\"$hd(rootpath-$class)images/syntax/$name.gif\" />" } else { puts $hd($class) \ "<button id='$a' onclick='hideorshow(\"$a\",\"$b\")'>show</button></p>\n\ <div id='$b' style='display:none;' class='imgcontainer'>\n\ <img $alt src=\"$hd(rootpath-$class)images/syntax/$name.gif\" />" } if {[info exists syntax_linkage($name)]} { foreach {cx px} $syntax_linkage($name) break foreach c $cx { if {[lsearch $exclude $c]>=0} continue RecursiveBubbleDiagram_helper $class $c $open2 [concat $exclude $cx] } } puts $hd($class) "</div>" } proc RecursiveBubbleDiagram {args} { global hd set show 1 set a2 {} foreach name $args { if {$name=="--initially-hidden"} { |
︙ | ︙ |