Found out the testrby is on Mogok ;)
This commit is contained in:
@@ -12,13 +12,13 @@
|
||||
<body>
|
||||
|
||||
<%= content_tag(:iframe,'', width: "100%", height: "100%", name: "targetframe", allowTransparency:"true", scrolling:"no", frameborder:"0", src: "/iframe/infoscreenframe.html") %> <%#header picture/animation %>
|
||||
<div id ="jmpress" style="padding-top: 00px">
|
||||
<div id ="jmpress">
|
||||
<% i=1 %>
|
||||
<% @neuigkeiten.each do |n| %>
|
||||
|
||||
<div id="step-<%=i%>" data-x="<%= i *2000 %>" data-y="<%= Random.rand(0..5)*200 %>" style=" height:540px; width:1230px display: block; padding: 5px; border: lightgray solid 1px" data-duration="10000">
|
||||
<div class="step" id="step-<%=i%>" data-x="<%= i *2000 %>" data-y="<%= Random.rand(0..5)*200 %>" style="position:absolute; height:540px; width:1230px; display: block;" data-duration="10000">
|
||||
<div class="media" style="width:'95%'; height:480px;" >
|
||||
<div class="pull-left" href="#" style="max-width:200px;">
|
||||
<div class="pull-left" href="#" style="max-width:250px;">
|
||||
<% unless n.picture_robust.big_thumb.to_s.empty? %>
|
||||
<p>
|
||||
<br><%= link_to image_tag(n.picture_robust.big_thumb),n.picture_robust.try(:url) %></p>
|
||||
@@ -54,6 +54,35 @@
|
||||
|
||||
</div>
|
||||
|
||||
<script>
|
||||
var d = new Date();
|
||||
var n = d.getDay();
|
||||
var now = d.getHours() + "." + d.getMinutes();
|
||||
var weekdays = [
|
||||
["Sunday"],
|
||||
["Monday", 9.00, 14.00],
|
||||
["Tuesday", 9.00, 14.00],
|
||||
["Wednesday", 9.00, 14.00],
|
||||
["Thursday", 9.00, 14.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:25px; width:50px; margin:10px; position:absolute'>");
|
||||
document.write("OPEN");
|
||||
document.write("</div>");
|
||||
}
|
||||
else {
|
||||
document.write("<div id='footer' style='background: red; height:25px; width:60px; margin:10px; position:absolute'>");
|
||||
document.write("CLOSED");
|
||||
document.write("</div>");
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
|
||||
|
||||
<script>
|
||||
$(function () {
|
||||
$('#jmpress').jmpress({
|
||||
|
||||
Reference in New Issue
Block a user