-- Leo's gemini proxy

-- Connecting to she12.midnight.pub:1965...

-- Connected

-- Sending request

-- Meta line: 20 text/gemini

/*

</style>

<script type="text/javascript" src="https://she12.midnight.pub/logos"></script>

<script type="text/javascript">

*/

function randomizeLogo() {

const logoContainer = document.getElementsByTagName('pre')[0];

const preferredLogo = null;

let firstSignSet = false;

let firstSign = 0;

let lastSign = 0;


for (const logoKey in logos) {

lastSign = logoKey;

if (!firstSignSet) { firstSign = logoKey; firstSignSet = true; }

}


function getRandomSignKey() {

const min = Math.ceil(firstSign);

const max = Math.floor(lastSign);

return Math.floor(Math.random() * (max - min + 1) + min);

}


const setLogo = (logoKey) => logoContainer.innerHTML = logos[logoKey];

currentSignKey = typeof preferredLogo == 'number' ? preferredLogo : getRandomSignKey();

setLogo(currentSignKey);


logoContainer.onclick = function() {

currentSignKey++;

if (currentSignKey > lastSign) { currentSignKey -= (lastSign - firstSign + 1); }

setLogo(currentSignKey);

};

}


if (window.location == "https://midnight.pub/") { window.onload = randomizeLogo; }

/*

</script>

<style type="text/css">

@media only screen and (max-width: 900px) { pre { overflow-x: scroll; } }

*/

-- Response ended

-- Page fetched on Sun May 5 01:30:40 2024