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
NixonRichard
@NixonRichard
my wiki viewer s search engine display result as json objects
any one know how to make it done ?
kennyq94
@kennyq94
@qualitymanifest I SEEEE thank you soooo much
CamperBot
@camperbot
kennyq94 sends brownie points to @qualitymanifest :sparkles: :thumbsup: :sparkles:
:star2: 1368 | @qualitymanifest |http://www.freecodecamp.com/qualitymanifest
DJ
@qualitymanifest
@NixonRichard that's because $("#results").html( JSON.stringify(json)); is working and then you get an error because you're trying to run a foreach on an object
you know where the data you want is. json.query.search. just run a foreach on that and ditch whatever you're trying to do with the keys foreach
kennyq94
@kennyq94
I just want to take a moment to say I love everyone in this gitter community you guys are basically my peer programmers, I feel no pressure to know everything when I am working with this community, you guys are the best. !!!
DJ
@qualitymanifest
@SusanGrattan there isn't. i think the key for appending the data is, inside your json calls (which are inside your loop), build up everything you want for each user, and then append that at the end of each json call
@kennyq94 :+1:
NixonRichard
@NixonRichard
Object.keys.forEach(json.query.search[0].snippet);
@qualitymanifest is this right ?
DJ
@qualitymanifest
no
json.query.search.forEach(function etc... that's where the data you want is
before you start trying to display things just try console.logging so you can see what is where
Harry Adel
@harryadel
Why is everything out of place when I resize the window?
http://codepen.io/Hadouken/pen/YWbPVY?editors=1100
DJ
@qualitymanifest
gotta get back to work on my own stuff, hopefully someone else will pipe up on these
Sorin Ruse
@sorinr
@NixonRichard here is an idea: wiki how can be done. ofc you should manage the titles
NixonRichard
@NixonRichard
How to manage the titles ?
im not sure what u guyz mean
the api s very new to me
Sorin Ruse
@sorinr
@NixonRichard just reload my pen above and take a look
NixonRichard
@NixonRichard
wow diddnt notice that s ur pen s link
lol
Sorin Ruse
@sorinr
@NixonRichard actually its ur pen i have modified
NixonRichard
@NixonRichard
oh
right
why do u have to use <strong> ?
is it mean anything special ?
ah that s mine
nevermind
lol
Pranay Kumar
@pranaykumar389
Hi Everybody!
I'm Pranay Kumar. I done with My 2nd Project build a personal portfolio please have a look over here https://rudrapranaykumar.github.io/MyPortfolio/
Please comment good and bad and mostly suggest me for more improvement.
Thank you
Harry Adel
@harryadel
@rudrapranaykumar lol why don't you just show us your codepen directly?
Chris Cullen
@123xylem
http://codepen.io/123xylem/pen/JKqYZY?editors=1010
Hi could you help with my .click function.. WHy its not showing text in the div on click?
Harry Adel
@harryadel
@123xylem aren't u mssing a "}" ?
you didn't end your if statement, I suppose
there's only one "}", and it belongs to the click function
Chris Cullen
@123xylem
Sorry its also I was using a different selector to outputter

@Harry97

var userX=1;
$("#box").click(function ()
               {
  if (userX>0){
    $("#box")..THIS BOX.text("X");????????????????????????????

  }
});

Is ther a way of me saying the above with box to apply to all boxes?

Harry Adel
@harryadel
Well, I've not taken a deep look at your code, but if you want to apply something to couple of elements; why don't you assign a class to them and then call it?
so instead of "#box" maybe ".box"?
Sorin Ruse
@sorinr
@Harry97 try: $(".box").on('click', function () {here your logic});
Harry Adel
@harryadel
@sorinr @123xylem
Chris Cullen
@123xylem
@Harry97 @sorinr nice one
NixonRichard
@NixonRichard
@sorinr
why did u comment
// keys.forEach(function(key) {
// html += "<strong>" + key + "</strong>: " + val[key] + "<br>";
// });
these ?
Chris Cullen
@123xylem
@sorinr When I click them my X moves the box and I dont know how to style the X