Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Aug 17 09:32
    User @bjorno43 unbanned @linkin-park
  • Jun 20 21:19
    @bjorno43 banned @shenerd140
  • Apr 25 17:13
    @mstellaluna banned @cmal
  • Jan 08 22:05
    @mstellaluna banned @dertiuss323
  • Nov 07 2018 04:42
    User @texas2010 unbanned @ows-ali
  • Nov 02 2018 16:25
    @texas2010 banned @ows-ali
  • Oct 12 2018 05:50
    @bjorno43 banned @NACH74
  • Oct 05 2018 23:02
    @mstellaluna banned @JomoPipi
  • Sep 16 2018 12:21
    @bjorno43 banned @yash-kedia
  • Sep 16 2018 12:16
    @bjorno43 banned @vnikifirov
  • Sep 05 2018 08:12
    User @bjorno43 unbanned @androuino
  • Sep 05 2018 07:38
    @bjorno43 banned @androuino
  • Aug 23 2018 16:57
    User @bjorno43 unbanned @rahuldkjain
  • Aug 23 2018 16:23
    @bjorno43 banned @rahuldkjain
  • Jul 29 2018 14:13
    User @bjorno43 unbanned @jkyereh
  • Jul 29 2018 01:00
    @bjorno43 banned @jkyereh
  • Jul 10 2018 22:09
    @bjorno43 banned @manafn
  • Jul 06 2018 15:20
    @texas2010 banned @imlegend19
  • Jul 03 2018 12:28
    @bjorno43 banned @vbvmatta
  • Jun 29 2018 13:54
    @bjorno43 banned @OGTechnoBoy
Tony
@FreakishLancer
@fortMaximus Hmm, that's interesting. I hear no sound on my end.
Which browser are you using?
h1tag
@h1tag
Chrome
Tyler Moeller
@TylerMoeller
@FreakishLancer It works for me too. I did an audiocontext project a while back - does this one work for you? http://s.codepen.io/TylerMoeller/pen/yVzJXy
Tony
@FreakishLancer
Wow, it works perfectly in Chrome. It even connects the sounds. But it doesn't work at all on Firefox or Safari.
@TylerMoeller I don't hear any sound in your pen on Firefox.
h1tag
@h1tag
@TylerMoeller Wow! Nice! :clap:
Tony
@FreakishLancer
@TylerMoeller I hear it on Chrome and Opera though. Also, it doesn't load at all in Edge.
Tyler Moeller
@TylerMoeller
odd... it works on my firefox and chrome
It was a really fun project @fortMaximus - been meaning to replace those .mp3 files in my simon project and this was to help practice :)
ermarie
@ermarie
I've got the random quote machine all but done, except that I can't figure out how to get the twitter button to dynamically change with each quote. Most of the examples I've seen are using pre-selected quotes in an array rather than an API to get the quotes, but I used an API and I'm not sure how to apply the content of the quote called each time to the tweet.
Tyler Moeller
@TylerMoeller
Will see if I can figure out why it wouldn't work in firefox
h1tag
@h1tag
@TylerMoeller it's fun! I could play on it all day. LOL
Tony
@FreakishLancer
@TylerMoeller I didn't know there was oscillator type of triangle btw. Sounds much better than square.
sennator
@sennator2
http://codepen.io/sennator/pen/egEeLP?editors=0110
why is that when i get undefined for one of my variables non of others gets displayed in my articles window?
h1tag
@h1tag
it would be nice if you add more songs too @TylerMoeller
Tyler Moeller
@TylerMoeller
@FreakishLancer Yeah, sine, sawtooth, square, and triangle. Volume can change between browsers a whole bunch, something to be careful about. Maybe just my inexperience with the API though
@fortMaximus I'll work on that some rainy day over the weekend lol :)
@FreakishLancer Does this one work for you? http://s.codepen.io/TylerMoeller/pen/ObdQGR
A basic version that uses an audiocontext normalization library: https://github.com/cwilso/AudioContext-MonkeyPatch/
I'm curious now why it won't work in some browsers...(not to hijack your question, btw :))
Tony
@FreakishLancer
@TylerMoeller Doesn't work for me on Firefox. Actually, I found that if you prefix your AudioContext creation, then it will work on Chrom but not on Firefox.
So I need to find a way to make alternate audiocontext creations depending on the browser.
Tyler Moeller
@TylerMoeller
Weird, just tested again. It works for me on Firefox and Chrome, windows 7. Chrome/Edge Windows 10. Chrome/Safari Mac OS Sierra.
sennator
@sennator2
http://codepen.io/sennator/pen/egEeLP?editors=0110
why is that when i get undefined for one of my variables non of others gets displayed in my articles window?
h1tag
@h1tag
@sennator2 it's working fine for me
Tony
@FreakishLancer
Ugh...now I can get mine to work on every browser, even Firefox Developer Edition, EXCEPT vanilla Firefox.
This is annoying.
Willina Clark
@lclc68lclc

