domogik / domoweb

Web interface for Domogik Home Automation free software
24 stars 10 forks source link

Widgets toggle full screen /refresh #114

Open tikismoke opened 7 years ago

tikismoke commented 7 years ago

In some case it appens that my dashboard could be locked in certain conditions. Widgets camera and web browser in full screen.

No more SSH access due to wi-fi limited. On-screen keyboard hide behind browser.

The only solution is brutal reboot.

A F11 and F5 widget could save me time. F5 to unload network flow F11 to get all menu back

overload08 commented 7 years ago

Like that ? https://snag.gy/GBW7OX.jpg

tikismoke commented 7 years ago

For example to start yes.

overload08 commented 7 years ago

To refresh : location.reload(); To full screen :

function fullScreen(element) {
  if(element.requestFullScreen) {
    element.requestFullScreen();
  } else if(element.webkitRequestFullScreen ) {
    element.webkitRequestFullScreen();
  } else if(element.mozRequestFullScreen) {
    element.mozRequestFullScreen();
  }
}
tikismoke commented 7 years ago

Cool, could you create the widget and make a PR?

overload08 commented 7 years ago

I'll try

tikismoke commented 7 years ago

Thank's in advance ;)

overload08 commented 7 years ago

Try this : https://github.com/overload08/domoweb-basicjs-widget