Closed mbrien12 closed 7 years ago
Approach
Update
getJSON
method - but not working as haven't put API key in...Currently using this API https://market.mashape.com/andruxnet/random-famous-quotes but maybe try http://forismatic.com/en/api/ or look for others
This one works http://quotes.stormconsultancy.co.uk/api
Functionally working with API - need to design and get tweet working next
This is useful https://github.com/AungMyoKyaw/rqm/blob/gh-pages/js/index.js
Have spent two hours on Tweet functionality - do far can tweet custom text but not the dynamic content in the quote.
Currently tweeting the title of the page instead 😕
Advice from the forum to try next time:
Looks like you are using the Twitter widget. That makes it a lot more challenging. You'll have to use their API to add the text to the button: https://dev.twitter.com/web/tweet-button/javascript-create It would be much easier to remove the twitter widget code from your project and use a tag. You can style that to look like a twitter button instead.
it depends on the getJSON you might need promises.
2 hours doing CSS - also made responsive (no frameworks)
25 mins trying to fix Twitter - still can't figure out
Review code of working ones e.g. http://codepen.io/mikelduffy/pen/EPdYMp
To allow non HTTPS to work with Thimble try this https://crossorigin.me/ (not initially working but have reached out to him - looks like is down at the mo)
Will fix Twitter another time - moving on for now
Acceptance Criteria
Can use any libraries or APIs