mobile layout fix
This commit is contained in:
@@ -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'>";
|
||||
|
||||
@@ -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"){
|
||||
|
||||
@@ -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"){
|
||||
|
||||
Reference in New Issue
Block a user