From 83dce9cb3aeee402e7f0429fb07fe239b9f59316 Mon Sep 17 00:00:00 2001
From: Christian 'VOID' Elberfeld <elberfeld@web.de>
Date: Sat, 23 Nov 2013 23:27:13 +0100
Subject: [PATCH] =?UTF-8?q?statische=20ausweichseite=20f=C3=BCr=20status?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 api/static.php | 122 +++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 122 insertions(+)
 create mode 100644 api/static.php

diff --git a/api/static.php b/api/static.php
new file mode 100644
index 0000000..f961818
--- /dev/null
+++ b/api/static.php
@@ -0,0 +1,122 @@
+
+<!DOCTYPE html>
+<!--[if IE 7 | IE 8]>
+<html class="ie" lang="en-US">
+<![endif]-->
+<!--[if !(IE 7) | !(IE 8)  ]><!-->
+<html lang="en-US">
+<!--<![endif]-->
+<head>
+	<meta charset="UTF-8" />
+	<meta name="viewport" content="width=device-width" />
+	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
+	
+	<title> Warpzone Status	</title>
+	
+	
+<link rel='stylesheet' id='frank_stylesheet-css'  href='http://warpzone.ms/wp-content/themes/frank/style.css' type='text/css' media='all' />
+<!--[if IE]>
+<link rel='stylesheet' id='frank_stylesheet_ie-css'  href='http://warpzone.ms/wp-content/themes/frank/ie.css' type='text/css' media='all' />
+<![endif]-->
+<link rel='stylesheet' id='emoticons-css'  href='http://warpzone.ms/wp-content/plugins/font-emoticons/emoticons.css' type='text/css' media='all' />
+<!--[if lt IE 9]><script src="http://warpzone.ms/wp-content/themes/frank/javascripts/html5.js"></script><![endif]--><!--[if lt IE 7]><script src="http://warpzone.ms/wp-content/themes/frank/javascripts/ie7.js"></script><![endif]-->	<style type="text/css">
+			#site-title-description {
+			position: absolute !important;
+			clip: rect(1px 1px 1px 1px); /* IE6, IE7 */
+			clip: rect(1px, 1px, 1px, 1px);
+		}
+		</style>
+	<style type="text/css" id="custom-background-css">
+body.custom-background { background-color: #fffefe; }
+</style>
+	
+<link rel='stylesheet' id='frank_stylesheet-css'  href='http://warpzone.ms/wp-content/themes/frank/style.css' type='text/css' media='all' />
+<!--[if IE]>
+<link rel='stylesheet' id='frank_stylesheet_ie-css'  href='http://warpzone.ms/wp-content/themes/frank/ie.css' type='text/css' media='all' />
+<![endif]-->
+</head>
+
+<body id="page" class="home blog custom-background">
+	<!--[if lt IE 9]>
+		<div class="chromeframe">Your browser is out of date. Please <a href="http://browsehappy.com/">upgrade your browser </a> or <a href="http://www.google.com/chromeframe/?redirect=true">install Google Chrome Frame</a>.</div>
+	<![endif]-->
+<div class="container">
+
+
+				<a href="http://warpzone.ms/">
+							<img src="http://warpzone.ms/wp-content/uploads/2013/11/cropped-warpzone_schriftzug.png" width="980" height="122" alt="" />
+					</a>
+		
+			
+
+ <style type="text/css" media="screen">
+#site-nav h3{
+	display: none;
+}
+#site-nav{
+	border: 0px;
+}
+.zonenstatus {
+	padding: 15px 10px;
+	display: block;
+	color: #050000;
+	font: 700 11px Sans-Serif;
+}
+
+</style>
+<script type="text/javascript">
+
+function queryWankerStatus() {
+
+	jQuery.getJSON("/api/status",function(result) { 
+
+		  if (result != null && result.tuerOffen != null) 
+		  {
+			if (result.tuerOffen == 1)
+			{
+			  jQuery("#wankerTuerOffen").html("<font color=\"00cc00\">Offen</font>");	  
+			}
+			else
+			{
+			  jQuery("#wankerTuerOffen").html("<font color=\"cc0000\">Geschlossen</font>");	  
+			}
+		  }
+
+		  if (result != null && result.tempLounge != null && result.tempLounge) 
+		  {
+		    var tempLounge = (result.tempLounge / 10) + "&deg;C"; 
+						
+			jQuery("#wankerTempLounge").html(tempLounge);	  
+		  }
+
+		  if (result != null && result.tempWerkstatt != null && result.tempWerkstatt) 
+		  {
+			var tempWerkstatt = (result.tempWerkstatt / 10) + "&deg;C";
+			
+			jQuery("#wankerTempWerkstatt").html(tempWerkstatt);	
+		  }  
+		  
+	});
+
+  setTimeout(queryWankerStatus, 30000);
+}
+
+jQuery(document).ready(function() {
+  queryWankerStatus();
+});
+
+
+</script>
+
+<br/>
+<span class="zonenstatus">Status: <span id="wankerTuerOffen" class="wankerClosed">Unbekannt</span></span>
+
+<br/>
+<span class="zonenstatus">Lounge: <span id="wankerTempLounge">--</span></span>
+
+<br/>
+<span class="zonenstatus">Werkstatt: <span id="wankerTempWerkstatt">--</span></span>
+
+</div>
+</body>
+</html>
-- 
GitLab