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
LDiek-
@LDiek-
function printweather(pos) {
var lon = pos.coords.longtitude;
var lat = pos.coords.latitude;

var url = "//api.openweathermap.org/data/2.5/weather?lat="; + lat + "&lon=" + lon + "&units=metric&APPID=6ffb926f18657b3913623a729923200f";
$.getJSON(url, function(data) {
$(".weather").html(data);
});
}

$(document).ready(function() {
if (navigator.geolocation) {
navigator.geolocation.getCurrentPosition(printweather);
}
});
oh the indents are gone :O
Wenceslao Villegas Marset
@SpiralOut17
@LDiek- You are not getting output because you are not getting nothing from the api since the lon variable is empty
LDiek-
@LDiek-
@SpiralOut17 do you have an idea why lon could be empty?
Wenceslao Villegas Marset
@SpiralOut17
@LDiek- Try using the position.coords.longitude and dont use the variables in the url
@LDiek- you can put the var url within the if statement and call the api from there
LDiek-
@LDiek-
@SpiralOut17 ok i have got an output now... i just had to stringify the data object :D
but still i have got the {"cod":"404","message":"Error: Not found city"} message @SpiralOut17
Wenceslao Villegas Marset
@SpiralOut17
@LDiek- Did you get de longitude?
LDiek-
@LDiek-
no
@SpiralOut17 i just spelled longitude longtitude... thanks for your help!:D
CamperBot
@camperbot
ldiek- sends brownie points to @spiralout17 :sparkles: :thumbsup: :sparkles:
:star: 279 | @spiralout17 | http://www.freecodecamp.com/spiralout17
Wenceslao Villegas Marset
@SpiralOut17
This message was deleted
@LDiek- You are welcome! Havea nice day
Mafalda
@otmeek
I just can't understand how to implemente the minimax algorithm in my tic tac toe game
it just feels like the way I've structure my code is not compatible with the algorithm at all and I'm not sure how to rebuild it
modus81
@modus81
Hey Guys ...new guy just dropping a line
Drew
@andrewp89

hey guys can someone please point me in the direction to fix my quote button |

http://codepen.io/drewpiper/pen/BjbjOW/?editors=0110

looking at how to get rid of that blue border when i click it, thank you

kirbyedy
@kirbyedy
@andrewp89 outline:none;
h4r1m4u
@h4r1m4u
@andrewp89 .btn:focus {outline: none;}
This message was deleted
Aiden Buis
@Aidenbuis
@andrewp89 Hi Andrew, outline: none; will indeed solve your problem, but keep in mind that the outline also serves users with a screenreader
Drew
@andrewp89
thanks guys!! been pulling my hair out for a bit :+1:
Joseph
@HadziJo
hello peoples!
If anyone knows how ot convince CodePen to display an image (the <img> tag works well if browsing locally) I would appreciate getting a clue or two. I even tried adding the 'target="_blank"' trick used for the anchor tag <a href= ...>. Thanks in advance!
.o0( looks empty here, I guess I'll stop by again later)
Drew
@andrewp89
what do you mean?
Cooper Reck
@cooperreck
hey guys I'm working on the dedication page an am trying to center an image, anyone know how that would work?
Daniel Ross
@gainiacster
@andrewp89 you can use bootstrap and add the class text-center
Robert Uivarosi
@URobert
@cooperreck you could use bootstrap, or use a div wrapper, then mod the class like `.wrapper{text-align:center;} - that should do it
Aiden Buis
@Aidenbuis
Yes, and study this post to be safe & sound in the future: https://css-tricks.com/centering-css-complete-guide/
Centering in CSS can be a B*tch ;)
Robert Uivarosi
@URobert
@cooperreck Here is a finddle on how to do it: https://jsfiddle.net/66oxm294/
Cooper Reck
@cooperreck
@URobert @Aidenbuis Thanks guys!
CamperBot
@camperbot
cooperreck sends brownie points to @urobert and @aidenbuis :sparkles: :thumbsup: :sparkles:
:star: 593 | @urobert | http://www.freecodecamp.com/urobert
:star: 134 | @aidenbuis | http://www.freecodecamp.com/aidenbuis
Robert Uivarosi
@URobert
@cooperreck yw
Drew
@andrewp89
hey guys i tried putting btn:focus {outline:none;} but it doesnt seem to work (Also tried to add outline:none into my other .btn's and also outline:0; (as per google serach) but still getting that box on my button. thanks guys http://codepen.io/drewpiper/pen/MKRVzy
Shakib Hossain
@shakib609
Hey just made this tribute page... Please tell me what should I do to make it look better? http://codepen.io/shakib609/full/jWRyQE/
Aiden Buis
@Aidenbuis
@andrewp89 Add !important, outline: none !important;
Craig Banach
@CraigBanach
@andrewp89 I suggest you fulfill the user stories before attempting to personalise it.
Shakib Hossain
@shakib609
Made some minor changes. http://codepen.io/shakib609/full/jWRyQE/
wyattelliott
@wyattwade
yoyooooooo!
Aiden Buis
@Aidenbuis
@shakib609 Hi Shakib, some design questions: the blue nav has a huge height in comparison to the logo and the nav items, you could play with the font size and the line-height to vertically center them. I also sugget u make them inline by using only 1 row. Last point, the box shadow is not subtle, you can check out Google’s Material design and how they use shadows (They the boxshadowbosses)
@wyattwade Wasssup
Drew
@andrewp89
@Aidenbuis champion!!
wyattelliott
@wyattwade
@Aidenbuis hangin out man... just been working on this project for so long
Shakib Hossain
@shakib609
Changed the nav to use a single row.. I'll have to look about the box shadow. @Aidenbuis thanks