if you are talking about the first picture not lining up with whats below it, I would use offest columns. you can find it in the bootstrap documentation it allows you to basically create fake columns for positioning .
if they are all in the same column you could add margins or padding to the img by asigning it an ID
miciah123 sends brownie points to @gregatgit :sparkles: :thumbsup: :sparkles:
:cookie: 573 | @gregatgit |http://www.freecodecamp.com/gregatgit
tadake sends brownie points to @jdtdesigns :sparkles: :thumbsup: :sparkles:
:cookie: 454 | @jdtdesigns |http://www.freecodecamp.com/jdtdesigns
setInterval
timer that you use is just repeating - it will never stop until you clear the interval timer.
$(".newQuoteBtn").on("click", pullUpQuote());
aidansven sends brownie points to @tadake :sparkles: :thumbsup: :sparkles:
:cookie: 399 | @tadake |http://www.freecodecamp.com/tadake
I dont know why the Berry Chuk caption is a link target to youtube please help
atalaa sends brownie points to @tadake :sparkles: :thumbsup: :sparkles:
:cookie: 400 | @tadake |http://www.freecodecamp.com/tadake
Thanks to you too @jdtdesigns !!
now my other question is about the function itself
function pullUpQuote() {
$.ajax({
url: 'https://andruxnet-random-famous-quotes.p.mashape.com/?cat=famous',
type: 'GET',
data: {},
dataType: 'json',
success: function(data) {
document.getElementById("quoteText").innerHTML = data.quote;
document.getElementById("quoteAuthor").innerHTML = data.author;
},
error: function(err) {
alert(err);
},
beforeSend: function(xhr) {
xhr.setRequestHeader("X-Mashape-Authorization", "bDEv0VpVECmshUX66t2sGsVFSWu9p1056UNjsnQJsAJeqaqksI");
}
});
}
aidansven sends brownie points to @jdtdesigns :sparkles: :thumbsup: :sparkles:
:cookie: 455 | @jdtdesigns |http://www.freecodecamp.com/jdtdesigns
aidansven sends brownie points to @jdtdesigns :sparkles: :thumbsup: :sparkles:
:warning: aidansven already gave jdtdesigns points
aidansven sends brownie points to @jdtdesigns :sparkles: :thumbsup: :sparkles:
:warning: aidansven already gave jdtdesigns points
function addTogether(first, second) {
/*
function sumTwoAnd(num){
return number+num;
}
if(addTogether.length==1){
return sumTwoAnd()
var number=addTogether(argument[0]);
}
*/
if(typeof first=="number"&& typeof second=="number"){
return first+second;
}
else{
return undefined;
}
}
addTogether(2,3);
needsmorecoffee sends brownie points to @jdtdesigns :sparkles: :thumbsup: :sparkles:
:cookie: 456 | @jdtdesigns |http://www.freecodecamp.com/jdtdesigns
leanhduy1998 sends brownie points to @jdtdesigns :sparkles: :thumbsup: :sparkles:
:cookie: 457 | @jdtdesigns |http://www.freecodecamp.com/jdtdesigns
```js
function smallestCommons(arr) {
var num=0;
var i;
var j;
var args = Array.prototype.slice.call(arguments[0]);
var args1=args[0];
var args2=args[1];
while ( i!== j);{//While Args1 doesnt equal args2
for( i=args1;;i++){ //increment args1 by itself
for( j=args2;;j++){ //ditto
}
num=i;//This should be where the while loop has stopped so num == i where i = j
break;
}
}
return num;
}
smallestCommons([2,7]);
I thinkthe issue could be where im doing num=i
function smallestCommons(arr) {
var num=0;
var i;
var j;
while ( arr[0]!== arr[1]){//While Args1 doesnt equal args2
for( i=arr[0];;i++){ i+=i;//increment args1 by itself and add it to args1 value
for( j=arr[1];;j++){ j+=j; //ditto
num=i;} //This should be where the while loop has stopped so num == i where i = j
}break; // Not sure why i have this.. trying to break loop
}
return num;
}
smallestCommons([2,7]);
$("body").on("click", ".theDivToClose button", call back);
this
it just don't select the element so I cant do this $(this).parent()
or $(this).closest("div")
mby im doing something wrong?
benmhz sends brownie points to @jdtdesigns :sparkles: :thumbsup: :sparkles:
:cookie: 458 | @jdtdesigns |http://www.freecodecamp.com/jdtdesigns
$('#parent').append(
'<div id="main">' +
'<h1>Title</h1>' +
'<button id="exit">Exit</button>' +
'</div>');
$('#exit').on('click', exit);
function exit() {
$('#main').hide();
}
$(".dashboard").on("click", ".city-wraper button", (e) => {
var id = $(this).attr("class");
console.log(id);
});
i have something like this
const displayWeather = (weather) => {
let div = document.createElement('div')
const thisId = weather.weatherdata.location.name;
const country = weather.weatherdata.location.country;
let thisDiv = `#${thisId}`
console.log(weather.weatherdata);
weather = weather.weatherdata.forecast.time;
$(div).addClass("city-wraper")
.attr("id", thisId)
.appendTo(".dashboard");
$(thisDiv).append(
$("<div/>").addClass("city"),
$("<button/>")
.text("X")
);
$(thisDiv + " .city").append(
$("<div/>").addClass("weather-icon")
.html('<img src="http://megaicons.net/static/img/icons_sizes/8/178/256/weather-sun-icon.png">'),
$("<div/>").addClass("city-name days")
.html(`<h2>${thisId}, ${country}</h2>
<h1>${Math.floor(weather[0].temperature["@day"])}</h1>`)
)
for (let i = 1, leng = weather.length; i < leng; i++) {
$(thisDiv + " .city").append(
$("<div/>").addClass("days")
.html(`<h3>${weekDay(weather[i]["@day"])}</h3>` +
`<h2>${Math.floor(weather[i].temperature["@day"])}</h2>`)
);
}
}
for ( blah blah) {
// blah blah
}
setListener();
}
$(".close").on("click", (e) => {
var id = $(this).attr("class");
$(this).closest("div").hide();
console.log(id);
});
hey guys im trying to style a buttons color. ive done this a million times so i must be overlooking someting small
why is this
#red{
color:#f44336;
}
not styling this
<div class='col-xs-6'>
<button id='red' class='btn'></button>
</div>
#red{
background-color:#f44336;
}
#red{
background-color:#f44336 !important;
}
tadake sends brownie points to @mutantspore and @trip16661 :sparkles: :thumbsup: :sparkles:
:cookie: 382 | @trip16661 |http://www.freecodecamp.com/trip16661
:star2: 1727 | @mutantspore |http://www.freecodecamp.com/mutantspore
$(".close").on("click", (e) => {
var id = $(this);
console.log($(this).parent(".city-wraper").attr("class"));
$(this).hide();
console.log(id.attr("class"));
});
i want to put a responsive embed ender Bloopers, but it doesnt show, please someone?
atalaa sends brownie points to @tuliodnw :sparkles: :thumbsup: :sparkles:
:cookie: 381 | @tuliodnw |http://www.freecodecamp.com/tuliodnw
:cookie: 460 | @zerazera |http://www.freecodecamp.com/zerazera
dismister sends brownie points to @zerazera :sparkles: :thumbsup: :sparkles:
trip16661 sends brownie points to @jdtdesigns :sparkles: :thumbsup: :sparkles:
:cookie: 459 | @jdtdesigns |http://www.freecodecamp.com/jdtdesigns
function Person(){
this.age = 0;
setInterval(() => {
this.age++; // |this| properly refers to the person object
}, 1000);
}
var p = new Person();
pawan92 sends brownie points to @tuliodnw :sparkles: :thumbsup: :sparkles:
:cookie: 382 | @tuliodnw |http://www.freecodecamp.com/tuliodnw
$("#online").click(function online() {
$(".hueco").show();
$(".sacalo").hide();
});
background-size: cover;
background-repeat: no-repeat;
background-position: center center;
background-attachment: fixed;
just finished my portfolio ! if anyone would care to check it out I would love some feedback, there is kind of a bug with the nav bar to where it does not float on top of other elements :S
also I used boiler text for the about and i dont have any projects or photos yet so imagine there are beautiful projects pictured :P
@Rouque instead of col-sm-1 as the class make a new class and put in
.cssclass{
display:inline-block;
margin-left:somenumber;
}
should make the elements flow inline and you can space them apart with the margin-left.
I have a mysterious few <br> tags showing up before my header (when I inspect the output in Firefox I see them) but they aren't in the CodePen code. Any idea where they are coming from and how to get rid of them?
Also worth mentioning the menu doesn't work on mobile. For some reason I can't click the button to expand and show all of the menu's content if it's collapsed.
dismister sends brownie points to @kirbyedy :sparkles: :thumbsup: :sparkles:
:star2: 1090 | @kirbyedy |http://www.freecodecamp.com/kirbyedy
:cookie: 285 | @jarenescueta731 |http://www.freecodecamp.com/jarenescueta731
dismister sends brownie points to @jarenescueta731 :sparkles: :thumbsup: :sparkles:
dismister sends brownie points to @kirbyedy :sparkles: :thumbsup: :sparkles:
:warning: dismister already gave kirbyedy points
jarenescueta731 sends brownie points to @sorinr :sparkles: :thumbsup: :sparkles:
:cookie: 354 | @sorinr |http://www.freecodecamp.com/sorinr
whiplash5057 sends brownie points to @ivanvillacreative :sparkles: :thumbsup: :sparkles:
:warning: could not find receiver for ivanvillacreative
(function(target) {
return function(data) {
// data == JSON data
// target == the user you are querying
}
})(target)
if (checkWin()) {
checkWin();
gameOver = true;
}
return true
?
confirm()
. would that count?ctataru sends brownie points to @sjames1958gm :sparkles: :thumbsup: :sparkles:
:star2: 1507 | @sjames1958gm |http://www.freecodecamp.com/sjames1958gm
st3ps sends brownie points to @kirbyedy :sparkles: :thumbsup: :sparkles:
:star2: 1094 | @kirbyedy |http://www.freecodecamp.com/kirbyedy
@ankur1163
can someone tell me
how do i align image
in center
http://screencast.com/t/kaTUcsyWV
.outerbox{
background-color:#EEEEEE;
height:1000px;
border-style: none;
margin:80px;
}
.image{
width:100px;
}
.name{
text-align:center;
color:black;
font-family:arial;
font-size:50px;
}
.edu{
font-size:20px;
}
.blue-text{
color:red;
}
</style>
html code
<html lang="en">
<link rel="stylesheet" href="awesome.css">
<div class= "container-fluid">
<div class = "row">
<div class="col-md-2">
</div>
<div class="col-md-8">
<div class="outerbox">
<div class="name">
Kiran Bedi
<div class="edu">
She is the first woman to join the Indian Police Service
</div>
<div class="image">
<img src="kiran bedi.jpg" alt="" />
</div>
</div>
</div>
</div>
<div class="col-md-2">
</div>
</div>
</div>
</div>
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous">
</html>
var tweet = function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0],
p = /^http:/.test(d.location) ? 'http' : 'https';
if (!d.getElementById(id)) {
js = d.createElement(s);
js.id = id;
js.src = p + '://platform.twitter.com/widgets.js';
fjs.parentNode.insertBefore(js, fjs);
}
}(document, 'script', 'twitter-wjs');
gerarddawson sends brownie points to @kirbyedy :sparkles: :thumbsup: :sparkles:
:star2: 1095 | @kirbyedy |http://www.freecodecamp.com/kirbyedy
Hello Everyone,
Please review my quote machine and suggest ways to improve on my work.
https://codepen.io/Zubenna/full/EyPvyz/
Thanks.
margin: 100px auto
isn't aligning the box vertically too?myApp.service('myLocation',['$resource',function('$resource'){
this.getLocation = function(city){
var location = $resource("http://ipinfo.io",
{ callback: "JSON_CALLBACK" },
{ get: { method: "JSONP" }});
return location.get({city: city })
}
}]);
ctataru sends brownie points to @khaduch :sparkles: :thumbsup: :sparkles:
:star2: 1293 | @khaduch |http://www.freecodecamp.com/khaduch
karolinakluz sends brownie points to @ctataru :sparkles: :thumbsup: :sparkles:
:cookie: 323 | @ctataru |http://www.freecodecamp.com/ctataru
ctataru sends brownie points to @karolinakluz :sparkles: :thumbsup: :sparkles:
:cookie: 125 | @karolinakluz |http://www.freecodecamp.com/karolinakluz
'''var api = "http://api.openweathermap.org/data/2.5/weather?q=London&units=metric&APPID=95cb066d694049e32c48e0101817e622&callback=JSON_CALLBACK";
$(document).ready(function() {
$.getJSON(api, getTemp);
});
var getTemp = function(data) {
$("#temp").text(data.main.temp);
};'''
:bulb: to format code use backticks! ``` more info
var api = "http://api.openweathermap.org/data/2.5/weather?q=London&units=metric&APPID=95cb066d694049e32c48e0101817e622&callback=JSON_CALLBACK";
$(document).ready(function() {
$.getJSON(api, getTemp);
});
var getTemp = function(data) {
$("#temp").text(data.main.temp);
};
var api = "http://api.openweathermap.org/data/2.5/weather?q=London&units=metric&APPID=95cb066d694049e32c48e0101817e622&callback=";
JSON_CALLBACK
at the end of it
jamesriall sends brownie points to @belax8 and @jdtdesigns :sparkles: :thumbsup: :sparkles:
:cookie: 398 | @belax8 |http://www.freecodecamp.com/belax8
:cookie: 460 | @jdtdesigns |http://www.freecodecamp.com/jdtdesigns
hea-hea sends brownie points to @jamesriall :sparkles: :thumbsup: :sparkles:
:cookie: 299 | @jamesriall |http://www.freecodecamp.com/jamesriall
hea-hea sends brownie points to @belax8 :sparkles: :thumbsup: :sparkles:
:cookie: 400 | @belax8 |http://www.freecodecamp.com/belax8
on this please scroll spy is not working whats wrong httpcodepeniotbuglcpenzbvzrm
<body>
tag to this <body data-spy="scroll" data-target=".navbar">
and then you need to add jquery and bootstrap.js to your pen
tbuglc sends brownie points to @belax8 :sparkles: :thumbsup: :sparkles:
:cookie: 401 | @belax8 |http://www.freecodecamp.com/belax8
tiyalla sends brownie points to @jdpunk1 :sparkles: :thumbsup: :sparkles:
:cookie: 321 | @jdpunk1 |http://www.freecodecamp.com/jdpunk1
var lat = 0;
var long = 0;
if (navigator.geolocation) {
navigator.geolocation.getCurrentPosition(function(position) {
lat = position.coords.latitude;
long = position.coords.longitude;
$("#location").html("latitude: " + lat + "<br>longitude: " + long);
});
}
console.log(lat);
console.log(long);
kevinriv sends brownie points to @belax8 :sparkles: :thumbsup: :sparkles:
:cookie: 402 | @belax8 |http://www.freecodecamp.com/belax8
kevinriv sends brownie points to @belax8 :sparkles: :thumbsup: :sparkles:
:warning: kevinriv already gave belax8 points
:warning: kevinriv already gave belax8 points
kevinriv sends brownie points to @belax8 :sparkles: :thumbsup: :sparkles:
z-index: 100;
to your CSS in your .nav
this will make sure your nav stays on top of the page.
about
konikodes sends brownie points to @belax8 :sparkles: :thumbsup: :sparkles:
:cookie: 403 | @belax8 |http://www.freecodecamp.com/belax8
kevinriv sends brownie points to @belax8 and @konikodes :sparkles: :thumbsup: :sparkles:
:warning: kevinriv already gave belax8 points
:cookie: 286 | @konikodes |http://www.freecodecamp.com/konikodes
disofu234 sends brownie points to @konikodes :sparkles: :thumbsup: :sparkles:
:cookie: 287 | @konikodes |http://www.freecodecamp.com/konikodes
belax8 sends brownie points to @konikodes :sparkles: :thumbsup: :sparkles:
:cookie: 288 | @konikodes |http://www.freecodecamp.com/konikodes
konikodes sends brownie points to @belax8 :sparkles: :thumbsup: :sparkles:
:warning: konikodes already gave belax8 points
kevinriv sends brownie points to @konikodes :sparkles: :thumbsup: :sparkles:
:warning: kevinriv already gave konikodes points
:warning: kevinriv already gave konikodes points
kevinriv sends brownie points to @konikodes and @belax8 :sparkles: :thumbsup: :sparkles:
:warning: kevinriv already gave belax8 points
roniquericketts sends brownie points to @mcorby17 :sparkles: :thumbsup: :sparkles:
:cookie: 275 | @mcorby17 |http://www.freecodecamp.com/mcorby17
kevinriv sends brownie points to @konikodes :sparkles: :thumbsup: :sparkles:
:warning: kevinriv already gave konikodes points
people twi questions, one how can i make the this divs to overlap to make the simon game, 2 how can i remove the center of the 1/4 circles so i can put the start/counter in the game
miciah123 sends brownie points to @wearenotgroot :sparkles: :thumbsup: :sparkles:
:star2: 1115 | @wearenotgroot |http://www.freecodecamp.com/wearenotgroot
navbar-right
<a href="#home">Home</a>
and you need to add a div with the ID of home
and that link will send you there
konikodes sends brownie points to @wearenotgroot :sparkles: :thumbsup: :sparkles:
:star2: 1116 | @wearenotgroot |http://www.freecodecamp.com/wearenotgroot
mtkilic sends brownie points to @konikodes and @belax8 :sparkles: :thumbsup: :sparkles:
:cookie: 289 | @konikodes |http://www.freecodecamp.com/konikodes
:cookie: 404 | @belax8 |http://www.freecodecamp.com/belax8
http://ip-api.com/json
to get coordinates, for example
katgeek sends brownie points to @coymeetsworld :sparkles: :thumbsup: :sparkles:
:star2: 1120 | @coymeetsworld |http://www.freecodecamp.com/coymeetsworld
isaacgg sends brownie points to @coymeetsworld and @konikodes :sparkles: :thumbsup: :sparkles:
:cookie: 290 | @konikodes |http://www.freecodecamp.com/konikodes
:star2: 1121 | @coymeetsworld |http://www.freecodecamp.com/coymeetsworld
var APPID = "21d131e2d9af8ec17907e9ef18a79fd2";
var temp;
var loc;
var icon;
var wind;
var humidity;
var direction;
function updateByZip(zip){
var url = "http://api.openweathermap.org/data/2.5/weather?" +
"zip = " + zip +
"&APPID =" + APPID ;
sendRequest(url);
}
function sendRequest(url){
var xmlhttp = new XMLHttpRequest();
xmlhttp.onreadystatechange = function(){
if(xmlhttp.readystatechange == 4 && xmlhttp.status == 200){
var data = JSON.parse(xmlhttp.responseText) ;
weather = {};
weather.wind = data.wind.speed;
weather.direction = data.wind.deg;
weather.loc = data.name;
weather.temp = data.main.temp;
weather.icon = data.weather[0].id;
weather.humidity=data.main.humidity;
update(weather);
}
};
xmlhttp.open("GET", url, true);
xmlhttp.send();
}
This is the function that I am using and the console says error 401:unautorized followed by the URL and then file name with line number : which is xmlhttp.send();
ngoyal100894 sends brownie points to @wearenotgroot :sparkles: :thumbsup: :sparkles:
:star2: 1119 | @wearenotgroot |http://www.freecodecamp.com/wearenotgroot
Hello there!
I’m currently working on my portfolio page and I’m trying to add a dropdown nav button to it. I’ve messed around with the code for a little while, but I can’t seem to get why the dropdown menu won’t actually pop up. I can get the list of buttons to appear on their own, and the dropdown button itself, but it does nothing when I click it. I was wondering if anyone knew how I could get it to work?
<nav>
<div class="container-fluid" id="myNav">
<ul class="nav nav-pills pull-right">
<!-- Dropdown Button -->
<li role="presentation" class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false">
<i class="fa fa-list fa-2x" aria-hidden="true"></i>
</a>
<!-- Buttons Inside -->
<ul class="dropdown-menu">
<li><a href="#aboutTitle">Who Am I?</a></li>
<li><a href="#">What Do I Know?</a></li>
<li><a href="#">What Have I Done?</a></li>
<li><a href="#">How To Reach Me</a></li>
</ul>
</li>
</ul>
</div>
</nav>
syntaxerrorless sends brownie points to @mutantspore and @dhcodes :sparkles: :thumbsup: :sparkles:
:star2: 1728 | @mutantspore |http://www.freecodecamp.com/mutantspore
:cookie: 987 | @dhcodes |http://www.freecodecamp.com/dhcodes
a{
color:orange;
}
a:hover
{
text-decoration:none;
}
meetmangukiya sends brownie points to @wearenotgroot :sparkles: :thumbsup: :sparkles:
:star2: 1121 | @wearenotgroot |http://www.freecodecamp.com/wearenotgroot
<div class="row">
<h1 class="col-md-4"></h1>
<nav class="col-md-8">
<a href=# class="col-md-4">{Placeholder}</a>
<a href=# class="col-md-4">{Placeholder}</a>
<a href=# class="col-md-4">{Placeholder}</a>
</nav>
</div>
h1
and the height of nav are different, how do we fix it?
class="row"
inside the header tag which I wrapped around the h1 and nav
jarenescueta731 sends brownie points to @jdpunk1 and @khaduch :sparkles: :thumbsup: :sparkles:
:cookie: 323 | @jdpunk1 |http://www.freecodecamp.com/jdpunk1
:star2: 1294 | @khaduch |http://www.freecodecamp.com/khaduch
a{
padding: 10% 0 10% 0;
}
$(document).ready(function() {
if (navigator.geolocation) {
navigator.geolocation.getCurrentPosition(function(position) {
lat = position.coords.latitude;
lon = position.coords.longitude;
var api = 'http://api.openweathermap.org/data/2.5/weather?lat='+lat+'&lon='+lon+'&appid=2e79b0a46ce5ad9212eed4ea9f4cd8d6';
$.getJSON(api, function(json) {
$('#data').html('Lat:' + lat +'<br>Lon:'+ lon);
alert(json.coord.long);
});
});
}
});
punchymango sends brownie points to @dhcodes :sparkles: :thumbsup: :sparkles:
:cookie: 990 | @dhcodes |http://www.freecodecamp.com/dhcodes
$.getJSON('https://api.twitch.tv/kraken/channels/'+members[i], function(data2) {
if (data2.game==null || data2.game=='Creative' || data2.game=='Programming'){ body2.append(data2.display_name.link(data2.url)+ "is not currently streaming" + "<br>");
}
else
body2.append(data2.display_name.link(data2.url)+ "is currently streaming" + data2.game + "<br>");
}
)}
roniquericketts sends brownie points to @dhcodes :sparkles: :thumbsup: :sparkles:
:cookie: 991 | @dhcodes |http://www.freecodecamp.com/dhcodes
$.getJSON('https://api.twitch.tv/kraken/streams/'+members[i], function(data) {
if(data.stream !== null)
{
}
if (data.stream!==null) {
body.append("<br>" + data.stream.channel.display_name.link("https://www.twitch.tv/"+ data.stream.channel.display_name)+"is currently streaming" + data.stream.game + "on Twitchtv." +"<br>");
}
else
body.append("<br>" + data.stream.channel.display_name.link("https://www.twitch.tv/"+ data.stream.channel.display_name)+"is not currently streaming");
}
data.stream.channel
:cookie: 992 | @dhcodes |http://www.freecodecamp.com/dhcodes
narendro sends brownie points to @dhcodes :sparkles: :thumbsup: :sparkles:
gphalen sends brownie points to @wearenotgroot :sparkles: :thumbsup: :sparkles:
:star2: 1124 | @wearenotgroot |http://www.freecodecamp.com/wearenotgroot
punchymango sends brownie points to @wearenotgroot :sparkles: :thumbsup: :sparkles:
:star2: 1125 | @wearenotgroot |http://www.freecodecamp.com/wearenotgroot
#nav {
height: 50px;
}
#nav nav a {
padding-top: 15px;
padding-bottom: 15px;
}
@meetmangukiya
meetmangukiya sends brownie points to @dhcodes :sparkles: :thumbsup: :sparkles:
:cookie: 993 | @dhcodes |http://www.freecodecamp.com/dhcodes
narendro sends brownie points to @dhcodes :sparkles: :thumbsup: :sparkles:
:warning: narendro already gave dhcodes points
:warning: roniquericketts already gave dhcodes points
roniquericketts sends brownie points to @dhcodes :sparkles: :thumbsup: :sparkles:
:cookie: 994 | @dhcodes |http://www.freecodecamp.com/dhcodes
katgeek sends brownie points to @dhcodes :sparkles: :thumbsup: :sparkles:
&callback=?
into your URL
var apiURL = "https://en.wikipedia.org/w/api.php?callback=?action=query&format=json&list=search&srsearch="+topicURI;
var apiURL = "https://en.wikipedia.org/w/api.php?callback=?&action=query&format=json&list=search&srsearch="+topicURI;
&callback=?
whenever i want to use the JSON data for a function?
:star2: 1729 | @mutantspore |http://www.freecodecamp.com/mutantspore
jarenescueta731 sends brownie points to @mutantspore :sparkles: :thumbsup: :sparkles:
{"coord":{"lon":-75.95,"lat":42.18},"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01d"}],"base":"cmc stations","main":{"temp":293.62,"pressure":9646,"humidity":35,"temp_min":292.59,"temp_max":294.55},"wind":{"speed":3.04,"deg":320.006},"clouds":{"all":0},"dt":1465588639,"sys":{"type":3,"id":190084,"message":0.0034,"country":"US","sunrise":1465550830,"sunset":1465605608},"id":5128515,"name":"New Ireland","cod":200}
mcorby17 sends brownie points to @belax8 :sparkles: :thumbsup: :sparkles:
:cookie: 405 | @belax8 |http://www.freecodecamp.com/belax8
data.weather[0].description
:star2: 1127 | @wearenotgroot |http://www.freecodecamp.com/wearenotgroot
mcorby17 sends brownie points to @wearenotgroot :sparkles: :thumbsup: :sparkles:
tuliodnw sends brownie points to @jdtdesigns :sparkles: :thumbsup: :sparkles:
:cookie: 461 | @jdtdesigns |http://www.freecodecamp.com/jdtdesigns
pramodvspk sends brownie points to @wearenotgroot :sparkles: :thumbsup: :sparkles:
:star2: 1128 | @wearenotgroot |http://www.freecodecamp.com/wearenotgroot