Commit 522acbce authored by Oleg Dzhimiev's avatar Oleg Dzhimiev

rewritten to php

parent 54db8497
$path = "";
$sufx = "D0.0.jpeg";
$interval = 100;
if (isset($_GET['path'])) $path = $_GET['path'];
if (isset($_GET['sufx'])) $sufx = $_GET['sufx'];
$interval = (isset($_GET['interval']))?$_GET['interval']:"100";
$files = glob("$path*$sufx");
$n = count($files);
$quad_order = array(0,1,3,2);
$qo = count($quad_order);
$order = array();
$order = "[".implode(',',$order)."]";
<html lang="en">
<meta charset="utf-8"/>
<title>Loop slideshow</title>
<!--<link href="" rel="stylesheet">-->
<script type='text/javascript' src='js/jquery/jquery-3.1.1.js'></script>
<script type='text/javascript' src='js/jquery-ui/jquery-ui.js'></script>
<script type='text/javascript' src='js/playloop.js'></script>
<link rel='stylesheet' type='text/css' href='js/playloop.css'></link>
<div id='rotator'>
var SETTINGS = {
'path' : "<?php echo $path;?>",
'sufx' : "<?php echo $sufx;?>",
'n' : <?php echo $n;?>,
'interval' : <?php echo $interval;?>,
'order': <?php echo $order."\n";?>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment