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
khorram bin salim khondkar
@khorramk
javscript is easy to read
Kaz Baig
@kbaig
It is at first, it gets better with practice!
Lean Junio
@leanjunio
the jquery documentation is indeed daunting, try the w3schools site
Ken Haduch
@khaduch
@khorramk - https://www.w3schools.com/jquery/default.asp is what I was trying to add to my post - it takes you through things more slowly to start with and gets you up to speed? I don't know if that's what you're looking for...
khorram bin salim khondkar
@khorramk
thanks @leanjunio
CamperBot
@camperbot
khorramk sends brownie points to @leanjunio :sparkles: :thumbsup: :sparkles:
:cookie: 290 | @leanjunio |http://www.freecodecamp.com/leanjunio
Ken Haduch
@khaduch
@MomchilDeus - ah - nice work on the timeline! I haven't seen anyone use that in a tribute project. One thing that I found a bit evasive is the navigation element that you put in there. It wasn't obvious to me that you had other sections there until I accidentally hovered over that button... But that is really a great tribute page - nice setup and responsive behavior is great!
MomchilDeus
@MomchilDeus
@khaduch Thanks! I'll see what I can do about the navigation
CamperBot
@camperbot
momchildeus sends brownie points to @khaduch :sparkles: :thumbsup: :sparkles:
:star2: 3356 | @khaduch |http://www.freecodecamp.com/khaduch
Ken Haduch
@khaduch
@MomchilDeus - - that would be good - just some way to make it more obvious that there was more there? It wasn't obvious to me, but maybe that was just me? Nice work on the page!
MomchilDeus
@MomchilDeus
@khaduch I added "More" and an arrow pointing up below it, hope that's enough!
Ken Haduch
@khaduch
@MomchilDeus - did you post a new link? I reloaded the page and don't see that new addition? I was thinking that maybe the (what seems like more standard) "hamburger" icon would be effective, too? I'd like to see what you added but it doesn't seem to be on the project link that I'm loading?
Michael Cordero
@CyberPutty
@khorramk just woke up I found the jquery stuff a little hard to understand too, especially working on the ajax stuff. I read jon ducket's book javascript and jquery and I still use that for reference when i forget something
quickspeedy
@quickspeedy
Question about the weather project, after reviewing the data from ajax, is dt consider a time? If so, what does it stand for? I am trying to locate the timestamp.
Here is a sample of the data
"{"coord":{"lon":-97.96,"lat":29.57},"weather":[{"id":804,"main":"Clouds","description":"overcast clouds","icon":"https://cdn.glitch.com/6e8889e5-7a72-48f0-a061-863548450de5%2F04d.png?1499366020964"}],"base":"stations","main":{"temp":18.02,"pressure":1021,"humidity":55,"temp_min":17,"temp_max":19},"visibility":16093,"wind":{"speed":10.8,"deg":10,"gust":14.4},"clouds":{"all":90},"dt":1507647780,"sys":{"type":1,"id":2687,"message":0.004,"country":"US","sunrise":1507638653,"sunset":1507680346},"id":4727756,"name":"Seguin","cod":200}"
mstellaluna
@mstellaluna
@quickspeedy dt is epoch time ...
image.png
quickspeedy
@quickspeedy
@mstellaluna thank you! Just what I need to know!
CamperBot
@camperbot
quickspeedy sends brownie points to @mstellaluna :sparkles: :thumbsup: :sparkles:
:cookie: 895 | @mstellaluna |http://www.freecodecamp.com/mstellaluna
quickspeedy
@quickspeedy
What's the common practice for placing onclick event? For example, do you place onclick event in the document.ready function or ...?
or do you place it in the onload function?
J.Chechelski
@SupaSaiyan
It's worth to learn jQuery in 2017 before looking for a first job when somebody know ES5,ES6 and API DOM well?
Trommelochse
@Trommelochse
@SupaSaiyan It can never be bad to know a language, especially one that is as wide-spread as jQuery. Learning the basics doesn't take long if you already have a solid understanding of Javascript and you will - at least in some way - profit from it; be it just increasing the love for modern frameworks ;)
I would not use jQuery for any personal project, but was forced to write some at work recently, since I have limited access to the environment I am working in, and jQuery was the only library available.
So, doing some DOM manipulation with jQuery for a week or two will definitely not hurt.
khorram bin salim khondkar
@khorramk
what is wrong with this function?

```function showUser(xmlhttp){
if(xmlhttp.status === 200){
var json = xmlhttp.responseText;
var user = JSON.parse(json);
for(var key in user){
if(user[key] === 'id'){
$('#profile h2').prepend('<user login>' + ' is GitHub user #' + '<user id>'
);
}

  }

}else{
$('#profile h2').prepend('No such user!')
}

//

}```

J.Chechelski
@SupaSaiyan
@Trommelochse thanks :D I will do that
CamperBot
@camperbot
supasaiyan sends brownie points to @trommelochse :sparkles: :thumbsup: :sparkles:
:cookie: 334 | @trommelochse |http://www.freecodecamp.com/trommelochse
Trommelochse
@Trommelochse
@khorramk you should format your code, it's readable
enclose it in 3 backtips on each side
so
Moisés Man
@moigithub
@khorramk 3 backticks must be on its own line
Trommelochse
@Trommelochse
ohyes, didn't see that he used some
and you should also start with ```js
so your code will be highlighted nicely
khorram bin salim khondkar
@khorramk
function showUser(xmlhttp){
  if(xmlhttp.status === 200){
    var json = xmlhttp.responseText;
    var user = JSON.parse(json);
    for(var key in user){
      if(user[key] === 'id'){
        $('#profile h2').prepend('<user login>' + ' is GitHub user #' + '<user id>'
);
      }

      }
  }else{
      $('#profile h2').prepend('No such user!')
    }

  //


}
Moisés Man
@moigithub
add some console.log to check ur data
also... on ur first prepend...
u can use a single string instead concatenate 3 strings
ie: 'user login is girhub user user id'
UNLESS.... <user login> and <user id > data comes from ur json , then thats should be variables instead
Michael Cordero
@CyberPutty
don't you need to make a new XMLHttpRequest() Object and make your function a child of that.
or a property
khorram bin salim khondkar
@khorramk
yes i already done that @CyberPutty
Michael Cordero
@CyberPutty
@khorramk your missing a semicolon on your second declaration. but other than that i don't really know unless your key that is declared outside your function is not meshing with the id, haven't really used xml for web yet
Kaz Baig
@kbaig
Marc
@MWBauer
Could I get a new set of eyeballs to look at this and tell me why Nav isn't working right?
Michael Cordero
@CyberPutty
@MWBauer use #id selector the navbar has dead links.