AutoCommit Son Sep 13 12:03:20 CEST 2015

This commit is contained in:
Andreas Stephanides
2015-09-13 12:03:21 +02:00
parent d85a01c810
commit b073a1a098
8 changed files with 39 additions and 10 deletions

View File

@@ -13,8 +13,8 @@
<% i=1 %>
<% @neuigkeiten.each do |n| %>
<div class="step contentbox" id="step-<%=i%>" data-x="<%= i *2000 %>" data-y="<%= Random.rand(0..5)*200 %>" data-rotate="<%= Random.rand(0..18)*10 %>" style="width:1024px; height:500px; padding: 50px; display:block" data-duration="10000"><% @toolbar_elements=[];@questions=[] %>
<div class="media">
<div class="step contentbox" id="step-<%=i%>" data-x="<%= i *2000 %>" data-y="<%= Random.rand(0..5)*200 %>" data-rotate="<%= Random.rand(0..18)*10 %>" style="width:1000px; height:500px; padding: 50px; display:block" data-duration="10000"><% @toolbar_elements=[];@questions=[] %>
<div class="media" style="width: 500px; height:250px; transform: scale(1.5) translate(60px,0)" >
<% unless n.picture_robust.big_thumb.to_s.empty? %>
<div class="pull-left" href="#">
<p><br><%= link_to image_tag(n.picture_robust.big_thumb),n.picture_robust.try(:url) %>
@@ -54,7 +54,7 @@
</div>
<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="my-progress-bar" class="ui-progressbar-value ui-widget-header ui-corner-left" style="width:0;height:100%"></div>
<div id="" class="ui-progressbar-value ui-widget-header ui-corner-left" style="width:0;height:100%"></div>
</div>
<script>
@@ -62,9 +62,22 @@ $(function () {
$('#jmpress').jmpress({
duration: {
barPropertyStart: '0',
barSelector: '#my-progress-bar'
}
barSelector: '.ui-progressbar-value'
},
beforeChange: 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>