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
Dan
@MindWhys
@vinaypuppal It doesn't seem to though...it is sending a JSON object as normal...even for users I know don't exist
vínαч puppαl
@vinaypuppal
@MindWhys what you see inside that object?? Can you open this link in browser and check https://api.twitch.tv/kraken/channels/comster404 you should see an error object with status 404
Dan
@MindWhys
I'm not using that link...I'm using this one:
https://wind-bow.gomix.me/twitch-api/streams/comster404
themixedcoder
@themixedcoder

<script>
$(document).ready(function() {
$("#target1").css("color", "red");
$("target4").html("<em></em>")

});
</script>

<div class="container-fluid">

<h3 class="text-primary text-center">jQuery Playground</h3>

<div class="row">

<div class="col-xs-6">

<h4>#left-well</h4>

<div class="well" id="left-well">

<button class="btn btn-default target" id="target1">#target1</button>

<button class="btn btn-default target" id="target2">#target2</button>

<button class="btn btn-default target" id="target3">#target3</button>
</div>
</div>

<div class="col-xs-6">

<h4>#right-well</h4>

<div class="well" id="right-well">

<button class="btn btn-default target" id="target4">#target4</button>
Emphasize the text in your target4 button by adding HTML tags.
Make sure the text is otherwise unchanged.
Do not alter any other text.
Make sure you are using .html() and not .text().
Make sure to select button id="target4" with jQuery

vínαч puppαl
@vinaypuppal
@MindWhys you should see this(Pretty Printed)
{
error: "Bad Request",
status: 400,
message: "No client id specified"
}
Dan
@MindWhys
@vinaypuppal I see that one with the one you posted but not the one I am using
If I use the one you posted it doesn't send an API for any of them
vínαч puppαl
@vinaypuppal
@MindWhys oh you need to use both API URL, one for fetching stream data and other for fetching user data
Dan
@MindWhys
how do I make your one work?
as you can see the link has the same error message of all links...even ones that should work like freecodecamp
vínαч puppαl
@vinaypuppal
@MindWhys oh i totally missed the point wait i will explain
@MindWhys I hope you are using https://wind-bow.gomix.me/
So for fetaching stream data use https://wind-bow.gomix.me/twitch-api/streams/freecodecamp
If stream is not null then u see only few user data(like name, and, stream info...) inside stream object
if stream is null then you have to make another req to https://wind-bow.gomix.me/twitch-api/users/freecodecamp
to get user details.
rarevalo92
@rarevalo92
Hi Everyone. I just started FCC a couple days ago and I have hit my first road block when tasked with my Portfolio webpage. If anyone can please assist me. I have some questions.
vínαч puppαl
@vinaypuppal
@MindWhys and for non existing users use /users/ endpoint https://wind-bow.gomix.me/twitch-api/users/comster404
so u will get User "comster404" is unavailable message
themixedcoder
@themixedcoder

<script>
$(document).ready(function() {
$("#target1").css("color", "red");
$("target4").html"<em>#target4</em>");

});
</script> <button class="btn btn-default target" id="target4">#target4</button> Emphasize the text in your target4 button by adding HTML tags.
Make sure the text is otherwise unchanged.
Do not alter any other text.
Make sure you are using .html() and not .text().
Make sure to select button id="target4" with jQuery.

Dan
@MindWhys
@vinaypuppal ahhh, so you need to separate online from not online first...then separate not online from doesn't exist
vínαч puppαl
@vinaypuppal
@MindWhys yes thats what i did and in all cases I used /users endpoint also to get logo and and bio info to show in UI more differently than FCC example.
Dan
@MindWhys
great :) Thank you. It's too late for me to try that now but I will get that done when I next have time. All the best :)
@vinaypuppal thanks
vínαч puppαl
@vinaypuppal
@MindWhys :+1:
mustimuu
@mustimuu
hey guys
how can it be text-center works for my image
but center-block doesent?
Gulsvi
@gulsvi
@mustimuu probably because you are using bootstrap4 and the center-block class doesn't exist in bootstrap4
Instead of center-block, use mx-auto d-block
Paul DiLoreto
@paulmichaelxd
@mustimuu Not sure if this applies, but also you have to apply center-block to the img itself, as opposed to its parent div. Whereas with text-center you usually put that within the element containing any text.
Jean Marco Romero
@volkranium
why does DOCTYPE declaration makes background photo dissapear?
Pedro
@pvale94
erm
im having trouble while passing the text for twitter
it shows for sharing: "Standards are like sex; one mistake, and you&#8217;re stuck supporting it forever! " Mark Pilgrim instead of "Standards are like sex; one mistake, and you’re stuck supporting it forever!"
im getting problems with the encoding
and here is the part of the code that I am using:
$('#tweet-quote').attr('href', 'https://twitter.com/intent/tweet?text=' + encodeURIComponent('"' + text + '" ' + author));
vínαч puppαl
@vinaypuppal
@pvale94 may be try this
$('#tweet-quote').attr('href', 'https://twitter.com/share/?text=' + encodeURIComponent('"'  +  text  +  '"  '  + author));
Pedro
@pvale94
It didn't work :(
vínαч puppαl
@vinaypuppal
@pvale94 i updated URL in my previous reply, and this seems working for me
$('#tweet-quote').attr('href', 'https://twitter.com/share/?text=' + encodeURIComponent('"'  +  text  +  '"  '  + author));
Gulsvi
@gulsvi
@pvale94 Did you use target="_blank" on your tweet-quote HTML?
vínαч puppαl
@vinaypuppal
@pvale94 passing hello; and authorname as text to 'https://twitter.com/share/?text=' + encodeURIComponent('"' + 'hello;' + '" ' + 'author name') would evaluate to https://twitter.com/share/?text=%22hello%3B%22%20%20authorname
@SkyCoder01 yeah
Gulsvi
@gulsvi
@pvale94 Good, it should work better now
You may just want to change it to grab your $('#quote').text() instead though, I think that does some encoding on it
Or, escaping, I mean - so you don't get character codes for smart quotes, for example
vínαч puppαl
@vinaypuppal
@pvale94 oh dont worry about &#8217; its just hex value of ' it would be tweeted as ' in tweet so no need to worry
Pedro
@pvale94
@vinaypuppal it tweets the hex value
vínαч puppαl
@vinaypuppal
@pvale94 oh :worried:
@pvale94 then no idea why its happening, may be someone else can help
Gulsvi
@gulsvi
@pvale94
    if (($('#quote').text().length) > 140) {
      $("#tweet-quote").hide();
    } else {
      $("#tweet-quote").show();
      $('#tweet-quote').attr('href', 'https://twitter.com/intent/tweet?text=' + encodeURIComponent($('#quote').text()));
    }
Matt K
@MattKim22
Can someone take a look at my pen and see if there's an alternative way to make this quote machine better, or more concise without using an API? http://codepen.io/MattKim22/pen/LxeNPp
any feedback would be appreciated