Skip to content

Instantly share code, notes, and snippets.

@goofmint
Created February 14, 2017 01:23
Embed
What would you like to do?
4.md
(function($) {
var pageController = {
__name: 'PageController',
'button.draggable-popup click': function(context, $el) {
h5.ui.popupManager.createPopup('sample', 'ドラッグ可能ポップアップ', 'サンプルです', null, {
draggable: true
}).show();
},
};
h5.core.expose(pageController);
})(jQuery);
$(function() {
h5.core.controller('body', PageController);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment