Disabling media pause when switching content tabs. #6844
-
I would like to reverse the effects of this commit (as I understand it). I have several I understand how to add custom javascript but the current functionality is more deeply embedded than I know how to override. Thanks in advance for any help. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
Hello @stevekirby, mkdocs-material/src/templates/assets/javascripts/bundle.ts Lines 304 to 318 in 7b83b57 You can see how to hook the observables here:
I also believe that some observables expose a data, which you should be able to process: document$.subscribe(function(data) {
console.log(data);
}) Having said that, I don't know if the Perhaps another possibility is to make your own control logic in the Some more references:
Another possibility is a bit hacky, but in this case I believe is quite safe. Similar to this hook: you should be able to modify the minified bundle.js and find the EDIT: Since you asked about hooking the logic I forgot to mention that the alternative to the hacky approach would be to recompile the theme with modified TypeScript from scratch: https://squidfunk.github.io/mkdocs-material/customization/#building-the-theme |
Beta Was this translation helpful? Give feedback.
Hello @stevekirby,
these are the only observables that the bundle.js exposes:
mkdocs-material/src/templates/assets/javascripts/bundle.ts
Lines 304 to 318 in 7b83b57