mobile layout fix

This commit is contained in:
Martijn Scheepers
2017-11-16 15:23:30 +01:00
parent 194b399457
commit 92e6c653a3
3 changed files with 3 additions and 3 deletions

View File

@@ -36,7 +36,7 @@ $( document ).ready(function() {
function inputblock($number, $pin){
echo "<!-- analoginput $number -->";
echo "<div class='w3-row-padding' id='analog$number'>";
echo "<div class='w3-col m4 w3-margin-bottom'>";
echo "<div class='w3-col m12 l4 w3-margin-bottom'>";
$command = "cat /sys/bus/iio/devices/iio:device0/in_voltage{$pin}_raw 2>&1";
$value = exec($command);
echo "<div class='w3-container w3-teal'>";

View File

@@ -8,7 +8,7 @@ $( document ).ready(function() {
inputstatus.onmessage = function(event) {
obj = JSON.parse(event.data);
for (i = 0; i < 8; i++) {
htmlcode = "<div class='w3-col m4 w3-margin-bottom'>";
htmlcode = "<div class='w3-col m12 l4 w3-margin-bottom'>";
if (obj[i] == "1"){
htmlcode = htmlcode + "<div class='w3-container w3-red'>";
}else if(obj[i] == "0"){

View File

@@ -14,7 +14,7 @@ $( document ).ready(function() {
relaystatus.onmessage = function(event) {
obj = JSON.parse(event.data);
for (i = 0; i < 8; i++) {
htmlcode = "<div class='w3-col m4 w3-margin-bottom'>";
htmlcode = "<div class='w3-col m12 l4 w3-margin-bottom'>";
if (obj[i] == "0"){
htmlcode = htmlcode + "<div class='w3-container w3-red'>";
}else if(obj[i] == "1"){