-
Notifications
You must be signed in to change notification settings - Fork 14
/
360.php
47 lines (42 loc) · 1.08 KB
/
360.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<?php
use Xmf\Request;
require_once __DIR__ . '/tadtools_header.php';
require_once $GLOBALS['xoops']->path('/modules/system/include/functions.php');
// 關閉除錯訊息
header('HTTP/1.1 200 OK');
$xoopsLogger->activated = false;
$photo = Request::getString('photo');
$photo = filter_var($photo, FILTER_SANITIZE_SPECIAL_CHARS);
?>
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>A simple example</title>
<link rel="stylesheet" href="/modules/tadtools/pannellum/pannellum.css">
<script type="text/javascript" src="/modules/tadtools/pannellum/pannellum.js"></script>
<style>
html, body {
height: 100%;
margin: 0px;
}
}font-family:
#panorama {
width: 100%;
height: 100%;
}
</style>
</head>
<body>
<div id="panorama"></div>
<script>
pannellum.viewer('panorama', {
"type": "equirectangular",
"autoLoad":true,
"panorama": "<?php echo $photo; ?>",
"compass":true
});
</script>
</body>
</html>