Small cleanups and fix scrollspy

master
Daniel Berteaud 10 years ago
parent 8873435dc2
commit 5dce440094
  1. 3
      lib/Vroom/I18N/en.pm
  2. 3
      lib/Vroom/I18N/fr.pm
  3. 2
      public/css/vroom.css
  4. 16
      public/js/vroom.js
  5. 2
      templates/default/documentation.html.ep

@ -341,7 +341,8 @@ our %Lexicon = (
"ABOUT_MUSICS" => "Also thanks to the authors of songs used", "ABOUT_MUSICS" => "Also thanks to the authors of songs used",
"FROM_AUTHOR" => "from", "FROM_AUTHOR" => "from",
"PAGE_NOT_FOUND" => "This page does not exist", "PAGE_NOT_FOUND" => "This page does not exist",
"SERVER_ERROR" => "Sorry for the inconvinience" "SERVER_ERROR" => "Sorry for the inconvinience",
"DOCUMENTATION" => "Documentation"
); );
1; 1;

@ -370,7 +370,8 @@ our %Lexicon = (
"ABOUT_MUSICS" => "Merci également aux auteurs des morceaux de musique utilisés", "ABOUT_MUSICS" => "Merci également aux auteurs des morceaux de musique utilisés",
"FROM_AUTHOR" => "de", "FROM_AUTHOR" => "de",
"PAGE_NOT_FOUND" => "Cette page n'existe pas", "PAGE_NOT_FOUND" => "Cette page n'existe pas",
"SERVER_ERROR" => "Veuillez nous excuser" "SERVER_ERROR" => "Veuillez nous excuser",
"DOCUMENTATION" => "Documentation"
); );
1; 1;

@ -276,7 +276,6 @@ a.popup>span {
.header-btn-group { .header-btn-group {
margin-left: 10px; margin-left: 10px;
} }
html,
body { body {
height: 100%; height: 100%;
width: 100%; width: 100%;
@ -284,6 +283,7 @@ body {
margin: 0px; margin: 0px;
padding: 0px; padding: 0px;
font-family: 'Happy Monkey', cursive; font-family: 'Happy Monkey', cursive;
position: relative;
} }
#wrap { #wrap {
min-height: 100%; min-height: 100%;

@ -405,22 +405,24 @@ function initIndex(){
// The documentation page // The documentation page
function initDoc(){ function initDoc(){
$('#doc-toc').width($('#doc-toc').parents().width());
$('#doc-toc').toc({ $('#toc').width($('#toc').parents().width());
$('#toc').toc({
elementClass: 'toc', elementClass: 'toc',
ulClass: 'nav', ulClass: 'nav',
heading: 'Content', heading: 'Table of content',
indexingFormats: 'number' indexingFormats: 'number'
}); });
// Scroll to the table of content section when user scroll the mouse // Scroll to the table of content section when user scroll the mouse
$('body').scrollspy({ $('body').scrollspy({
target: '#doc-toc', target: '#toc',
offset: $('#headerNav').outerHeight(true) + 40 offset: $('#headerNav').outerHeight(true) + 40
}); });
setTimeout(function() { setTimeout(function() {
var $sideBar = $('#doc-toc'); var $sideBar = $('#toc');
$sideBar.affix({ $sideBar.affix({
offset: { offset: {
top: function() { top: function() {
@ -434,7 +436,7 @@ function initDoc(){
} }
} }
}); });
}, 100); }, 200);
} }
// Used on the room admin page // Used on the room admin page

@ -4,7 +4,7 @@
<div class="container-fluid"> <div class="container-fluid">
<div class="row-fluid"> <div class="row-fluid">
<div class="hidden-xs col-sm-3"> <div class="hidden-xs col-sm-3">
<div id="doc-toc"> <div id="toc">
</div> </div>
</div> </div>
<div class="col-sm-9" id="doc-content"> <div class="col-sm-9" id="doc-content">

Loading…
Cancel
Save