I got it to open up a new window but not sure about how to get quote to show up...
@krckyboy can you use 'how to' vids...??
Stephen James
@sjames1958gm
@flyfishingbarbara You need to make a "global" that holds the last quote var tweetUrl = ""; In your getJSON callback tweetURL = "https://twitter.com/intent/tweet?text=" + data[0].content + "— " + data[0].title then in your click for tweet window.open(tweetUrl);
@flyfishingbarbara I your quotes have special characters you might need to use encodeURIComponent to encoding encodeURIComponent(data[0].content)
Barbara Pentoney
@flyfishingbarbara
@sjames1958gm I had another classmate use this 'encodeURIcomponent' and I wasn't sure what that was all about....i'll read up on it...
Stephen James
@sjames1958gm
@flyfishingbarbara :+1:
Barbara Pentoney
@flyfishingbarbara
@sjames1958gm go Chelsea!
Stephen James
@sjames1958gm
@flyfishingbarbara :) better result yesterday
Barbara Pentoney
@flyfishingbarbara
I will also read and understand the global variable bit...!! thanks!
...haha...I missed it...I was watching tennis
jmf
@jmfcodes
hi, everyone! I've been working on my local weather app, and I finally have to publicly admit that making things pretty on the front end is not my strong suit. do you have any suggestions or references for some basic tips to making sites pretty? and modern? whenever I work too hard at something, it starts to look like Geocities circa 1995 :)
@moT01 i dont understand how i can make a random fish...
Kaz Baig
@kbaig
It is trying to install them but the errors look something like npm ERR! tar.unpack untar error /tmp/npm-cache/6.12.3/core-js/2.5.3/package.tgz
3:20 PM
Tom
@moT01
@MuhammedKarim all that stuff you're doing... when you find yourself writing the same line of code multiple times you should think about putting it into a reusable function
as for a random fish - you can make one just like you did - instead of putting in x,y values yourself - make x and y random
x = math.random
Tiago Correia
@tiagocorreiaalmeida
@kbaig it seems an issue with the package but never runned into it if you google it what comes up?
Ghost
@ghost~5a4a80acd73408ce4f859755
that doesnt work there for some reason @moT01
Kaz Baig
@kbaig
@tiagocorreiaalmeida since they named the site Glitch, it's not easy to search for issues specific to it lol