Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

config.js 9.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300
  1. /**
  2. * The default reveal.js config object.
  3. */
  4. export default {
  5. // The "normal" size of the presentation, aspect ratio will be preserved
  6. // when the presentation is scaled to fit different resolutions
  7. width: 960,
  8. height: 700,
  9. // Factor of the display size that should remain empty around the content
  10. margin: 0.04,
  11. // Bounds for smallest/largest possible scale to apply to content
  12. minScale: 0.2,
  13. maxScale: 2.0,
  14. // Display presentation control arrows
  15. controls: true,
  16. // Help the user learn the controls by providing hints, for example by
  17. // bouncing the down arrow when they first encounter a vertical slide
  18. controlsTutorial: true,
  19. // Determines where controls appear, "edges" or "bottom-right"
  20. controlsLayout: 'bottom-right',
  21. // Visibility rule for backwards navigation arrows; "faded", "hidden"
  22. // or "visible"
  23. controlsBackArrows: 'faded',
  24. // Display a presentation progress bar
  25. progress: true,
  26. // Display the page number of the current slide
  27. // - true: Show slide number
  28. // - false: Hide slide number
  29. //
  30. // Can optionally be set as a string that specifies the number formatting:
  31. // - "h.v": Horizontal . vertical slide number (default)
  32. // - "h/v": Horizontal / vertical slide number
  33. // - "c": Flattened slide number
  34. // - "c/t": Flattened slide number / total slides
  35. //
  36. // Alternatively, you can provide a function that returns the slide
  37. // number for the current slide. The function should take in a slide
  38. // object and return an array with one string [slideNumber] or
  39. // three strings [n1,delimiter,n2]. See #formatSlideNumber().
  40. slideNumber: false,
  41. // Can be used to limit the contexts in which the slide number appears
  42. // - "all": Always show the slide number
  43. // - "print": Only when printing to PDF
  44. // - "speaker": Only in the speaker view
  45. showSlideNumber: 'all',
  46. // Use 1 based indexing for # links to match slide number (default is zero
  47. // based)
  48. hashOneBasedIndex: false,
  49. // Add the current slide number to the URL hash so that reloading the
  50. // page/copying the URL will return you to the same slide
  51. hash: false,
  52. // Flags if we should monitor the hash and change slides accordingly
  53. respondToHashChanges: true,
  54. // Enable support for jump-to-slide navigation shortcuts
  55. jumpToSlide: true,
  56. // Push each slide change to the browser history. Implies `hash: true`
  57. history: false,
  58. // Enable keyboard shortcuts for navigation
  59. keyboard: true,
  60. // Optional function that blocks keyboard events when retuning false
  61. //
  62. // If you set this to 'focused', we will only capture keyboard events
  63. // for embedded decks when they are in focus
  64. keyboardCondition: null,
  65. // Disables the default reveal.js slide layout (scaling and centering)
  66. // so that you can use custom CSS layout
  67. disableLayout: false,
  68. // Enable the slide overview mode
  69. overview: true,
  70. // Vertical centering of slides
  71. center: true,
  72. // Enables touch navigation on devices with touch input
  73. touch: true,
  74. // Loop the presentation
  75. loop: false,
  76. // Change the presentation direction to be RTL
  77. rtl: false,
  78. // Changes the behavior of our navigation directions.
  79. //
  80. // "default"
  81. // Left/right arrow keys step between horizontal slides, up/down
  82. // arrow keys step between vertical slides. Space key steps through
  83. // all slides (both horizontal and vertical).
  84. //
  85. // "linear"
  86. // Removes the up/down arrows. Left/right arrows step through all
  87. // slides (both horizontal and vertical).
  88. //
  89. // "grid"
  90. // When this is enabled, stepping left/right from a vertical stack
  91. // to an adjacent vertical stack will land you at the same vertical
  92. // index.
  93. //
  94. // Consider a deck with six slides ordered in two vertical stacks:
  95. // 1.1 2.1
  96. // 1.2 2.2
  97. // 1.3 2.3
  98. //
  99. // If you're on slide 1.3 and navigate right, you will normally move
  100. // from 1.3 -> 2.1. If "grid" is used, the same navigation takes you
  101. // from 1.3 -> 2.3.
  102. navigationMode: 'default',
  103. // Randomizes the order of slides each time the presentation loads
  104. shuffle: false,
  105. // Turns fragments on and off globally
  106. fragments: true,
  107. // Flags whether to include the current fragment in the URL,
  108. // so that reloading brings you to the same fragment position
  109. fragmentInURL: true,
  110. // Flags if the presentation is running in an embedded mode,
  111. // i.e. contained within a limited portion of the screen
  112. embedded: false,
  113. // Flags if we should show a help overlay when the question-mark
  114. // key is pressed
  115. help: true,
  116. // Flags if it should be possible to pause the presentation (blackout)
  117. pause: true,
  118. // Flags if speaker notes should be visible to all viewers
  119. showNotes: false,
  120. // Flags if slides with data-visibility="hidden" should be kep visible
  121. showHiddenSlides: false,
  122. // Global override for autoplaying embedded media (video/audio/iframe)
  123. // - null: Media will only autoplay if data-autoplay is present
  124. // - true: All media will autoplay, regardless of individual setting
  125. // - false: No media will autoplay, regardless of individual setting
  126. autoPlayMedia: null,
  127. // Global override for preloading lazy-loaded iframes
  128. // - null: Iframes with data-src AND data-preload will be loaded when within
  129. // the viewDistance, iframes with only data-src will be loaded when visible
  130. // - true: All iframes with data-src will be loaded when within the viewDistance
  131. // - false: All iframes with data-src will be loaded only when visible
  132. preloadIframes: null,
  133. // Can be used to globally disable auto-animation
  134. autoAnimate: true,
  135. // Optionally provide a custom element matcher that will be
  136. // used to dictate which elements we can animate between.
  137. autoAnimateMatcher: null,
  138. // Default settings for our auto-animate transitions, can be
  139. // overridden per-slide or per-element via data arguments
  140. autoAnimateEasing: 'ease',
  141. autoAnimateDuration: 1.0,
  142. autoAnimateUnmatched: true,
  143. // CSS properties that can be auto-animated. Position & scale
  144. // is matched separately so there's no need to include styles
  145. // like top/right/bottom/left, width/height or margin.
  146. autoAnimateStyles: [
  147. 'opacity',
  148. 'color',
  149. 'background-color',
  150. 'padding',
  151. 'font-size',
  152. 'line-height',
  153. 'letter-spacing',
  154. 'border-width',
  155. 'border-color',
  156. 'border-radius',
  157. 'outline',
  158. 'outline-offset'
  159. ],
  160. // Controls automatic progression to the next slide
  161. // - 0: Auto-sliding only happens if the data-autoslide HTML attribute
  162. // is present on the current slide or fragment
  163. // - 1+: All slides will progress automatically at the given interval
  164. // - false: No auto-sliding, even if data-autoslide is present
  165. autoSlide: 0,
  166. // Stop auto-sliding after user input
  167. autoSlideStoppable: true,
  168. // Use this method for navigation when auto-sliding (defaults to navigateNext)
  169. autoSlideMethod: null,
  170. // Specify the average time in seconds that you think you will spend
  171. // presenting each slide. This is used to show a pacing timer in the
  172. // speaker view
  173. defaultTiming: null,
  174. // Enable slide navigation via mouse wheel
  175. mouseWheel: false,
  176. // Opens links in an iframe preview overlay
  177. // Add `data-preview-link` and `data-preview-link="false"` to customise each link
  178. // individually
  179. previewLinks: false,
  180. // Exposes the reveal.js API through window.postMessage
  181. postMessage: true,
  182. // Dispatches all reveal.js events to the parent window through postMessage
  183. postMessageEvents: false,
  184. // Focuses body when page changes visibility to ensure keyboard shortcuts work
  185. focusBodyOnPageVisibilityChange: true,
  186. // Transition style
  187. transition: 'slide', // none/fade/slide/convex/concave/zoom
  188. // Transition speed
  189. transitionSpeed: 'default', // default/fast/slow
  190. // Transition style for full page slide backgrounds
  191. backgroundTransition: 'fade', // none/fade/slide/convex/concave/zoom
  192. // Parallax background image
  193. parallaxBackgroundImage: '', // CSS syntax, e.g. "a.jpg"
  194. // Parallax background size
  195. parallaxBackgroundSize: '', // CSS syntax, e.g. "3000px 2000px"
  196. // Parallax background repeat
  197. parallaxBackgroundRepeat: '', // repeat/repeat-x/repeat-y/no-repeat/initial/inherit
  198. // Parallax background position
  199. parallaxBackgroundPosition: '', // CSS syntax, e.g. "top left"
  200. // Amount of pixels to move the parallax background per slide step
  201. parallaxBackgroundHorizontal: null,
  202. parallaxBackgroundVertical: null,
  203. // The maximum number of pages a single slide can expand onto when printing
  204. // to PDF, unlimited by default
  205. pdfMaxPagesPerSlide: Number.POSITIVE_INFINITY,
  206. // Prints each fragment on a separate slide
  207. pdfSeparateFragments: true,
  208. // Offset used to reduce the height of content within exported PDF pages.
  209. // This exists to account for environment differences based on how you
  210. // print to PDF. CLI printing options, like phantomjs and wkpdf, can end
  211. // on precisely the total height of the document whereas in-browser
  212. // printing has to end one pixel before.
  213. pdfPageHeightOffset: -1,
  214. // Number of slides away from the current that are visible
  215. viewDistance: 3,
  216. // Number of slides away from the current that are visible on mobile
  217. // devices. It is advisable to set this to a lower number than
  218. // viewDistance in order to save resources.
  219. mobileViewDistance: 2,
  220. // The display mode that will be used to show slides
  221. display: 'block',
  222. // Hide cursor if inactive
  223. hideInactiveCursor: true,
  224. // Time before the cursor is hidden (in ms)
  225. hideCursorTime: 5000,
  226. // Should we automatmically sort and set indices for fragments
  227. // at each sync? (See Reveal.sync)
  228. sortFragmentsOnSync: true,
  229. // Script dependencies to load
  230. dependencies: [],
  231. // Plugin objects to register and use for this presentation
  232. plugins: []
  233. }