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

Showing this error #18

Open
ankit2404 opened this issue Mar 4, 2022 · 4 comments
Open

Showing this error #18

ankit2404 opened this issue Mar 4, 2022 · 4 comments

Comments

@ankit2404
Copy link

Uncaught ReferenceError: hljs is not defined at HTMLDocument. (app.js:5:3)

@Kordianz
Copy link

Kordianz commented Dec 9, 2022

In my code it that same :)

Not works button, and alert block is in left, but it's not roblem. This is DJANGO course not JS, in future I correct this in jquery;)

@ankit2404
Copy link
Author

ankit2404 commented Dec 9, 2022 via email

@Kordianz
Copy link

Kordianz commented Dec 9, 2022

Yes, I to love this course. I just starts account part, but in same time, create my first own projekt, little learn, next do myself,

@vklodik
Copy link

vklodik commented Feb 12, 2023

I have fixed the app.js code to bring back the notification block removal functionality:

document.addEventListener('DOMContentLoaded', function () {
  hljs.highlightAll();
});


let alertWrapper = document.querySelector('.alert')
let alertClose = document.querySelector('.alert__close')

if (alertWrapper) {
  alertClose.addEventListener('click', function () {
    document.getElementsByClassName('alert')[0].style.display = 'none'
  })
}

Uncaught ReferenceError: hljs is not defined at HTMLDocument. (app.js:5:3)

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

3 participants