mirror of
https://github.com/daledavies/jump.git
synced 2025-11-17 18:30:42 +01:00
11 lines
412 B
PHP
11 lines
412 B
PHP
|
|
<?php
|
||
|
|
// Provided by composer for psr-4 style autoloading.
|
||
|
|
require __DIR__ .'/vendor/autoload.php';
|
||
|
|
|
||
|
|
$config = new Jump\Config();
|
||
|
|
|
||
|
|
$backgroundfile = (new Jump\Background($config))->get_random_background_file();
|
||
|
|
$backgroundgradient = 'linear-gradient(to bottom, #FC466B40, #425df530)';
|
||
|
|
|
||
|
|
header('Content-Type: text/css');
|
||
|
|
echo '.background {background-image: '.$backgroundgradient.', url("'.$backgroundfile.'");}';
|