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
vínαч puppαl
@vinaypuppal
@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
Pedro
@pvale94
@SkyCoder01 Oh! I see what you did. It worked! \o/
thanks m8 :b
Now I have to figure out how to get only small quotes. It's not nice to hide/show button based on quotes lengths :\
vínαч puppαl
@vinaypuppal
@pvale94 did ' converted to ' again in tweet ?? what did i miss in my answer
Pedro
@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())); }
this
ops
 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()));
    }
^
Gulsvi
@gulsvi
@pvale94 You would have to put your getJSON in its own function and call that function again if the quote is longer than 140
vínαч puppαl
@vinaypuppal
@pvale94 i though you were passing text variable which contains quote. Here text replaced by $('#quote').text(). Did u not pull quote in to text variable. like ??
var text = $('#quote').text()
Pedro
@pvale94
nope :(