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
include*engine
@newtothat
@Devina9 thank s @sjames1958gm
CamperBot
@camperbot
newtothat sends brownie points to @devina9 and @sjames1958gm :sparkles: :thumbsup: :sparkles:
:cookie: 263 | @devina9 |http://www.freecodecamp.org/devina9
:star2: 9198 | @sjames1958gm |http://www.freecodecamp.org/sjames1958gm
Alvin
@AlvinW89
the navbar in Bootstrap 4 is better than 3
Stephen James
@sjames1958gm
@newtothat :+1:
include*engine
@newtothat
@AlvinW89 you know css and html is clear what they do even php
but i still didnt get what bootstrap used for
Alvin
@AlvinW89
boostrap is basicly CSS bundled into classes. Look at the files
goto the site and download the files
and look at the code
Brad
@bradtaniguchi
I usually use material-like stuff
Alvin
@AlvinW89
Bootstrap saves you time on writing CSS yourself, and you can change it with your own custom CSS. Example, they have set colors for buttons, if you target the bin-default class with your css you can change the color.
Btn-default*
just remember your css must cascade. If you do external links, link bootstrap first then your own personal stylesheet
include*engine
@newtothat
ok merci
Alvin
@AlvinW89
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.0/css/bootstrap.min.css" integrity="sha384-9gVQ4dYFwwWSjIDZnLEWnxCjeSWFphJiwGPXr1jddIhOegiu1FwO5qRGvFXOdJZ4" crossorigin="anonymous">
<link rel="stylesheet" href="/css/normalize.css">
<link rel="stylesheet" href="/css/main.css">
<link rel="stylesheet" href="/css/master.css">
@newtothat Not to confuse href="/css/master.css” and href=“../css/master.css” do the same, but href="/css/master.css” only works when run on a server
zootechdrum
@zootechdrum
ay guys
how do i get the string in my span element using jquery
function Random(){
var CheckString = $("span").text();
  console.log(CheckString)
}
});
I tried using the above but no luck
include*engine
@newtothat
@AlvinW89 even if you download it you have to use links?
i got only a folder from the site
Brad
@bradtaniguchi
@zootechdrum I believe $('span').text() should work, so something else is polly going on
include*engine
@newtothat
where i live employer s wants you to know all like xhtml old layout stylings but guys from west say learn new ones so
in turkey employers wants you to know old versions and meantime follow and learn new technologies
Brad
@bradtaniguchi
I think its fine to use old technologies to maintain existing legacy systems. But If you EVER get an opportunity to provide input to any new project, always try to push newer technologies. Especially if what your using is super old
I mean they are called legacy for a reason :/
could somebody revise my code .... it still not working
please
Ken Haduch
@khaduch
@roxxlen - Did you check your developer console and see that there is an error? I see that you have a function named place but I don't see where it is being invoked? I also see one place where you have a mistyped word " sucess", but not sure if that's really the first problem at this point...
Brad
@bradtaniguchi
@roxxlen Whats wrong with it?
Ken Haduch
@khaduch
@roxxlen - you are invoking getWeather() but I think that you might want to invoke place first?
roxxlen
@roxxlen
i tried to modify it
var latitude = null,
longitude = null;
if (navigator.geolocation) {
navigator.geolocation.getCurrentPosition(function (position) {
latitude = position.coords.latitude;
longitude = position.coords.longitude;
})};
getWeather([latitude, longitude]);
});
put this bulk of code inside the ready()
@bradtaniguchi just can't find out the difference compared with https://codepen.io/roxxlen/pen/OvaWyb
Brad
@bradtaniguchi
@roxxlen From the code you posted it looks like you as to get the current position, which is async, then get the weather. What if it takes 10 seconds to get the position?
Your getWeather function will take in null, which is probably whats happeneing.
Move the getWeather function into the callback of getCurrentPosition
roxxlen
@roxxlen
if (navigator.geolocation) {
navigator.geolocation.getCurrentPosition(function (position) {
latitude = position.coords.latitude;
longitude = position.coords.longitude;
getWeather([latitude, longitude]);})};
like this ?
Brad
@bradtaniguchi
yes, also format your code using three ` characters on lines before and after your code(thats not quotes, its the things on the ~ key)
if (navigator.geolocation) {
  navigator.geolocation.getCurrentPosition(function (position) {
    latitude = position.coords.latitude;
    longitude = position.coords.longitude;
    getWeather([latitude, longitude]);
  });
}
roxxlen
@roxxlen
still not work
@khaduch the console returned the longitude and the latitude
Brad
@bradtaniguchi
idk whats not working, cuse I don't have your code. Could be anything