<style>
.red-text {
color: red;
}
</style>
<h2 class="red-text">CatPhotoApp</h2>
<p class="red-text">Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.</p>
<elementTagName>text inside element</elementTageName>
Can anyone find why some of the code isn't running on the Pomodoro Clock?
https://codepen.io/CameronBurkholder/pen/jrrXzZ?editors=0010
Hey everyone. I have just finished the local weather app. It identifies the user's location and shows the weather for that location. Can you guys run it and let me know what it shows? I can obviously only run it from my current location to test it. Thanks!
<style>
.red-text {
color: red;
}
</style>
Can anyone look at this and figure out why the timer and break functions aren't running?
https://codepen.io/CameronBurkholder/pen/jrrXzZ?editors=1010
amitp88 sends brownie points to @kirbyedy :sparkles: :thumbsup: :sparkles:
:star2: 1399 | @kirbyedy |http://www.freecodecamp.com/kirbyedy
honesty1997 sends brownie points to @sjames1958gm :sparkles: :thumbsup: :sparkles:
:star2: 3396 | @sjames1958gm |http://www.freecodecamp.com/sjames1958gm
intrnt-sud-b-free sends brownie points to @richa-coder :sparkles: :thumbsup: :sparkles:
:warning: could not find receiver for richa-coder
intrnt-sud-b-free sends brownie points to @richa-coder :sparkles: :thumbsup: :sparkles:
:cookie: 2 | @richa-coder |http://www.freecodecamp.com/richa-coder
can any one help me to convert the below array of JSON
[{"day1":10,"day2":154,"day3":24,"day4":48,"day5":154,"day6":48,"day7":154,"name":"Packet"}],
[{"day1":10,"day2":154,"day3":24,"day4":48,"day5":154,"day6":48,"day7":154,"name":"car"}],
]
into
{"name":"Packet","date":"Day1","value":10},
{"name":"Packet","date":"Day2","value":154},
{"name":"Packet","date":"Day3","value":24},
{"name":"Packet","date":"Day4","value":48},
{"name":"Packet","date":"Day5","value":154},
{"name":"Packet","date":"Day6","value":48},
{"name":"Packet","date":"Day7","value":154},
{"name":"car","date":"Day1","value":10},
{"name":"car","date":"Day2","value":154},
{"name":"car","date":"Day3","value":24},
{"name":"car","date":"Day4","value":48},
{"name":"car","date":"Day5","value":154},
{"name":"car","date":"Day6","value":48},
{"name":"car","date":"Day7","value":154},
]
@
and their name, and say "thanks"
khaduch sends brownie points to @grantknaver :sparkles: :thumbsup: :sparkles:
:warning: could not find receiver for grantknaver
Hello i have problem with Build a Random Quote Machine and post on twitter.
'''function randomQuote(){
$.getJSON( "https://api.icndb.com/jokes/random", function( json ) {
var item = "";
$.each( json, function(key, val) {
item = val.joke;
});
$("#text").html(item);
$("#twitter").attr("data-text", item);
});
}
$(document).ready(function() {
randomQuote();
$('#newQuote').on('click', randomQuote);
var item = ""
$('#twitter').click(function (e) {
var twtLink = 'http://twitter.com/home?status=' +encodeURIComponent(item);
window.open(twtLink,'_blank');
});
});
'''
My code take random joke about Chuck Norris and i dont know how to post it on twitter. Please help me
Hello i have problem with Build a Random Quote Machine and post on twitter.
'''function randomQuote(){
$.getJSON( "https://api.icndb.com/jokes/random", function( json ) {
var item = "";
$.each( json, function(key, val) {
item = val.joke;
});
$("#text").html(item);
$("#twitter").attr("data-text", item);
});
}
$(document).ready(function() {
randomQuote();
$('#newQuote').on('click', randomQuote);
var item = ""
$('#twitter').click(function (e) {
var twtLink = 'http://twitter.com/home?status=' +encodeURIComponent(item);
window.open(twtLink,'_blank');
});
});
'''
My code take random joke about Chuck Norris and i dont know how to post it on twitter. Please help me
zeddyouj sends brownie points to @glgirl28 :sparkles: :thumbsup: :sparkles:
:cookie: 341 | @glgirl28 |http://www.freecodecamp.com/glgirl28
width: 100%
along with text-align: center
on that div ??
bomholt sends brownie points to @vinaypuppal and @sorinr :sparkles: :thumbsup: :sparkles:
:cookie: 555 | @vinaypuppal |http://www.freecodecamp.com/vinaypuppal
:cookie: 718 | @sorinr |http://www.freecodecamp.com/sorinr
Hello i have problem with Build a Random Quote Machine and post on twitter.
'''function randomQuote(){
$.getJSON( "https://api.icndb.com/jokes/random", function( json ) {
var item = "";
$.each( json, function(key, val) {
item = val.joke;
});
$("#text").html(item);
$("#twitter").attr("data-text", item);
});
}
$(document).ready(function() {
randomQuote();
$('#newQuote').on('click', randomQuote);
var item = ""
$('#twitter').click(function (e) {
var twtLink = 'http://twitter.com/home?status=' +encodeURIComponent(item);
window.open(twtLink,'_blank');
});
});
'''
My code take random joke about Chuck Norris and i dont know how to post it on twitter. Please help me
bomholt sends brownie points to @vinaypuppal :sparkles: :thumbsup: :sparkles:
:warning: bomholt already gave vinaypuppal points
http://twitter.com/share?text=encodeURIComponent(your quote and author)
'http://twitter.com/home?status=' +encodeURIComponent(item);
dropbox
and use those URLs or use cloud service like http://cloudinary.com
@kirbyedy oh but in my browser i see
Service Unavailable
The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.
@marcinkluska try this it will work
@marcinkluska use this URL
http://twitter.com/share?text=encodeURIComponent(your quote and author)
instead of'http://twitter.com/home?status=' +encodeURIComponent(item);
var twtLink = 'http://twitter.com/share?text=' +encodeURIComponent(item);
@marcinkluska so did it work becoz i cant test as i am not able load quotes
if it does not work try below one as @gordoh suggested
"https://twitter.com/intent/tweet?text=" <---This link might work better for your tweet button
$("#tweet").on("click", function() {
window.open("http://twitter.com/home/?status=" + $("#quote").text());
});
this is an example code that works for me
item
variablevar item;
at top of your all codemarcinkluska sends brownie points to @vinaypuppal :sparkles: :thumbsup: :sparkles:
:cookie: 556 | @vinaypuppal |http://www.freecodecamp.com/vinaypuppal
romualdast sends brownie points to @jluboff :sparkles: :thumbsup: :sparkles:
:cookie: 372 | @jluboff |http://www.freecodecamp.com/jluboff
romualdast sends brownie points to @jluboff :sparkles: :thumbsup: :sparkles:
:warning: romualdast already gave jluboff points
n1ckl3 sends brownie points to @glgirl28 :sparkles: :thumbsup: :sparkles:
:cookie: 342 | @glgirl28 |http://www.freecodecamp.com/glgirl28
nabzster sends brownie points to @jluboff :sparkles: :thumbsup: :sparkles:
:cookie: 374 | @jluboff |http://www.freecodecamp.com/jluboff
Its more about work flow..
How often do front end designers code html/css without using any framework but build everything from scratch..
I use it in my codeine projects. Its awesome!
<p>Cats</p>
<ul>
<li> <!— First level li —>
Domestic
<ul> <!— second level li —>
<li>Short-hair</li>
<li>Medium-hair</li>
<li>Long-hair</li>
</ul>
</li>
</ul>
n1ckl3 sends brownie points to @steveamaki :sparkles: :thumbsup: :sparkles:
:cookie: 184 | @steveamaki |http://www.freecodecamp.com/steveamaki
steveamaki sends brownie points to @jluboff :sparkles: :thumbsup: :sparkles:
:cookie: 375 | @jluboff |http://www.freecodecamp.com/jluboff
@N1CKL3 this CSS is causing that issue
.bullets {
padding: 5em;
}
if you want some spacing you could try
.bullets {
padding: 30px;
}
n1ckl3 sends brownie points to @vinaypuppal :sparkles: :thumbsup: :sparkles:
:cookie: 557 | @vinaypuppal |http://www.freecodecamp.com/vinaypuppal
li
tag on line 80
you can remove it and some div
tags are not closed properly , you can find them easily since codepen is highlighting them.
n1ckl3 sends brownie points to @vinaypuppal :sparkles: :thumbsup: :sparkles:
:warning: n1ckl3 already gave vinaypuppal points
Hey having an issue with the Twitch.TV Viewer:
tempUserInfo.streaming = (data.stream !== null);
if (tempUserInfo.streaming) {
tempUserInfo.viewers = data.stream[0].viewers;
tempUserInfo.preview = data.stream[0].preview.large;
}
Getting error on the data.stream[0].viewers
. I have also tried it without the [0]
console.log(data)
and you'll see errors in your console like this:Object {
error: "Bad Request",
message: "No client id specified",
status: 400
}
amidzicigor sends brownie points to @harry97 :sparkles: :thumbsup: :sparkles:
:cookie: 252 | @harry97 |http://www.freecodecamp.com/harry97
var Hello = React.createClass({
displayName: 'Hello',
statics: {
alertMessage: function () {
alert('static message');
}
},
alertMessage: function () {
alert(this.props.name);
},
render: function () {
return React.createElement("div", null, "Hello ", this.props.name);
}
});
var HelloElement = React.createElement(Hello, {
name: "World"
});
:cookie: 598 | @jdtdesigns |http://www.freecodecamp.com/jdtdesigns
harry97 sends brownie points to @jdtdesigns :sparkles: :thumbsup: :sparkles:
href = 'https://twitter.com/intent/tweet?text='+quote
@sayrah901 try this
var quote = "";
$(document).ready(function() {
$("#btnNewQuote").on("click", function() {
// Only change code below this line.
/*$.getJSON("https://crossorigin.me/http://quotes.rest/quote.json", function(json){
$(".message").html(json);
});*/
$.ajax({
url: ' https://crossorigin.me/http://api.forismatic.com/api/1.0/?method=getQuote&format=jsonp&lang=en&jsonp=?',
dataType: 'json',
type: 'get',
cache: false,
success: function(data) {
/* var items = [];
$.each(data, function (key, val){
items.push(Object.keys(data));
}); */
quote = data.quoteText;
$("#randomQuote").html(data.quoteText);
$("#quoteAuthor").html(data.quoteAuthor);
// $("randomQuote").inner
//});
//randomQuote.innerHTML = randomQuote.html(data.quoteText);
$("#tweet").empty(); //<--------remove child, previous button
twttr.widgets.createShareButton(
"https://codepen.io/sayrah901/pen/ozjamg",
document.getElementById("tweet"), {
size: "large",
via: "Sparkles901",
related: "twitterapi,twitter",
text: quote,
hashtags: "quote"
}
);
},
});
});
});
and on html
<body>
<div class="container text-center spacing milk-body">
<h3 class="text-center yellowColor"> Random Quote</h3>
<div class="well">
<div id="randomQuote" class=" message text-center">The text goes here
</div>
<div id="quoteAuthor" class="text-right">
</div>
</div>
<div class="row">
</div>
<div class="col-md-1">
<div id="tweet" class="col-md-1">
<a class="twitter-share-button" href='https://twitter.com/intent/tweet?text='>
Tweet</a>
</div>
</div>
<div class="col-md-1">
<button id="btnNewQuote" class="btn yellowColor"> New Quote</button>
</div>
</div>
</div>
</div>
</body>
<script async src="//platform.twitter.com/widgets.js" charset="utf-8"></script>
sayrah901 sends brownie points to @wearenotgroot :sparkles: :thumbsup: :sparkles:
:star2: 1784 | @wearenotgroot |http://www.freecodecamp.com/wearenotgroot
baby007mix sends brownie points to @soccer99 :sparkles: :thumbsup: :sparkles:
:cookie: 78 | @soccer99 |http://www.freecodecamp.com/soccer99