Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| Comment: | Fix minor script problems. Actually turn on CSP. |
|---|---|
| Downloads: | Tarball | ZIP archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA3-256: |
e59a7fd3cfe7b9aef7b9ff908046779c |
| User & Date: | drh 2017-12-07 01:57:52.161 |
Context
|
2017-12-07
| ||
| 11:33 | Spelling typos from Debian ... (check-in: 4d1ac686c4 user: drh tags: trunk) | |
| 01:57 | Fix minor script problems. Actually turn on CSP. ... (check-in: e59a7fd3cf user: drh tags: trunk) | |
|
2017-12-06
| ||
| 23:06 | Fix the automatic Tags checkbox on the /ci_edit page. ... (check-in: 98fabd648d user: drh tags: trunk) | |
Changes
Changes to src/graph.js.
| ︙ | ︙ | |||
178 179 180 181 182 183 184 |
var arw = arrowSpace < arrow.h*1.5 ? arrowSmall : arrow;
var x = to.x + (node.w-line.w)/2;
var y0 = from.y + node.h/2;
var y1 = Math.ceil(to.y + node.h + arw.h/2);
drawLine(line,color,x,y0,null,y1);
x = to.x + (node.w-arw.w)/2;
var n = drawBox(arw.cls,null,x,y);
| | | 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 |
var arw = arrowSpace < arrow.h*1.5 ? arrowSmall : arrow;
var x = to.x + (node.w-line.w)/2;
var y0 = from.y + node.h/2;
var y1 = Math.ceil(to.y + node.h + arw.h/2);
drawLine(line,color,x,y0,null,y1);
x = to.x + (node.w-arw.w)/2;
var n = drawBox(arw.cls,null,x,y);
if(color) n.style.borderBottomColor = color;
}
function drawMergeLine(x0,y0,x1,y1){
drawLine(mLine,null,x0,y0,x1,y1);
}
function drawMergeArrow(p,rail){
var x0 = rail*railPitch + node.w/2;
if( rail in mergeLines ){
|
| ︙ | ︙ |
Changes to src/sorttable.js.
| ︙ | ︙ | |||
33 34 35 36 37 38 39 40 41 42 43 44 45 46 |
** Clicking on the same column header twice in a row inverts the sort.
*/
function SortableTable(tableEl){
var columnTypes = tableEl.getAttribute("data-column-types");
var initSort = tableEl.getAttribute("data-init-sort");
this.tbody = tableEl.getElementsByTagName('tbody');
this.columnTypes = columnTypes;
var ncols = tableEl.rows[0].cells.length;
for(var i = columnTypes.length; i<=ncols; i++){this.columnTypes += 't';}
this.sort = function (cell) {
var column = cell.cellIndex;
var sortFn;
switch( cell.sortType ){
case "n": sortFn = this.sortNumeric; break;
| > | 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 |
** Clicking on the same column header twice in a row inverts the sort.
*/
function SortableTable(tableEl){
var columnTypes = tableEl.getAttribute("data-column-types");
var initSort = tableEl.getAttribute("data-init-sort");
this.tbody = tableEl.getElementsByTagName('tbody');
this.columnTypes = columnTypes;
if(tableEl.rows.length==0) return;
var ncols = tableEl.rows[0].cells.length;
for(var i = columnTypes.length; i<=ncols; i++){this.columnTypes += 't';}
this.sort = function (cell) {
var column = cell.cellIndex;
var sortFn;
switch( cell.sortType ){
case "n": sortFn = this.sortNumeric; break;
|
| ︙ | ︙ |
Changes to src/style.c.
| ︙ | ︙ | |||
369 370 371 372 373 374 375 | ** header template lacks a <body> tag, then all of the following is ** prepended. */ static char zDfltHeader[] = @ <html> @ <head> @ <base href="$baseurl/$current_page" /> | | | | 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 | ** header template lacks a <body> tag, then all of the following is ** prepended. */ static char zDfltHeader[] = @ <html> @ <head> @ <base href="$baseurl/$current_page" /> @ <meta http-equiv="Content-Security-Policy" \ @ content="default-src 'self' data: 'unsafe-inline'" /> @ <title>$<project_name>: $<title></title> @ <link rel="alternate" type="application/rss+xml" title="RSS Feed" \ @ href="$home/timeline.rss" /> @ <link rel="stylesheet" href="$stylesheet_url" type="text/css" \ @ media="screen" /> @ </head> @ <body> |
| ︙ | ︙ |