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
CamperBot
@camperbot
:star2: 1570 | @skyc0der |http://www.freecodecamp.com/skyc0der
Gulsvi
@gulsvi
@fdemaa This trick helps me debug those issues - add this to your CSS:
* {
  border: 1px solid black;
}
It will put a border around everything and show you what element is going off the page.
fdemaa
@fdemaa
Ah thats nice
!!
thanks
that * is like a selector for all things ?
Amit Patel
@AmitP88
@SkyC0der yeah, I had a feeling the portfolio images were a bit claustrophobic lol. also, what do you mean by moving the sections over the first header image? I'm not sure if I can do that since the image in the 2nd section is also parallax
@dillorr thanks bro! :D
CamperBot
@camperbot
amitp88 sends brownie points to @dillorr :sparkles: :thumbsup: :sparkles:
:warning: amitp88 already gave dillorr points
Gulsvi
@gulsvi
@AmitP88 Hmmm, I guess yours is similar in that regard. I think she has so much more contrast, it jumped out at me as a little more 'parallaxy' I guess :p
Amit Patel
@AmitP88
@SkyC0der lol she does use a lot of white
@SkyC0der I tried making my site like that once and all that white hurt my eyes haha
Gulsvi
@gulsvi
I think I would go darker for my portfolio for sure :) @AmitP88
This one is fun: http://jakealbaugh.com/
Amit Patel
@AmitP88
@SkyC0der oh that is crazy! damn, I wish I could do that haha. that guy is definitely experienced
Gulsvi
@gulsvi
Yeah, that guy has some talent lol
Amit Patel
@AmitP88
@SkyC0der lol I always have to google what I want to do if I want to incorporate css animations
Gulsvi
@gulsvi
This one is great too: http://getcoleman.com/
Very simple, nice slider, and advertises what he does
Amit Patel
@AmitP88
lmao that's wacky as hell
Josh Beasley
@joshbeasley
I'm having some trouble setting up the navbar for my portfolio page. I want to pull some of the pills to the right but the class isn't working.Any ideas? https://codepen.io/joshbeasley/pen/ybddJV
Adam
@adamakers

quick question on prototypes...
Lets say I have this code:

function Person(saying) {
  this.saying = saying;
  this.tacos = 'taco express';
  this.me = false;
}

Person.prototype.talk = function() {
  console.log('I say: ' + this.saying);
}

console.log(Person.prototype);

it returns the Person function object, but without any of the properties, just the method. Anyone know why?

mboesiger90
@mboesiger90
help I am stuck with the random quote machine. It does not generate a code with this:

$(document).ready(function(){
$.ajax({
type: 'GET',
dataType: 'json',
url: '/wp-json/posts?filter[orderby]=rand&filter[posts_per_page]=1',
success:function(data){
$(".quote").html(data.qouteText + "<br>" + data.qouteAuthor)
}
});
$("#getQoute").on("click", function (){

$.ajax({
type: 'GET',
dataType: 'json',
url: '/wp-json/posts?filter[orderby]=rand&filter[posts_per_page]=1',
success:function(data){
$(".quote").html(data.qouteText + "<br>" + data.qouteAuthor)
}
});
cache: false;
});
});

ZaynMalloc
@ZaynMalloc
@adamakers I think the problem might be that you did not create a new person object.
fdemaa
@fdemaa
using negative margins is not a good solutions right ? xd
ZaynMalloc
@ZaynMalloc

@adamakers function Person(saying) {
this.saying = saying;
this.tacos = 'taco express';
this.me = false;
}

Person.prototype.talk = function() {
console.log('I say: ' + this.saying);
}

var newPerson = new Person('Hello')

console.log(newPerson.talk());

Dillon Orr
@dillorr
What's the best way to add a headshot to my portfolio page? i have an image hosted on google images but none of the links work
I can't get a direct link to the image
had the same issue with imgur
Gulsvi
@gulsvi
@joshbeasley This section of the Bootstrap docs talks about aligning your nav components: https://v4-alpha.getbootstrap.com/components/navs/#horizontal-alignment
Adam
@adamakers
@ZaynMalloc it does similar thing here:
function Person(name, gender) {
  this.name = 5;
  this.gender = 5;
}
Person.prototype.lastname = 'marsh';
Person.prototype.introduce = function() {
  console.log('Hi my name is ' + this.name + ' and I am a ' + this.gender);
}

var stan = new Person('Stanley', 'male');

console.log(Person.prototype);
Gulsvi
@gulsvi
@mboesiger90 Hint - the URL you have should start with https:// your URL is:
'/wp-json/posts?filter[orderby]=rand&filter[posts_per_page]=1'
@dillorr Use a service like https://postimage.org, that's what most people use here without any issues.
Dillon Orr
@dillorr
I'll give it a shot, thanks again @SkyC0der
CamperBot
@camperbot
dillorr sends brownie points to @skyc0der :sparkles: :thumbsup: :sparkles:
:warning: dillorr already gave skyc0der points
fdemaa
@fdemaa
@SkyC0der when i remove the padding from my body,and put it in my div, my image is got cut, and it doesn't matter if put other height to the image, it wont display.
If i use margin-top: with a negative value, is a bad solution ?
mboesiger90
@mboesiger90
ah yes thank you sky but when I changed that it still doesnt work
Gulsvi
@gulsvi
@mboesiger90 What does your URL look like now?
I went with a different API
Gulsvi
@gulsvi
@fdemaa A better solution, in that case, is to move your home section above your navbar, like:
<div id="home"></div>
  <div class="container-fluid  homesection">  
  <nav class="navbar  navbar-inverse navbar-fixed-top custom1">
@mboesiger90 That API is not documented very well - I can give you the exact URL to use if you want, but you may not learn much about reading API documentation. Up to you.
I'd personally take a closer look at the code examples and instructions at the first API you were trying to use: https://quotesondesign.com/api-v4-0/
mboesiger90
@mboesiger90
ok thank you
ZaynMalloc
@ZaynMalloc

@adamakers function Person(name, gender) {
this.name = name;
this.gender = gender;
}
Person.prototype.lastname = 'marsh';
Person.prototype.introduce = function() {
console.log('Hi my name is ' + this.name + ' and I am a ' + this.gender);
}

var stan = new Person('Stanley', 'male');

console.log(stan.introduce());