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
Jorge
@flawedLogic506
@mers89 u also have to take into account that when u do set it up correctly, the link might take you to the channel within the twitch website, but it wont work .. only way it works is on debug mode
iso
@iso1048
@mers89 I am not sure what is happening there. You could try seeing what happens when you use a user who is online.
@relentless-coder I have only used that endpoint for what the fCC challenge required.
Adam Faraj
@adamfaraj
@OrangeKulture yes, but i hate those pictures. i have new pictures i want to use based on the weather
Jorge
@flawedLogic506
@adamfaraj right, i understand .. yeah i would handle the logic differently, u dont need to create all those dom nodes
u can just create one, and fill it with data depending on the weather
Mercy Manrique
@mers89
@jtan3 @gothamknight @OrangeKulture thanks. Ill try putting a user that is online like gotham said. Thanks for your help. I wasnt sure if I was trying to fix something that wasnt broken
CamperBot
@camperbot
mers89 sends brownie points to @jtan3 and @gothamknight and @orangekulture :sparkles: :thumbsup: :sparkles:
:cookie: 405 | @gothamknight |http://www.freecodecamp.com/gothamknight
:cookie: 448 | @orangekulture |http://www.freecodecamp.com/orangekulture
:cookie: 458 | @jtan3 |http://www.freecodecamp.com/jtan3
iso
@iso1048
@mers89 no problem. good luck!
Jorge
@flawedLogic506
@mers89 your call is actually good .. i just tested, u said you wanted it to be a link tho, right? it doesnt have an anchor tag or an event handler, thats why its not a link atm
Mercy Manrique
@mers89
@OrangeKulture really? yes that is what I was trying to do
Adam Faraj
@adamfaraj
@OrangeKulture right, but i want to fill it based on what the wthr is, and i can't even access what the weather is. haha. Clear, Clouds, etc
Jorge
@flawedLogic506
@mers89 yeah , i mean there is nothing binding to a link .. the Free Code Camp title is an h2 tag ..
u would need to either, create an anchor tag and wrap that h2, like so: <a href="www.fcctwitch.com target="_blank"><h2>FCC</h2></a>
something like that
@adamfaraj yeah the thing with your code is that you are using a promise for the ajax call, i kinda hate promises hahah.. so i dont use em as much .. but what i would do is, find the key value pair that'll give you the weather
iso
@iso1048
@adamfaraj you could check in the json itself for the description of the weather
Jorge
@flawedLogic506
yeah it all depends on the response you are getting ... can u show the json object you get when making a call to that API?
endpoint ^
Adam Faraj
@adamfaraj
iso
@iso1048
@adamfaraj a problem you might have is that you may not know all the possible weather descriptions that could be displayed, so you might have a situation where the description is displayed but it does not have an associated image.
Adam Faraj
@adamfaraj
exactly, i was thinking that earlier
Moustapha
@moustaflo

I am working on the Simon game and I still can't figure out why it starts to ring twice
my link is https://codepen.io/moustaflo/full/ayqYLX/

it could be my variable called len in the if function. That is the only suspicion I have. When I alter it, it definitely sounds different

Jorge
@flawedLogic506
@adamfaraj u can have fallback images, in any case, what is the piece of info you want the icon to be based on? description or main?
iso
@iso1048
@adamfaraj if you really want to do it, you could use the darksky api - they give a list of their 'main' weather descriptions, but then you would probably need to make another ajax call using a different service to get location data...
Colin
@finkbeca
Hey I am trying to create a new element with the value from input does anyone know what might be wrong with my js <body>
<div>
<div>
<ol id = "output"></ol>
</div>
<form>
<input class = 'todolist'>
<button class = "add" onclick = "tDList()"> Add</button>
    </form>
</div>

<script>
    function tDList() {
        var item = document.getElementsByClassName("todolist");
        var itemString = document.createTextNode(item);
        var newItem = document.createElement("li");
        newItem.appendChild(itemString);
        document.getElementById("output").appendChild(newItem);
    }


</script>
</body>
<body>
<div>
<div>
<ol id = "output"></ol>
</div>
<form>
<input class = 'todolist'>
<button class = "add" onclick = "tDList()"> Add</button>
</form>
</div>

<script>
function tDList() {
var item = document.getElementsByClassName("todolist");
var itemString = document.createTextNode(item);
var newItem = document.createElement("li");
newItem.appendChild(itemString);
document.getElementById("output").appendChild(newItem);
}


</script>
</body>
Im sorry I dont know why it is not loading correctly
Jorge
@flawedLogic506
your input needs to have a type
are u working on codepen?
rafaelmonroy
@rafaelmonroy
can anyone tell me why my tweet button tries to tweet out an object? when i console log it, it shows as an empty object :/
https://codepen.io/rafaelmonroy/pen/prKMXZ?editors=1111
Colin
@finkbeca
@OrangeKulture Nope, brackets. I added type = "text" and if is still not working Ill add it to codepen real fast.
korzo
@korzo
@finkbeca Because it submit form and refresh page
You have to add event listener and preventDefault on form submit
Colin
@finkbeca
Could you give an example? @korzo
I don't have much experience working with js
korzo
@korzo
@korzo or add type="button" to your <button>
default type for button is submit
iso
@iso1048
@rafaelmonroy var text = $('#quote-holder').html(); maybe
Colin
@finkbeca
@korzo so now when I load it in codepen it shows [object HTML Collection] but when i try this in a local host nothing happens
rafaelmonroy
@rafaelmonroy
@gothamknight that worked but it brings a long the <br> tags
korzo
@korzo
@finkbeca bacause you append HTML Node, not text
Jorge
@flawedLogic506
yeah i was gonna say that append looks a little bit off ..
why not use jquery?
iso
@iso1048
@rafaelmonroy that is because you have the <br> tag in the html of that div
rafaelmonroy
@rafaelmonroy
@gothamknight is it possible to filter them out?