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%; }