forked from c3re/c3re-website
move location pin in the date row
parent
3c86fe736b
commit
b384db3abe
|
@ -212,7 +212,7 @@ a.external:after {
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#calendar span {
|
#calendar .row {
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -17,7 +17,7 @@ document.addEventListener("DOMContentLoaded", function () {
|
||||||
let li = $("<li/>");
|
let li = $("<li/>");
|
||||||
//li.text(item.summary)
|
//li.text(item.summary)
|
||||||
let startDate = new Date(item.start * 1000);
|
let startDate = new Date(item.start * 1000);
|
||||||
let date = $("<span class='date'/>");
|
let date = $("<span class='date row'/>");
|
||||||
date.text(
|
date.text(
|
||||||
zeropad(startDate.getDate()) +
|
zeropad(startDate.getDate()) +
|
||||||
"." +
|
"." +
|
||||||
|
@ -30,7 +30,7 @@ document.addEventListener("DOMContentLoaded", function () {
|
||||||
zeropad(startDate.getMinutes())
|
zeropad(startDate.getMinutes())
|
||||||
);
|
);
|
||||||
date.appendTo(li);
|
date.appendTo(li);
|
||||||
let summary = $("<span class='summary'/>");
|
let summary = $("<span class='summary row'/>");
|
||||||
summary.text(item.summary);
|
summary.text(item.summary);
|
||||||
if (item.url) {
|
if (item.url) {
|
||||||
let a = $("<a/>");
|
let a = $("<a/>");
|
||||||
|
@ -46,7 +46,7 @@ document.addEventListener("DOMContentLoaded", function () {
|
||||||
|
|
||||||
loc.attr("data-loc", item.location);
|
loc.attr("data-loc", item.location);
|
||||||
loc.attr("title", "Click to copy: " + item.location);
|
loc.attr("title", "Click to copy: " + item.location);
|
||||||
loc.appendTo(li);
|
loc.appendTo(date);
|
||||||
}
|
}
|
||||||
|
|
||||||
li.attr("title", item.description);
|
li.attr("title", item.description);
|
||||||
|
|
Loading…
Reference in New Issue