Giter Club home page Giter Club logo

snackbars's Introduction

Snackbars

Material Vanilla Snackbars (Html, CSS and Javascript)

Show message:

snackbar.show("Hello");

Hide message:

snackbar.hide();

Message after a certain time:

snackbar.timer("Hello", 3000);

Message with button:

// Function example callback
function test(){
  console.info("Cancel button touch!");
}

// Create new button
var button = {};
button.id = "btn_cancel";
button.title = "Cancel";

// Set function callback
snackbar.setCallback(test);

// Call
snackbar.timer("Hello World", 3000, button);

Observations:

  • If your project already uses reset.css, remove the file

snackbars's People

Contributors

diogomachado avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

snackbars's Issues

NPM/Yarn

Mano, o bower já é praticamente descontinuado, tu pode até ver a mensagem de recomendação deles de npm e webpack no site oficial. Sugiro tu portar/alterar o readme do projeto pro NPM e pro Yarn. My two cents.

Obs.: outra dica, adicione um Gif demo do uso do pacote e/ou deixe uma URL de demo disponível.

Abraços.

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.