adamzap / landslide

Generate HTML5 slideshows from markdown, ReST, or textile
Apache License 2.0
2.08k stars 370 forks source link

Feature request: Add footnote support to slides #150

Open DDevine opened 10 years ago

DDevine commented 10 years ago

I'd like to be able to have footnotes on my slides. rST has a footer directive that could be used to put things at the bottom of a slide.

obestwalter commented 8 years ago

Here's a custom Javascript stolen from another landslide presentation

function r(f){/loaded|complete/.test(document.readyState)?f():setTimeout("r("+f+")",9);}
function go() {
    var body = document.getElementsByTagName('body')[0];
    var e = document.createElement('p');
    e.setAttribute('class', 'cop');
    e.innerHTML =
    '<strong>Intégration continue d\'un projet Django</strong> | '
    + 'Nicolas Perriault — <a href="http://www.akei.com/">Akei</a> | '
    + '<a href="http://rencontres.django-fr.org/">Rencontres Django Francophones</a>, Marseille, 2011 | '
    + 'Slides powered by <a href="https://github.com/n1k0/landslide">Landslide</a> (type <code>h</code> fort help)';
    body.appendChild(e);
}
r(go);

You only have to use a landslide.cfg and add a js item pointing to the code.

Thorsten-Sick commented 5 years ago

As an extension: I'd like to have a macro to put credits in a footnote (bar at the bottom of the page or similar). Background: A presentation presented the achievements of other developers. But the credits got lost (end of the presentation cut away in the video). People got angry... having a way to give the credits right where the project is mentioned would have solved that.