summaryrefslogtreecommitdiff
path: root/views/layout.haml
blob: b6606a1860b843076249f3fd667f63ae5a0abcb7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
!!!
%html{:xmlns => "http://www.w3.org/1999/xhtml", "xml:lang" => "en", :lang => "en"}
  %head
    %meta{'http-equiv' => 'Content-Type', :content => 'text/html; charset=UTF-8'}
    %meta{'http-equiv' => "X-UA-Compatible", :content => "chrome=1"}
    %title Lazar Toxicity Predictions
    %link{ :href=>"/stylesheets/screen.css", :media=>"screen, projection", :rel=>"stylesheet", :type=>"text/css"}
    %link{ :href=>"/stylesheets/jquery-ui.css", :rel=>"stylesheet"}
    %script{:src=>"/javascripts/jquery-1.9.1.min.js", :type=>"text/javascript"}
    %script{ :src=>"/javascripts/jquery-ui.js", :type=>"text/javascript"}
    %script{ :src=>"/javascripts/lazar-gui.js", :type=>"text/javascript"}
    %script{:src=>"/javascripts/jquery.tablesorter.min.js", :type=>"text/javascript"}
    %script{:src=>"/javascripts/jquery.bpopup.min.js", :type=>"text/javascript"}
    

  %body
    .logo
      %a{:href=> "http://www.in-silico.ch/", :rel=> "external"}
        %img{:src=>"/images/ist_logo.png"}
      %h1 Lazar Toxicity Predictions      
      %hr
    
    .content
      :javascript
        $(document).ready(function(){
          // hide #back-top first
          $("#back-top").hide();
          // fade in #back-top
          $(function () {
            $(window).scroll(function () {
              if ($(this).scrollTop() > 400) {
                $('#back-top').fadeIn();
              } else {
                $('#back-top').fadeOut();
              }
            });
            // scroll body to 0px on click
            $('#back-top a').click(function () {
              $('body,html').animate({
                scrollTop: 0
              }, 500);
              return false;
            });
          });
        });
      #back-top
        %a{:href => ""}^ top ^
          
      = yield
    
    .footer
      © 
      %a{:href => 'http://www.in-silico.ch', :rel => "external"} in-silico toxicology gmbh 2004-2013