Skip to content

Instantly share code, notes, and snippets.

@goofmint

goofmint/index.js

Created Feb 14, 2017
Embed
What would you like to do?
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