Documentation Source Text

Check-in [4f106d99e8]
Login

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

Overview
Comment:Improved javascript for randomizing the order of sponsor icons. Remove the document.write() calls.
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 4f106d99e8dbe83052fe3b4c982e3c685f267fd7
User & Date: drh 2015-12-11 15:50:59.091
Context
2015-12-30
15:10
Fix a problem in an SQL example in fts3.html. (check-in: 4648330f75 user: dan tags: trunk)
2015-12-22
16:03
Modify the bubble-diagram generator script to use the TkPath extension. (check-in: 08bf2dfe78 user: chw tags: bubble-generator-tkpath)
2015-12-11
15:50
Improved javascript for randomizing the order of sponsor icons. Remove the document.write() calls. (check-in: 4f106d99e8 user: drh tags: trunk)
2015-12-09
14:13
Updates to the famous users list. (check-in: bf79c7d26b user: drh tags: trunk)
Changes
Unified Diff Ignore Whitespace Patch
Changes to pages/index.in.
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<h3>Sponsors</h3>
<p>Continuing enhancement and maintenance of SQLite is made possible
by <a href="consortium.html">SQLite Consortium</a> members, including:</p>

<a name="consortium_members"></a>
<center>
<table border="0" cellpadding="15">

<tcl>
hd_puts "<script language=\"JavaScript\">\n"
set sep {var sponsors = [}
set nspons 0
foreach spons {
  {name   Mozilla
   url    https://www.mozilla.com/
   image  mozilla.gif
   blurb  "Working to preserve choice and innovation on the internet."
  }
  {name   Bloomberg
   url    https://www.bloomberg.com/







<

<
|
<
<







19
20
21
22
23
24
25

26

27


28
29
30
31
32
33
34
<h3>Sponsors</h3>
<p>Continuing enhancement and maintenance of SQLite is made possible
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."
  }
  {name   Bloomberg
   url    https://www.bloomberg.com/
48
49
50
51
52
53
54

55
56
57
58
59
60
61
62



63








64
65
66
67
68
69
70
71




72

73
74
75
76
77
78
79
80
81
82
83



84
85
86
87
88
89
90
91

92
93
94
95
96
97
98
99
100


101
102
103
104
105
106
107
   url    http://www.nds-association.org/
   image  nds.png
   blurb  "The leading map standard for automotive infotainment and autonomous driving."
  }
  {name   Expensify
   url    https://www.expensify.com/
   image  expensify.png

   size   "width=\"225\" height=\"32\""
   blurb  "We power the most exciting companies in the world using SQLite."
  }
  {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."
  }



} {








  hd_puts $sep\173\n
  set sep ","
  unset -nocomplain x
  set x(size) {}
  array set x $spons
  hd_puts "  \"name\":\"$x(name)\",\n"
  hd_puts "  \"url\":\"$x(url)\",\n"
  hd_puts "  \"image\":\"$x(image)\",\n"




  hd_puts "  \"size\":\"[string map {\" \\\"} $x(size)]\"\n"

  hd_puts "  \175"
  incr nspons
}
unset -nocomplain x
hd_puts "\];\n"
hd_puts "var count = $nspons;\n"
hd_puts "var n = 0;\n"
hd_puts "var htxt = \"\";\n"
hd_puts [subst -nocommands -nobackslashes {
  while( count>0 ){
    i = Math.floor(Math.random()*$nspons)



    if( sponsors[i]!=null ){
      var x = ((++n)%2)==1;
      if( x ) htxt += "<tr>\n";
      htxt += "<td align='center'>\n"+
         "<a href='"+sponsors[i].url+"'><img src='images/foreignlogos/"+sponsors[i].image+
         "' "+sponsors[i].size+" border='0' alt='"+sponsors[i].name+"'></a></td>";
      sponsors[i] = null
      count--

    }
  }}]\n
hd_puts "document.write(htxt)\n"
hd_puts "</script>"
</tcl>

</table>
</center>




</td>
<td width="20"></td><td bgcolor="#044a64" width="1"></td><td width="20"></td>
<td valign="top">
<h3>Current Status</h3>

<p><ul>







>
|







>
>
>
|
>
>
>
>
>
>
>
>
|


<

|
|
|
>
>
>
>
|
>




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

<
<
<
<
|
<
<
|
>
>







44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74

75
76
77
78
79
80
81
82
83
84
85
86
87
88
89

90



91
92
93
94
95
96


97
98
99

100
101




102


103
104
105
106
107
108
109
110
111
112
   url    http://www.nds-association.org/
   image  nds.png
   blurb  "The leading map standard for automotive infotainment and autonomous driving."
  }
  {name   Expensify
   url    https://www.expensify.com/
   image  expensify.png
   width  225
   height 32
   blurb  "We power the most exciting companies in the world using SQLite."
  }
  {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
  hd_putsnl "    \"name\":\"$x(name)\","
  hd_putsnl "    \"href\":\"$x(url)\","
  hd_putsnl "    \"src\":\"$x(image)\","
  if {[info exists x(width)]} {
    hd_putsnl "    \"wx\":$x(width),"
    hd_putsnl "    \"hx\":$x(height)"
  } else {
    hd_putsnl "    \"wx\":0"
  }
  hd_puts "  \175"
  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>

</td>
<td width="20"></td><td bgcolor="#044a64" width="1"></td><td width="20"></td>
<td valign="top">
<h3>Current Status</h3>

<p><ul>