diff --git a/website/docs/reference/index.html b/website/docs/reference/index.html new file mode 100644 index 0000000..2de687c --- /dev/null +++ b/website/docs/reference/index.html @@ -0,0 +1,25 @@ + + + + Docs - impress.js + + + + + + + +
+ +
+
+
+

API reference

+

impress.js is a JavaScript framework to create stunning presentations. Note: impress may not help you, if you have nothing interesting to say!

+

If you are new to impress and you want to learn to use it, we suggest you start here!

+
+
+ +
+ + \ No newline at end of file diff --git a/website/js/docs/loader.js b/website/js/docs/loader.js index f79d2ce..9366e98 100644 --- a/website/js/docs/loader.js +++ b/website/js/docs/loader.js @@ -1,3 +1,6 @@ +let theme = ''; +theme = sessionStorage.getItem( 'theme' ) || getPreferredTheme(); + $( document ).ready( function () { $( '#nav' ).load( '/docs/nav.html' ); $( '#top' ).load( '/docs/top.html' ); @@ -5,7 +8,6 @@ $( document ).ready( function () { } ); -let theme = sessionStorage.getItem( 'theme' ) || getPreferredTheme(); // set theme on page load function setTheme () {