1.0.0 • Published 5 years ago

device-orientation-with-clock v1.0.0

Weekly downloads
4
License
-
Repository
-
Last release
5 years ago

\<device-orientation>

You may also notice commented out 'hour' and 'minute' along with some other code relevant to these properties. Uncomment this code if you would like to also use the orientation as a sort of 24 hour clock.

Essentially, rotation value 0.0 is set to 0:0 in time and rotation value 359.0 is set to 24:59 in in time.

To display the values, you can either use data binding in the shadow DOM of the device-orientation.js file like this:

API Available?:{{exist}} Corrected Rotation:{{corrected}} Original Value:{{original}}

OR

you may go to the index.html file in the demo folder and simply define some variables within the tags like this:

Hopefully this helps somebody out, especially if you're just beginning with Polymer or Javascript or WebDev.

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

History

Initial commit v1.0 | April 8, 2019

License

TODO: Write license ]]> readme

device-orientation-polymer-element