Django-2021 icon indicating copy to clipboard operation
Django-2021 copied to clipboard

Showing this error

Open ankit2404 opened this issue 2 years ago • 4 comments

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

ankit2404 avatar Mar 04 '22 12:03 ankit2404

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;)

Kordianz avatar Dec 09 '22 14:12 Kordianz

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: @.***>

ankit2404 avatar Dec 09 '22 14:12 ankit2404

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,

Kordianz avatar Dec 09 '22 14:12 Kordianz

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)

vklodik avatar Feb 12 '23 00:02 vklodik