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
NixonRichard
@NixonRichard
i made this and it s also wrong
$("#weather").html("City: " + data.name+
"<span class="myclass">"+data.main.temp+"</span>" );
nvm
it worked
Sorin Ruse
@sorinr
@NixonRichard it is here: "myclass". i wrote 'myclass' because you have the span
NixonRichard
@NixonRichard
yeh
305.15
is thes fahrenheit degree ?
Sorin Ruse
@sorinr
yes @NixonRichard
NixonRichard
@NixonRichard
how to make it appear under my city name like the weather ?
anyway thx u first @sorinr
CamperBot
@camperbot
nixonrichard sends brownie points to @sorinr :sparkles: :thumbsup: :sparkles:
:cookie: 468 | @sorinr |http://www.freecodecamp.com/sorinr
Sorin Ruse
@sorinr
@NixonRichard make a new <div id="temp"></div> below your weather one and make $("#temp").html(data.main.temp);
NixonRichard
@NixonRichard
<div id="weather">
  <div id="temp">
    <p class="center">Click the button to get your local weather.</p></div></div>

<div class="center-div">
make a new div id like this ?
Sorin Ruse
@sorinr
@NixonRichard <div id="temp" class="center-div">
NixonRichard
@NixonRichard
$("#weather").html("City: " + data.name
);
$("#temp").html("Temperature:" +data.main.temp);
$("#weather").append("<p>Weather: " + data.weather[0].main + "</p>");
}
\
and i made this also
$("#weather").html("City: " + data.name
);
$("#temp").html("Temperature:" +data.main.temp);
$("#weather").append("<p>Weather: " + data.weather[0].main + "</p>");
}
but it doesnt return the temperature
Sorin Ruse
@sorinr
@NixonRichard have you closed this div: <div id="temp" class="center-div"></div> ?
NixonRichard
@NixonRichard
yes u can see here
<div id="weather">
  <div id="temp">
    <p class="center">Click the button to get your local weather.</p>
  </div>
  </div>
Sorin Ruse
@sorinr
@NixonRichard do not nest
<div id="temp"> within <div id="weather"> put it after because when you call $("#weather").html("City: " + data.name
); it overwrites all content inside id="weather div
@NixonRichard <div id="weather"></div><div id="temp"></div>
NixonRichard
@NixonRichard
oh
okay
:+1: @sorinr
Sorin Ruse
@sorinr
@NixonRichard great
NixonRichard
@NixonRichard
This message was deleted
but ic ant change the city s style
just the weather and temp
Sorin Ruse
@sorinr
@NixonRichard change $("#weather").html("City: " + data.name
); into $("#weather").html("<span class='city'>City: " + data.name+"</span>"
); and make a css class city to style it
NixonRichard
@NixonRichard
yeh i forgot that
NixonRichard
@NixonRichard
Hey @sorinr
do u know how to add weather animations based on the returned weather descriptions ?
buiphuking
@buiphuking
hi guys
how can i fix this error
Refused to execute script from 'https://raw.githubusercontent.com/shinnn/AudioContext-Polyfill/master/audiocontext-polyfill.js' because its MIME type ('text/plain') is not executable, and strict MIME type checking is enabled.
Sorin Ruse
@sorinr
@buiphuking how do you link this lib?
buiphuking
@buiphuking
<script src="https://raw.githubusercontent.com/shinnn/AudioContext-Polyfill/master/audiocontext-polyfill.js"></script>
Sorin Ruse
@sorinr
@buiphuking try give it a type
buiphuking
@buiphuking
i did, same error
Sorin Ruse
@sorinr
@buiphuking like type="application/js" ?
buiphuking
@buiphuking
not error anymore but not working
Sorin Ruse
@sorinr
@buiphuking maybe its the way you are calling the functions in that lib
buiphuking
@buiphuking
@sorinr thanks
CamperBot
@camperbot
buiphuking sends brownie points to @sorinr :sparkles: :thumbsup: :sparkles:
:cookie: 469 | @sorinr |http://www.freecodecamp.com/sorinr
Pratik Chaudhary
@abs-zero
does any one know how to use twitter tweet api?