GithubHelp home page GithubHelp logo

picomodal's People

Contributors

andrewdisley avatar avevlad avatar eduardo-matos avatar enedellec avatar gserg avatar hanelarrison avatar nycto avatar voxpelli avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

picomodal's Issues

Make library compatible with npm/browserify

This package is in npm yet is entirely incompatible with it. It either needs an index.js file that links to src/picoModal or a main element in the package.json that does that same.

Also, the UMD that the file is wrapped in works great with AMD but not with Node or Browserify. Check out https://github.com/umdjs/umd/blob/master/returnExports.js as I think this is the one you want (keeps working with window and AMD and adds in Browserify support).

Disappointing as think library is exactly what I need

I love PicoModal, saved my day in one of my project.

picoModal({
      content: "Ah, the pitter patter of tiny feet in huge combat boots.",
      overlayStyles: {
          backgroundColor: "#169",
          opacity: 0.75
      }
  }).show();

I love the way it work. But is there any way we can load the data in Content from different files i mean with like

picoModal({
      content: "content.html",
      overlayStyles: {
          backgroundColor: "#169",
          opacity: 0.75
      }
  }).show();

This would be great.

closeButton.elem is undefined when options.closeButton is false

TypeError: closeButton is undefined
closeElem: closeButton.elem,

occurs when 'closuButton' options is false and in lines 183-210 there is:

var closeButton;
if (options.closeButton) {
// ...
}

return {
closeElem: closeButton.elem,
};

Obviously, closeButton.elem is undefined.

Multiple instances of the same modal can be created

Since a page can be navigated by keyboard, pressing [enter] or [space] will continue to create more instances of the same modal. For example, attach the modal to an onclick event listener, and pressing [enter] to click the button multiple times will result in multiple modals overlayed on top of each other. A solution would be to change the focus to the modal when created.

Ok/Cancel dialog option

It hoped for the modal to have a callback function for 'success' (user clicked ok) and a different callback for cancel (user does not want to continue with the action). Much like in the native js dialog box. Would it be possible to do this?

speed up pico

hey,

i noticed that the way pico shows/hides the modal is via display:none/block property.
this method is very expensive since it involves DOM redraw.

i've read how-to-achieve-60-fps-animations-with-css3

and would be great to switch to transform and opacity way of doing things.

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.