Documentation Source Text

Check-in [b44e46cbef]
Login

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

Overview
Comment:Further improvements to the home page - make the sponsor images flow according to page width.
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | mobile-friendly
Files: files | file ages | folders
SHA1: b44e46cbef3719755a7c0fe5117c3611441afcb7
User & Date: drh 2016-08-31 15:09:47.120
Context
2016-08-31
17:00
Further refinement of the home page. (check-in: 9bab722ac3 user: drh tags: mobile-friendly)
15:09
Further improvements to the home page - make the sponsor images flow according to page width. (check-in: b44e46cbef user: drh tags: mobile-friendly)
13:35
Split out the CSS into a separate "sqlite.css" file. Add the "common_links" TCL procedure for generating the "Common Links" bullet list. Other changes to the homepage to try to be more mobile friendly. (check-in: 047e6c36f7 user: drh tags: mobile-friendly)
Changes
Unified Diff Ignore Whitespace Patch
Changes to pages/index.in.
23
24
25
26
27
28
29





30




31

32
33
34
35
36
37
38
39
40
41
<tcl>common_links</tcl>
</div>

<hr class="xhr">
<h3>Sponsors</h3>
<p>Ongoing development and support of SQLite is made possible in part
by <a href="consortium.html">SQLite Consortium</a> members, including:</p>












<a name="consortium_members"></a>
<center>
<table border="0" cellpadding="15">
<tcl>
set sponsors {
  {name   Mozilla
   url    https://www.mozilla.com/
   image  mozilla.gif
   blurb  "Working to preserve choice and innovation on the internet."
  }







>
>
>
>
>
|
>
>
>
>
|
>
|
|
<







23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43

44
45
46
47
48
49
50
<tcl>common_links</tcl>
</div>

<hr class="xhr">
<h3>Sponsors</h3>
<p>Ongoing development and support of SQLite is made possible in part
by <a href="consortium.html">SQLite Consortium</a> members, including:</p>
<a name="consortium_members"></a>
<style>
#sponsors {
  margin:auto;
  width:80%;
}
.onesponsor a img {
  width:200px;
  max-width:200px;
  padding:1ex;
}
</style>
<div id="sponsors"></div>
<script>

<tcl>
set sponsors {
  {name   Mozilla
   url    https://www.mozilla.com/
   image  mozilla.gif
   blurb  "Working to preserve choice and innovation on the internet."
  }
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
  }
  {name   Facebook
   url    https://www.facebook.com/
   image  fb.gif
   blurb  "Giving people the power to share and make the world more open and connected."
  }
}
set nspons [llength $sponsors]
for {set i 0} {$i<$nspons} {incr i} {
  if {$i%2==0} {hd_putsnl "<tr>"}
  hd_putsnl "  <td><a id='a$i'><img id='i$i'></a></td>"
  if {$i%2==1 || $i==$nspons-1} {hd_putsnl "</tr>"}
}
hd_putsnl "</table></center>"
hd_putsnl "<script language=\"JavaScript\">"
set sep {  var sponsors = [}
set nspons 0
foreach spons $sponsors {
  hd_putsnl $sep\173
  set sep ","
  unset -nocomplain x
  array set x $spons







<
<
<
<
<
<
<
<







72
73
74
75
76
77
78








79
80
81
82
83
84
85
  }
  {name   Facebook
   url    https://www.facebook.com/
   image  fb.gif
   blurb  "Giving people the power to share and make the world more open and connected."
  }
}








set sep {  var sponsors = [}
set nspons 0
foreach spons $sponsors {
  hd_putsnl $sep\173
  set sep ","
  unset -nocomplain x
  array set x $spons
95
96
97
98
99
100
101

102
103

104
105
106
107
108
109
110

111
112
113
114



  incr nspons
}
unset -nocomplain x
hd_putsnl "\];"
hd_puts {
  for(var i=0; i<sponsors.length; i++){sponsors[i].idx = Math.random();}
  sponsors.sort(function(a,b){return a.idx-b.idx});

  for(var i=0; i<sponsors.length; i++){
    var e = document.getElementById("a"+i);

    e.href = sponsors[i].href;
    var x = document.getElementById("i"+i);
    x.src = "images/foreignlogos/"+sponsors[i].src;
    if(sponsors[i].wx>0){
      x.width = sponsors[i].wx;
      x.height = sponsors[i].hx;
    }

  }
}
hd_putsnl "</script>"
</tcl>










>

<
>
|
<
|
|
|
<
|
>
|
<
<

>
>
>
96
97
98
99
100
101
102
103
104

105
106

107
108
109

110
111
112


113
114
115
116
  incr nspons
}
unset -nocomplain x
hd_putsnl "\];"
hd_puts {
  for(var i=0; i<sponsors.length; i++){sponsors[i].idx = Math.random();}
  sponsors.sort(function(a,b){return a.idx-b.idx});
  var h = "";
  for(var i=0; i<sponsors.length; i++){

    h += "<span class='onesponsor'><a href='";
    h += sponsors[i].href;

    h += "'><img src='images/foreignlogos/";
    h += sponsors[i].src;
    h += "'></a></span>\n";

  }
  document.getElementById("sponsors").innerHTML = h;
}


</tcl>
</script>
<br clear="both">
<hr class="xhr">