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
Jinfang Luo
@jincute
@fortMaximus sure: https://codepen.io/jincute/pen/NdBQXe. Thanks in advance.
CamperBot
@camperbot
jincute sends brownie points to @fortmaximus :sparkles: :thumbsup: :sparkles:
:cookie: 304 | @fortmaximus |http://www.freecodecamp.com/fortmaximus
Chris
@bestintown23
how do stop my background image from zooming in when i go fullscreen?
Ghulam Shabir
@ghulamshabir
@jincute <meta name="viewport" content="width=device-width, initial-scale=1 user-scalable=yes" /> should be in pen settings section Stuff for head
Jinfang Luo
@jincute
@ghulamshabir you mean put this under <head> </head>
Ghulam Shabir
@ghulamshabir
@jincute no just cut and paste it into text-area of Stuff for head section in settings
Jinfang Luo
@jincute
@ghulamshabir Thank, I tried and paste it into the ’Stuff for head', but it doesn’t work.
CamperBot
@camperbot
jincute sends brownie points to @ghulamshabir :sparkles: :thumbsup: :sparkles:
:star2: 1792 | @ghulamshabir |http://www.freecodecamp.com/ghulamshabir
h1tag
@h1tag
@jincute I'm having problems signing in Gitter from mobile, so I can't view you webpage on mobile to check how it looks there :worried:
Gulsvi
@gulsvi
@jincute If you want your page to look better on mobile, you should not push things over by 220px. That's the screen width on some smaller mobile devices. I think my samsung is 320px wide, so your text box would be pushed pretty far over. Use the bootstrap grid system instead - it uses percentages based on screen size (xs, sm, md, etc)
  .text-box{
    font-family: Monospace;
    margin-left:220px;
    margin-right:220px;
    width:60%;
  }
Jinfang Luo
@jincute
@fortMaximus It’s ok.
Ghulam Shabir
@ghulamshabir
@jincute you should use bootstrap grid classes or css media queries to make it responsive
Jinfang Luo
@jincute
@ghulamshabir @SkyCoder01 Ok, let me try. Thanks both.
CamperBot
@camperbot
jincute sends brownie points to @ghulamshabir and @skycoder01 :sparkles: :thumbsup: :sparkles:
:cookie: 153 | @skycoder01 |http://www.freecodecamp.com/skycoder01
:warning: jincute already gave ghulamshabir points
h1tag
@h1tag
@jincute nice design btw :clap:
Tony
@FreakishLancer
I was wondering if you guys could help me figure out why the sound/audiocontext won't work in my Simon Says game. I'm just testing the sound and it doesn't seem to work when I add the webkit prefix for AudioContext(). http://codepen.io/Freaklancer/pen/BpOEvO
h1tag
@h1tag
I didn't reach this project, but the sound is working fine for me @FreakishLancer
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.