mirror of
https://github.com/Pecusx/piradio-mini.git
synced 2026-05-20 22:33:44 +02:00
Prepare to scroll in web interface (mobile version).
This commit is contained in:
+3
-3
@@ -8,10 +8,10 @@
|
||||
<script src="jquery-1.12.4.min.js"></script>
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
$("#wyswietlacz").load("lcd.php");
|
||||
$("#wyswietlacz").load("lcd.php?scroll=False");
|
||||
var refreshId = setInterval(function() {
|
||||
$("#wyswietlacz").load("lcd.php");
|
||||
}, 1000);
|
||||
$("#wyswietlacz").load("lcd.php?scroll=False");
|
||||
}, 200);
|
||||
$.ajaxSetup({ cache: false });
|
||||
$("#player").load("player.php");
|
||||
});
|
||||
|
||||
+12
-4
@@ -1,8 +1,16 @@
|
||||
<?php
|
||||
$line1 = file_get_contents( "/tmp/radiod/line1.txt" );
|
||||
$line2 = file_get_contents( "/tmp/radiod/line2.txt" );
|
||||
$line3 = file_get_contents( "/tmp/radiod/line3.txt" );
|
||||
$line4 = file_get_contents( "/tmp/radiod/line4.txt" );
|
||||
$msg = $_GET['scroll'];
|
||||
if ($msg=="True") {
|
||||
$line1 = file_get_contents( "/tmp/radiod/line1s.txt" );
|
||||
$line2 = file_get_contents( "/tmp/radiod/line2s.txt" );
|
||||
$line3 = file_get_contents( "/tmp/radiod/line3s.txt" );
|
||||
$line4 = file_get_contents( "/tmp/radiod/line4s.txt" );
|
||||
} else {
|
||||
$line1 = file_get_contents( "/tmp/radiod/line1.txt" );
|
||||
$line2 = file_get_contents( "/tmp/radiod/line2.txt" );
|
||||
$line3 = file_get_contents( "/tmp/radiod/line3.txt" );
|
||||
$line4 = file_get_contents( "/tmp/radiod/line4.txt" );
|
||||
}
|
||||
$line1 = str_replace(" "," ",$line1);
|
||||
$line2 = str_replace(" "," ",$line2);
|
||||
$line3 = str_replace(" "," ",$line3);
|
||||
|
||||
Reference in New Issue
Block a user