@IndiraShrestha I think the question should be "why should it be inside document ready"?
@IndiraShrestha Because it is just a function, it does not get executed unless you call it
suggestions wanted for making my Simon "pretty" before I start coding the logic. I know it doesn't need to be but I can enjoy it more that way. This is the hard part for me so spending time on the front end of the project forces me to learn CSS better. Here is my pen:
@HassanAlgoz It didnt work when i had it inside document ready function
What I want is perfectly concentric circles. I've played with both pixels and percentages and the box model is throwing me off. I want gutters evenly spaced at the edges and the center. So figuring out the exact heigth/width and top / left settings is what's bugging me.
@Swoozeki i think i am having trouble grasping the scope issue
@jdtdesigns I tried exact pixels before but I'm getting so confused ... the radius of the inner circles isn't matching. DO you have a hint for me to help figure it out before I look at your code?
and i used generateRandomQuote function
and i tried to console.log(data); but it's not working
@sorinr Referring to 'this' in the vue instance is basically impossible in a nested function because the instance is unnamed. You need to use a setTimeout and not a debounce or whatever it is you're using. The setTimeout uses a callback which will change the scope of this which will cause it to not work.
Press F12 and check the console for errors
I get this: net::ERR_CONNECTION_REFUSED whenever I make a GET request although when I copy and paste the URL into the browser I actually get the JSON result ok
@jdtdesigns I have imagined it will not work within the vue scope. As I decided to do this project just for fun using vue i'll let it unchanged. Anyaway, I give u a big thank you for your patiance and all support.
sorinr sends brownie points to @jdtdesigns :sparkles: :thumbsup: :sparkles: