93 lines
2.9 KiB
Plaintext
93 lines
2.9 KiB
Plaintext
|
|
<head>
|
|
<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? %>
|
|
|
|
<%= javascript_include_tag "application" %>
|
|
<%= javascript_include_tag "jmpress" %>
|
|
|
|
</head>
|
|
<body>
|
|
|
|
<%= image_tag "infoscreen_header_provisorisch.png" %> <%#header picture/animation %>
|
|
<div id ="jmpress" style="padding-top: 100px">
|
|
<% i=1 %>
|
|
<% @neuigkeiten.each do |n| %>
|
|
|
|
<div class="step contentbox" id="step-<%=i%>" data-x="<%= i *2000 %>" data-y="<%= Random.rand(0..5)*200 %>" style=" height:600px; width:1220px; padding-left:10px;<%#; display:block%>" data-duration="10000"><% @toolbar_elements=[];@questions=[] %>
|
|
<div class="media" style="width: 800px; height:380px;" >
|
|
<div class="pull-left" href="#" style="max-width:200px;">
|
|
<% 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>
|
|
<% end %>
|
|
<h3>
|
|
<% if n.has_calentries? %>
|
|
<div href="#">
|
|
<%= fa_icon("calendar 2x") %>
|
|
<%= n.relevant_calentry.text %>
|
|
</div>
|
|
<% elsif n.has_meeting? %>
|
|
<div href="#">
|
|
<%= fa_icon("calendar 2x") %>
|
|
<%= n.meeting.calentry.text unless n.meeting.calentry.nil? %>
|
|
</div>
|
|
|
|
<% end %>
|
|
</h3>
|
|
</div>
|
|
|
|
<div class="media-body">
|
|
<h1 itemprop="name">
|
|
<%= raw(n.title) %> <%#= link_to fa_icon("edit"), edit_rubrik_neuigkeit_path(n.rubrik, n), remote: true if can? :edit, n %>
|
|
</h1>
|
|
<div itemprop="articleBody" style="font-size:large">
|
|
<%= raw(n.text_infoscreen_words) %>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<% i = i+1 %>
|
|
<% end %>
|
|
|
|
</div>
|
|
<%
|
|
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) && (current_time < close_time)
|
|
raw("<div id='footer' style='background: green; height:100px; width:1280px; bottom:1px; position:absolute'>")
|
|
else
|
|
raw("<div id='footer' style='background: red; height:100px; width:1280px; bottom:1px; position:absolute'>")
|
|
end
|
|
%>
|
|
Servicezeiten:9-15 blabla, service@fet blabla, content von lacki ;) <br>
|
|
Freitag 9-12
|
|
</div>
|
|
|
|
|
|
<script>
|
|
$(function () {
|
|
$('#jmpress').jmpress({
|
|
duration: {
|
|
barPropertyStart: '0',
|
|
barSelector: '.ui-progressbar-value'
|
|
},
|
|
initStep: function(element, eventData) {
|
|
console.log('We\'re changing to step: #' + $(element).attr('id') + '!');
|
|
}
|
|
|
|
});
|
|
setTimeout(function(){
|
|
|
|
window.location.reload();
|
|
/* or window.location = window.location.href; */
|
|
|
|
}, 100000);
|
|
|
|
});
|
|
</script>
|
|
</body>
|