by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • May 14 22:38
    @bjorno43 banned @minitechtips_twitter
  • May 14 22:37
    @bjorno43 banned @real-action
  • Feb 01 00:26
    @bjorno43 banned @Ndoua
  • Jan 07 03:10
    @bjorno43 banned @doctor-sam
  • Aug 17 2019 09:33
    User @bjorno43 unbanned @linkin-park
  • Jun 20 2019 21:19
    @bjorno43 banned @shenerd140
  • May 10 2019 09:13
    @bjorno43 banned @zhaokunhaoa
  • Apr 27 2019 19:46
    @mstellaluna banned @zhonghuacx
  • Apr 25 2019 17:12
    @mstellaluna banned @cmal
  • Apr 01 2019 18:11
    thecodingaviator labeled #31179
  • Apr 01 2019 18:11
    thecodingaviator labeled #31179
  • Apr 01 2019 18:09
    thecodingaviator commented #31179
  • Apr 01 2019 18:09
    thecodingaviator labeled #31182
  • Apr 01 2019 18:09
    thecodingaviator labeled #31182
  • Apr 01 2019 18:07
    thecodingaviator commented #31182
  • Apr 01 2019 18:07
    thecodingaviator labeled #31190
  • Apr 01 2019 18:07
    thecodingaviator labeled #31190
  • Apr 01 2019 18:07
    thecodingaviator commented #31190
  • Apr 01 2019 18:05
    thecodingaviator commented #31157
  • Apr 01 2019 18:04

    thecodingaviator on master

    remove A (#31157) (compare)

Abhisek Pattnaik
@abhisekp
@daiky00 :point_up: October 18, 2015 9:23 AM
Francisco Pena
@daiky00
ok
$('.main3').on('click', '.show', function() {
var id = $(this).attr('data-panel-id');
$('.project').hide(100);
$('#' + id).toggle(100);
})
i want to do this
Abhisek Pattnaik
@abhisekp
@daiky00 :point_up: October 18, 2015 9:23 AM
Francisco Pena
@daiky00
check the link for reference
bruglesco
@bruglesco
help format
CamperBot
@camperbot

:point_right: code formatting [wiki]

Inline code

alt text

This an inline `<paste code here>` code formatting with a single backtick(`) at start and end around the code.

Code Block

``` ⇦ Type 3 backticks and then press [shift + enter ⏎]

<paste your code here>,
then press [shift + enter ⏎]

``` ⇦ Type 3 backticks, then press [enter ⏎]

See also: ☛ How to type Backticks | ☯ Compose Mode | ❄ Gitter Formatting Basics

:pencil: read more about code formatting on the FCC Wiki

Abhisek Pattnaik
@abhisekp
@daiky00 :point_up: October 18, 2015 9:43 AM
bruglesco
@bruglesco
make your code more readable plz
easier to help you
Francisco Pena
@daiky00
ok
Abhisek Pattnaik
@abhisekp
@daiky00 making the code readable will make us easier to read and help you
Francisco Pena
@daiky00
$('.main3').on('click', '.show', function() { var id = $(this).attr('data-panel-id'); $('.project').hide(100); $('#' + id).toggle(100); })
Abhisek Pattnaik
@abhisekp
@daiky00 multiline pls. You're pasting a codeblock
Francisco Pena
@daiky00
how do i do that
adtpdn
@adtpdn
use shift + enter
Abhisek Pattnaik
@abhisekp
:point_up: October 18, 2015 9:43 AM @daiky00
Francisco Pena
@daiky00
$('.main3').on('click', '.show', function() {
var id = $(this).attr('data-panel-id');
$('.project').hide(100);
$('#' + id).toggle(100);
})
now i egt it
hahaha
and this what im trying to do
Abhisek Pattnaik
@abhisekp
@daiky00 so what's the issue?
bruglesco
@bruglesco
well your variable isnt doing what you want it to
Jason
@jimillett
Can someone help me figure out what I am doing wrong on Bonfire: Reverse a String
CamperBot
@camperbot
type bonfire name to get some info on that bonfire. And check HelpBonfires chatroom
Francisco Pena
@daiky00
well
the problem is
everything is working but after you open it once it doesnt want to hide again
bruglesco
@bruglesco
(#$(this).attr('data-panel-id')).toggle(100); isnt functioning code
Abhisek Pattnaik
@abhisekp
@daiky00 yes. It does when you click it again
Francisco Pena
@daiky00
nono it doesnt
Jason
@jimillett
function reverseString(str) {
  array = str;
  array = array.reverse();
  str = array;
  return str;
}

reverseString("hello");
Francisco Pena
@daiky00
what is that
?
DJ
@qualitymanifest
@jimillett you need to use all the methods in the "helpful links"
Abhisek Pattnaik
@abhisekp
@daiky00
DJ
@qualitymanifest
@jimillett you can't reverse a string, you can reverse an array of characters, which is why you need .split. and it needs to be a string when you return it, so that's why you need .join
Francisco Pena
@daiky00
blob
Jason
@jimillett
ah ok that makes sense derp.
thanks
CamperBot
@camperbot
if you want to thank someone, put an @ before their name!
Francisco Pena
@daiky00
@abhisekp
DJ
@qualitymanifest
@jimillett also there's no need for "array" (which should be initialized as "var array" if you did use it), you can do the whole thing to str... on one line, in fact.
Jason
@Jauble
Hey @abhisekp any idea how to get my buttons to center when minimized? http://codepen.io/auble220/pen/avyZZE
Abhisek Pattnaik
@abhisekp
@daiky00 btw, there is this $().data to access the data attr https://devdocs.io/jquery/data
Levyian
@levyian
@jimillett convert the string to array using string.split() then reverse it and convert it back a string
Abhisek Pattnaik
@abhisekp
@Jauble i thot you were doing the bfs