33 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			33 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
<!DOCTYPE html>
 | 
						|
<head>
 | 
						|
   <title>RPi Web Server</title>
 | 
						|
   <!-- Latest compiled and minified CSS -->
 | 
						|
   <link rel="stylesheet" href="/static/css/bootstrap.min.css">
 | 
						|
   <!-- Latest compiled and minified JavaScript -->
 | 
						|
   <script src="/static/js/jquery-3.6.0.min.js"></script>
 | 
						|
   <script src="/static/js/bootstrap.min.js"></script>
 | 
						|
</head>
 | 
						|
 | 
						|
<body>
 | 
						|
   <h1>RPi Web Server</h1>
 | 
						|
   {% for pin in pins %}
 | 
						|
   <h2>{{ pins[pin].name }}
 | 
						|
   {% if pins[pin].state == true %}
 | 
						|
      ist gerade <strong>an</strong></h2><div class="row"><div class="col-md-2">
 | 
						|
      <a href="/{{pin}}/off" class="btn btn-block btn-lg btn-default" role="button">Turn off</a></div></div>
 | 
						|
   {% else %}
 | 
						|
      ist gerade <strong>aus</strong></h2><div class="row"><div class="col-md-2">
 | 
						|
      <a href="/{{pin}}/on" class="btn btn-block btn-lg btn-primary" role="button">Turn on</a></div></div>
 | 
						|
   {% endif %}
 | 
						|
   {% endfor %}
 | 
						|
   {% for pin in pins_in %}
 | 
						|
    <h3>{{ pins_in[pin].name }}
 | 
						|
    {% if pins_in[pin].state == true %}
 | 
						|
        ist gerade <strong>an</strong></h3><div class="row"><div class="col-md-2">
 | 
						|
    {% else %}
 | 
						|
        ist gerade <strong>aus</strong></h3><div class="row"><div class="col-md-2">
 | 
						|
    {% endif %}
 | 
						|
   {% endfor %}
 | 
						|
</body>
 | 
						|
</html>
 |