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
Pablo
@Olbap14

Hi, can someone help me?

This is my code:

 $(document).ready(function() {

   $("#randomBtn").on("click",function(){
     var answer="";
     var random= Math.floor(Math.random() * (3)+1);
     switch(random) {

       case 1:
         answer=['"La mujer es como la polvora, si no la tratas con cuidado, explota"', "Miguel Moyá"];
         break;
       case 2:
         answer= ['"Y los españoles, muy españoles y mucho españoles!!"', "Rajoy"];
         break;
       case 3:
         answer= ['"El mundo esta dividido en tres grandes grupos, el de los que sabe contar, y el de los que no."',"Homer J. Simpson"];}

     $(".message").html(answer[0]);
     $(".name").html(answer[1]);
     var tweet= "https://twitter.com/intent/tweet?text=+";
     answer=answer[0].split(" ");
     answer=answer[0].join("%20");
     tweet+= answer[0];
     tweet+= "%20"+ answer[1];
     console.log(answer);
     $("#tweetBtn").attr("href",tweet);
   });
});

My problem is that $("#tweetBtn").attr("href",tweet); don't work, also I write console.log(answer); for search problems, and console don't print anything

;_(
help please

Kevin Kuehler
@kevinkuehler
Does anyone know where, on the Open Weather API's website, you can find all possible API responses ?
Randy Goldsmith
@Dueldrawer8
Kevin Kuehler
@kevinkuehler
@Dueldrawer8 yeah it shows examples. cant find all possible responses
baaank
@baaank
Randy Goldsmith
@Dueldrawer8
@kevinkuehler the best way to do it IMO is to try it out in your codepen..first get an api key.. then put it in a .getJSON or .ajax call with a callback function and console.log it
Kevin Kuehler
@kevinkuehler
@Dueldrawer8 THX
CamperBot
@camperbot
kevinkuehler sends brownie points to @dueldrawer8 :sparkles: :thumbsup: :sparkles:
:cookie: 411 | @dueldrawer8 |http://www.freecodecamp.com/dueldrawer8
Randy Goldsmith
@Dueldrawer8
@kevinkuehler dunno if that helps answer your question.. be sure to use JSON.stringify() to make the JSON data easier to read
if you need help ill be on for maybe another 15-20 min
@kevinkuehler take a look at mine..
http://codepen.io/duel_drawer8/pen/bpoozL?editors=1112
just open the console and you should see all the info it provides.. although thats only on the current weathe
@kevinkuehler here is a link for all the weather conditions which is what you mainly need.. http://openweathermap.org/weather-conditions
Kevin Kuehler
@kevinkuehler
@Dueldrawer8 your site looks nice. i like that you used a geo-locator api instead of the default javascript one... no need to confirm
Randy Goldsmith
@Dueldrawer8
@kevinkuehler indeed, thanks man :) i still need to do some work on it.. i'm going back and touching some things up on it specifically making my projects responsive/mobile
CamperBot
@camperbot
dueldrawer8 sends brownie points to @kevinkuehler :sparkles: :thumbsup: :sparkles:
:cookie: 275 | @kevinkuehler |http://www.freecodecamp.com/kevinkuehler
Andrew Perrin
@Pezz18
hi, can someone help me out with mediaqueries / fluid grids??
Sai
@gsr3568
how to add image from internet
Greg Duncan
@GregatGit
@gsr3568 <img src="http://www.whatEverTheUrlIs">
Marc M
@Marc-Moeller
Hola, can someone please help me figure out where the grey hover effect is coming from over the menu: http://businessdemo1.xyz/#
Kevin
@KevinBruland
@flyyyperth sure
@flyyyperth are you still around?
Marc M
@Marc-Moeller
I'm here @Benalron (:
Kevin
@KevinBruland
@flyyyperth are you trying to do it yourself?
Marc M
@Marc-Moeller
I'd love to get rid of the grey effect and keep the underlined orange line under the text for a:active
Naif Al-Shammari
@CoderGeek700
Marc, I was know this formula but I forget it
I will try to figure out just sec
Kevin
@KevinBruland
usually its using the psuedo selector ::hover
Naif Al-Shammari
@CoderGeek700
I see
True
Marc M
@Marc-Moeller
@Benalron @CoderGeek700 Thanks guys, do you have any idea for code that could disable the grey background?
CamperBot
@camperbot
flyyyperth sends brownie points to @benalron and @codergeek700 :sparkles: :thumbsup: :sparkles:
:cookie: 30 | @codergeek700 |http://www.freecodecamp.com/codergeek700
:cookie: 371 | @benalron |http://www.freecodecamp.com/benalron
Marc M
@Marc-Moeller
How would I make the active link underlined with my hover class ?
Naif Al-Shammari
@CoderGeek700
Marc, You are most welcome
Marc M
@Marc-Moeller
So far I can only underline the whole element, as you can see on "HOME" , but not the actual text
Naif Al-Shammari
@CoderGeek700
<head><link href="" rel="stylesheet" type="text/css"></head>
Marc, I don't have that experiecne but I hope that's what you expect it from me
Guys, please correct me if am I wrong ?
Muhammad Hasham
@MohammadHasham
bonfire mutation
CamperBot
@camperbot

:fire:Bonfire: Mutations :link:

function mutation(arr) {
  return arr;
}

mutation(['hello', 'hey']);

Return true if the string in the first element of the array contains all of the letters of the string in the second element of the array.

more info:  bf details | bf links | hint

Muhammad Hasham
@MohammadHasham
Cany anyone help me
hint
CamperBot
@camperbot
:construction: Spoilers are only in the Bonfire's Custom Room :point_right:
Carlos
@CarlosFerrerCeldran
Goodday all, can anyone tell me how can I use col-xs and md, to center a list of elements in my code? Here's the link to the excercise: http://codepen.io/CarlosFerrerCeldran/pen/BzJvVK
I can't figure out how to center or align the list justifying it to the left side leaving a margin
Carlos
@CarlosFerrerCeldran
Ok, I managed to align the list to the left margin, how can I move it a bit more to the center, with row command?