I would say to set up a media query that detects the small screen size, and define a CSS class that sets the image to display:none;for that case, it would override the behavior for a wider screen.
Shubham Sharma
@shubham1604
Ok
David Belmares
@DavidBelmares
@khaduch The quote is working but to complete the FCC project I must have a working button that opens up a new window, which will open up the Twitter compose tweet window, with the current quote already filled in
Shubham Sharma
@shubham1604
And I need to give each video a play button. But on clicking the button I want the user to create an account,and after he has created an account he can play the video. Any idea ?
Ken Haduch
@khaduch
@DavidBelmares - I guess I didn't understand your question... I see that you have some twitter code in there, I'll have to dig in a little further.
David Belmares
@DavidBelmares
Alright, thanks
Shubham Sharma
@shubham1604
@khaduch
Ken Haduch
@khaduch
@DavidBelmares - it looks like you have at least one error on line 25 - you are using randomQuote for the array name, but it's randomQuotes.
David Belmares
@DavidBelmares
Aha, thanks for that @khaduch
CamperBot
@camperbot
davidbelmares sends brownie points to @khaduch :sparkles: :thumbsup: :sparkles:
@DavidBelmares - and you probably want to add target="_blank" to your href for your twitter link.
David Belmares
@DavidBelmares
What does that do
Shubham Sharma
@shubham1604
@khaduch you have any idea ?
Ken Haduch
@khaduch
@shubham1604 - I don't really know what you are trying to do there. I guess you would have to have some kind of javascript function that checked for the authorization of a user when they clicked the button and if they were not authorized (not logged in or no account) then you would direct them to do that. I don't really know how to do that, though, I haven't done anything like that.
David Belmares
@DavidBelmares
well that solved it for me, thanks very much @khaduch
Shubham Sharma
@shubham1604
Okay
Ken Haduch
@khaduch
@DavidBelmares - target="_blank" will open the twitter quote in a new window. It's necessary because on CodePen you cannot open a new page within the same window, because of the way the properties of the frame are set up (or something along those lines.)
David Belmares
@DavidBelmares
alright
Adam Ayd
@adamayd
Hey everyone, I’m looking for some help with the Twitch TV API.
Ken Haduch
@khaduch
@adamayd - please post your question and we'll try to help
Adam Ayd
@adamayd
I made a function that successfully makes the xhr and returns JSON, but how do I do it for a list of users that doesn’t “overload” the API? Do I just map through the array of users calling the API in each iteration?
Ken Haduch
@khaduch
@adamayd - I think that that is what you have to do, unless they provide a method in the API for requesting multiple user's data in one shot? But most of the projects that I've looked at have used a for loop or forEach method and made a series of calls, one per user.
Aditya
@ezioda004
^ You have to iterate through the array and call the API
_
Adam Ayd
@adamayd
That sucks, I was hoping for the ability to call multiple users at once. The actual TwitchTV API allows it, but the glitch.me Twitch TV doesn’t or at least doesn’t follow the format of the Twitch API
Thanks @khaduch and Thanks @ezioda004
CamperBot
@camperbot
adamayd sends brownie points to @khaduch and @ezioda004 :sparkles: :thumbsup: :sparkles: