Django-2021
Django-2021 copied to clipboard
Showing this error
Uncaught ReferenceError: hljs is not defined at HTMLDocument.
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;)
I know this is a Django course I want you to know and fix it so the person who doesn't know javascript will not face any problems while learning from your course. By the way, your course is awesome it helped a lot Thanks Ankit Mittal
On Fri, 9 Dec 2022 at 20:00, Kordian @.***> wrote:
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;)
— Reply to this email directly, view it on GitHub https://github.com/divanov11/Django-2021/issues/18#issuecomment-1344378003, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQSH5G7QUDGOL7HVUSKJR7LWMM7ABANCNFSM5P5N74FA . You are receiving this because you authored the thread.Message ID: @.***>
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,
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)