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
Marat
@Marat89bluolyu
@OrangeKulture i want to get output: 1, then in one sec. 2 ... etc
Jorge
@flawedLogic506
if that is the case, then u wanna do:
let counter = 1;

let timer = setInterval(function(){
  console.log(arr[counter-1]);
  counter++;

if(counter>arr.length){
 clearInterval(timer);
}
},1000)
Toni Shortsleeve
@KoniKodes
@korzo Wow. Thanks for catching that. Still have some work to do..
CamperBot
@camperbot
konikodes sends brownie points to @korzo :sparkles: :thumbsup: :sparkles:
:warning: konikodes already gave korzo points
Jorge
@flawedLogic506
@Marat89bluolyu something along those lines
Toni Shortsleeve
@KoniKodes
@Marat89bluolyu Try setInterval instead
Marat
@Marat89bluolyu
@OrangeKulture thanks, this example will be work in ES5?
CamperBot
@camperbot
marat89bluolyu sends brownie points to @orangekulture :sparkles: :thumbsup: :sparkles:
:cookie: 447 | @orangekulture |http://www.freecodecamp.com/orangekulture
Marat
@Marat89bluolyu
with var?
Jorge
@flawedLogic506
@Marat89bluolyu yeah for sure .. you can use var
i would recommend using let and const tho, makes things a lot smoother, not to mention, scope
Marat
@Marat89bluolyu
@OrangeKulture yeah, ES6 make coding fill better =)
Toni Shortsleeve
@KoniKodes
@OrangeKulture I thought I was "O". It works when I'm "X". But it isn't calling the draw/tie.
Jorge
@flawedLogic506
yeah completely .. specially arrow functions
Toni Shortsleeve
@KoniKodes
I'm still trying to grasp ES6
Jorge
@flawedLogic506
@KoniKodes yeah that's what i meant that it's broken .. im working on the checkScore
Toni Shortsleeve
@KoniKodes
That's where mine is too.
Jorge
@flawedLogic506
yeah i think im gonna handle depending on the number of moves .. if it gets called by computer when it has 3 moves, then do this .. if its called by comp when it has 4 moves, do this .. and so on
Jorge
@flawedLogic506
.
.
sry, updating info
Liam Docherty
@ldocherty1
Hi, does anyone know why my bg-dark within my footer isn't correctly working? It doesn't display. https://jsfiddle.net/91px2chw/
korzo
@korzo
@ldocherty1 It works, but color is #fff
Liam Docherty
@ldocherty1
@korzo I wanted the footer background to be bg-dark which doesn't display?
korzo
@korzo
@ldocherty1 there is no css declaration for bg-dark
Liam Docherty
@ldocherty1
@korzo My bad just realised my mistake
Adinarayana Raghu
@adinarayaanraghu95
Hey.
I am looking for developers to collaborate for a social education project
Jorge
@flawedLogic506
@adinarayaanraghu95 what's it about?
Adam Faraj
@adamfaraj
hello everyone
was hoping someone here can help me
i'm trying to access the text within my <div class="wthr"></div>
rafaelmonroy
@rafaelmonroy

hey everyone, I am having a hard time with ajax, posting on twitter with ajax, can someone lend a hand? here is my code so far.


$(document).ready(function(){

  $("#btn").on("click", function(){
    $("#tweet").delay(1500).fadeIn();
    $.ajax({
      type: "GET",
      url: "https://talaikis.com/api/quotes/random/",
      success: function(quotes){
          $("#quote").html("Author: "+quotes.author+"<br> Quote: "+quotes.quote+"<br>")
      },
      error: function(){
        alert("error loading quotes");
      }
    }) 
  });

  $("#tweet").on("click", function(){
    var tweet = {
      tweetQuote: "test"
    };
    $.ajax({
      type:"POST",
      datatype:"jsonp",
      url: "https://api.twitter.com/1.1/statuses/update.json",
      data: tweet,
      success: function(){
        console.log("tweet sent");
      },
      error: function(){
        alert("error sending tweet");
      }
    })
  });

});

i keet getting my error message when i try to POST my quote

Mercy Manrique
@mers89
I had a question on the Twitch API. should my link to the API url work when the channel is offline? It was working fine on Friday when it was showing it was online I had created a link to https://wind-bow.glitch.me/twitch-api/streams/freecodecamp
iso
@iso1048
@rafaelmonroy dont know about POST but it is easier to use a tweet web intent: https://dev.twitter.com/web/tweet-button/web-intent, https://dev.twitter.com/web/tweet-button. if you do want to use a tweet web intent, those links will be helpful
rafaelmonroy
@rafaelmonroy
@gothamknight thanks!
CamperBot
@camperbot
rafaelmonroy sends brownie points to @gothamknight :sparkles: :thumbsup: :sparkles:
:cookie: 404 | @gothamknight |http://www.freecodecamp.com/gothamknight
Mercy Manrique
@mers89
@gothamknight do you mind helping me on my code. It was the same as Fiday? I dont know why it stopped working
Johnny
@jtan3
@rafaelmonroy sometimes channels will be offline. You can just provide their url when they're offline.
iso
@iso1048
@mers89 when the user is online, you can access the data using https://wind-bow.glitch.me/twitch-api/streams/freecodecamp. when the user is offline, you can make a new ajax call using the channel route https://wind-bow.glitch.me/twitch-api/channels/freecodecamp
Mercy Manrique
@mers89
@gothamknight so when the user is offline there is no access to the data using the same link
Ayush Bahuguna
@relentless-coder
Need some help with css
https://codepen.io/ayushb/pen/EverBx
I am trying to have the tiny dots before the links in the sub menu the way it appears on the main menu item
iso
@iso1048
@mers89 yeah
Jorge
@flawedLogic506
@adamfaraj what seems to be the problem?
Adam Faraj
@adamfaraj
@OrangeKulture i want to change the weather icon based on what the weather is, ie: clear, rain, clouds, etc