Added adultwork banner
parent
019bb801ce
commit
44a9670897
27
css/body.css
27
css/body.css
|
@ -551,6 +551,33 @@ body {
|
|||
max-width: fit-content;
|
||||
}
|
||||
|
||||
#adultwork_banner {
|
||||
text-align: center;
|
||||
background-color: whitesmoke;
|
||||
border: 3px solid purple;
|
||||
border-radius: 25px;
|
||||
margin: 0 auto;
|
||||
max-width: var(--max_width);
|
||||
position: sticky;
|
||||
bottom: 0%;
|
||||
padding-top: 7px;
|
||||
}
|
||||
|
||||
#adultwork_banner img {
|
||||
max-height: 60px;
|
||||
}
|
||||
|
||||
#adultwork_banner span {
|
||||
position: relative;
|
||||
bottom: 23px;
|
||||
}
|
||||
|
||||
#adultwork_banner button {
|
||||
position: relative;
|
||||
bottom: 23px;
|
||||
margin-left: 15px;
|
||||
font-size: large;
|
||||
}
|
||||
/* End of index.html shit */
|
||||
|
||||
/* Start of about.html */
|
||||
|
|
Binary file not shown.
After Width: | Height: | Size: 4.5 KiB |
|
@ -80,5 +80,8 @@
|
|||
</div>
|
||||
|
||||
<iframe src="/templates/footer.html" onload="this.before((this.contentDocument.body||this.contentDocument).children[0]);this.remove()"></iframe>
|
||||
|
||||
<iframe src="/templates/adultwork_banner.html" onload="this.before((this.contentDocument.body||this.contentDocument).children[0]);this.remove()"></iframe>
|
||||
<script src="/js/adultwork_banner.js" type="text/javascript"></script>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,17 @@
|
|||
function get_url_param(variable) {
|
||||
var query = window.location.search.substring(1);
|
||||
var vars = query.split("&");
|
||||
for (var i=0;i<vars.length;i++) {
|
||||
var pair = vars[i].split("=");
|
||||
if (pair[0] == variable) {
|
||||
return pair[1];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
window.onload = function(){
|
||||
if (get_url_param("ref") == "adultwork") {
|
||||
let adultwork_banner = document.getElementById("adultwork_banner");
|
||||
adultwork_banner.style.display = "block";
|
||||
}
|
||||
};
|
|
@ -0,0 +1,9 @@
|
|||
<!DOCTYPE HTML>
|
||||
|
||||
<div id="adultwork_banner" style="display: none;">
|
||||
<a href="https://refer.adultwork.com?R=6816039" target="_blank">
|
||||
<img src="/images/AdultWork_Banner.gif"alt="Click here for AdultWork.com!">
|
||||
<span>Click here for AdultWork.com!</span>
|
||||
</a>
|
||||
<button>x</button>
|
||||
</div>
|
|
@ -21,16 +21,16 @@
|
|||
<img src="/images/footer/twitter.svg" alt="Twitter" id="twitter">
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="https://www.adultwork.com/6816039" target="_blank">
|
||||
<img src="/images/footer/adult_work.png" alt="Adultwork" id="adultwork">
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="mailto:Work@AlexandraCeleste.com" target="_blank">
|
||||
<img src="/images/footer/email.svg" alt="Email" id="email">
|
||||
</a>
|
||||
</li>
|
||||
<!-- Commented out until we fix adult work. <li>
|
||||
<a href="https://www.adultwork.com/6816039" target="_blank">
|
||||
<img src="/images/footer/adult_work.png" alt="Adultwork" id="adultwork">
|
||||
</a>
|
||||
</li> -->
|
||||
</ul>
|
||||
</div>
|
||||
</footer>
|
Loading…
Reference in New Issue