Skip to content

Instantly share code, notes, and snippets.

@goofmint
Created May 27, 2016 01:57
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/3130009bc6cf28e6272a5c380b8af2e6 to your computer and use it in GitHub Desktop.
Save goofmint/3130009bc6cf28e6272a5c380b8af2e6 to your computer and use it in GitHub Desktop.
(function($) {
var pageController = {
__name: 'sample.PageController',
__templates: 'template/sample-template.ejs',
_dividedBoxController: h5.ui.container.DividedBox,
_appPurchaseManagerController: sample.AppPurchaseManagerController,
appRootDividedBox: h5.ui.container.DividedBox,
__meta: {
_appPurchaseManagerController: {
rootElement: '.appRoot'
}
},
__postInit: function() {
// ヘッダ直後のdividerは非表示
this._dividedBoxController.hideDivider(0);
},
'{window} resize': function() {
this._dividedBoxController.refresh();
}
};
h5.core.expose(pageController);
})(jQuery);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment