GithubHelp home page GithubHelp logo

jonlarsen86 / blurt Goto Github PK

View Code? Open in Web Editor NEW

This project forked from battousai999/blurt

0.0 2.0 0.0 286 KB

A javascript default alert() and prompt() replacement.

Home Page: http://bitwiser.in/blurt/

License: MIT License

JavaScript 49.55% HTML 23.62% CSS 26.83%

blurt's Introduction

Blurt

A javascript default alert() and prompt() replacement. Inspired by sweetAlert but custom implementation.

blurt()

Installation

  • Just download the latest zip of blurt.

  • Or install using bower install blurt.

  • And link the blurt.min.css and blurt.min.js files in your webpage.

     <link rel="stylesheet" href="blurt.min.css">
     <script src="blurt.min.js"></script>
  • After page load, show the blurt using: blurt('Your message here.')

blurt()

  • To use prompt() equivalent, do this:

     brompt('Prompt title', function(val){
     	//use the val here
     });

Development

  • Clone the project git clone https://github.com/brijeshb42/blurt.git.
  • Then cd into blurt directory.
  • npm install installs the node modules required during development.
  • Runnig grunt command initialises dev files and watches for changes made to blurt.js and scss files.
  • Make your changes to src/js/blurt.js or sass/*.scss.
  • After making changes, grunt dist creates the final minified css and js files in dist directory.
  • Use the generated blurt.min.js and blurt.min.css in your web page to use blurt .

Issues

Report issues here.

Bugs-to-fix

  • Uses css animations which may not be supported in old browsers.

Todo

  • Implement icons for each of the blurt types, i.e, success, info, error and warning.
  • Implement fadeIn and fadeOut to support older browsers which do not support css animation.

License

MIT License

blurt's People

Contributors

brijeshb42 avatar battousai999 avatar

Watchers

James Cloos avatar Jon Larsen 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.