From 119cd02c573f156f0d5f36df68d836f37f2df87e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kasper=20Rynning-T=C3=B8nnesen?= Date: Mon, 12 Jan 2015 21:21:56 +0100 Subject: [PATCH] I did a nono and randomized the background. Works --- php/nochan.php | 12 ++++++++++++ static/style.css | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/php/nochan.php b/php/nochan.php index 8d1b958e..5bedfc82 100755 --- a/php/nochan.php +++ b/php/nochan.php @@ -34,11 +34,23 @@ foreach($dir as $files){ } } + $bg = array('bg1.jpg', 'bg2.jpg', 'bg3.jpg', 'bg4.jpg', 'bg5.jpg' ); // array of filenames + + $i = rand(0, count($bg)-1); // generate random number size of the array + $selectedBg = "$bg[$i]"; // set variable equal to which random filename was chosen + ?> + diff --git a/static/style.css b/static/style.css index 2c987d3a..5259d483 100755 --- a/static/style.css +++ b/static/style.css @@ -28,7 +28,7 @@ body{background:#000; margin:0; } .channel{padding: 7px; display: inline-block; font-weight: bold; color: #C4C4C4 !important;font-size: 18px;} .channel:hover{color:#ed207f !important;} .bgimage{ - background-size: 180%; background-repeat: no-repeat; background-position: center center; background-color: #000; background-image: url(bg5.jpg); + background-size: 180%; background-repeat: no-repeat; background-position: center center; background-color: #000; /*background-image: url(bg5.jpg);*/ -webkit-filter: blur(50px) brightness(0.8); -moz-filter:blur(50px) brightness(0.8); -ms-filter:blur(50px) brightness(0.8); -o-filter: blur(50px) brightness(0.8); filter: blur(50px) brightness(0.8); position: absolute; top: 0px; left: 0; width: 100%; height: 100%; }