Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,24 @@ div.kc-logo-text {
margin-right: 20px;
}
}

/* Background photo credit banner (injected by js/treetracker.js) */
.tt-bg-credit {
position: fixed;
bottom: 0;
margin: 10px 20px;
background-color: #09090980;
color: white;
font-size: 16px;
padding: 5px;
}

/* On small or short screens, let the banner flow below the form instead of covering it (#905) */
@media (max-width: 767px), (max-height: 800px) {
.tt-bg-credit {
position: static;
margin: 16px auto;
width: fit-content;
max-width: calc(100% - 40px);
}
}
Original file line number Diff line number Diff line change
@@ -1,18 +1,10 @@
// javascript to append a new div to body
var newDiv = document.createElement("div");
newDiv.innerHTML = `
<div style="
position: fixed;
bottom: 0px;
margin: 10px 20px;
background-color: #09090980;
color: white;
font-size: 16px;
padding: 5px;
">Find <a href="https://map.treetracker.org/planters/17356/trees/6282936" target="_blank" >the tree on the background</a> on our web map.</div>
<div class="tt-bg-credit">Find <a href="https://map.treetracker.org/planters/17356/trees/6282936" target="_blank" rel="noopener noreferrer">the tree on the background</a> on our web map.</div>
`;

// Append new div to body when the DOM is loaded
document.addEventListener("DOMContentLoaded", function(event) {
document.addEventListener("DOMContentLoaded", function (event) {
document.body.appendChild(newDiv);
});