Skip to content

Instantly share code, notes, and snippets.

@goofmint

goofmint/index.js

Last active Aug 5, 2017
Embed
What would you like to do?
2.md
$(function() {
var controller = {
__name: 'PageController',
artboardViewerController: h5.ui.components.artboard.controller.ArtboardViewerController,
magnifierController: h5.ui.components.artboard.controller.MagnifierController,
:
'.setScale click': function() {
var scale = this.$find('[name="scale"]').val();
this.mag.setScale(scale);
},
:
};
h5.core.controller('body', controller);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment