From 35cebcf5be8fc1449b2ca246404e8ad439d51322 Mon Sep 17 00:00:00 2001 From: nglk Date: Mon, 1 Mar 2021 14:09:14 +0100 Subject: [PATCH 1/2] fixed delete thesis box --- index.html | 8 ++++---- static/css/style.css | 5 ++++- static/js/d3_map.js | 1 + 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/index.html b/index.html index 3f3bf90..a686cf0 100644 --- a/index.html +++ b/index.html @@ -132,7 +132,7 @@ publications, go to at.wdka.nl/hpresearchawards
- + ××
@@ -236,9 +236,9 @@ includeHTML(); $("#showbio").hide() } - // function closethesis(){ - // $("#nothesis").fadeOut() - // } + function closethesis(){ + $("#nothesis").hide() + } diff --git a/static/css/style.css b/static/css/style.css index 2550bed..8247d86 100644 --- a/static/css/style.css +++ b/static/css/style.css @@ -404,7 +404,7 @@ h2 { .thesisX { position: absolute; z-index:5; - left: 26%; + left: 46%; top: 14%; float: right; cursor: pointer; @@ -412,6 +412,9 @@ h2 { color: black; } +#nothesis { + display: none; +} /* about and colophon */ #menu { diff --git a/static/js/d3_map.js b/static/js/d3_map.js index 89944c4..658b51c 100644 --- a/static/js/d3_map.js +++ b/static/js/d3_map.js @@ -141,6 +141,7 @@ d3.json("/static/js/group1.json", function(error, json) { function popup(name, time) { $("#show" + name).fadeIn() console.log("around") + $("#nothesis").fadeIn() $("#thesis").fadeIn() $("#bio" + name).fadeIn() var dada = document.getElementById("text" + name); From d60e544e0e95faeca3c1256949e49e184df3906f Mon Sep 17 00:00:00 2001 From: nglk Date: Mon, 1 Mar 2021 14:13:00 +0100 Subject: [PATCH 2/2] fixed scroll issue of thesis --- static/js/d3_map.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/js/d3_map.js b/static/js/d3_map.js index 658b51c..0f8e103 100644 --- a/static/js/d3_map.js +++ b/static/js/d3_map.js @@ -146,7 +146,7 @@ d3.json("/static/js/group1.json", function(error, json) { $("#bio" + name).fadeIn() var dada = document.getElementById("text" + name); dada.className += " active"; - dada.scrollIntoView(); + dada.scrollIntoView({ behavior: 'smooth', block: 'nearest', inline: 'start' }); }; });