Message from @Alfadir
Discord ID: 434467991501930508
its so cute
fucking jquery
it won't detect the god damn arrow keys, if I can't find out how to fix it in 5 more minutes I'm just gonna make A/D my keys
hav u used google
`$(document.body).keypress(function(e) {
console.log("keydown");
if (galleryEnabled) {
if (e.which == 37) { if (imageNumber != 0) { viewImage(imageNumber-1); } }
if (e.which == 39) { if (imageNumber != 12) { viewImage(imageNumber+1); } }
}
});`
It literally detects every single other key
So it's not like the script doesn't work
have you tried another browser
i like firefox for the dev tools
Fucking jQuery
I used the JS only approach by Mozilla
And it works
>using jquery
are you like 60
all the cool kids are using https://vuejs.org/
No but my lecturers or however you call them insist on using at least one script
i wonder if you could do it entirely using css
youd have to be mad
Progressive
oh you canb
im not sure
I already made gallery with pure JS
At this point I'm just trying to shoehorn fucking jQuery somewhere
So I'm trying to make jQuery responsible for keypress stuff
you should install react just to sound cool
I could do it with native JS like everything else
you dont have to do anything with it
But then where else will I put this god awful shit
just include it
add some stupid animation?
button.onclicks?
Yeah but can't I just do that with CSS3
Like what I need right now is 1 jQuery thing
you can]
And 1 CSS3 animation
but you do it with jquery
so you can check that box