Przeglądaj źródła

Make it clear that location hashes are preferred over location query strings.

pull/976/head
Matthew Petroff 3 lat temu
rodzic
commit
02424bdfa3
8 zmienionych plików z 10 dodań i 10 usunięć
  1. +1
    -1
      examples/example-cube.htm
  2. +1
    -1
      examples/example-minified.htm
  3. +1
    -1
      examples/example-multires.htm
  4. +1
    -1
      examples/example-tour.htm
  5. +1
    -1
      examples/example.htm
  6. +2
    -2
      readme.md
  7. +1
    -1
      utils/config/configuration.htm
  8. +2
    -2
      utils/multires/readme.md

+ 1
- 1
examples/example-cube.htm Wyświetl plik

@@ -5,6 +5,6 @@
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
</head>
<body>
<iframe width="480" height="390" allowfullscreen style="border-style:none;" src="../src/standalone/pannellum.htm?config=../../examples/example-cube.json"></iframe>
<iframe width="480" height="390" allowfullscreen style="border-style:none;" src="../src/standalone/pannellum.htm#config=../../examples/example-cube.json"></iframe>
</body>
</html>

+ 1
- 1
examples/example-minified.htm Wyświetl plik

@@ -5,6 +5,6 @@
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
</head>
<body>
<iframe width="480" height="390" allowfullscreen style="border-style:none;" src="../build/pannellum.htm?panorama=../examples/examplepano.jpg&amp;title=Jordan%20Pond&amp;author=Matthew%20Petroff&amp;preview=../examples/examplepano-preview.jpg"></iframe>
<iframe width="480" height="390" allowfullscreen style="border-style:none;" src="../build/pannellum.htm#panorama=../examples/examplepano.jpg&amp;title=Jordan%20Pond&amp;author=Matthew%20Petroff&amp;preview=../examples/examplepano-preview.jpg"></iframe>
</body>
</html>

+ 1
- 1
examples/example-multires.htm Wyświetl plik

@@ -5,6 +5,6 @@
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
</head>
<body>
<iframe width="800" height="600" allowfullscreen style="border-style:none;" src="../src/standalone/pannellum.htm?config=../../examples/example-multires.json"></iframe>
<iframe width="800" height="600" allowfullscreen style="border-style:none;" src="../src/standalone/pannellum.htm#config=../../examples/example-multires.json"></iframe>
</body>
</html>

+ 1
- 1
examples/example-tour.htm Wyświetl plik

@@ -5,6 +5,6 @@
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
</head>
<body>
<iframe width="480" height="390" allowfullscreen style="border-style:none;" src="../src/standalone/pannellum.htm?config=../../examples/example-tour.json"></iframe>
<iframe width="480" height="390" allowfullscreen style="border-style:none;" src="../src/standalone/pannellum.htm#config=../../examples/example-tour.json"></iframe>
</body>
</html>

+ 1
- 1
examples/example.htm Wyświetl plik

@@ -5,6 +5,6 @@
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
</head>
<body>
<iframe width="480" height="390" allowfullscreen style="border-style:none;" src="../src/standalone/pannellum.htm?panorama=../../examples/examplepano.jpg&amp;title=Jordan%20Pond&amp;author=Matthew%20Petroff&amp;preview=../../examples/examplepano-preview.jpg"></iframe>
<iframe width="480" height="390" allowfullscreen style="border-style:none;" src="../src/standalone/pannellum.htm#panorama=../../examples/examplepano.jpg&amp;title=Jordan%20Pond&amp;author=Matthew%20Petroff&amp;preview=../../examples/examplepano-preview.jpg"></iframe>
</body>
</html>

+ 2
- 2
readme.md Wyświetl plik

@@ -28,7 +28,7 @@ If you would like to locally test or self-host Pannellum, continue to the _How t
2. Use the included multi-resolution generator (`utils/multires/generate.py`), the configuration tool (`utils/config/configuration.htm`), or create a configuration from scratch or based on an [example](https://pannellum.org/documentation/examples/simple-example/).
3. Insert the generated `<iframe>` code into a page, or create a more advanced configuration with [JSON](https://pannellum.org/documentation/reference) or the [API](https://pannellum.org/documentation/api/).

Configuration parameters are documented in the `doc/json-config-parameters.md` file, which is also available at [pannellum.org/documentation/reference/](https://pannellum.org/documentation/reference). API methods are documented inline with [JSDoc](https://jsdoc.app/) comments, and generated documentation is available at [pannellum.org/documentation/api/](https://pannellum.org/documentation/api/).
Configuration parameters are documented in the `doc/json-config-parameters.md` file, which is also available at [pannellum.org/documentation/reference/](https://pannellum.org/documentation/reference). API methods are documented inline with [JSDoc](https://jsdoc.app/) comments, and generated documentation is available at [pannellum.org/documentation/api/](https://pannellum.org/documentation/api/). For the standalone viewer, configuration parameters are preferably specified using a location hash instead of a location search query, e.g., `pannellum.htm#panorama=...` instead of `pannellum.htm?panorama=...`, since this does not unnecessarily send the query parameters to the server.

### Using a minified copy

@@ -68,7 +68,7 @@ $ cd ../..
$ python3 -m http.server
```

This goes back to the root directory of the repository and starts a local development web server. Then open http://localhost:8000/src/standalone/pannellum.htm?config=../../utils/multires/output/config.json in your web browser of choice.
This goes back to the root directory of the repository and starts a local development web server. Then open http://localhost:8000/src/standalone/pannellum.htm#config=../../utils/multires/output/config.json in your web browser of choice.


## Bundled examples


+ 1
- 1
utils/config/configuration.htm Wyświetl plik

@@ -12,7 +12,7 @@
'" height="' + escape(form.embed_height.value) +
'" allowfullscreen style="border-style:none;' +
'" src="' + escape(form.pannellum_url.value) +
'?panorama=' + escape(form.pano_url.value);
'#panorama=' + escape(form.pano_url.value);
if(form.pano_title.value != '')
embed_code.innerHTML += '&amp;amp;title=' + escape(form.pano_title.value);
if(form.pano_author.value != '')


+ 2
- 2
utils/multires/readme.md Wyświetl plik

@@ -80,12 +80,12 @@ $ python3 -m http.server

A generated tileset and configuration in `utils/multires/output` can then be viewed by navigating a browser to:

[http://localhost:8000/src/standalone/pannellum.htm?config=../../utils/multires/output/config.json](http://localhost:8000/src/standalone/pannellum.htm?config=../../utils/multires/output/config.json)
[http://localhost:8000/src/standalone/pannellum.htm#config=../../utils/multires/output/config.json](http://localhost:8000/src/standalone/pannellum.htm#config=../../utils/multires/output/config.json)

When the page is loaded, the console will output a logging stream corresponding to the HTTP requests:

```bash
127.0.0.1 - - [09/Aug/2019 09:41:24] "GET /src/standalone/pannellum.htm?config=../../utils/multires/output/config.json HTTP/1.1" 200 -
127.0.0.1 - - [09/Aug/2019 09:41:24] "GET /src/standalone/pannellum.htm HTTP/1.1" 200 -
127.0.0.1 - - [09/Aug/2019 09:41:24] "GET /src/css/pannellum.css HTTP/1.1" 200 -
127.0.0.1 - - [09/Aug/2019 09:41:24] "GET /src/standalone/standalone.css HTTP/1.1" 200 -
127.0.0.1 - - [09/Aug/2019 09:41:24] "GET /src/js/libpannellum.js HTTP/1.1" 200 -


Ładowanie…
Anuluj
Zapisz