Skip to content

Commit

Permalink
Remove modal overlay
Browse files Browse the repository at this point in the history
  • Loading branch information
markkocera committed Nov 1, 2023
1 parent 54bf233 commit 5793db5
Showing 1 changed file with 0 additions and 67 deletions.
67 changes: 0 additions & 67 deletions _site/index.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -42,73 +42,6 @@ options(scipen = 999)



```{r echo=FALSE, results='asis'}
shiny::HTML(glue::glue('
<style>
#overlay {
position: fixed;
display: none;
width: 100%;
height: 100%;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: rgba(0,0,0,0.5);
z-index: 2;
cursor: pointer;
text-align: center;
padding-top: 10%;
}
#text {
position: relative;
top: 50%;
left: 50%;
font-size: 20px;
color: black;
transform: translate(-50%,-50%);
-ms-transform: translate(-50%,-50%);
background-color: white;
padding: 20px;
border-radius: 10px;
width: 50%;
}
</style>
<div id="overlay" onclick="off()">
<div id="text">
<img src="wtm_logo_2020.png" alt="Logo" style="width:150px;height:150px;">
<h2>Welcome to the >>>sets$welcome<<<</h2>
<p>This dashboard aggregates data from the <a href="https://www.facebook.com/ads/library/" target="_blank">Meta Ad Library</a> to show how citizens are targeted during the >>>sets$election_title<<<.</p>
<p>If you want to know more about Who Targets Me and our work on ad transparency, visit us on <a href="https://www.whotargets.me/" target="_blank">whotargets.me</a>!</p>
</div>
</div>
<script>
window.onload = function() {
var popupLastShown = localStorage.getItem("popupLastShown");
var now = new Date().getTime();
if (!popupLastShown || now - popupLastShown > 60*60*1000) { // 60*60*1000 milliseconds = 1 hour
document.getElementById("overlay").style.display = "block";
localStorage.setItem("popupLastShown", now);
}
}
function off() {
document.getElementById("overlay").style.display = "none";
}
</script>
', .open = ">>>", .close = "<<<"))
```


```{r}
Expand Down

0 comments on commit 5793db5

Please sign in to comment.