Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conditional elements in html #173

Open
sabinantony opened this issue May 24, 2023 · 0 comments
Open

Conditional elements in html #173

sabinantony opened this issue May 24, 2023 · 0 comments

Comments

@sabinantony
Copy link

sabinantony commented May 24, 2023

var enjoyhint_script_steps = [ { "next #first": 'text', }, { "next #second": 'text' }.

'#first' is conditional. if the "#first" is not in the HTML code script is not running.

If any id is not present in HTML it should ignore and run the next line.

error
Uncaught TypeError: Cannot read properties of undefined (reading 'getBoundingClientRect')
at enjoyhint.js:154:60

@sabinantony sabinantony changed the title var enjoyhint_script_steps = [ { "next #first": 'text', }, { "next #second": 'text' }. '#first' is conditional. if the "#first" is not in html code script is not running. conditional elements May 24, 2023
@sabinantony sabinantony changed the title conditional elements Conditional elements in html May 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant