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
h4r1m4u
@h4r1m4u
@ExhibitArts yeah, they must be updating the site or something. just give it a moment, it'll be back.
@ExhibitArts you could also use this library and customize it: http://fabien-d.github.io/alertify.js/
Casey Heath
@ExhibitArts
@h4r1m4u Would anyone be willing to help a newbie out on implementing that alert box library that @h4r1m4u mentioned above?
I'm really not sure how I would go about customizing it.
Gabriel
@Zera99
Question: http://codepen.io/Zera99/pen/JGxQXy What am I doing wrong? When I click the buttons, it scrolls to the bottom of the element, not the top. Did I miss something?
h4r1m4u
@h4r1m4u

@ExhibitArts as the instructions say, you have to import the two CSS files into your project (as well as the main JS file):

<!-- include the core styles -->
<link rel="stylesheet" href="PATH_TO_FILE/alertify.css" />
<!-- include a theme, can be included into the core instead of 2 separate files -->
<link rel="stylesheet" href="PATH_TO_FILE/alertify.default.css" />

if you want to customize the look, edit the 2nd CSS file (or create a copy, change its name, import that instead and edit that)

@Zera99 it's because you're setting margin:500px; on your divs. change that to height instead and it'll work better
Gabriel
@Zera99
Hm, Still scrolls to the bottom of the div when I click the button
Joseph Morse
@jnmorse
@Zera99 it cause you have a fixed nav at the top, if you add some padding to to top of each section it should work
Gabriel
@Zera99
Ah. Duh, Thanks @jnmorse , @h4r1m4u
CamperBot
@camperbot
zera99 sends brownie points to @jnmorse and @h4r1m4u :sparkles: :thumbsup: :sparkles:
:warning: zera99 already gave h4r1m4u points
:star: 392 | @jnmorse | http://www.freecodecamp.com/jnmorse
Gabriel
@Zera99
A padding of 70px fixed it. Thank you again ^^
Casey Heath
@ExhibitArts
@h4r1m4u Okay so how do you get the alert dialog to to prompt while the page is loading.?
I'm using this script but it doesn't seem to work. - <script type='text/javascript' src='https://code.jquery.com/jquery-1.12.0.min.js'>
window.onload = function(){ alert("Hi there"));}
</script>
Zerka1982
@Zerka1982
Hello guys , is anybody have time to look at my code ... I tried to solve a problem since morning ...
for mobile friendly
Casey Heath
@ExhibitArts
@Zerka1982 I could try.
Zerka1982
@Zerka1982
please pm so I can explain to you ...
Casey Heath
@ExhibitArts
@Zerka1982 Wait what language is it? If it's javascript I probably won't be much help
Zerka1982
@Zerka1982
No
not JavaScript
it is bootstrap
Nairuz.Abulhul
@nairuzabulhul
Does anyone know how to speed an embedded Youtube video using JS or HTML ??
Tyler Haas
@tylerthehaas
like make it play at 1.5x speed?
Nairuz.Abulhul
@nairuzabulhul
@haasDev yes
Alex
@Jeckstex
Hello campers! I am working on the "Build a Random Quote Machine Project". Before starting I was wondering how the hell did the guy get all these quotes from ? Do you have a list somewhere online that you use with Ajax?
Nairuz.Abulhul
@nairuzabulhul
@Jeckstex you can create an array of all the quotes you want to include
@Jeckstex then when you click the button randomly display one
Alex
@Jeckstex
@ZeeMax okay so you mean I get to chose the quotes I want and then use them for my project?
Nairuz.Abulhul
@nairuzabulhul
@Jeckstex yeah
@Jeckstex I included 50 of my favorite quotes
Alex
@Jeckstex
Okay, thank you for your help :smile: @ZeeMax
CamperBot
@camperbot
jeckstex sends brownie points to @zeemax :sparkles: :thumbsup: :sparkles:
:star: 236 | @zeemax | http://www.freecodecamp.com/zeemax
Nairuz.Abulhul
@nairuzabulhul
@Jeckstex you welcome
Amir Ghafouri
@amirghafouri
Could someone take a look at my "Learn More" button. I am very content with it, except after you click the link the text goes back to blue with the underline... tried using :visited and text-decoration:none but couldn't fix it
http://codepen.io/amirghafouri/pen/ZQwJgP
Tyler Haas
@tylerthehaas
@ZeeMax check this link out. https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/playbackRate . Looks like there is a playback rate property you can set
Gabriel
@Zera99
Hello.. I still have issues with this: http://codepen.io/Zera99/full/JGxQXy/ The lines I'm using to separate the parts, why are they different, when I'm using page-header class for all?
They're only slightly different.. or am I hallucinating
Filip Kiraa Opálený
@kiraacorsac
Hello, I have problem with $.getJSON in "Show the Local Weather" zipline. The function $.getJSON want call it's callback function at all - not even the .fail one. Don't mind the hardcoded API string, it's just for easier debbuging.
http://codepen.io/kiraacorsac/pen/ZQwdxe
No "Got JSON" nor "Getting JSON failed" appears.
Filip Kiraa Opálený
@kiraacorsac
@Zera99 I'm not seeing the difference, could you be more specific about what seems off?
Gabriel
@Zera99
The first line seems to be.. slightly bolder than the second one
Like if it was 1.25 or 1.50 px, but I can't set that
It's either 1, or 2px
Even if I override page-header bottom-border and set it to 2px, it still looks like the first one is bolder than the second one
I might be wrong, it just looks slightly off to me
Filip Kiraa Opálený
@kiraacorsac
I went ahead, took a screenshot, and counted the pixels in Paint. Both of them are 2px on my machine. Do the same, maybe yours are really different.