Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Jun 19 2020 20:09
    @krisb1220 banned @Gastony
  • May 14 2020 22:39
    @bjorno43 banned @minitechtips_twitter
  • May 14 2020 22:38
    @bjorno43 banned @real-action
  • Feb 01 2020 00:27
    @bjorno43 banned @Ndoua
  • Jan 07 2020 03:10
    @bjorno43 banned @doctor-sam
  • Aug 17 2019 09:32
    User @bjorno43 unbanned @linkin-park
  • Jun 20 2019 21:19
    @bjorno43 banned @shenerd140
  • Apr 25 2019 17:13
    @mstellaluna banned @cmal
  • Jan 08 2019 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
abhijith shenoy
@shenoyabhijith
@Immersiveone thanks !
CamperBot
@camperbot
shenoyabhijith sends brownie points to @immersiveone :sparkles: :thumbsup: :sparkles:
:cookie: 119 | @immersiveone |http://www.freecodecamp.com/immersiveone
Immersiveone
@Immersiveone
@shenoyabhijith Able to make the font a little darker?
abhijith shenoy
@shenoyabhijith
yea sure
Sorin Ruse
@sorinr
@shenoyabhijith i woud math.round the temperatuire
abhijith shenoy
@shenoyabhijith
why what temparature did you get?
Immersiveone
@Immersiveone
@shenoyabhijith That's perfect! Great job, I can't wait to get to your level!
Sorin Ruse
@sorinr
@shenoyabhijith its -4.3 and i think -4 will be just ok :)
abhijith shenoy
@shenoyabhijith
checkout new and altered
weather app
Sorin Ruse
@sorinr
@shenoyabhijith yep :+1:
abhijith shenoy
@shenoyabhijith
final
after the tweak
BEL. Yacine
@ByZource
var colors = ["red","blue","black","yellow"];

$("#nextbtn").on("click", function (e) {

    for(var i = 0; i < colors.length; i++) {     
        $("body").css("background-color", colors[i]);      
    }

});
Hi guys, please why the for loop give me just the last color each time I click?
MacGuffin
@MacGuffin1990
hello everyone what is wrong with my "twitch tv programe".i can not show all the message in "div". can someone help mehttp://codepen.io/MacGuffin1990/pen/LxbaRy?editors=0010
Darth Skywalker
@adityaparab
@ByZource : Because by the time loop ends, you're last color is applied to body
loop runs too fast for you to visually notice the changing colors
what are you trying to achieve here, if I may ask?
Faisal Zulfiqar
@faisal-zulfiqar
I have this website http://ifrnd.org/main/ and I want to make the grey background to occupy full width of the page in the "Welcome" section. It's placed inside a container. So I have to use position = absolute. But that breaks things up and it doesn't stays responsive. Any help will be highly appreciated.
BEL. Yacine
@ByZource
@adityaparab I work on the first project (quotes generator) and I want to change the background color witch each click (like the one giving as the example) the quotes generation is already done but I stuck with the color switching...
Darth Skywalker
@adityaparab
@ByZource I see, you can do it like you select a random number between 0 and colors.length
and apply that to your body
BEL. Yacine
@ByZource
okay, I will try that :D
Darth Skywalker
@adityaparab
function getRandom(limit) {
  return Math.ceil(Math.random() * max);
}

var colors = ["red","blue","black","yellow"];
var currentColor = colors[0];
var newColor = '';
$("body").css("background-color", currentColor );

$("#nextbtn").on("click", function (e) {
  while(newColor != currentColor){
    newColor = colors[getRandom(colors.length)];
  }
  $("body").css("background-color", currentColor );
  currentColor = newColor;
});
@ByZource
Faisal Zulfiqar
@faisal-zulfiqar
I have this website http://ifrnd.org/main/ and I want to make the grey background to occupy full width of the page in the "Welcome" section. It's placed inside a container. So I have to use position = absolute. But that breaks things up and it doesn't stays responsive. Any help will be highly appreciated. SOMEBODY?
c0d0er
@c0d0er
does anybody know why the following jquery code doesnt work?
const tableMaker = () => {
  const app = document.getElementById('app');
  //const table = document.createElement('TABLE');
  const table = $('<table></table>')//---->why doesnt work?
  //const tableBody = document.createElement('TBODY');
  const tableBody = $('<tbody></tbody>')//---->why doesnt work?
  //table.appendChild(tableBody);
  table.append(tableBody);

  for(let i=0; i<25; i++){
    const tr = document.createElement('TR');
    tableBody.appendChild(tr);
    for(let j=0; j<40; j++){
      const td = document.createElement('TD');
      $(td).append(j)
      $(tr).append(td);
    }
  }
  $(app).append(table)
}
Mostafa Masri
@thefakeweed
hey guys im unable to change the color of the text of my buttons http://codepen.io/mml3b/pen/KaamPX
form action
Sorin Ruse
@sorinr
@mml3b first u should use form tag only once to wrap all your inputs
Mostafa Masri
@thefakeweed
ohh
how can i do that ?
Sorin Ruse
@sorinr
@mml3b it should be like <form><input><input>....</form?
Mostafa Masri
@thefakeweed
didnt get it
do i have to nest something inside something :/
Sorin Ruse
@sorinr
@mml3b you changed your pen in the mean time. first you had 3 buttons there
Mostafa Masri
@thefakeweed
yup i did
how can i correct it as you said
Sorin Ruse
@sorinr
@mml3b you just need to place all your inputs inside the form tag
Mostafa Masri
@thefakeweed
but i have different form actions for every input
Sorin Ruse
@sorinr
@mml3b then do not use action="http://google.com/+thefakeweed"> into the form. instead of inputs u can just use <a href="url in here"> tags
Mostafa Masri
@thefakeweed
and where do i put this tag ? do i nest it into the input
Sorin Ruse
@sorinr
@mml3b in this case you don't need the form taags
@mml3b you just want to link some icons to some external resources. right?
Muhammad Hasham
@MuhammadHasham23
is ForEach() used in this example deprecated now
function forEach(array, action) 
{ 
for (var i = 0; i < array.length; i++) 
    action(array[i]); 
}
forEach(["Wampeter", "Foma", "Granfalloon"], console.log);
@sorinr