Show HN: Bootstro.js - intro.js for Bootstrap

79 points by clu3 12 years ago | 32 comments
  • clu3 12 years ago
    Hi all, I'm so surprised that this made HN front page, even though I thought Bootstro.js would be nice because I had a tough time looking for something like that. I guess I rarely get a chance like this so I'm very excited and therefore would like to share here that I love HN so much. Actually there are two things that have changed my profession quite dramatically

    1. HN, before HN, i.e about 3 years ago, I was with webmasterworld.com but somehow I didn't get much out of it. At HN i'm mostly just lurking but I learned so much from it 2. Coding-wise, Bootstrap made my life a hell lot easier since I'm basically so dumb at CSS. Bootstrap gave me a chance to execute my idea in a timeframe which otherwise would have taken me months, and getting bored of talking to my colleague CSS'er

    Those 2 things have changed my career alot, believe it or not. I don't know what's the point of saying that but I'd like to express what I love & really appreciate.

    • cek 12 years ago
      Well done. I've been thinking we need something like this for our app, but haven't poked around yet. Thanks for making this available.
      • clu3 12 years ago
        My pleasure!
    • Swizec 12 years ago
      "I can resize my width too", that is really cool of you, but it would be nice if you also didn't go beyond my screen edge. Especially if the Next button is there.

      Also consider adding push history support or whatever that's called. I'd like to click back in my browser to go back in the intro.

      This is mostly because the back/forth touchpad gesture added in some version of MacOS or another, combined with the back/forth buttons on the mouse I use on the linux machine, have made me big users of the Back functionality. Something I would never click on "manually" and wouldn't even consider exists otherwise[1].

      [1] Before those two developments I spent 5+ years convinced that nobody ever clicks Back in a browser.

      • mddw 12 years ago
        Do you know about : https://heatmap.mozillalabs.com/ ?

        The back button is heavily used, even without gestures/mouse.

        • clu3 12 years ago
          First off, thanks!

          1. I can't really fix the beyond screen edge problem. I guess it's Bootstrap's popover problem. However, in practice, this is probably not a big issue. If you feel like the popover's gonna go off screen, consider adjusting the popover's placement.

          2. That's a nice feature to have but probably not a quick fix, I'll put my effort into that asap

        • afshinmeh 12 years ago
          I'm Afshin, the author of intro.js

          As you mentioned in this thread, you just used intro.js idea to show the steps, showing tooltips and more...

          Why you didn't mention that in the Github repository also?

          • clu3 12 years ago
            Hi Afshin,

            I'd love to so had Bootstro.js been a follow-up of intro.js. But it is not.

            I already said so in the demo that I had this idea & implementation before intro.js was released , I even asked around #css & #jquery for some help on how to highlight the div and I also expressed my idea there in the channel [1]

            Apart from trying to show the authenticity of Bootstro.js so that you & others don't take me wrong, I'd like to thank you for releasing intro.js and triggering HN's love of the idea which made me excited to try modularizing Bootstro.js & release. Being on HN's front page is a lot more "sexy".

            Cheers, from Hanoi to Tehran ^^

            [1] http://irc.jquery.org/%23jquery/%23jquery_20130309.log.html#...

            Edit: Typo

            • afshinmeh 12 years ago
              but I really confused that if you have this idea before, why you didn't published it on the Github partially?

              You oldest commit is for 1 day ago.

              • clu3 12 years ago
                I made it as part of SandPHP's JS suite and SandPHP is still a private repo. OTOH, I've just checked your first intro.js commit is Mar 10, 2013 and I asked around IRC on the 9th and you're asking for a DMCA takedown sigh...
          • fduran 12 years ago
            Good. Only issue I have so far is that in links to modal windows the bootstro-title takes over the title causing: a) the mouse-over tooltip (with original title) disappears and b) the bootstro pop-over title is the original "title".
          • saulr 12 years ago
            Flicking between steps results in the window scroll animations queueing. You may wish to replace

            $('html,body').animate({

            in bootstro.go_to, with:

            $('html,body').stop(true).animate({

            This clears the animation queue and stops the current animation between animating.

            • tomasien 12 years ago
              Arrow keys not working for me - latest version Chrome.
            • turnkey56 12 years ago
              On iPad Chrome the 5, 6, and 7 popovers are dark (no focus) until the screen is touched again.
              • _yb 12 years ago
                I was expecting that clicking on the darker areas would exit the intro, consider to do that.
                • clu3 12 years ago
                  Thanks for the suggestion. I've added an option stopOnBackdropClick and defaulted to true. Demo updated too ^^
                • nachteilig 12 years ago
                  Seems like this addresses a lot of the problems with intro.js.

                  Thanks!

                  • momchenr 12 years ago
                    I like this a lot, thanks for taking the time.
                  • johnx123-up 12 years ago
                    Why "bootstro" attributes instead of "data"?
                    • clu3 12 years ago
                      Since data-title, data-content are pretty kinda popular in bootstrap in many different plugins, I thought I'd use bootstro- to avoid any accidental mistake. TBH, I'm not even sure if it's good or bad practice
                      • jasonquinn 12 years ago
                        It should really be data-bootstro-whatever so it validates as a custom data attribute in HTML
                    • mgkimsal 12 years ago
                      was just showing bootstrap and intro.js off to a team on saturday - this is a nice combo.

                      safari 6 - arrow keys didn't work for me.

                      • clu3 12 years ago
                        Thanks for your complement. It's fixed now. keypress changed to keydown event handler
                      • treycopeland 12 years ago
                        someone just showed off a clone of this sometime last week I believe.
                        • clu3 12 years ago
                          I think probably you're talking about http://usablica.github.com/intro.js/ which I mentioned in the demo
                          • manojlds 12 years ago
                            The title itself says this is into.js ( the one you mention ) for bootstrap.
                            • afshinmeh 12 years ago
                              This is the copied idea of intro.js Shame on the author of this repository for copying the intro.js idea.