GithubHelp home page GithubHelp logo

exexzian / fort.js Goto Github PK

View Code? Open in Web Editor NEW

This project forked from degico/fort.js

0.0 2.0 0.0 496 KB

Modern progress bar for form completion.

Home Page: http://idriskhenchil.me/fort

License: MIT License

HTML 46.93% CSS 11.39% JavaScript 41.67%

fort.js's Introduction

#Fort.js

Modern progress bar for form completion. All you do is add the form and Fort.js' algorithm will take care of the rest. Best of all, it's super small. Check out the demo!

##Usage Using Fort is so simple, it's simple. All you do is insert fort.min.js and fort.min.css into the <head> then pop in an <input> into <div class="form">. Anything outside of the <div> won't count. Now you just call the effect (Scroll down to the the "Effects" section for more). Yep, that's all there is to it. Fort does the rest.

<head>
  <script src="fort.min.js"></script>
  <link rel="stylesheet" href="fort.min.css">
</head>
<body>
<div class="form">
  <form method="post">
    <input type="text">
  </form>
</div>
  <script>
      Fort.flash("#009DFF", "#000", "#6638F0");
  </script>
</body>

Think the progress bar speed is too slow or too fast? No worries. In fort.min.css just change the speed to your desired liking.

transition: all 1s;

Additionally if you prefer the bottom rather than the top, just change top: 0; to bottom: 0; in fort.min.css.

Want to change the height? Open the stylesheet and change height: 4px; to your liking.

Certain fields:

If you want to include only certain fields add a class named ignore to the field. Fort will not detect the field after you do so. ##Effects

Changing the colors:

  • Solid - Fort.solid("#009DFF") Keepin' it simple

  • Gradient - Fort.gradient("#009DFF", "#47B9FF") Note that only two values should be passed.

  • Sections - Fort.sections("#009DFF", "#4AF2A1", "#FB5229") The more colors you add, the more sections you get!

  • Flash - Fort.flash("#009DFF", "#000", "#6638F0"); Old school, yet unique.

  • Merge Fort.merge("#009DFF"); Tip: Add a few more colors and see what you get (Not 100% tested)

##Browser Support

  • Safari 7.0
  • Opera 21
  • Mozila Firefox 29 and up
  • Google Chrome 34 and up
  • Internet Exporer 8.0 and up

##Coming soon

  • More effects. Have an idea? Email me!

##License Fort.js is licensed under the MIT license (http://opensource.org/licenses/MIT) It's pretty simple, but here's the definition we get

The MIT License is a permissive license that is short and to the point. It lets people do anything they want with your code as long as they provide attribution back to you and don't hold you liable. ##Acknowledgements

Fort.js is authored and maintained by Idris Khenchil

Feel free to check out the demo here. Used Fort in a project? I'd love to see it, email me.

fort.js's People

Contributors

idriskhenchil avatar rcartwright avatar codepo8 avatar asaskevich avatar webbanditten avatar quasipickle avatar

Watchers

James Cloos avatar exex zian avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.