impress / impress.js

It's a presentation framework based on the power of CSS3 transforms and transitions in modern browsers and inspired by the idea behind prezi.com.
http://impress.js.org
MIT License
37.62k stars 6.67k forks source link

New "bookmark" plugin allows hotkey fast-travel to specific steps #852

Closed mengwong closed 10 months ago

mengwong commented 1 year ago

resolves https://github.com/impress/impress.js/issues/850

mengwong commented 1 year ago

i will make the linter happy

janishutz commented 1 year ago

You still have double quotes in the code that's why it complains. Please run

npm run all

before pushing

mengwong commented 1 year ago

You know, the weird thing that's going on, is that both my PRs, which are generally unrelated, both are failing tests in similar ways … maybe a curse is following me around

mengwong commented 1 year ago

if I could get this to run after init, the step-N ids would be allocated, and I wouldn't have to worry about divs not having ids.

mengwong commented 1 year ago

so, I did run npm run all before submitting the PR, and it turns out that fixing the linter errors was what led to the test failures. Everything is fine at 2c43ff3 😄

mengwong commented 1 year ago

ah, null !== undefined

https://www.quora.com/Why-did-Tony-Hoare-the-developer-of-Android-Studio-says-The-Null-References-is-my-billion-dollar-mistake

JS is the best language EVAR

> null != undefined
false
> null !== undefined
true
janishutz commented 1 year ago

Fun fact, this is actually one of my most favourite (and at the same time most hated) features of js

mengwong commented 1 year ago

Thanks for helping me get this PR shipshape, I appreciate it. I am building an app involving this codebase and will keep an eye out for problems. If there are no problems I will follow up in a while and maybe we can have another think about integrating this into master.

janishutz commented 1 year ago

Okay, great! Can you post a link to your project here, if it's open source?

mengwong commented 1 year ago

Okay, great! Can you post a link to your project here, if it's open source?

I will … once it is more presentable … still trying to figure out a bunch of things.