例文を組み込んだAlfred Workflowを作りました: Alfred Git Commit Message Example
以下転載:
| //http://mobiforge.com/design-development/html5-mobile-web-device-orientation-events | |
| (function(window, $) { | |
| window.OrientationPublisher = { | |
| active: false | |
| }; | |
| //Setup listener | |
| OrientationPublisher.init = function() { | |
| if (window.DeviceOrientationEvent && !OrientationPublisher.active) { | |
| window.addEventListener("deviceorientation", OrientationPublisher.orientationChange, false); |
以下転載: