Giter Club home page Giter Club logo

pleaserotate.js's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

pleaserotate.js's Issues

DoesnΒ΄t work right on iOS11 firefox and Chrome

I am using your framework for an project.

My issue:

On my iPhone iOs 11 Firefox and Chrome, the event only triggers once. after i change to landscape mode and portrait mode again it wont work and doesnt show the "please change to langscape mode" alert. On Safari it works.

[Quick Thank You]

Just a terribly handy solution to an annoying problem without overcomplicating it all.
I wanted to say thanks.

don't display pleaserotate based on viewport or width?

Hi,
Is there a way to not show the pleaserotate when the viewport or width is greater than certain pixel? For example, set a maximum width where pleaserotate would be activated but not if it's it's bigger... In other words, I want to enable this for portrait on mobile devices (smaller screen) but not necessarily for tablets or bigger mobile phone (e.g. iPhone 8 Plus) since they already have wide enough screen even on portrait.

Thank you.

How to use iconNode

Does someone know how to use iconNode? Tried a different thing and nothing seem to work.

Calling start() twice creates 2 <div>

I'm using pleaseRotate with VueJS on one of my apps.
I call pleaseRotate.start() when I'm mounting [mount()] my app.
calling pleaseRotate.stop() doesn't kill existing pleaseRotate items, so if I'm going
[app] -> [back] -> [app]
pleaseRotate.start() is called twice, while pleaseRotate.stop() is called once [on beforeDestroy()]
and pleaseRotate is activated on both portrait and landscape mode [while the flag forcePortrait is at it's default setting of true].

My workaround is to put createElements() inside the if statement:
if (!document.getElementById('pleaserotate-backdrop'))
[which checks if there is already pleaseRotate div elements existing]

please contact me with any questions regarding this issue and reproducing it.

Only on tablet ?

Hi,

It's possible but only on tablet ? (Where specify dimensions ?)
Because I don't want this on mobile but only in tablet.

Thank you so much

Change graphic start and end positions

Great script! Elegant way to tell users the site is optimized for a particular orientation. Got it working with Wordpress.

For my needs, I'm using forcePortrait: true,. When the device is rotated to landscape, the graphic rotation is upside down (home button of the device graphic is on the top). If willing, can you share how to start the graphic in the portrait position and translate to landscape?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.