last day (15 days later) » 

14:53
2
Q: HTML / JS Slot Machine Simulator

DatLumberZachThis code is a slot machine simulator that uses elements of both HTML and JavaScript. Please pardon the lack of comments. <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <title>www.loseloselose.com</title> <font color="white">...

why do you reload the page?
It is the only way that I know to refresh the variables for the numbers displayed.
ahms, and what do you want to review? how to do it without refresh?
That would be welcome advice :)
mmmm, can you use jquery? or must it be pure js?
14:53
I haven't leaned any JQ but I would like to start :) Try me :P
hello!
I think is easier this way, XD
agreed :)
Federico, nice to meet you!
Zach :) I am new to CS so my code is lacking
so, you want a slot machine?
hahaha, time cures all!
well
14:54
yes, everything works except I need a better way to reset select variables without refreshing them all
yes, you have to select the dom elements
and then inject the values there
how do I do that?
do you know the document.getElementById function?
well, in jquery is MORE easy!
14:56
I think I used it in this code
let me check
yes
in one part
when clicking reloat
reload
document.getElementById("p2").innerHTML = count
get the DOM element, and then inject the value
let me try
I'll be back in a pair of minutes, ;D
alright, I am in a group chat too so I am entertained :P
hahaha, ok!
15:12
fiuuuu, this is really hard!
I can't do it in JS, sorry
I lack of knowledge
hehe... take your time bud I am in no rush
yeah, but I barely know js, I move more on jQuery
I'll try just for fun in jQuery
and later (maybe tonight or tomorrow) I'll post an answer on it
alright :)
I must leave now, sorry, hope we'll find someone enlightned, XD
hehe, cya :)
15:54
hi again!
at the end I didn't have to move, XD
and I've been playing with it
now works better, but why do you use all the <font> tags?
lemme check
they simply style the text without needing to add a stylesheet
16:18
mmm, yeah, but not so fun
you may add it with css in style
yeah, I might add that after I fix this variable thing
hehe, check for it
I posted as an answer, ;D
hope you like it, my wife is here so, this time I really go, XDDD
see ya!

last day (15 days later) »