amidoinitrite Concept Vomit

Everyday King

♔ Everyday King ♔ is a clumsy and well-meaning experiment with HTML, CSS and Javascript that features Kerry King of Slayer.

In its current form, the images for ♔ Everyday King ♔ are drawn from a manually defined list and then displayed randomly over a specified duration. The Javascript and CSS is a hodgepodge and probably isn’t the most efficient way of doing things.

In a more ideal and enhanced form, the images for ♔ Everyday King ♔ would be drawn from the infinite source of Kerry King photographs on the web, possibly through web scraping or similar dynamic techniques, and then more seamlessly displayed in the browser. Something fun to learn.

<!doctype html>
<title>&#9812; Everyday King &#9812;</title>
<meta name="description" content="Everyday King. Non-stop random photographs of Kerry King all day, every day. Forever.">
<meta name="keywords" content="Kerry King, Kerry, King, Slayer, Every, Day, All day, Forever">

<link rel="preconnect" href="">
<link rel="preconnect" href="" crossorigin>
<link href="" rel="stylesheet">

<style type="text/css">
/* HTML Colour Shades */
	body {
	margin: 0;
    padding: 0;
	font-family: 'Bebas Neue', sans-serif;
    box-sizing: border-box;
	/* color: #F5F5F5; */
    /* color: #fff; */
    color: #c00000;
    background-color: #333;
/* Sourced from 'Change Background Image Every Second with CSS & JavaScript | Random background image' */
section {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #383838;
    background: url(images/kk_00001.png);
    display: flex;
    /*justify-content: center; */
    background-size: cover; 
    background-position: center center;
    /* background-size: auto 100%; */
/* css approach to alignment courtesy of */

#container {
    display: table;
    height: 90%;
    width: 90%;
    position: absolute;
    padding-left: 1em;
#text {
	text-align: center;
    display: table-cell;
    vertical-align: middle;
    font-weight: bold;
    font-size: 5.5em;
    /* CSS text spacing */
    line-height: 0.7;
    opacity: 0.7;
    /* -webkit-text-stroke: 0.001em black; */
    /* -webkit-text-fill-color: #c00000; */
    /* Other stuff about text opacity from */

<!-- style the 'section' and then hit it with javascript --> 

<!-- 'Change Background Image Every Second with CSS & JavaScript | Random background image' -->
    function changeBG(){

        const images = [
        const section = document.querySelector('section')
        const bg = images[Math.floor(Math.random() * images.length)]; = bg;
    setInterval(changeBG, 9000)

<div id="container">
    <div id="text">Everyday King.<br>Non-stop stream of random photographs<small><small><sup>*</sup></small></small> of Kerry King from Slayer. All day. Every day. Forever.</div>

Leave a Reply

Your email address will not be published. Required fields are marked *