s6-gen/templates/layout.haml

41 lines
1.5 KiB
Plaintext
Raw Permalink Normal View History

2010-05-20 15:40:16 +00:00
%html
%head
%title= @title
%meta{:name => :author, :content => @author}
2010-05-20 16:22:29 +00:00
%link#outlineStyle{:rel => :stylesheet, :href => 's6/shared/outline.css', :type => 'text/css', :media => :screen}
%link#slidePrint{:rel => :stylesheet, :href => 's6/shared/print.css', :type => 'text/css', :media => :print}
%link#slideProj{:rel => :stylesheet, :href => 's6/shared/slides.css', :type => 'text/css', :media => :projection}
2010-05-20 15:40:16 +00:00
%link{:rel => :stylesheet, :href => 'style.css', :type => 'text/css', :media => :screen}
2010-05-20 15:51:55 +00:00
%script{:src => 'jquery/jquery-1.4.2.min.js', :type => 'text/javascript'}
%script{:src => 'jquery/jquery-ui-1.7.2.effects.min.js', :type => 'text/javascript'}
%script{:src => 's6/shared/slides.core.js', :type => 'text/javascript'}
%script{:src => 's6/shared/slides.js', :type => 'text/javascript'}
2010-07-27 15:09:36 +00:00
2010-05-20 15:51:55 +00:00
:javascript
2010-07-27 15:09:36 +00:00
function updatePermaLink() {
$('#plink').get(0).href = window.location.pathname + '#slide' + snum;
var padding = 20;
var availableWidth = $(window).width() - padding;
var availableHeight = $('.presentation > .slide:visible').height() - padding;
$('.center').each(function() {
$(this).css('left', (availableWidth - $(this).width()) / 2);
$(this).css('top', (availableHeight - $(this).height()) / 2);
});
}
2010-05-20 15:40:16 +00:00
%body
2010-05-20 15:51:55 +00:00
.layout
.background
#controls
#currentSlide
#header
#footer
#title
#author
2010-05-20 15:40:16 +00:00
2010-05-20 15:51:55 +00:00
.presentation
= yield