Where communities thrive

  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
  • 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
nice little guide for handling synchronous vs asynchronous code: https://www.pluralsight.com/guides/front-end-javascript/introduction-to-asynchronous-javascript
Hi guys
My web app is really off in it's responsiveness
for example, there's a huge space between I'm a and the scroll words. How do I fix this?
hey everyone, almost done with the JS part of my SHOW LOCAL WEATHER challenge, but I am having trouble toggling between C and F, i created the button that turns the C to F, but I have no idea how to get it to toggle back and forth ? can anyone shine some light? :) https://codepen.io/rafaelmonroy/pen/BdMyeb
@rafaelmonroy do not have the btn function inside the success function of the ajax call for starters
Ken Haduch
@rafaelmonroy - it looks like you have it changing one time, but it doesn't toggle back and forth? Typically it does do that for all of the projects that I looked at. You need to keep track of (or determine on the fly) which value you are currently displaying and then display the other value. You can do this with a variable that you can test, or test the text that you are displaying. The advice is generally to keep a local variable in the javascript that you can test.
@rafaelmonroy have to create something similar to https://stackoverflow.com/questions/3047755/i-am-trying-to-make-a-simple-toggle-button-in-javascript for your F and C
@heroiczero nice link of solutions
Dharmik Thakkar
Hi Guys. I am new here.
Ken Haduch
@thakkardharmik - hey there, welcome to freeCodeCamp!
@thakkardharmik Hello welcome to Free code camp :)
Spyrantis Theodoros
okay, so i had this idea but i have absolutely no clue on how to do it. So i wanna make a code that will have a "text" like 3-4 lines and lets say that the site will have some mini terms and conditions and it wants to make sure that the user read the terms. And i want the user to confirm that he read the terms by hovering his pointer through all the letters of the text(obviously left to right and every line). Like kids do with their fingers when they read books. 1)What do you think about this idea? 2)How can i make something like that?
@thodorisanta you have a problem with that - think of the mobile devices and tablets. there is no mouse. there is no pointer. what will they be hovering with?
@thodorisanta I would be irked... to say the least if a website made me do that, haha.
Spyrantis Theodoros
@just1witness @Marianissimus okay, so its a NO for mobiles-tablets. But lets say that the FFC forum wants its users to read the "terms" it has (like no spamming, swearing etc) they are not too many, just 2-3 lines. What about that? :P
Maybe if it was just a few lines, or you could isolate those lines in an alert window to increase the likely hood that a person reads them. As for the hover feature, I wouldn't know how to implement that.
@thodorisanta unless you're providing something very good to the user after registering (like, idk, free hosting up to 10TB / user), you don't want to be so annoying. just my 2 cents...
@Marianissimus agreed
Spyrantis Theodoros
lets say that i have a code in my js that says "in 3 seconds make that box appear"(that box was invisible till now with "display: none;") and i also have a button that makes that box invisible again.
the thing is! that if i press that button before those 3 seconds pass, then the box will appear anyway. What can i do?
@thodorisanta set a timeout function
whats happening fellow campers
Kirk Clemons
@thodorisanta You could ask for a keyword to show that they have read and accept the terms. For example, have them type in the last 2 words in the agreement.
But again, if you try to force someone into reading it they will find a way around it. So it's a fine line between user experience vs. legal jargon. For most site's it's good enough to put some text right under the submit/sign-up button that says 'by clicking this button you agree with the terms'.
Good morning, all!
Anyone available to look at my code and help me figure out why Bootstrap NavBar toggle function isn't working? I've even tried copying and pasting the example on W3Schools into my Codepen, and that isn't working.
Kirk Clemons
@imperial-isms What do you have?
Is this just not toggling on mobile? Or mobile and desktop?
Thanks for the response!
@imperial-isms probably because u need boostrap jquery loaded into your project
It's not toggling on both. Additionally, the dropdown menu isn't work, as well if that bit of info helps identify.
Not sure which settings external CSS and Javascript I should turn on.
I just tried going into Javascript settings and including external: jQuery and jQuery UI
I have Bootstrap 3 included in my CSS settings
Figured it out! I included Bootstrap 3 in the Javascript settings.
Thanks for the help @OrangeKulture
imperial-isms sends brownie points to @orangekulture :sparkles: :thumbsup: :sparkles:
:cookie: 458 | @orangekulture |http://www.freecodecamp.com/orangekulture
There are ReactJS developers ?
who uses Redux?
I'm messing with some js here, and I have:
var newimg = $(this).val();
$(".parent").css("animation-duration", newimg);
$('.speedSave').click ( function(){
However, when I click change, it doesn't trigger an event that changes the duration of the said css animation
Any ideas?
@thodorisanta use .stop(), for example: https://codepen.io/anon/pen/prGdmx?editors=0010
Eric Hasegawa
Can anyone help me to figure out how to raise the div containing the search bar, the title and the random article up so that it is in line with the div containing the wikipedia logo? https://codepen.io/erichasegawa/pen/Bdvgvm
Ene Catalin
so you want them to be one next to the other ?