1

Added adverts for my friends

This commit is contained in:
Evan Pratten 2020-01-21 11:09:52 -05:00
parent 1bf2dc9883
commit 88d4f5ab9e
No known key found for this signature in database
GPG Key ID: 93AC7B3D071356D3
3 changed files with 34 additions and 0 deletions

View File

@ -0,0 +1,21 @@
<br>
<div class="reactive-bg">
<div class="post container" id="advert">
<span>
<p id="a-txt">Advertisement: </p>
</span>
</div>
</div>
<script>
// Possible adverts
adverts = [
'Want to waste away your period 4 english class by playing games? Check out <a href="https://rsninja.dev">rsninja.dev</a>',
'Is dark mode too cheery? Check out <a href="https://exvacuum.dev">exvacuum.dev</a>',
'{Advertisement text here} <a href="https://hyperlisk.dev">hyperlisk.dev</a>'
]
// Display random advert
document.getElementById("a-txt").innerHTML += adverts[Math.floor(Math.random()*adverts.length)]
</script>

View File

@ -51,6 +51,7 @@
</div>
</div>
{% include advert.html %}
{% include footer.html %}

View File

@ -97,6 +97,18 @@ a h5 {
background-color: #fff;
}
#advert{
/* background-color: #343a40; */
/* color:#fff; */
text-align:center;
/* padding:5; */
}
#advert p{
padding:0;
margin:0;
}
.home.container {
padding: 20px;
font-family: 'Noto Sans TC', sans-serif;