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
alpox
@alpox
@Zalmez In the settings -> javascript
You have now bootstrap on the first line
h1tag
@h1tag
@alpox I read that in YDKJS, but I think I need to review it. Thank you
CamperBot
@camperbot
h1tag sends brownie points to @alpox :sparkles: :thumbsup: :sparkles:
:warning: h1tag already gave alpox points
alpox
@alpox
But that won't work. Bootstrap depends on jquery - it cannot work without it. @Zalmez
Therefore, jQuery has to be on the first line and bootstrap on the second (jQuery must be loaded before the boostrap javascript loads)
Radek
@radekjohn
OK, thanks a lot for consultations. see you all later
alpox
@alpox
@radekjohn :wave:
Faisal
@Faisa1khan
@alpox plzzz help why the navbar ain't align properly https://codepen.io/Hackplacea/pen/BZBBxO?editors=1000#0
Cato Myhre
@Zalmez
hmm, is there a way for codepen to set it as a priority? can't see anything in the settings
rfvergeldedios
@rfvergeldedios
@alpox So, 'let' works like a local variable in a function? In my case it attaches to the for-loop?
alpox
@alpox
@Hackplacea You use bootstrap version 3 definitions but included version 4 of bootstrap in your pen.
Your navbar works when you remove the bootstrap css and add this instead:
https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css
Its a link to the css of version 3
@rfvergeldedios let works like a local variable in a block - so it attaches to always one iteration of the for-loop.
It would also be defined only in its own if block if you define it there:
if(true) {
    let foo = "bar";
    console.log(foo);
}
console.log(foo); // ERROR!!!
While:
if(true) {
    var foo = "bar";
    console.log(foo);
}
console.log(foo); // Prints "bar"
Matthias Lang
@MatLang
Hey guys, currently working on the Build a tribute page. (https://codepen.io/ltcMatt/pen/wewvwO) I want to align the two portrait pictures in such a way that the two of them are under each other, and on the right of them the text is displayed. I tried doing that with bootstrap. Can you guys please help me out how to do this? Thanks.
Cato Myhre
@Zalmez
@alpox ty XD mb
CamperBot
@camperbot
:star2: 1121 | @alpox |http://www.freecodecamp.com/alpox
zalmez sends brownie points to @alpox :sparkles: :thumbsup: :sparkles:
alpox
@alpox
@Zalmez No - it just loads the scripts in order in which they are added - first line first, second line second etc.
Cato Myhre
@Zalmez
it works now ^^ I'm just not thinking logically atm. I didn't even add the jquery /facepalm
Faisal
@Faisa1khan
@alpox look now its showing like that , still not align properly https://codepen.io/Hackplacea/pen/BZBBxO?editors=1000#0
alpox
@alpox

@MatLang You almost got it. You forgot to close a div :-)

<img src="http://ecell.in/blog/wp-content/uploads/2016/06/elon-musk.jpg" class="img-fluid img-thumbnail" alt="Musk laughing at a conference">
</div>

:point_up: added the </div>

@Hackplacea You gotta remove the other bootstrap css :D
CamperBot
@camperbot
matlang sends brownie points to @alpox :sparkles: :thumbsup: :sparkles:
Matthias Lang
@MatLang
@alpox Wow thx a lot! Sometimes the answer is so obvious :D
CamperBot
@camperbot
:star2: 1122 | @alpox |http://www.freecodecamp.com/alpox
alpox
@alpox
@MatLang :D can confirm
h1tag
@h1tag
@alpox but I thought the problem with using a for loop with async, is that the for loop won't wait for the result and will finish executing before it gets all the results, for example it will execute the code after the for loop which displays the results on the page without having the full results
Faisal
@Faisa1khan
@alpox man! finally i got it thanks alot smile:
CamperBot
@camperbot
hackplacea sends brownie points to @alpox :sparkles: :thumbsup: :sparkles:
:star2: 1123 | @alpox |http://www.freecodecamp.com/alpox
alpox
@alpox
@h1tag Why shouldn't it have the full results? You add the contents to the page inside of the callback - when you know that you have the data.
@h1tag The usual problem with it is just that inside of the callback, if you try to access variables you defined inside of the for loop but outside of the callback, these variables will have the state of the last iteration of the for loop instead of the value they had when the callback was called.
And this issue you can circumvent with using let
h1tag
@h1tag
@alpox Got it ;)
Jonathan Cunanan
@jcunanan05
how do you make dashboard pages? is it full of ajax requests? or is it just static and you have templates like the fixed navbar or side bar
rfvergeldedios
@rfvergeldedios
@alpox Same here. Thank You.
CamperBot
@camperbot
rfvergeldedios sends brownie points to @alpox :sparkles: :thumbsup: :sparkles:
:star2: 1124 | @alpox |http://www.freecodecamp.com/alpox
h1tag
@h1tag
@alpox Thank you :)
CamperBot
@camperbot
h1tag sends brownie points to @alpox :sparkles: :thumbsup: :sparkles:
:warning: h1tag already gave alpox points
alpox
@alpox
@jcunanan05 Thats totally individual. Its done in all the possible ways :D
h1tag
@h1tag
Sometimes it works and send more than one brownie, but not this time :/
alpox
@alpox
@h1tag Don't worry, i don't need them :D
h1tag
@h1tag
:+1:
But it's a nice way to show appreciation
alpox
@alpox
@h1tag :D yea a fun way too
Jonathan Cunanan
@jcunanan05
thanks @alpox well do you do both? uhmm when do you decide to do one or the other ? :)
CamperBot
@camperbot
jcunanan05 sends brownie points to @alpox :sparkles: :thumbsup: :sparkles: