Browse Source

reload slideshow every 5 minutes

master
Aaron Parecki 7 years ago
parent
commit
9488b416a8
No known key found for this signature in database GPG Key ID: 276C2817346D6056
2 changed files with 3 additions and 2 deletions
  1. +1
    -1
      app/Http/Controllers/SlideshowController.php
  2. +2
    -1
      resources/views/slideshow.blade.php

+ 1
- 1
app/Http/Controllers/SlideshowController.php View File

@ -12,7 +12,7 @@ class SlideshowController extends Controller
$photos = [];
$tweets = Tweet::where('processed', 1)->orderByRaw('RAND()')->get();
$tweets = Tweet::where('processed', 1)->inRandomOrder()->get();
foreach($tweets as $tweet) {
if($tweet->photo) {
foreach(json_decode($tweet->photo) as $photo) {

+ 2
- 1
resources/views/slideshow.blade.php View File

@ -2,7 +2,8 @@
<html>
<head>
<title>Spy30 Slideshow</title>
<link rel="stylesheet" href="/slideshow/css/simple-slideshow-styles.css"">
<link rel="stylesheet" href="/slideshow/css/simple-slideshow-styles.css">
<meta http-equiv="refresh" content="300;url=/slideshow" />
<style>
body {
color: #212121;

Loading…
Cancel
Save