summaryrefslogtreecommitdiff
path: root/public/js/slide.js (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Linter: Fix all lint errorsPhilip Molares2021-02-151-67/+74
| | | | Signed-off-by: Philip Molares <philip.molares@udo.edu>
* Fix wrong acces to slide optionsTilman Vatteroth2021-02-021-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>
* Delete slide options that are not definedTilman Vatteroth2021-01-151-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>
* added theme to the sanitization of slideOptionsPhilip Molares2021-01-141-0/+1
| | | | Signed-off-by: Philip Molares <philip.molares@udo.edu>
* added sanitation to the slideMode in frontmatterPhilip Molares2021-01-141-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>
* Fix eslint warningsSheogorath2019-05-311-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>
* Add Print icon to slide viewSheogorath2018-06-241-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>
* Fix blockquote not parse correctly in slide modeWu Cheng-Han2017-10-051-2/+0
|
* Fix the < and > symbols are doubly escaped which affected by executing ↵Wu Cheng-Han2017-09-271-0/+2
| | | | preventXSS twice
* Fix slide mode contains unclosed tags might cause XSS [Security Issue]Wu Cheng-Han2017-09-271-1/+2
|
* Fix slide mode might hide scrollbar on some linuxMax Wu2017-06-141-2/+2
|
* Fix duplicated loading of reveal markdown pluginWu Cheng-Han2017-03-211-14/+11
|
* Update to make removeDOMEvents only process once in slide modeWu Cheng-Han2017-03-201-2/+1
|
* Fix rendering might result XSS attribute on self closing tag [Security Issue]Wu Cheng-Han2017-03-141-1/+3
|
* Use JavaScript Standard Style (part 2)BoHong Li2017-03-091-97/+98
| | | | Fixed all fail on frontend code.
* Convert slide.js to es6Yukai Huang2017-01-051-33/+31
|
* Fix slide mode on print pdf not finish view renderingWu Cheng-Han2016-12-181-4/+12
|
* Fix slide resource path and style load orders to avoid conflictsWu Cheng-Han2016-11-291-2/+2
|
* Optimize slide page resource packing and load orders, fix possible wrong ↵Wu Cheng-Han2016-11-261-1/+0
| | | | chunks orders and font awesome version
* Fix possible XSS in yaml-metadata and turn using ejs escape syntax than ↵Wu Cheng-Han2016-11-261-3/+0
| | | | external lib [Security Issue]
* Fix slide might trigger script when processing markdown which cause XSS ↵Wu Cheng-Han2016-11-261-4/+10
| | | | [Security Issue]
* Require slide mode stylesheetsYukai Huang2016-11-021-0/+3
|
* Fix viewAjaxCallback might be called on nullWu Cheng-Han2016-11-011-1/+1
|
* Try to remove unused front-end dependencyWu Cheng-Han2016-10-191-18/+1
|
* Fix spellcheckYukai Huang2016-10-131-1/+0
| | | | * also fix spaces width
* Fix lastchangeui and moment timestampsYukai Huang2016-10-131-15/+2
|
* Optimize common assets with CDNYukai Huang2016-10-131-3/+0
| | | | | | | * jquery * lodash * socket.io * boostrap
* Refactor webpack moduleYukai Huang2016-10-131-8/+0
|
* CleanupYukai Huang2016-10-111-19/+0
|
* Remove unused viz.js requireYukai Huang2016-10-111-1/+0
|
* Slide mode is now workingYukai Huang2016-10-101-0/+73
|
* Update to hide scrollbar (but scrollable) in the slide modeWu Cheng-Han2016-08-151-0/+4
|
* Update slide ready and change event to improve performanceWu Cheng-Han2016-08-151-6/+9
|
* Update slide mode to show extra info and support url actions and support ↵Wu Cheng-Han2016-08-151-0/+11
| | | | disqus via yaml-metadata
* Update slide mode, now respect all meta settings and update default stylesWu Cheng-Han2016-08-141-1/+23
|
* Update to support slideOptions in the YAML metadataWu Cheng-Han2016-08-011-1/+4
|
* Update workaround for slide, need to trigger it in other thread via setTimeoutWu Cheng-Han2016-07-301-0/+4
|
* Update slide rendering to reduce DOM wrap and avoid duplicate rendering slidesWu Cheng-Han2016-07-301-4/+8
|
* Fix missing parameter in slide.jsWu Cheng-Han2016-07-021-1/+1
|
* Update to make slide mode support all extra syntax and change it's rendering ↵Wu Cheng-Han2016-07-021-0/+65
engine