Version 3 is here... new configuration

Version 3 is here... new configuration. After some brainstorming I came up with a condensed version of the configuration.

As always, share with as many people as you want. http://jpmalloy.com

😝😜💪👌 

Make sure to update to build 5.2, 5.1 had some issues with the drag feature.
The drag attach and detach event elements were named wrong.. brain fart today
Also, if you want to revert back to Version 1, please note the configuration changes.

var jpmx = new jpmpopup({
  'container':'popup-container4',
  'style' :'background-color:rgba(0, 0, 0, 0.85);width:100%;z-index:5',
  'onclose' : function () {
    console.log(this);
  },
  'gallery':{
    'animation':'slide',
    'container':'.gallery',
    'thumbnav':'on',
    'onclick': function(item) {
				
      console.log(this);	
      // a thumbnail was clicked, do something
      // use ajax here to pull/get some comments about the image or video etc
      // item.id contains the id of the thumbnail clicked
			
      item.data = '<div style="padding:20px">'+ item.about +'
<p>comment interface can go here</p></div>'; item.html = '<div class="wrap-container">
<div class="left-column" id="left-column"></div>
<div id="right-column" class="right-column">'+item.data+'</div>'; this.fullScreen(item.html); } } });
 
 Feel free to comment if you run into problems. Enjoy


Comments

Popular posts from this blog

Overlay Version 2 is here with key events and iframe support

Free Pop-up / Overlay Script