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
Sara Soliman
@solimansara
@walidashri I found this code at w3schools.com for bootstrap...i didnt learn jquery yet so i dont want to use it...is the code i have in jquery?
Kaz Baig
@kbaig
Hey guys, I'm working on the twitch app. Can't seem to figure out why my stream names aren't becoming links to their channels. Help would be appreciated. https://codepen.io/kbaig/pen/vgGXyX?editors=0010
Tom
@moT01
@solimansara no, jquery is a javascript library, it would go in the js tab on the far right
uriznik
@uriznik
@kbaig I think the logic to match up the channel may be at fault
Tony Miri
@TonyMiri
@kbaig It looks like your channelObj variable is defined inside that for loop
Also, it looks like that for loop would finish and then you push channlObj to channels
So you'd be pushing the entire array of names
Sara Soliman
@solimansara
So how can i create a bootstrap navigation bar that collapse without using javascript?
Kaz Baig
@kbaig
@FatTone225 the object 'channels' looks fine if you log it at the very bottom though
6thSen
@6thSen
hey guys need some help with my code. I'm working on the random quote generator, and I'm able to generate a random quote when my page first loads up, but when I try to generate a new one by clicking on the button, it doesn't work. Not sure what's wrong. I would really appreciate the help.
$(document).ready(function () {

    // on page load works okay
    $.getJSON("http://quotesondesign.com/wp-json/posts?filter[orderby]=rand&filter[posts_per_page]=1", function (json) {
        $("#quote-content").html(json[0].content);
        $("#quote-title").html(json[0].title);
    });

    // button click action
    $("#get-quote-btn").on("click", function () {
        $.getJSON("http://quotesondesign.com/wp-json/posts?filter[orderby]=rand&filter[posts_per_page]=1", function (json) {
            $("#quote-content").html(json[0].content);
            $("#quote-title").html(json[0].title);
        });
    });
});
uriznik
@uriznik
@kbaig it might be the you do the second getJSON to get the URL and then use the URL before the callback has actually happened
Tony Miri
@TonyMiri
@kbaig Yep I was looking at it wrong
uriznik
@uriznik
@kbaig so you could move any code that relies on the channel(i) call to be put inside the channel() function getJSON callback
Walid Ashri
@walidashri
@solimansara you'll not use it but the libraries must be in ur project check the w3school examples the files are loaded only
@solimansara the bootstrap dropdown needs bootstrap.js to work and bootstrap.js needs Jquery :)
Tom
@moT01
@6thSen i think i had that problem, and i think i fixed it by doing a .ajax instead of .getjson and used a cache:false setting, might be able to set that in the .getjson as well, ...not sure
6thSen
@6thSen
@moT01 aah, let me rework with $.ajax. thanks!
CamperBot
@camperbot
6thsen sends brownie points to @mot01 :sparkles: :thumbsup: :sparkles:
:cookie: 454 | @mot01 |http://www.freecodecamp.com/mot01
Sara Soliman
@solimansara
@walidashri I am confused lol....but do i need to include this is the settings page? src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"
*in
Walid Ashri
@walidashri
@solimansara yes and also the bootstrap.js
Sara Soliman
@solimansara
@walidashri ok...i will try it
Kaz Baig
@kbaig
@uriznik not sure if that's it. I say that because if you log an object at the end, you see the url. If you try to just log the url, you get nothing
Sara Soliman
@solimansara
Thank you @walidashri
CamperBot
@camperbot
solimansara sends brownie points to @walidashri :sparkles: :thumbsup: :sparkles:
:cookie: 842 | @walidashri |http://www.freecodecamp.com/walidashri
uriznik
@uriznik
@kbaig where are you logging from? I have the links working by moving things inside the second callback
Sara Soliman
@solimansara
@walidashri The menu is now working however it doesn't link to the pages...What is missing? http://codepen.io/Solimansara/pen/YNzXJp?editors=1000
Tom
@moT01
@solimansara i think they are working, all your pages are just condensed at the top
Sara Soliman
@solimansara
@moT01 I used to be able to see all the pages....how can i stretch them again?
uriznik
@uriznik
@kbaig do you know that getJSON() doesn't wait till the request has been made and the callback run?
Tom
@moT01
im not sure, what did you change since then, ...one of those bootstrap classes im guessing
Sara Soliman
@solimansara
@moT01 Can you please review, i am not sure what is wrong that it is not displaying all the page! <!-- home page -->
<div id="home">
<h1> Sara Soliman</h1>
<p> Work Smarter... Not Harder</p>
</div>
sorry this what i wanted to paste: http://codepen.io/Solimansara/pen/YNzXJp?editors=1100
uriznik
@uriznik
@solimansara you're not closing the <nav> tag
Sara Soliman
@solimansara
Thank you very much @uriznik that worked !!!
CamperBot
@camperbot
:cookie: 483 | @uriznik |http://www.freecodecamp.com/uriznik
solimansara sends brownie points to @uriznik :sparkles: :thumbsup: :sparkles:
Walid Ashri
@walidashri
@solimansara sorry was not here . and u have typo here <div id= "portfolio"> extra # before id
Sara Soliman
@solimansara
@walidashri No problem, thank you for your help anyways and i did fix the typo!!
CamperBot
@camperbot
solimansara sends brownie points to @walidashri :sparkles: :thumbsup: :sparkles:
:warning: solimansara already gave walidashri points
Walid Ashri
@walidashri
@solimansara :+1:
Sara Soliman
@solimansara
I am sorry, one more question, how is it possible that my portfolio page directed to the contact page??? http://codepen.io/Solimansara/pen/YNzXJp?editors=1100
uriznik
@uriznik
@solimansara it's moving to portfolio but that section isn't very tall so you can't see it and the navbar is sitting above it
Sara Soliman
@solimansara
@uriznik got it!
Adam Morris
@Adam-Morris
Any comments or suggestions? http://codepen.io/Amorris/pen/ygYRWo
Gururaj Birajdar
@grajsb
Hello
i have a problem with my quote machine