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
Ankit Panwar
@coderNoob
Help with the reset button anyone?
http://codepen.io/coderNoob/pen/vLmyWN?editors=1010
CamperBot
@camperbot
no wiki entry for: with the reset button anyone httpcodepeniocodernoobpenvlmywneditors1010
adhok
@adhok
Hi, I had a doubt regarding centering of the buttons for my front end project(Portfolio Page). I have used the container class made available by bootstrap css. Yet the buttons appear to be left-aligned. Here is the code.http://codepen.io/adhok/pen/PZVVPJ
Jovvi Johnson
@jovjohnson
@HMAN1911 thanks for the link
CamperBot
@camperbot
jovjohnson sends brownie points to @hman1911 :sparkles: :thumbsup: :sparkles:
:warning: jovjohnson already gave hman1911 points
Jovvi Johnson
@jovjohnson
@h4r1m4u works like a gem. would you mind briefly explaining my error?
h4r1m4u
@h4r1m4u
@adhok add text-center class on the row div that holds the buttons
    <div class="row text-center">
      <a href="www.twitter.com" target="_blank" class="btn btn-default btn-lg "><i class="fa fa-twitter fa-fw"></i>Twitter</a>
      <a href="www.twitter.com" target="_blank" class="btn btn-default btn-lg "><i class="fa fa-linkedin fa-fw"></i>LinkedIn</a>
      <a href="www.twitter.com" target="_blank" class="btn btn-default btn-lg"><i class="fa fa-github fa-fw"></i>GitHub</a>
      <a href="www.freecodecamp.com" target="_blank" class="btn btn-default btn-lg"><i class="fa fa-fire fa-fw"></i>FreeCodeCamp</a>      
    </div>
@jovjohnson i don't have your original code anymore :D do you still have it somewhere?
adhok
@adhok
@h4r1m4u Thank You!
CamperBot
@camperbot
adhok sends brownie points to @h4r1m4u :sparkles: :thumbsup: :sparkles:
:star: 1421 | @h4r1m4u | http://www.freecodecamp.com/h4r1m4u
Casey Heath
@ExhibitArts
This message was deleted
Jovvi Johnson
@jovjohnson
$(document).ready(function() {

           $('input[name^=quantity]').on("click",function() {
               var button = $(this).closest(".quant");
               var price = button.data("price");
               price = parseFloat(price);
               var num = $("input[type=number]").val();
            var total = (num * price).toFixed(2);
            var totalPrint = $('<p id="total">($' + total + ' TOTAL)</p>');
                if(num >= 2){

                $('.price').find('.total').html(totalPrint);

                }

        });
something like that anyway @h4r1m4u
haha
h4r1m4u
@h4r1m4u
$(document).ready(function() {

           $('input[name^=quantity]').on("click",function() {
               var button = $(this).closest(".quant"); //  not needed; you're already clicking on the input which contains the price in the data-price attribute, hence you can simply use "this"
               var price = button.data("price");
               price = parseFloat(price);
               var num = $("input[type=number]").val(); // similar to the above. it's the same input element, "this" suffices
            var total = (num * price).toFixed(2);
           // here you're using the jQuery selector $(), but the selector doesn't make much sense. selector should generally be a the element, class, id or combination of thereof
          // i'm assuming that what you meant to do here is to construct the string for the total price. if that's the case, you'd do it without the $() selector
            var totalPrint = $('<p id="total">($' + total + ' TOTAL)</p>'); 
                if(num >= 2){

                // the problem with the $('.price') selector is that it's the same in all the 3 boxes (each box has a .price paragraph). so even if you're changing
              // the qty in the 3rd box, it'll rewrite the total price in the first box. we need to somehow tie it to changing the price only in the box where we're
             // changing the qty - which is where "this" comes into play again
                $('.price').find('.total').html(totalPrint);

                }

        });
kaizen711
@kaizen711
Hey Guys, Does anybody know why the drop down in my navbar using bootstrap isn't working? Any help is appreciated.
http://codepen.io/kaizen7/pen/WrWGgp
h4r1m4u
@h4r1m4u
@kaizen711 you forgot to import the bootstrap.js file
add this in the JS resources of the codepen: https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js
@jovjohnson sorry, forgot to tag you. my comments as to why your code was not working are 3 messages above
kaizen711
@kaizen711
@h4r1m4u wow I didn't even know that existed, thank you very much, I'd been trying to see what was wrong for a while
CamperBot
@camperbot
kaizen711 sends brownie points to @h4r1m4u :sparkles: :thumbsup: :sparkles:
:star: 1422 | @h4r1m4u | http://www.freecodecamp.com/h4r1m4u
h4r1m4u
@h4r1m4u
@kaizen711 np. yeah, basically all the functionality that's described on this page: http://getbootstrap.com/javascript/ requires the bootstrap.js library imported
kaizen711
@kaizen711
@h4r1m4u awesome thanks again
CamperBot
@camperbot
kaizen711 sends brownie points to @h4r1m4u :sparkles: :thumbsup: :sparkles:
:warning: kaizen711 already gave h4r1m4u points
Mannu Gupta
@theparadoxer02
Encode the following sequence, separated by spaces:
backslash tab tab carriage-return new-line and assign it to myStr
solution plz
stuck here
kirbyedy
@kirbyedy
is there a table on the left with explanation codes ?
Alvis Ng
@vizFlux
I am stucked at the timeCount() just won’t reach to 0 before clearInterval() and switched into breakInterval. Would really appreciate any help from anyone who’ve cleared this task. :smile:
http://codepen.io/vizFlux/pen/WrmmVQ
Goje Samuel Andrei Daniel
@pringon
hey guys
can i please get some help with my tic tac toe game?
the filter only works on the first press
then it stop working for some reason
wyattelliott
@wyattwade
hey guys
batilc1
@batilc1
@davidsonsteve ima glad it worked, youre welcome!
wyattelliott
@wyattwade
which filter @pringon ?
Goje Samuel Andrei Daniel
@pringon
the remaining = remaining.filter
wyattelliott
@wyattwade
what line?
i'll check it now
ahh i see it
Pedro Abel Díaz Sánchez
@coderHook
Does somebody know why I am getting my string inversed in the calculator text-box? If I set this outside the text box, in a div for instance it shows it the correct way.
http://codepen.io/DiazPedroAbel/pen/pgRXWv?editors=1010
Someone (I cannot remember who and I cannot see previous mentions :S) told me that I have to treat op similar way as current, but I don't see how to do it, in fact, I thought I was treating both similar way by adding them to the string. eval() works perfect so...
h4r1m4u
@h4r1m4u
@Abel1987 it's because of direction: rtl;on .calculator input[type='text'] in your CSS. 'rtl' stand for right to left. instead, use text-align: right;
Pedro Abel Díaz Sánchez
@coderHook
@h4r1m4u thats it... I copy that calculator to just get into programming it, and I guess it has this kind of inconvenients. I was looking at the html and on the javascript trying to fixt it but forget about css. Thanks a lot @h4r1m4u .
h4r1m4u
@h4r1m4u
no prob