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
@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 ’ 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 :(
Gulsvi
@gulsvi
pseudocode would be:
  function getNewQuote() {
    // getJSON to get the quote

    if (quote.length > 140) {
      getNewQuote();
      return;
    }
  }
vínαч puppαl
@vinaypuppal
@pvale94 :worried: , np anyway it got solved :smile:
Pedro
@pvale94
@SkyCoder01 ooh
ill try it
@vinaypuppal yeah \o/
Gulsvi
@gulsvi
You're making me want to do that now lol, I just tweet it out without worrying about the length
Jaime
@jmasked
Can someone help me with animating my progress bars with jQuery? http://codepen.io/jmasked/pen/RKYXNG
joopt
@joopt
can anyone help me
[Object {
  description: "broken clouds",
  icon: "04n",
  id: 803,
  main: "Clouds"
}]
trying to add the icon property
i do data.weather and it gives me that but if i do data.weather.icon it gives me undefined
Tyler Moeller
@TylerMoeller

@jmasked Here's one way, using your last progress bar as an example. Change your initial width to 0% in your HTML:

  <div class="progress-bar3" role="progressbar" aria-valuenow="0"
  aria-valuemin="0" aria-valuemax="100" style="width:0%">
    85%
  </div>

Add a transition to your CSS:

.progress-bar3 {
  background-color: #d0157b;
  transition: width 2s;
}

And then change the width on document.ready:

$(document).ready(function() {
  $('.progress-bar3').css('width', '85%')
});
@joopt As a hint, data.weather is an array []
Jaime
@jmasked
@TylerMoeller Thank you! Going to try that now
CamperBot
@camperbot
:star2: 1473 | @tylermoeller |http://www.freecodecamp.com/tylermoeller
jmasked sends brownie points to @tylermoeller :sparkles: :thumbsup: :sparkles:
Jean Marco Romero
@volkranium
why is my menu dropping over my navbar when on narrow vp? http://pastebin.com/DZKnQuXG
Sam Griffen
@ssgriffen
PLEASE can anyone tell me why my embedded pens arent working on mobile browsers? http://codepen.io/ssgriffen/pen/yJKRxj
@TylerMoeller calling you out for help
Tyler Moeller
@TylerMoeller
@ssgriffen What do you mean by not working? I can take a closer look when I finish looking at volkranium's navbar
Sam Griffen
@ssgriffen
@TylerMoeller thanks
CamperBot
@camperbot
ssgriffen sends brownie points to @tylermoeller :sparkles: :thumbsup: :sparkles:
:star2: 1474 | @tylermoeller |http://www.freecodecamp.com/tylermoeller
Sam Griffen
@ssgriffen
@TylerMoeller Basically on desktop everything checks out good.
@TylerMoeller On mobile the pens appear and stuff but if you click on any of them instead of loading the pen you get thrown to the top of the screen as if its a link to the top of the page...