Hakim El Hattab
ff3244af7a
reader mode refactoring
2023-10-23 11:24:50 +02:00
Hakim El Hattab
49c0030392
improved reader progress bar visuals in high density
2023-10-20 21:02:04 +02:00
Hakim El Hattab
51acc830f9
major cleanup of reader mode code
2023-10-20 20:23:31 +02:00
Hakim El Hattab
cc9a36dc25
massive reader mode refactor; adds support for auto-animate + snapping for fragments
2023-10-20 10:18:34 +02:00
Hakim El Hattab
a9031821ef
add scroll snap points for reader mode scroll triggers
2023-10-18 11:16:06 +02:00
Hakim El Hattab
c4e322ce79
don't show reader scroll bar when there is no overflow, reader style tweaks
2023-10-17 13:59:11 +02:00
Hakim El Hattab
b8b55b8d4c
readerScrollBar -> readerScrollbar
2023-10-12 14:03:28 +02:00
Hakim El Hattab
198cbc4ace
reader mode tweaks
2023-10-12 13:39:44 +02:00
Hakim El Hattab
d802789c4d
more accurate scroll trigger positioning in progress bar
2023-10-12 11:09:47 +02:00
Hakim El Hattab
980b902a9d
disable overview while in reader mode
2023-10-11 10:42:47 +02:00
Hakim El Hattab
122642fdea
reader progress theming, automatically invert based on slide bg
2023-10-11 09:51:03 +02:00
Hakim El Hattab
2c5a83c945
refactoring
2023-10-10 14:47:08 +02:00
Hakim El Hattab
a6abd0423e
finishing touches on reader mode progress bar
2023-10-10 13:34:33 +02:00
Hakim El Hattab
234799114a
reader mode progress bar can be dragged to scroll
2023-10-10 11:16:31 +02:00
Hakim El Hattab
f80ee3b917
reader mode progress bar
2023-10-10 10:24:02 +02:00
Hakim El Hattab
1871824fae
reader mode; named deeplink support, stay on same slide when reader mode is turned on/off
2023-10-06 11:37:58 +02:00
Hakim El Hattab
1f1ca3a887
refactoring
2023-10-06 10:07:19 +02:00
Hakim El Hattab
d84aa3472e
reader mode tests
2023-10-06 09:52:21 +02:00
Hakim El Hattab
ab52d334df
add support for responsively activating reader mode via
2023-10-06 09:14:23 +02:00
NGUYEN DINH Quoc-Huy
42a1844d27
Support to 'wheel' event listener
2023-10-06 15:03:32 +11:00
Hakim El Hattab
899a45dff6
update api method name
2023-10-05 14:24:13 +02:00
Hakim El Hattab
3db2340df3
fix issues with active slide logic in reader mode, foundational work for auto-animate support
2023-10-05 14:06:06 +02:00
Hakim El Hattab
c856fa9db1
dispatch slidechange events in reader mode
2023-09-25 12:32:46 +02:00
Hakim El Hattab
4c9cc89566
refactoring, remove unused layout
2023-09-22 10:31:34 +02:00
Hakim El Hattab
97f2e184c1
fix preload bug
2023-09-21 14:15:46 +02:00
Hakim El Hattab
e49e89a557
reader mode supports scroll snapping, sticky pages with scroll triggers are always full height
2023-09-21 13:35:49 +02:00
Hakim El Hattab
f0950ba9ae
rename 'mode' config value to 'view'
2023-09-20 16:11:31 +02:00
Hakim El Hattab
0861b07618
revamped reader mode sticky logic, add option for fullscreen pages
2023-09-20 15:00:15 +02:00
Hakim El Hattab
5de7da7692
reader mode can be turned off without reload, add Reveal.toggleReader()
2023-09-19 11:52:54 +02:00
Hakim El Hattab
4da6f6b30f
refactoring, fix preload distance
2023-09-14 15:17:28 +02:00
Hakim El Hattab
eaf5f61318
reader mode; deeplink support, presentation scaling, scroll trigger fixes
2023-09-14 15:03:23 +02:00
Hakim El Hattab
f26d31570e
separate reader mode into individual controller, add scroll triggers for fragments
2023-09-14 13:00:31 +02:00
Hakim El Hattab
6aa1eae796
foundation for reader mode, activate via 'mode=reader/print' config param
2023-09-12 17:00:56 +02:00
Thomas Fritsch
27ff199627
add support for links to the id of an element nested inside slide
...
fixes hakimel/reveal.js#3231
2023-08-05 16:24:22 +02:00
Hakim El Hattab
227f90fa00
fix code block auto-animate bug that caused unmatched lines to appear without fading in
2023-05-31 09:07:10 +02:00
Martino
ea6b7197c7
Add RFC3986-compliant URL format encoding
...
Fixes https://github.com/hakimel/reveal.js/issues/3315
2023-02-13 10:02:15 +01:00
Andreas Deininger
32a16295c3
Fixes typos
2023-01-25 14:13:31 +01:00
hakimel
3301d3036e
fix incorrect condition for jump-to-slide
2023-01-17 10:56:45 +01:00
hakimel
fb1fecd754
enforce a min length on jump to slide search queries
2023-01-17 10:30:35 +01:00
hakimel
efcc86273b
jump-to-slide is 1-indexed, falls back on word search
2023-01-17 09:49:49 +01:00
hakimel
282680e163
delay slide jumps a few ms
2023-01-16 14:43:50 +01:00
hakimel
79e9fdf13f
add jump-to-slide to help overlay, style tweaks
2023-01-16 12:33:37 +01:00
hakimel
d146c1ddc1
adds jump-to-slide, press G to activate
2023-01-16 11:41:19 +01:00
hakimel
8a97ad58b0
prevent extra \n at end of single notes #3010
2022-09-05 11:10:32 +02:00
hakimel
01efcf2d92
merge support for multiple notes on same slide
2022-09-05 10:47:47 +02:00
hakimel
b23d15c430
fix issue were auto-animate could interfere with inherited line-height
2022-08-14 19:55:24 +02:00
hakimel
5a031c07b6
fix issues with overflowing fit-text when exporting to pdf #3191 #3120
2022-05-31 11:50:26 +02:00
hakimel
0ca389721c
add support for 'data-background-gradient' #2510
...
Co-authored-by: Giacomo Zinetti <giacomo.zinetti@giko.it>
2022-05-02 14:49:21 +02:00
hakimel
eada286ca0
fix issue where auto-animate did not work when jumping three or more slides (i.e. longer than the view distance)
2022-04-28 13:38:30 +02:00
hakimel
286d5ef561
made data-background attribute work with .webp #3200
2022-04-25 08:45:43 +02:00
hakimel
1767e76cdc
fix issue with #3182 when slide numbers are disabled
2022-04-04 15:33:44 +02:00
Chi Vong
953aaad83a
fix: pdf page numbering for fragment group
2022-04-02 18:59:46 +02:00
hakimel
2a239aedca
debounce messages from notes -> main window, fixes #3147
2022-03-09 10:25:30 +01:00
hakimel
fc861fca50
throttle calls to replaceState to fix security error when navigating quickly in Safari #3147
2022-03-09 09:44:31 +01:00
hakimel
5e12c6aeb7
additional cleanup when destroying #1145
2022-02-21 14:28:11 +01:00
hakimel
1e0cbe6779
reveal.js can now be uninitialized by calling Reveal.destroy() #1145 #3134
2022-02-21 13:41:36 +01:00
hakimel
74c0fbb6a2
fix read issue that caused double navigations fixes #3079
2021-11-24 11:30:12 +01:00
hakimel
c5d549810e
refactor #3078
2021-11-24 11:07:11 +01:00
vanch3d
bcf83153d7
adding type to the video source tag
2021-11-23 09:42:22 +00:00
hakimel
c79f4b5a4f
fix issue with deck-wide backgroudns in pdf exports + fix #2865
2021-11-16 14:10:29 +01:00
hakimel
a6c0f3efac
refactor hash parsing, fixes issue with autoplaying media not starting from internal links on mobile devices
2021-11-10 20:08:37 +01:00
Jens Lechtenbörger
62a85d55f8
Add generated files
2021-10-06 17:51:11 +02:00
hakimel
05e57dea66
fix issue with loading base64 images #2978
2021-09-28 13:02:16 +02:00
Jens Lechtenbörger
f9ce61e34a
Support multiple aside notes elements per slide
...
So far, multiple notes per slide are only supported if they are
attached to fragments (without fragments, only the first aside notes
element on a slide is displayed). With this commit, the contents of
all notes on a slide are displayed (except for fragments with notes,
for which, as before, only each fragment's first/single note is
displayed).
2021-09-16 11:56:52 +02:00
Hakim El Hattab
2aed592d1f
fix last slide shortcut in looped presentations #3007
2021-09-16 10:43:40 +02:00
Hakim El Hattab
90bbe8be4f
new shortcuts; alt+arrow key skips fragments, shift+arrow key jumps to last slide in the given direction #1105
2021-09-06 13:02:58 +02:00
Hakim El Hattab
31c65975b2
Merge pull request #2896 from coffeenotfound/feature-auto-animate-restart
...
Implement auto-animate id and restart
2021-05-27 09:54:46 +02:00
Hakim El Hattab
892c752a4b
merge #2843 with minor tweaks
2021-05-05 11:02:02 +02:00
Hakim El Hattab
236d3e3722
tidy up code for #2940
2021-04-28 09:03:27 +02:00
Hakim El Hattab
a112712f12
Merge pull request #2940 from cmeessen/fix_multiple_data-background
...
Fix: multiple image-urls in data-background-image
2021-04-28 08:55:30 +02:00
cmeessen
5d8d673117
Add missing semicolons
2021-04-23 10:15:40 +00:00
Hakim El Hattab
6d735ddaf8
stop playing media inside of fragments when the fragment is hidden
2021-04-23 10:56:18 +02:00
Christian Meeßen
8347a2de58
Allow multiple data-background
2021-04-23 08:55:36 +00:00
Hakim El Hattab
444d127053
Merge pull request #2933 from csachs/hasDarkBackgroundNamedColor
...
Use computed background style if colorToRgb fails (fixes #2635 )
2021-04-14 13:20:42 +02:00
Hakim El Hattab
be110fad11
prevent accidental swipe gestures when scrubbing video/audio timelines
2021-04-12 11:17:06 +02:00
Christian Sachs
d1f6e6cce9
use computed background style if colorToRgb fails
...
fixes #2635
2021-04-11 13:25:36 +02:00
Jan Katzer
cec99c5261
Implement auto-animate id and restart
2021-02-07 18:41:16 +01:00
Jeroen Hermans
acafabf023
Merge branch 'dev' into jh/print-optimize
2020-12-20 17:44:20 +01:00
Hakim El Hattab
f576b98fbd
rerun r-fit-text based on printed slide size, fixes overflow when printing to PDF #2865
2020-12-17 08:49:51 +01:00
Jeroen Hermans
e57ff233a4
Group background reads and writes
2020-11-16 09:47:58 +01:00
Jeroen Hermans
10f02ece99
Group pdf setup reads and writes
2020-11-16 09:47:19 +01:00
Jeroen Hermans
33c4c1c5d2
Batch print DOM updates
2020-11-15 22:29:50 +01:00
Jeroen Hermans
49f78535d1
Use const in print controller
2020-11-15 22:29:23 +01:00
Jeroen Hermans
957f928c70
Prevent layout thrashing by scroll height
2020-11-15 22:29:23 +01:00
Jeroen Hermans
3d701edc71
Limit slide number DOM mutations
2020-11-15 22:01:50 +01:00
Jens Lechtenbörger
d2dff6a821
Fix target for click on progress bar
...
The progress bar shows how many slides have been passed in total.
However, when clicking on the progress bar, the target slide is
computed among the subset of /horizontal/ slides. Thus, when the new
slide is displayed, the progress bar has usually changed to a point
that is unrelated to the clicked one, which I find surprising.
With this change, the target slide is computed from the number of
total slides. Thus, after a click on the progress bar, the resulting
progress is close to the clicked point, which seems more natural to
me.
2020-11-08 17:39:04 +01:00
Hakim El Hattab
4d62dcc674
Merge branch 'master' of github.com:hakimel/reveal.js into dev
2020-09-09 10:26:42 +02:00
Tim Gates
2c121d22ac
docs: Fix simple typo, transiition -> transition
...
There is a small typo in js/controllers/autoanimate.js.
Should read `transition` rather than `transiition`.
2020-09-08 08:02:34 +10:00
Hakim El Hattab
9ff27cfbc9
bg videos remain muted on mobile, otherwise broken when navigating with swipe gestures
2020-06-16 11:20:15 +02:00
Hakim El Hattab
2fccb77405
add 'playsinline' to all inline videos, dont mute background videos on mobile
2020-06-16 10:27:09 +02:00
Hakim El Hattab
be460814ac
correct scope for fit-text selector
2020-06-09 10:32:56 +02:00
Hakim El Hattab
aa6677911c
fit-text helper now triggers lazyily when slide enters view distance
2020-06-09 10:28:01 +02:00
Hakim El Hattab
66cbd66fb6
fix slide numbering issue with uncounted horizontal slides ( fixes #2675 )
2020-06-05 11:47:46 +02:00
Hakim El Hattab
ac79c7cd8b
leave the progress bar empty if there's < 2 slides
2020-06-05 09:37:44 +02:00
Hakim El Hattab
c91074761a
don't write '#/' to url on first slide, remove history api feature detection
2020-06-02 09:08:00 +02:00
Hakim El Hattab
b7487b8b4f
polyfill element.closest for ie11
2020-05-26 10:45:05 +02:00
Hakim El Hattab
e6244a57b5
fix polyfills, add ie11 support
2020-05-26 09:47:01 +02:00
Lee Sheng Long
4e839b3d78
fix slide notes printing
2020-05-21 23:56:23 +10:00
Hakim El Hattab
35db006c02
fix overlapping ids when auto-animating multiple presentations in same window
2020-05-20 19:14:45 +02:00
Hakim El Hattab
df61f9e1fa
progress bar width set via scale instead of width for perf
2020-05-20 10:42:55 +02:00