Vladimir Panteleev
57166f7daa
assets/scripts.js: Remember and restore playback position when reopening
...
Just like the real thing.
2019-07-28 08:16:55 +00:00
Vladimir Panteleev
bc5a6bf2b9
assets/scripts.js: Clean up some global variables
2019-07-28 08:16:55 +00:00
Vladimir Panteleev
449e112040
assets/scripts.js: Make persistent state actually persistent
...
Use localStorage to save persistent variables.
2019-07-28 08:16:55 +00:00
Vladimir Panteleev
336a65f31a
assets/scripts.js: Pause and unpause on click
...
- By placing the event handler on the video element, we ensure we don't
receive it when a choice item was clicked.
- Use preventDefault to avoid the pause-and-immediately-unpause
problem due to the video element itself also handling the event.
2019-07-28 08:16:55 +00:00
Vladimir Panteleev
7989e92f2b
assets/scripts.js: Fix Space not unpausing with visible controls
...
When the video controls are visible, the video is paused, and the
video element is focused, pressing Space would unpause the video and
then immediately pause it again.
2019-07-28 08:16:55 +00:00
Vladimir Panteleev
ea6ff3f69e
assets/scripts.js: Use moments for right key
...
Allows stopping at false interactions (e.g. 2B/1).
2019-07-28 08:16:55 +00:00
Vladimir Panteleev
783db22881
assets/scripts.js: Show choices on game-over screens, too
2019-07-28 08:16:55 +00:00
Vladimir Panteleev
ab29b0e5c8
assets/scripts.js: More seek/timing logic fixes
2019-07-28 08:16:55 +00:00
Vladimir Panteleev
9367a9fba9
assets/scripts.js: Add up/down keys to speed up/slow down video
...
Again, useful for debugging.
2019-07-28 08:16:55 +00:00
Vladimir Panteleev
925d950efb
assets/scripts.js: Fix playing hash + pre-specified video src
2019-07-28 08:16:55 +00:00
Vladimir Panteleev
776c2d1aaa
assets/scripts.js: Allow #t12345 hash syntax
...
Similar to YouTube's ?t=12345.
Mostly for debugging.
2019-07-28 08:16:55 +00:00
Vladimir Panteleev
363b1e32a8
assets/scripts.js: Improve title and hash updates
...
- Update them when the playback position changes by any means, not
just when playing a certain chapter
- Include moments (choices) in hash and title
- Use choice descriptions in titles
- Allow meaningful back/forward navigation through chapters and choices
2019-07-28 08:16:55 +00:00
Vladimir Panteleev
c5fafb4c16
assets/scripts.js: Allow jumping to a chapter by setting the hash
2019-07-28 01:27:28 +00:00
Vladimir Panteleev
b4e04bccd1
assets/scripts.js: Improve handling of seeking
...
- Don't apply impressions when the player seeks into moments with
impression data
- Fix false positives when seeking within the first few seconds of a
segment
2019-07-28 01:20:34 +00:00
Vladimir Panteleev
588036f80e
assets/scripts.js: Rename generateJs to preconditionToJS
2019-07-28 01:20:34 +00:00
Vladimir Panteleev
350a2caead
assets/scripts.js: Fix undefined error for choices without descriptions
2019-07-28 01:20:34 +00:00
Vladimir Panteleev
4195108b0d
assets/scripts.js: Track time and moments properly
...
WIP.
- Fixes a family of bugs such as pausing the video during a choice
resulting in the video resuming at the default choice (while still
paused) after a while.
- Unifies tracking of moments and cleans up redundant code.
- Fixes unnecessary stutter when transitioning between two segments
that are adjacent in the video file.
2019-07-28 01:20:34 +00:00
Vladimir Panteleev
2c987cd81e
assets/scripts.js: Improve handling of pre-specified video src
...
Fixes behavior if HTML is edited to indicate the video source.
2019-07-28 01:20:34 +00:00
Vladimir Panteleev
7e26ff3ddb
assets/scripts.js: Don't hardcode initial segment
2019-07-28 01:20:34 +00:00
Vladimir Panteleev
68ec8bb628
assets/scripts.js: Fix check for undefined
2019-07-28 01:20:34 +00:00
Vladimir Panteleev
64bad02a3b
assets/scripts.js: Do not trigger key events with modifier keys
...
These key combinations usually mean something else and are not
intended for the web page.
2019-07-28 01:20:34 +00:00
Vladimir Panteleev
afc3abb81c
Fix onload JS error
2019-07-28 01:20:34 +00:00
Vladimir Panteleev
19c8003e62
assets/scripts.js: Delete unused function
2019-07-28 01:20:34 +00:00
Vladimir Panteleev
2826849ee0
assets/scripts.js: Fix JS warnings
2019-07-28 01:20:34 +00:00
Ali Zemani
65b9e0f437
update subtitle list on index.html
2019-07-15 16:56:54 +04:30
Ali Zemani
4a71282d1b
Add Indonesian Subtitle
2019-07-15 16:51:07 +04:30
Ali Zemani
41d447dce7
Add Polish Subtitle
2019-07-15 16:48:12 +04:30
Ali Zemani
7344a9b087
Remove Czech subtitle
2019-07-15 16:44:10 +04:30
Ali Zemani
19e613fb43
add Persian Subtitle
2019-07-15 16:40:25 +04:30
Ali Zemani
5464eae498
Merge pull request #20 from Dilbao/master
...
Fix for Turkish subtitle
2019-07-15 16:35:42 +04:30
Dilbao
5b18b32783
Update index.html
2019-07-15 15:02:29 +03:00
Dilbao
7c1daec38b
Update BlackMirror.Bandersnatch-Turkish.vtt
2019-07-15 14:57:26 +03:00
Dilbao
5cbc5ea257
Update index.html
2019-07-15 01:57:42 +03:00
Dilbao
bb3a1773f6
Update BlackMirror.Bandersnatch-Turkish.vtt
2019-07-15 01:56:35 +03:00
Dilbao
e8b4a1c83c
Update index.html
2019-07-15 01:50:50 +03:00
Dilbao
872ce5e2e4
Rename BlackMirror.Bandersnatch-Turkish to BlackMirror.Bandersnatch-Turkish.vtt
2019-07-15 01:50:02 +03:00
Dilbao
21d8b3df27
Update index.html
2019-07-15 01:38:20 +03:00
Dilbao
1c57ef3ff0
Update BlackMirror.Bandersnatch-Turkish
2019-07-14 18:13:33 +03:00
Imanoel Ali
423b612133
add Czech subtitle + update Turkish and portuguese subtitle
2019-01-29 23:01:31 +03:30
Imanoel Ali
6ea66b18df
add Turkish subtitle
2019-01-24 18:32:37 +03:30
Imanoel Ali
cb2e39b280
add Greek subtitle
2019-01-19 20:22:33 +03:30
Ali Zemani
2fbf4228bd
change some style
2019-01-19 12:15:17 +03:30
Ali Zemani
2764844c31
update file-dummy height
2019-01-19 12:12:35 +03:30
Ali Zemani
19e9a1447f
add html meta tag for seo
2019-01-19 11:54:46 +03:30
Imanoel Ali
4f61af6fa4
update style
2019-01-18 16:18:01 +03:30
Imanoel Ali
737144bb29
update readme
2019-01-18 16:16:42 +03:30
Imanoel Ali
cacfa79e1a
update index tips
2019-01-18 16:13:06 +03:30
Imanoel Ali
9e19b05660
update readme
2019-01-18 16:02:49 +03:30
Imanoel Ali
7495e26ab7
add more subtitle
2019-01-18 16:00:54 +03:30
Imanoel Ali
4b748d103e
add bitcoin wallet
2019-01-18 14:50:39 +03:30