summaryrefslogtreecommitdiff
path: root/public/js/slide.js (unfollow)
Commit message (Collapse)AuthorFilesLines
2021-02-15Linter: Fix all lint errorsPhilip Molares1-67/+74
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-02-02Fix wrong acces to slide optionsTilman Vatteroth1-49/+50
If the slide options in the frontmatter are empty or not present, then slideOptions object in the parsed JSON is undefined. This triggers an exception when the sanitized slide options object is built. Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
2021-01-15Delete slide options that are not definedTilman Vatteroth1-0/+6
Reveal.js doesn't set the default value of an option in the provided config object if the key is set with "undefined" as value. This leads to a broken slide mode, because some critical settings are missing. Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
2021-01-14added theme to the sanitization of slideOptionsPhilip Molares1-0/+1
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-01-14added sanitation to the slideMode in frontmatterPhilip Molares1-1/+50
This should prevent the issue mentioned in https://github.com/hackmdio/codimd/issues/1648 Specifically left out are - dependency (user can't really include anything anyway, because CSP forbids most domains) - autoSlideMethod (nothing our users should be able to change as they won't write JS to be affected by this) - keyboard (this let's users write arbitrary code and seems therefore to problematic) See: https://github.com/hakimel/reveal.js/blob/3.9.2/README.md#configuration Signed-off-by: Philip Molares <philip.molares@udo.edu>
2019-05-31Fix eslint warningsSheogorath1-5/+5
Since we are about to release it's time to finally fix our linting. This patch basically runs eslint --fix and does some further manual fixes. Also it sets up eslint to fail on every warning on order to make warnings visable in the CI process. There should no functional change be introduced. Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
2018-06-24Add Print icon to slide viewSheogorath1-0/+1
It redirects the user to the print view of the document. I claim that people should either be smart enough to use ctrl+P or ask someone who knows how to print a webpage. I don't want to babysit our users. Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
2017-10-05Fix blockquote not parse correctly in slide modeWu Cheng-Han1-2/+0
2017-09-27Fix the < and > symbols are doubly escaped which affected by executing ↵Wu Cheng-Han1-0/+2
preventXSS twice
2017-09-27Fix slide mode contains unclosed tags might cause XSS [Security Issue]Wu Cheng-Han1-1/+2
2017-06-14Fix slide mode might hide scrollbar on some linuxMax Wu1-2/+2
2017-03-21Fix duplicated loading of reveal markdown pluginWu Cheng-Han1-14/+11
2017-03-20Update to make removeDOMEvents only process once in slide modeWu Cheng-Han1-2/+1
2017-03-14Fix rendering might result XSS attribute on self closing tag [Security Issue]Wu Cheng-Han1-1/+3
2017-03-09Use JavaScript Standard Style (part 2)BoHong Li1-97/+98
Fixed all fail on frontend code.
2017-01-05Convert slide.js to es6Yukai Huang1-33/+31
2016-12-18Fix slide mode on print pdf not finish view renderingWu Cheng-Han1-4/+12
2016-11-29Fix slide resource path and style load orders to avoid conflictsWu Cheng-Han1-2/+2
2016-11-26Optimize slide page resource packing and load orders, fix possible wrong ↵Wu Cheng-Han1-1/+0
chunks orders and font awesome version
2016-11-26Fix possible XSS in yaml-metadata and turn using ejs escape syntax than ↵Wu Cheng-Han1-3/+0
external lib [Security Issue]
2016-11-26Fix slide might trigger script when processing markdown which cause XSS ↵Wu Cheng-Han1-4/+10
[Security Issue]
2016-11-02Require slide mode stylesheetsYukai Huang1-0/+3
2016-11-01Fix viewAjaxCallback might be called on nullWu Cheng-Han1-1/+1
2016-10-19Try to remove unused front-end dependencyWu Cheng-Han1-18/+1
2016-10-13Fix spellcheckYukai Huang1-1/+0
* also fix spaces width
2016-10-13Fix lastchangeui and moment timestampsYukai Huang1-15/+2
2016-10-13Optimize common assets with CDNYukai Huang1-3/+0
* jquery * lodash * socket.io * boostrap
2016-10-13Refactor webpack moduleYukai Huang1-8/+0
2016-10-11CleanupYukai Huang1-19/+0
2016-10-11Remove unused viz.js requireYukai Huang1-1/+0
2016-10-10Slide mode is now workingYukai Huang1-0/+73
2016-08-15Update to hide scrollbar (but scrollable) in the slide modeWu Cheng-Han1-0/+4
2016-08-15Update slide ready and change event to improve performanceWu Cheng-Han1-6/+9
2016-08-15Update slide mode to show extra info and support url actions and support ↵Wu Cheng-Han1-0/+11
disqus via yaml-metadata
2016-08-14Update slide mode, now respect all meta settings and update default stylesWu Cheng-Han1-1/+23
2016-08-01Update to support slideOptions in the YAML metadataWu Cheng-Han1-1/+4
2016-07-30Update workaround for slide, need to trigger it in other thread via setTimeoutWu Cheng-Han1-0/+4
2016-07-30Update slide rendering to reduce DOM wrap and avoid duplicate rendering slidesWu Cheng-Han1-4/+8
2016-07-02Fix missing parameter in slide.jsWu Cheng-Han1-1/+1
2016-07-02Update to make slide mode support all extra syntax and change it's rendering ↵Wu Cheng-Han1-0/+65
engine