Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@goofmint
Created February 14, 2017 01:37
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/568df5a7c20d68297760ebe8d3e3f373 to your computer and use it in GitHub Desktop.
Save goofmint/568df5a7c20d68297760ebe8d3e3f373 to your computer and use it in GitHub Desktop.
6.md
(function($) {
var pageController = {
__name: 'PageController',
'button.top-popup click': function(context, $el) {
var popup = h5.ui.popupManager.createPopup('sample', '位置指定ポップアップ', 'サンプルです');
popup.setPosition(null, {
top: 30
});
popup.setContentsSize(250, 50);
popup.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