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
John
@jpls93
i've been doing some initial research and I see that there are a lot of bloat with Twitter's new 1.1 API
one of the solutions I've seen is from Rafase282 (github) and I don't know where he got the idea of using the tools he used e.g. forismatic
Juan Moraza
@Morazajuan
i think its pretty decent isnt it? http://codepen.io/morazajuan/pen/zBPAqJ
DJ
@qualitymanifest
@johnsalcedonetwork you don't have to use any APIs on that one. i'm guessing he found forismatic by googling something like "random quote API", which has forismatic show on the first page.
Elbert Cortez
@trip16661
@johnsalcedonetwork there are many api services that provides quotes
one thing i recomend is to search for one that serves in HTTPS
otherwise u will deal with troubles xD
Pericles
@periman2
I found an amazing api for quotes if anyone is interested
NixonRichard
@NixonRichard
it doesnt return the temperature
can someone fix it ?
Sorin Ruse
@sorinr
@NixonRichard just use data.main.temp to retrive the temperature
NixonRichard
@NixonRichard
    $("#weather").html("City: " + data.name+data.main.temp);
    $("#weather").append("<p>Weather: " + data.weather[0].main + "</p>");
}
like this @sorinr ?
Sorin Ruse
@sorinr
@NixonRichard yes. if you want to put the temp inline with the city name. but i would add a span like <span class="myclass">data.main.temp<span> to be able to format the temp as i wish using myclass
NixonRichard
@NixonRichard
@sorinr
    $("#weather").html("City: " + data.name+ <span class="myclass">data.main.temp<span> );
    $("#weather").append("<p>Weather: " + data.weather[0].main + "</p>");
}
i think im adding the span element the wrong way
Sorin Ruse
@sorinr
@NixonRichard just close the span </span> instead of <span> at the end
@NixonRichard and add some css to that class like: padding-left: 10px to move it to the right from the city name, ecc
NixonRichard
@NixonRichard
    $("#weather").html("City: " + data.name+ <span class="myclass">data.main.temp</span> );
still wrong
it says unexpected token <
Sorin Ruse
@sorinr
@NixonRichard $("#weather").html("City: " + data.name+ "<span class='myclass'>"+data.main.temp+"</span>" );
NixonRichard
@NixonRichard
@sorinr
```
$("#weather").html("City: " + data.name+
"<span class="myclass">"+data.main.temp+"</span>" );
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>