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
Thomas Tylek
@zippkidd
^that would remove your first <li> of the <ol id="listID">
I need the delete to work, and the way I have it currently reloading the page doesn't seem like a good fix
Thomas Tylek
@zippkidd
Hmm I'm not experienced in angular but I'll take a look
br3ntor
@br3ntor
What happened to the main fcc gitter chat room? /freecodecamp
just me? or did it go away?
Thomas Tylek
@zippkidd
@matthewlee07 where is your deleteGame() function located?
Hmm actually I found it..
@matthewlee07 , I'm sorry I don't know if I'll be able to help. I've never used angular before
bilaal-s
@bilaal-s
who is good with grid
css grid that is
Thomas Tylek
@zippkidd
@bilaal-s what do you need help with?
Try http://cssgridgarden.com/ for a nice interactive grid tutorial
From the same great author, http://flexboxfroggy.com/ is a cool flex tutorial
Tom
@moT01
@br3ntor it got removed
can anyone tell me what I am doing wronge?
Abhilash Kumar
@apravink
@g4m3rm1k3 What are you trying to do?
Michael
@g4m3rm1k3
its supposed to alert when you clik in the area and when you click out
its like its looping
Boo Far
@vapidlyrapid
hello. I was wondering how to size an element based on its background image's native size/resolution
Tom
@moT01
@vapidlyrapid you want your element to be the same size as an image?
Boo Far
@vapidlyrapid
@moT01 yes
Abhilash Kumar
@apravink
@g4m3rm1k3 It loops because the DOM refreshes when you exit out of the alert box
Tom
@moT01
could you set the size with css width and height
Abhilash Kumar
@apravink
Try console.log instead
Tom
@moT01
to the size of the picture
Michael
@g4m3rm1k3
the video I am following doesn't have that problem
Boo Far
@vapidlyrapid
@moT01 yeah. I thought there would be more of an 'automatic' process like using background-size available
but it looks like I'm going to have to hardcode it using widht and height
Tom
@moT01
but i dont think those would set the size of the element
just the size of the background image
so some would get cut off if the element isnt big enough
Thomas Tylek
@zippkidd
@g4m3rm1k3 scripts go in between the <body></body> tags of your html
also, don't call a function during the on focus event, especially an alert, you create an infinite loop because the element stays focused and alert pauses any functionality
everytime the alert is closed it is just opened again because the on focus event fires the function with alert again
Tom
@moT01
scripts dont have to go in the body tags
Michael
@g4m3rm1k3
@zippkidd Thanks I think he got it in the video he just stopped the page from sending messages so thats a little frustrating but I am learning so whatever
CamperBot
@camperbot
g4m3rm1k3 sends brownie points to @zippkidd :sparkles: :thumbsup: :sparkles:
api offline
Thomas Tylek
@zippkidd
@moT01 but they probably should. from stack overflow: "The problem with writing scripts at the head of a page is blocking. The browser must stop processing the page until the script is download, parsed and executed. The reason for this is pretty clear, these scripts might insert more into the page changing the result of the rendering, they also may remove things that dont need to be rendered, etc. "
@g4m3rm1k3 you're doing fine. The important thing is you're learning! Good for you!
Tom
@moT01
what happens if you want a script loaded before the rest of the stuff
Michael
@g4m3rm1k3
is there like an onload function?
Tom
@moT01
@g4m3rm1k3 yes
Thomas Tylek
@zippkidd
@moT01 in that case you load in the script at that specific point, and no sooner. Obviously this is a flexible rule and if there is a case where you need to load the script before the </body> then you would do that
It's just generally considered good practice to load mostly all scripts right before </body>
TonyRednil
@TonyRednil
Can the .replace function be called on a number in an array?