mirror of
https://github.com/daledavies/jump.git
synced 2025-11-17 10:20:42 +01:00
Renamed web directory to jumpapp
This commit is contained in:
11
jumpapp/background-css.php
Normal file
11
jumpapp/background-css.php
Normal file
@@ -0,0 +1,11 @@
|
||||
<?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.'");}';
|
||||
Reference in New Issue
Block a user