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
Rada
@Radascript
@Ryanwfile can we see your pen?
Ryan Williams
@Ryanwfile
@Radascript Sure it's http://codepen.io/Ryanwfile/pen/OXwEwK , thank you
CamperBot
@camperbot
ryanwfile sends brownie points to @radascript :sparkles: :thumbsup: :sparkles:
:cookie: 378 | @radascript |http://www.freecodecamp.com/radascript
Rada
@Radascript
@Ryanwfile put your soundX.play()s INSIDE the setTimeOUts for starters
and after that, make sure each setTimeOut adds 1100 to itself
like so:
setTimeout(function() {
          $('#green').css('background-color', '#00aa00');
          sound1.play();
        }, 1100 * (idx + 1));
Ryan Williams
@Ryanwfile
ok I will do that, thank you very much for the help
Anshul Jain
@ajain706
@Radascript hy
Rada
@Radascript
@Ryanwfile you welcome. That only solves the issue with the sounds though. You may need to nest the SetTimeOuts - do one for lighting them up and one for turning them off.
You could also write a function altogether that takes in arguments (color, sound, button) and then you don't have to copy paste as much, but that's a personal choice.
Ryan Williams
@Ryanwfile
@Radascript That makes sense I will try that, having them altogether in one function would be better as well
Rada
@Radascript
@Ryanwfile good luck!
Ryan Williams
@Ryanwfile
@Radascript Thank you again for all of the help
CamperBot
@camperbot
ryanwfile sends brownie points to @radascript :sparkles: :thumbsup: :sparkles:
:warning: ryanwfile already gave radascript points
Ryan Williams
@Ryanwfile
@Radascript The code you posted with the (idx +1) is working very well, that's exactly what it needed
Rada
@Radascript
@Ryanwfile awesome happy to help!
Dylan
@dhcodes
@majedmahmood27 up to you, but I think most people make separate sections (divs). It's your portfolio though so you can make it whatever you want as long as you complete the user stories
Mark
@cityproject
hello
I'm trying to implement this http://foxandxss.github.io/angular-toastr/ when user is successfully logged in,
could anyone help me out how i can do that?
this is the live site : http://192.241.153.25:8000/
max77p
@max77p
have a general question regarding margins on my twitch app pen
can anyone explain why for class all (.all) margin-bottom anything below 7em has no effect?
Mark
@cityproject
did you set position: absolute? @max77p
max77p
@max77p
@cityproject no did not do that...i get it would affect it if i do that
but what is causing it from not moving for anything below 7 though?
@cityproject and i am noticing a correlation between margin-top and margin-bottom...if i increase the margin-top then i have to increase the margin-bottom by certain amount to get it to work
what is the calculation that is going on?
Mark
@cityproject
I'm not quite sure if I'm following you
are you saying that the .all doesn't have lower margin below 7.em?
max77p
@max77p
@cityproject have you got my pen open? can explain it through there
Mark
@cityproject
i have it opened.
but,
max77p
@max77p
@cityproject ```
.all{
margin-right:1.1em;
margin-top:.6em;
margin-bottom:7em;
}
Mark
@cityproject
i assume it's not working because there are contents inside the div
max77p
@max77p
so if i change margin-bottom to 6em, there is no effect
Mark
@cityproject
look at that .container
you have title, and so on
max77p
@max77p
right
@cityproject so you are saying those add to the margin?
Mark
@cityproject
if you want it to work the way it's supposed to be,
you should rather consider giving negative margin to the bottom
using .container
not .all
max77p
@max77p
is there way i can calculate what amount i should put in margin, given whatever is in container?
Mark
@cityproject
im not sure.