diff --git a/assets/style.css b/assets/style.css index 7c4b5d3..90c4eec 100644 --- a/assets/style.css +++ b/assets/style.css @@ -203,4 +203,31 @@ hr { 3px 3px 0 0px black, 2px 2px 0 0px black, 1px 1px 0 0px black; +} + +#mothvertisement { + margin-left: auto; + display: block; + margin-right: auto; + max-width: 728px; + width: 100%; + height: 90px; +} + +@media (max-width: 750px) { + #mothvertisement { + max-width: 300px; + width: 100%; + height: 250px; + } +} + +#johnvertisement { + margin-left: auto; + display: block; + margin-right: auto; + max-width: 732px; + width: 100%; + height: 94px; + border: none; } \ No newline at end of file diff --git a/index.js b/index.js index debd30b..cffbc93 100644 --- a/index.js +++ b/index.js @@ -47,6 +47,7 @@ app.use(async (req, res, next) => { .catch(() => res.status(500).send()); app.locals.buttons = buttonsJson; app.locals.following = followingJson; + app.locals.randomAd = Math.round(Math.random()); next(); }) diff --git a/views/components/footer.ejs b/views/components/footer.ejs index 94b660d..db3de1f 100644 --- a/views/components/footer.ejs +++ b/views/components/footer.ejs @@ -29,6 +29,11 @@