default-configuration/common/templates/presentation.html.erb in rhet-butler-0.13.0 vs default-configuration/common/templates/presentation.html.erb in rhet-butler-0.14.0

- old
+ new

@@ -7,11 +7,10 @@ <title><%= presentation.title %></title> <meta name="description" content="<%= presentation.description %>" /> <meta name="author" content="<%= presentation.author_name %>" /> - <script src="/javascript/rhet-present.js"></script> <script src="/javascript/keyboard-nav.js"></script> <%= render 'stylesheets.html' %> <%= render 'header-javascript.html' %> </head> @@ -26,13 +25,14 @@ <p id="mouse-hint">Use a spacebar or arrow keys to navigate</p> <p id="touch-hint" style="display:none">Tap on the left or right to navigate</p> </div> <%= render 'live-javascript.html' %> - <script> - var presenter = new rhetButler.Presenter(document, window); - presenter.setup("presentation"); - setupUserInterface(presenter); + <script type='module'> + import Presenter from '/javascript/presenter.js'; + + var presenter = new rhetButler.Presenter(document, window, "presentation"); + setupUserInterface(presenter); </script> </body> </html>