Преглед изворни кода

Remove "fallback" parameter, since Flash-based viewers no longer work.

It doesn't make much sense to provide a URL to a non-WebGL viewer anymore.
pull/1055/head
Matthew Petroff пре 3 година
родитељ
комит
308d86ecd9
2 измењених фајлова са 0 додато и 23 уклоњено
  1. +0
    -7
      doc/json-config-parameters.md
  2. +0
    -16
      src/js/pannellum.js

+ 0
- 7
doc/json-config-parameters.md Прегледај датотеку

@@ -70,13 +70,6 @@ after it is loaded. This parameter only has an effect if the `autoRotate`
parameter is set.


### `fallback` (string)

If set, the value is used as a URL for a fallback viewer in case Pannellum is
not supported by the user's device. The user will be given the option to click
a link and visit this URL if Pannellum fails to work.


### `orientationOnByDefault` (boolean)

If set to `true`, device orientation control will be used when the panorama is


+ 0
- 16
src/js/pannellum.js Прегледај датотеку

@@ -2236,22 +2236,6 @@ function processOptions(isPreview) {
infoDisplay.container.style.display = 'inline';
break;
case 'fallback':
var link = document.createElement('a');
link.href = sanitizeURL(config[key], true);
if (config.targetBlank) {
link.target = '_blank';
link.rel = 'noopener';
}
link.textContent = 'Click here to view this panorama in an alternative viewer.';
var message = document.createElement('p');
message.textContent = 'Your browser does not support WebGL.';
message.appendChild(document.createElement('br'));
message.appendChild(link);
infoDisplay.errorMsg.innerHTML = ''; // Removes all children nodes
infoDisplay.errorMsg.appendChild(message);
break;
case 'hfov':
setHfov(Number(config[key]));
break;


Loading…
Откажи
Сачувај