Skip to content

Instantly share code, notes, and snippets.

@goofmint
Created February 14, 2017 01:19
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/553e77a3d21554f93eddef5533907e26 to your computer and use it in GitHub Desktop.
Save goofmint/553e77a3d21554f93eddef5533907e26 to your computer and use it in GitHub Desktop.
3.md
(function($) {
var pageController = {
__name: 'PageController',
'button.modeless-popup click': function(context, $el) {
h5.ui.popupManager.createPopup('sample', 'モーダレスダイアログ', 'サンプルです').show({
overlay: false
});
},
};
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