@ElvisTheStriker have you tried using JQuery? it makes these things so much easier
@ElvisTheStriker anyway, your issue is that you declare the variable right on document ready, so no matter what you type the variable will always be empty
I might be wrong but I think you need to tie getting the string to the event. Right now it will look for the string when the document loads, but it will always be empty. I'd say add a button and use a "click" event. Also, it's way easier to do this with jQuery.
@ElvisTheStriker what you need to do is make a keydown function that tests if the keyCode is 13. if it is 13, then make inputTxt equal to your input field
Was wondering if someone could help me with my Twitch app... right now it doesn't always load all the channels off the API, mainly because it has to get a lot of information and it's too slow. The html gets all the information but I can only get it to show on the page if I do a search. What's the best way way to improve it? http://codepen.io/galliani/pen/PNBBjV
a bit stuck on making thumbnails for portfiolo website
thanks @karpimpski .I'll check out your suggestions
elvisthestriker sends brownie points to @karpimpski :sparkles: :thumbsup: :sparkles: