page_presentation.html 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="apple-mobile-web-app-capable" content="yes" />
  6. <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
  7. <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
  8. {{ getConfig('crowi', 'customize:header') | default('') }}
  9. <!-- polyfills for IE11 -->
  10. <script>
  11. var userAgent = window.navigator.userAgent.toLowerCase();
  12. if (userAgent.indexOf('msie') != -1 || userAgent.indexOf('trident') != -1) {
  13. var scriptElement = document.createElement('script');
  14. scriptElement.src = 'https://cdnjs.cloudflare.com/ajax/libs/babel-polyfill/6.23.0/polyfill.min.js';
  15. var headElement = document.getElementsByTagName('head')[0];
  16. headElement.appendChild(scriptElement);
  17. }
  18. </script>
  19. {{ cdnScriptTagsByGroup('basis') }}
  20. {% if env === 'development' %}
  21. <script src="/dll/dll.js"></script>
  22. <script src="{{ webpack_asset('js/dev.js') }}" async></script>
  23. {% endif %}
  24. <script src="{{ webpack_asset('js/legacy-presentation.js') }}" defer></script>
  25. <link rel="stylesheet" href="{{ webpack_asset('styles/style-presentation.css') }}">
  26. <title>{{ path|path2name }} | {{ path }}</title>
  27. {{ cdnStyleTagsByGroup('basis') }}
  28. {{ cdnHighlightJsStyleTag(getConfig('crowi', 'customize:highlightJsStyle')) }}
  29. <style>
  30. {{ customizeService.getCustomCss() }}
  31. </style>
  32. </head>
  33. <body>
  34. <div class="reveal">
  35. <div class="slides">
  36. {% set pageBreakSeparator = getConfig('markdown', 'markdown:presentation:pageBreakSeparator') | default(1) %}
  37. {% set pageBreakCustomSeparator = getConfig('markdown', 'markdown:presentation:pageBreakCustomSeparator') | default('') %}
  38. {% if 3 === pageBreakSeparator %}
  39. {% set dataSeparator = pageBreakCustomSeparator %}
  40. {% elseif 2 === pageBreakSeparator %}
  41. {% set dataSeparator = "\n-----\n" %}
  42. {% else %}
  43. {% set dataSeparator = "\n\n\n" %}
  44. {% endif %}
  45. <section data-markdown data-separator="{{dataSeparator}}">
  46. <script type="text/template">
  47. {{ revision.body|presentation|safe }}
  48. </script>
  49. </section>
  50. <section data-markdown># おしまい</section>
  51. </div>
  52. </div>
  53. </body>
  54. </html>