Message from @Alfadir

Discord ID: 434467991501930508


2018-04-13 21:27:10 UTC  

its so cute

2018-04-13 21:34:23 UTC  

fucking jquery

2018-04-13 21:34:47 UTC  

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

2018-04-13 21:35:25 UTC  

hav u used google

2018-04-13 21:35:45 UTC  

`$(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); } }
}
});`

2018-04-13 21:36:01 UTC  

It literally detects every single other key

2018-04-13 21:36:07 UTC  

So it's not like the script doesn't work

2018-04-13 21:38:21 UTC  

have you tried another browser

2018-04-13 21:38:39 UTC  

i like firefox for the dev tools

2018-04-13 21:38:52 UTC  

Fucking jQuery

2018-04-13 21:38:59 UTC  

I used the JS only approach by Mozilla

2018-04-13 21:39:00 UTC  

And it works

2018-04-13 21:39:28 UTC  

>using jquery

2018-04-13 21:39:30 UTC  

are you like 60

2018-04-13 21:39:44 UTC  

all the cool kids are using https://vuejs.org/

2018-04-13 21:39:45 UTC  

No but my lecturers or however you call them insist on using at least one script

2018-04-13 21:40:32 UTC  

i wonder if you could do it entirely using css

2018-04-13 21:40:34 UTC  

youd have to be mad

2018-04-13 21:40:39 UTC  

Progressive

2018-04-13 21:40:41 UTC  

Triggered

2018-04-13 21:41:13 UTC  
2018-04-13 21:41:14 UTC  

oh you canb

2018-04-13 21:41:20 UTC  

im not sure

2018-04-13 21:41:58 UTC  

I already made gallery with pure JS

2018-04-13 21:42:06 UTC  

At this point I'm just trying to shoehorn fucking jQuery somewhere

2018-04-13 21:42:13 UTC  

So I'm trying to make jQuery responsible for keypress stuff

2018-04-13 21:42:16 UTC  

you should install react just to sound cool

2018-04-13 21:42:22 UTC  

I could do it with native JS like everything else

2018-04-13 21:42:26 UTC  

you dont have to do anything with it

2018-04-13 21:42:28 UTC  

But then where else will I put this god awful shit

2018-04-13 21:42:30 UTC  

just include it

2018-04-13 21:42:50 UTC  

add some stupid animation?

2018-04-13 21:42:53 UTC  

button.onclicks?

2018-04-13 21:43:33 UTC  

Yeah but can't I just do that with CSS3

2018-04-13 21:43:50 UTC  

Like what I need right now is 1 jQuery thing

2018-04-13 21:43:51 UTC  

you can]

2018-04-13 21:43:52 UTC  

And 1 CSS3 animation

2018-04-13 21:43:55 UTC  

but you do it with jquery

2018-04-13 21:44:00 UTC  

so you can check that box