I'm attempting to make the tweet part of my random quote machine work and every time I enter the below code, the CORS error comes back on codepen:

var urlApi = "https://quotesondesign.com/wp-json/posts?filter[orderby]=rand&filter[posts_per_page]=1";
  $.getJSON(urlApi, function(a) {
  $("#message").append(a[0].content + "<p>— " + a[0].title + "</p>");
  $("#tweet_btn").on("click", function(e){
    var tweet = $("#message").text;
    $("#tweet_btn").attr('href', 'https://www.twitter.com/intent/tweet?text=' + message);
    });
  });

If I remove the tweet button, everything works fine.

Meli94
@meli94
take off the button from the getJSON request
Tyler Moeller
@TylerMoeller
@sennator2 Looking at this more closely, you are testing to see if some of the properties don't exist, but when you use return in a for loop, it stops the for loop and exits. So, you're exiting the for loop as soon as you get a result without a thumbnail or a description. Instead, add a placeholder thumbnail or placeholder text and keep the for loop going.
Roberto Di Lillo
@koop4
hi all
Willina Clark
@lclc68lclc
@meli94 that worked for one problem. Thank you
CamperBot
@camperbot
lclc68lclc sends brownie points to @meli94 :sparkles: :thumbsup: :sparkles:
:cookie: 289 | @meli94 |http://www.freecodecamp.com/meli94
Roberto Di Lillo
@koop4
I was cheching this challange and it seems to me that 7th test is wrong.
It should return a change, but it requires to return the string "insufficient Funds"
can anyoneelse confirm the bug?
sennator
@sennator2
@TylerMoeller thanks for your help
CamperBot
@camperbot
sennator2 sends brownie points to @tylermoeller :sparkles: :thumbsup: :sparkles:
:star2: 1476 | @tylermoeller |http://www.freecodecamp.com/tylermoeller
Meli94
@meli94
@lclc68lclc make a function tweet similar to this : function tweet() {
window.open("https://twitter.com/intent/tweet?text=" + encodeURIComponent($('#quote').text()) + '%0a' + $('#author').text());
}
and then call it on click
Srđan Međo
@PerpetualWar
guys, I use jquery's hide() and show() to disable and enable visible properties on screen. But the problem is placeholders stay, so for example if I hide all between 1st and 10th object, in between is empty space which looks not so good
how to go around that problem ?
Meli94
@meli94
addClass()
or .empty() to take off the placeholder
@PerpetualWar
Srđan Međo
@PerpetualWar
ok let me try
Tyler Moeller
@TylerMoeller
@PerpetualWar You probably aren't hiding the entire element or you have height and width as attributes to the element. .hide() is the same as display: none which will completely hide it. If you have a codepen, it would help debug
click on online and offline
you will see uneven distance between boxes
Tyler Moeller
@TylerMoeller
@PerpetualWar You aren't hiding the <a> tags, just the content between them