Implemented Lackis infoscreen layout

This commit is contained in:
Pet
2018-04-12 20:33:09 +02:00
parent 22cf26f76c
commit ef1135962e
4 changed files with 376 additions and 38 deletions

View File

@@ -3,6 +3,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<%= stylesheet_link_tag "themes/"+theme_name+"/application", :media => "all" unless theme_name.empty? %>
<%= stylesheet_link_tag "application", :media=>"all" if theme_name.empty? %>
<%= stylesheet_link_tag "infoscreenframe.css" %>
<%= javascript_include_tag "application" %>
<%= javascript_include_tag "jmpress" %>
@@ -10,7 +11,7 @@
</head>
<body>
<%= image_tag "infoscreen_header_provisorisch.png" %> <%#header picture/animation %>
<%= content_tag(:iframe,'', width: 300, height: 200, src: "/iframe/infoscreenframe.html") %> <%#header picture/animation %>
<div id ="jmpress" style="padding-top: 100px">
<% i=1 %>
<% @neuigkeiten.each do |n| %>
@@ -52,44 +53,9 @@
<% end %>
</div>
<%
raw("zeitfunktion")
require 'time'
close_time = Time.parse "03:00 pm"
open_time = Time.parse "09:00 am"
current_time = Time.now
if (current_time > open_time)
raw("OPEN")
else
raw("CLOSED")
end
%>
<script>
var d = new Date();
var n = d.getDay();
var now = d.getHours() + "." + d.getMinutes();
var weekdays = [
["Sunday"],
["Monday", 9.00, 15.00],
["Tuesday", 9.00, 15.00],
["Wednesday", 9.00, 15.00],
["Thursday", 9.00, 15.00],
["Friday", 9.00, 12.00],
["Saturday"] // we are closed, sorry!
];
var day = weekdays[n];
if (now > day[1] && now < day[2]) {
document.write("<div id='footer' style='background: green; height:100px; width:1280px; bottom:1px; position:absolute'>");
document.write("OPEN");
}
else {
document.write("<div id='footer' style='background: red; height:100px; width:1280px; bottom:1px; position:absolute'>");
document.write("CLOSED");
}
</script>
<div id='footer_text' style='text-align: center; height:900px; width:1280px'>
<h1>Servicezeiten:9-15 blabla, service@fet blabla, content von lacki ;) Freitag 9-12</h1>
<div class="ui-progressbar ui-widget ui-widget-content ui-corner-all" style="height:10px; z-index: 2000; left: 5px; right: 5px; bottom: 5px; height: 10px; position:absolute">
<div id="" class="ui-progressbar-value ui-widget-header ui-corner-left" style=""></div>
</div>