Skip to content

Instantly share code, notes, and snippets.

@goofmint
Created February 14, 2017 01:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save goofmint/9af664a954d450095fc5e46b9e4e0fbf to your computer and use it in GitHub Desktop.
Save goofmint/9af664a954d450095fc5e46b9e4e0fbf to your computer and use it in GitHub Desktop.
7.md
(function($) {
var count = 0;
h5.u.obj.expose('sample', {
showPopup: function(modal) {
var content = h5.core.view.get('multi-popup', {
modal: modal
});
var popup = h5.ui.popupManager.createPopup('sample' + count, '複数階層ポップアップ' + count, content, PopupController, {
draggable: true
});
count++;
popup.setContentsSize(250, 100);
popup.show({
overlay: modal
});
popup.setPosition(null, {
top: count * 50,
left: count * 50
});
return popup;
}
});
})(jQuery);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment