by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • May 14 22:38
    @bjorno43 banned @minitechtips_twitter
  • May 14 22:37
    @bjorno43 banned @real-action
  • Feb 01 00:26
    @bjorno43 banned @Ndoua
  • Jan 07 03:10
    @bjorno43 banned @doctor-sam
  • Aug 17 2019 09:33
    User @bjorno43 unbanned @linkin-park
  • Jun 20 2019 21:19
    @bjorno43 banned @shenerd140
  • May 10 2019 09:13
    @bjorno43 banned @zhaokunhaoa
  • Apr 27 2019 19:46
    @mstellaluna banned @zhonghuacx
  • Apr 25 2019 17:12
    @mstellaluna banned @cmal
  • Apr 01 2019 18:11
    thecodingaviator labeled #31179
  • Apr 01 2019 18:11
    thecodingaviator labeled #31179
  • Apr 01 2019 18:09
    thecodingaviator commented #31179
  • Apr 01 2019 18:09
    thecodingaviator labeled #31182
  • Apr 01 2019 18:09
    thecodingaviator labeled #31182
  • Apr 01 2019 18:07
    thecodingaviator commented #31182
  • Apr 01 2019 18:07
    thecodingaviator labeled #31190
  • Apr 01 2019 18:07
    thecodingaviator labeled #31190
  • Apr 01 2019 18:07
    thecodingaviator commented #31190
  • Apr 01 2019 18:05
    thecodingaviator commented #31157
  • Apr 01 2019 18:04

    thecodingaviator on master

    remove A (#31157) (compare)

Anton Bredl
@antonbr13
<script>
$(document).ready(function() {
});
</script>

Instructions:
Create a script element.

Make sure your script element has a closing tag.

You should add $(document).ready(function() { to the beginning of your script element.

Close your $(document).ready(function() { function with });.

Robert Richey
@0x0936
there's nothing wrong with the code you posted. try clicking the reset button and try again
Robert Richey
@0x0936
@antonbr13 did it work?
Deep2322
@Deep2322
can anyone explain me javascript code for pomodoro timer
Oli Bullen
@d33con
has anybody here used or is using the code wars site?
Robert Richey
@0x0936
@d33con yes, but I don't go there often
Anton Bredl
@antonbr13
@0x0936 yeah i couldn't find anything bugs in my code - unfortunately it still didn't work!!
Robert Richey
@0x0936
@antonbr13 copy paste all of the code from your waypoint. there may be a problem somewhere else in your code
Anton Bredl
@antonbr13
unlikely because the task is only to write the script tags plus the first line of jQuery code
Oli Bullen
@d33con
@0x0936 is it good practice alongside the challenges here? I have just finished intermediate algorithms but feel like i need some more practice to really understand it all
Anton Bredl
@antonbr13

<script>
$(document).ready(function() { });
</script>

<div class="container-fluid">
<h3 class="text-primary text-center">jQuery Playground</h3>
<div class="row">
<div class="col-xs-6">
<h4>#left-well</h4>
<div class="well" id="left-well">
<button class="btn btn-default target" id="target1">#target1</button>
<button class="btn btn-default target" id="target2">#target2</button>
<button class="btn btn-default target" id="target3">#target3</button>
</div>
</div>
<div class="col-xs-6">
<h4>#right-well</h4>
<div class="well" id="right-well">
<button class="btn btn-default target" id="target4">#target4</button>
<button class="btn btn-default target" id="target5">#target5</button>
<button class="btn btn-default target" id="target6">#target6</button>
</div>
</div>
</div>
</div>

@d33con have you done any of the exercises on coderbyte?
Robert Richey
@0x0936
@d33con yes, absolutely. more practice, wherever you can find it, will never hurt. there's also coderbyte and code euler to look into
Oli Bullen
@d33con
@0x0936 @antonbr13 thanks!
CamperBot
@camperbot
d33con sends brownie points to @0x0936 and @antonbr13 :sparkles: :thumbsup: :sparkles:
Robert Richey
@0x0936
@antonbr13 I copy pasted your code into the waypoint and it works.
CamperBot
@camperbot
:star: 111 | @antonbr13 | http://www.freecodecamp.com/antonbr13
:star: 310 | @0x0936 | http://www.freecodecamp.com/0x0936
Robert Richey
@0x0936
sorry, not code euler but project euler
I also like codecombat and codingame
Oli Bullen
@d33con
thanks, i will check them out
CamperBot
@camperbot
if you want to thank someone, put an @ before their name!
Abhisek Pattnaik
@abhisekp
explain js res
Deep2322
@Deep2322

function updateTimerLengths() {
if (sessionlength < 0) {
sessionlength = 0;
}

if (breaklength < 0) {
  breaklength = 0;
}
$('#session-length').html(sessionlength / 60);
$('#break-length').html(breaklength / 60);

}

can anyone tell why are we dividing session length and break length by 60
Abhisek Pattnaik
@abhisekp
@d33con :point_up: October 23, 2015 12:31 PM
explain format
CamperBot
@camperbot

:point_right: code formatting [wiki]

Inline code

alt text

This an inline `<paste code here>` code formatting with a single backtick(`) at start and end around the code.

Code Block

``` ⇦ Type 3 backticks and then press [shift + enter ⏎]

<paste your code here>,
then press [shift + enter ⏎]

``` ⇦ Type 3 backticks, then press [enter ⏎]

See also: ☛ How to type Backticks | ☯ Compose Mode | ❄ Gitter Formatting Basics

:pencil: read more about code formatting on the FCC Wiki

Abhisek Pattnaik
@abhisekp
@Deep2322 :point_up: October 23, 2015 12:36 PM
Laura Stephenson
@lauralstephenson

OK, I know I'm being obtuse, but I can't correct my own code. ...

<style>
body {
background-color: black;
font-family: Monospace;
color: green;
pink-text-color: pink;
}
</style>

<h1>Hello World!
class="pink-text-color">
</h1>

Anton Bredl
@antonbr13
@0x0936 project euler is pretty nuts
I would struggle with that level of math for sure
@0x0936 thanks for the suggestion tho!
CamperBot
@camperbot
antonbr13 sends brownie points to @0x0936 :sparkles: :thumbsup: :sparkles:
:star: 311 | @0x0936 | http://www.freecodecamp.com/0x0936
Laura Stephenson
@lauralstephenson
Waypoint 56 prioritizing style
h4r1m4u
@h4r1m4u
@lauralstephenson <h1 class="your-class-goes-here">heading text</h1>
@lauralstephenson also:
body {
 ....
}
.pink-text-color {
 ...
}
you don't nest classes within other style declarations
if you want to chain the selectors, you'd do so like this: body .pink-text-color {...}
Laura Stephenson
@lauralstephenson
still doesn't change my text to pink; I know I'm supposed to add something in h1 to do that. Please help, @h4r1m4u .
h4r1m4u
@h4r1m4u
read my answers above again. all the hints are there. if you still can't figure it out, post your updated code
Laura Stephenson
@lauralstephenson

Still not pink. ...

<style>
body {
background-color: black;
font-family: Monospace;
color: green;
.pink-text-color: pink;
}
</style>

<h1 class="pink-text-color">Hello World!
</h1>

And, even with the directions, can't get my stuff to paste into a pretty box. Feeling kinda stoopid today.
h4r1m4u
@h4r1m4u

@lauralstephenson

body {
 ....
}
.pink-text-color {
 ...
}

you don't nest classes within other style declarations

see how the .pink-text-color declaration is outside of body {...}?
Brett
@TryinNotToPanic
This message was deleted