Created
February 14, 2017 01:47
-
-
Save goofmint/9af664a954d450095fc5e46b9e4e0fbf to your computer and use it in GitHub Desktop.
7.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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