Pārlūkot izejas kodu

Show fullscreen button iff fullscreen is allowed.

pull/101/head
Matthew Petroff pirms 9 gadiem
vecāks
revīzija
605cfba432
1 mainītis faili ar 2 papildinājumiem un 1 dzēšanām
  1. +2
    -1
      src/js/pannellum.js

+ 2
- 1
src/js/pannellum.js Parādīt failu

@@ -169,7 +169,8 @@ container.appendChild(controls.zoom);
controls.fullscreen = document.createElement('div');
controls.fullscreen.addEventListener('click', toggleFullscreen);
controls.fullscreen.className = 'pnlm-fullscreen-toggle-button pnlm-sprite pnlm-fullscreen-toggle-button-inactive pnlm-controls pnlm-control';
container.appendChild(controls.fullscreen);
if (document.fullscreenEnabled || document.mozFullScreenEnabled || document.webkitFullscreenEnabled)
container.appendChild(controls.fullscreen);

// Compass
var compass = document.createElement('div');


Notiek ielāde…
Atcelt
Saglabāt