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
max77p
@max77p
i get the online status names to output, but not sure how to work the if statement so that the word "offline" is output below the two for the other ones
Edmund To
@edmundtfy
@GregatGit the entire thing being pushed to the HTML is wrong, you can't see it in your computer?
@GregatGit everything overlap on the same row, and everything being pushed is the same...
Greg Duncan
@GregatGit
@edmundtfy I think you have made your pushHtml function to complicated
it should be simple
instead of using lots of jQuery to add classes and attribute - build a block of html like a string - then add (append) the block -
Greg Duncan
@GregatGit
@edmundtfy a basic example
function buildHtml(img, class, address){
   var myHtml = '<div class="' + class + '">';
   myHtml += <a href="' + address // and keep building it

$("#channels").append(myHtml);
}
Greg Duncan
@GregatGit
@max77p if (json.hasOwnProperty('error') check for errors (do nothing but console it if its there are there 'else if' check if(json.data === null) - now you know its offline - 'else' - its online
Edmund To
@edmundtfy
@GregatGit you are right I got it to go into the right format, but still, duplicating the same result...
Edmund To
@edmundtfy
@GregatGit seems like the variables aren't resetting: after I declare a certain value to a variable, it sticks for the first loop and doesn't change after the first loop...
Ben Elliot
@SuperNerd1
How do I create a set of radio buttons? So far i have:
Greg Duncan
@GregatGit
make your function take in parameters @edmundtfy
Ben Elliot
@SuperNerd1
<radio><input type="radio"name="indoor"> indoor</radio>
<radio><input type="radio"name="outdoor"> outdoor</radio>
Greg Duncan
@GregatGit
Ben Elliot
@SuperNerd1
@GregatGit Thanks!
CamperBot
@camperbot
supernerd1 sends brownie points to @gregatgit :sparkles: :thumbsup: :sparkles:
:cookie: 696 | @gregatgit |http://www.freecodecamp.com/gregatgit
Edmund To
@edmundtfy
@GregatGit what do you mean let the function take in parameters? I declared global variables, change the value in the functions, and push to the HTML, and the second loop I also set a new value to the variables, but seems like not working
Greg Duncan
@GregatGit
@edmundtfy
myFunction(str){
  var greeting = "Hi " + str + "!";
  return greeting;
}
@edmundtfy also declare variable where you need them - not globally
Nupur Gorian
@NupurGorian
what is unexpected token indent in html
????????????
hi @edmundtfy
john94
@lpy1994
hello
Screen Shot 2016-07-18 at 10.37.57 PM.png
how can I put them in line??
Edmund To
@edmundtfy
@GregatGit sorry, but why can't I declare it globally? If I declare it non-globally, then the other function would not be able to grab those variables right? I have 3 functions, so I decided to declare them globally. Not a good practice?
@NupurGorian hello there~
Nupur Gorian
@NupurGorian
hello
pooranp
@pooranp

How can I add links to my portfolio? I tried going back in the previous lessons but couldn't find an answer

'User Story: I can click different buttons that will take me to the portfolio creator's different social media pages.'

Nupur Gorian
@NupurGorian
I want to know about unexpected token in html.It is an error showing in my tribute page
@edmundtfy
原田 美幸
@mykhrd
@lpy1994 set width or set its display to block with margin and such
Nupur Gorian
@NupurGorian
hi anyone there to help
I want to know about unexpected token in html.It is an error showing in my tribute page
hi @pooranp
did you completed the tribute page
john94
@lpy1994
@mykhrd I tried. something wrong with my code, i think I have to rewrite it
Nupur Gorian
@NupurGorian
@lpy1994 hi
blackhat144
@blackhat144
Sorry for copy-pasting this but no one would help me in the CPP chatroom: Can someone a) review my tribute page and b) help me with these three bugs? first, there's a little white edge to the rounded green border I'm using for the first quote. Second, I can't get the margins to work on the second quote, and third, there's a vertical white line running down to the left of the biography and above the graph. Thanks!
原田 美幸
@mykhrd
@blackhat144 your blockquote style has border-left: 5px #ee on it. your using bootstrap so just overwrite it
Nupur Gorian
@NupurGorian
@mykhrd helo
原田 美幸
@mykhrd
and dont forget to use inspect tools through the browser to check your code
@NupurGorian hi
Nupur Gorian
@NupurGorian
i have a problem in my tribute page
原田 美幸
@mykhrd
@NupurGorian i haven’t finished mine yet but if you have a link i could check it tho.
Nupur Gorian
@NupurGorian
error showing is unexpected token indent
原田 美幸
@mykhrd
@NupurGorian why is html in jade? i believe your writing in plain html. but the file is set to jade