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
Anas Abdennaim
@Aka-Dev
@ahmed-issa-mohd set height body to 100vh and class content to 80% that will work
@ahmed-issa-mohd body {height: 100vh} .content{min-height: 80%}
@ingundela you're welcome
habibaatify
@habibatify_twitter
how can add a image in freecodepen?
from google drive
Aditya
@ezioda004
Yes, google drive, dropbox, one drive would work
Sweet Coding :)
@SweetCodingInc
@ezioda004 :wave:
How's C going on?
habibaatify
@habibatify_twitter
i pest the image link but it not working
Aditya
@ezioda004
@SweetCodingInc Hey :wave:
Sweet Coding :)
@SweetCodingInc
pest :laughing:
@habibatify_twitter it is publicly accessible?
habibaatify
@habibatify_twitter
no
Aditya
@ezioda004
I started reading books along CS50 so far very fascinating and eye opening to say the least :D
Sweet Coding :)
@SweetCodingInc
try pasting that url in browser and see if you see the image @habibatify_twitter
Aditya
@ezioda004
And frustrating too
Sweet Coding :)
@SweetCodingInc
@ezioda004 :+1:
Yeah.. It can get a bit intimidating in the beginning, but once you get hold of it, it's a smooth cruise..
Aditya
@ezioda004
Hoping to get there fast but dont wanna rush
Sweet Coding :)
@SweetCodingInc
Yes.. No rush.. Do it right
You don't wanna end up like millions of mediocre programmers, do you?
Aditya
@ezioda004
@SweetCodingInc No...well I hope not lol, thanks for the advice :) appreciate it
CamperBot
@camperbot
ezioda004 sends brownie points to @sweetcodinginc :sparkles: :thumbsup: :sparkles:
:cookie: 330 | @sweetcodinginc |http://www.freecodecamp.org/sweetcodinginc
Frank Bono
@frankbono
Hi, I can't see where I am making a mistake here. I built this using Atom editor and not on Code pen. The app works and it makes AJAX calls perfectly to the Open Weather API when I run it on my computer but when I upload the exact same code to Codepen, I get nothing but errors. Can someone help me please
Matej Bošnjak
@mbosnjak01
let's see this puppy
found your issue
Frank Bono
@frankbono
Nice!
Matej Bošnjak
@mbosnjak01
i think, sec
Stephen James
@sjames1958gm
You cannot use http on codepen
Matej Bošnjak
@mbosnjak01
yep, was about to say that
Stephen James
@sjames1958gm
You cannot usehttp from a https site
You can use the fcc provide proxy to open weather which is https
Frank Bono
@frankbono
Do I just my API url to Https ?
Matej Bošnjak
@mbosnjak01
yes
Frank Bono
@frankbono
ok
Matej Bošnjak
@mbosnjak01
it works for me now
nice
Frank Bono
@frankbono
perfect, thank you guys! @sjames1958gm & @mbosnjak01 I appreciate the help!
CamperBot
@camperbot
frankbono sends brownie points to @sjames1958gm and @mbosnjak01 :sparkles: :thumbsup: :sparkles:
:cookie: 243 | @mbosnjak01 |http://www.freecodecamp.org/mbosnjak01
:star2: 9055 | @sjames1958gm |http://www.freecodecamp.org/sjames1958gm
Stephen James
@sjames1958gm
No problem
Matej Bošnjak
@mbosnjak01
@frankbono all http links change to https
Bin Gao
@gaobin1019
Good Sunday morning
Stephen James
@sjames1958gm
@gaobin1019 morning
James Bream
@JamesBream

Anyone any good at ES6?

  var $image = $("img[uid='1']");
  var $dlImage = $('<img>');

  $dlImage.on('load', function() {
    $image.attr('src', $(this).attr('src'));
  });

This works fine, but when I try to use an arrow function, this no longer refers to $dlImage, i.e.

  $dlImage.on('load', () => {
    $image.attr('src', $(this).attr('src'));
  });

Any ideas?

Stephen James
@sjames1958gm
@JamesBream arrow functions do not have a this context
That is they adopt the context from outside themselves
James Bream
@JamesBream
@sjames1958gm Ah, got it! Thanks!