fix: #timeline -> #doc-timeline (#5985)

Fixes #5923
This commit is contained in:
Lars Eggert 2023-07-18 17:01:43 +03:00 committed by GitHub
parent 57843d8538
commit bd9d3285b5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 17 additions and 17 deletions

View file

@ -272,7 +272,7 @@ th,
}
// Styles for d3.js graphical SVG timelines
#timeline {
#doc-timeline {
font-size: small;
.axis path,

View file

@ -86,7 +86,7 @@ function scale_x() {
}
function update_x_axis() {
d3.select("#timeline svg .x.axis")
d3.select("#doc-timeline svg .x.axis")
.call(x_axis)
.selectAll("text")
.style("text-anchor", "end")
@ -96,7 +96,7 @@ function update_x_axis() {
function update_timeline() {
bar_y = {};
scale_x();
var chart = d3.select("#timeline svg")
var chart = d3.select("#doc-timeline svg")
.attr("width", width);
// enter data (skip the last pseudo entry)
var bar = chart.selectAll("g")
@ -111,12 +111,12 @@ function draw_timeline() {
bar_height = parseFloat($("body")
.css("line-height"));
var div = $("#timeline");
var div = $("#doc-timeline");
div.addClass("my-3");
if (div.is(":empty")) {
div.append("<svg></svg>");
}
var chart = d3.select("#timeline svg")
var chart = d3.select("#doc-timeline svg")
.attr("width", width);
var defs = chart.append("defs");
@ -249,7 +249,7 @@ d3.json("doc.json")
published: expiration_date(data[data.length - 1])
});
width = $("#timeline")
width = $("#doc-timeline")
.width();
draw_timeline();
}
@ -258,11 +258,11 @@ d3.json("doc.json")
$(window)
.on({
resize: function () {
var g = $("#timeline svg");
var g = $("#doc-timeline svg");
g.remove();
width = $("#timeline")
width = $("#doc-timeline")
.width();
$("#timeline")
$("#doc-timeline")
.append(g);
update_timeline();
}

View file

@ -9,7 +9,7 @@
{% origin %}
{{ top|safe }}
{% include "doc/revisions_list.html" %}
<div id="timeline"></div>
<div id="doc-timeline"></div>
{% if doc.rev != latest_rev %}
<div class="alert alert-warning my-3">The information below is for an older version of this BOF request.</div>
{% endif %}

View file

@ -14,7 +14,7 @@
{% origin %}
{{ top|safe }}
{% include "doc/revisions_list.html" %}
<div id="timeline"></div>
<div id="doc-timeline"></div>
{% if doc.rev|charter_major_rev != latest_rev|charter_major_rev %}
<div class="alert alert-warning my-3">
The information below is for an older

View file

@ -8,7 +8,7 @@
{% origin %}
{{ top|safe }}
{% include "doc/revisions_list.html" %}
<div id="timeline"></div>
<div id="doc-timeline"></div>
{% if doc.rev != latest_rev %}
<div class="alert alert-warning my-3">The information below is for an old version of the document.</div>
{% endif %}

View file

@ -10,7 +10,7 @@
{% origin %}
{{ top|safe }}
{% include "doc/revisions_list.html" %}
<div id="timeline"></div>
<div id="doc-timeline"></div>
{% if doc.rev != latest_rev %}
<div class="alert alert-warning my-3">The information below is for an old version of the document.</div>
{% endif %}

View file

@ -27,7 +27,7 @@
{% origin %}
{{ top|safe }}
{% include "doc/revisions_list.html" with document_html=document_html %}
<div id="timeline"></div>
<div id="doc-timeline"></div>
{% if doc.rev != latest_rev %}
<div class="alert alert-warning my-3">The information below is for an old version of the document.</div>
{% else %}

View file

@ -8,7 +8,7 @@
{% origin %}
{{ top|safe }}
{% include "doc/revisions_list.html" %}
<div id="timeline"></div>
<div id="doc-timeline"></div>
{% if doc.rev != latest_rev %}
<div class="alert alert-warning my-3">The information below is for an old version of the document.</div>
{% endif %}

View file

@ -8,7 +8,7 @@
{% origin %}
{{ top|safe }}
{% include "doc/revisions_list.html" %}
<div id="timeline"></div>
<div id="doc-timeline"></div>
{% if doc.rev != latest_rev %}
<div class="alert alert-warning my-3">The information below is for an old version of the document.</div>
{% endif %}

View file

@ -10,7 +10,7 @@
{% origin %}
{{ top|safe }}
{% include "doc/revisions_list.html" %}
<div id="timeline"></div>
<div id="doc-timeline"></div>
{% if doc.rev != latest_rev %}
<div class="alert alert-warning my-3">The information below is for an old version of the document.</div>
{% endif %}