123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447 |
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <title>Document</title>
- <style>
- html,
- body{
- width: 100%;
- height: 100%;
- margin: 0;
- overflow: hidden;
- color: #fff;
- font-size: 14px;
- line-height: normal;
- font-family: OpenSans,sans-serif;
- user-select: none;
- }
- .scene{
- width: 100%;
- height: 100%;
- }
- #toolbar{
- position: absolute;
- left: 50%;
- top: 0;
- z-index: 10000;
- }
- </style>
- <style>
- .widgets-doll-labels .room-label {
- position: absolute;
- width: 0;
- height: 0;
- -webkit-transform: translateZ(0);
- transform: translateZ(0);
- -webkit-animation: room-label 0.3s ease 0.1s;
- animation: room-label 0.3s ease 0.1s;
- -webkit-animation-fill-mode: both;
- animation-fill-mode: both;
- cursor: pointer;
- }
- .widgets-doll-labels .room-label:not(.noLine):after {
- content: "";
- display: block;
- position: absolute;
- width: 4px;
- height: 68px;
- background-image: url("./images/labelline.png");
- background-size: contain;
- background-repeat: no-repeat;
- bottom: 0;
- left: 50%;
- -webkit-transform: translate(-50%);
- transform: translate(-50%);
- }
- .widgets-doll-labels .room-label a {
- display: block;
- position: absolute;
- line-height: 22px;
- top: -66px;
- transform: translate(-50%, -100%);
- text-align: center;
- white-space: nowrap;
- font-size: 12px;
- font-style: normal;
- pointer-events: auto;
-
- background-repeat: no-repeat;
- background-size: 100% 100%;
- background: rgba(210, 210, 210, 0.7);
- border: 1px solid rgba(255, 255, 255, 0.4);
- border-radius: 3px;
- text-shadow: 0px 1px 3px rgb(0,0, 0, 0.5);
- }
- .widgets-doll-labels .room-label a::before {
- content: "";
- position: absolute;
- left: -1px;
- top: -1px;
- width: 10px;
- height: 10px;
- background-image: url(./images/svg/doll_label_corner.svg);
- background-repeat: no-repeat;
- background-position: top left;
- }
- .widgets-doll-labels .room-label a::after {
- content: "";
- position: absolute;
- left: -1px;
- bottom: -1px;
- width: 10px;
- height: 10px;
- background-image: url(./images/svg/doll_label_corner.svg);
- background-repeat: no-repeat;
- background-position: top left;
- transform: rotate(270deg);
- }
- .widgets-doll-labels .room-label a > p {
- margin: 0;
- padding: 2px 10px;
- height: 100%;
- line-height: 1.5;
- }
- .widgets-doll-labels .room-label a > p::before {
- content: "";
- position: absolute;
- right: -1px;
- top: -1px;
- width: 10px;
- height: 10px;
- background-image: url(./images/svg/doll_label_corner.svg);
- background-repeat: no-repeat;
- background-position: top left;
- transform: rotate(90deg);
- }
- .widgets-doll-labels .room-label a > p::after {
- content: "";
- position: absolute;
- right: -1px;
- bottom: -1px;
- width: 10px;
- height: 10px;
- background-image: url(./images/svg/doll_label_corner.svg);
- background-repeat: no-repeat;
- background-position: top left;
- transform: rotate(180deg);
- }
- .widgets-doll-labels .room-label.noLine a {
- top: 16px;
- }
- .widgets-doll-labels .room-label a span {
- white-space: nowrap;
- user-select: none;
- }
- .widgets-doll-labels .room-label.with-entrance:after {
- display: none;
- }
- .widgets-doll-labels .room-label.with-entrance a {
- top: 50%;
- width: 38.5px;
- height: 15.75px;
- background-size: 38.5px 15.75px;
- -webkit-transform: translate(-50%, -50%);
- transform: translate(-50%, -50%);
- }
- .widgets-doll-labels .room-label.with-entrance a span {
- margin-left: -0.875px;
- margin-top: -0.875px;
- }
- .widgets-plan-labels .room-label {
- position: absolute;
- -webkit-animation: room-label 0.3s ease 0.1s;
- animation: room-label 0.3s ease 0.1s;
- -webkit-animation-fill-mode: both;
- animation-fill-mode: both;
- }
- .widgets-plan-labels .room-label a {
- display: block;
- position: absolute;
- line-height: 24px;
- -webkit-transform: translate(-50%);
- transform: translate(-50%, -50%);
- text-align: center;
- white-space: nowrap;
- font-size: 14px;
- font-style: normal;
- }
-
- .widgets-doors {
- position: absolute;
- pointer-events: none;
- top: 0;
- left: 0;
- bottom: 0;
- right: 0;
- }
- .widgets-doors[data-camera-toward=right] .door.show-arrow.right a:before,
- .widgets-doors[data-camera-toward=forward] .door.show-arrow.right a:before {
- margin-right: 3.5px;
- -webkit-transform: rotate(180deg);
- transform: rotate(180deg);
- }
- .widgets-doors[data-camera-toward=right] .door.show-arrow.right a:before,
- .widgets-doors[data-camera-toward=forward] .door.show-arrow.forward a:before,
- .widgets-doors[data-camera-toward=forward] .door.show-arrow.left a:after,
- .widgets-doors[data-camera-toward=forward] .door.show-arrow.right a:before {
- content: "";
- position: relative;
- display: inline-block;
- width: 10.5px;
- height: 10.5px;
- background: url(./images/svg/room-arrow-label.svg) no-repeat 50%;
- background-size: 100% 100%;
- vertical-align: middle;
- }
- .widgets-doors[data-camera-toward="forward"] .door.show-arrow.left a:after {
- margin-left: 4px;
- }
- .widgets-doors[data-camera-toward="forward"] .door.show-arrow.back a:after,
- .widgets-doors[data-camera-toward="right"] .door.show-arrow.left a:after {
- content: "";
- display: inline-block;
- vertical-align: middle;
- width: 10.5px;
- height: 10.5px;
- background: url(./images/svg/room-arrow-label.svg) no-repeat 50%;
- background-size: 100% 100%;
- margin-left: 4px;
- -webkit-transform: rotate(-90deg);
- transform: rotate(-90deg);
- }
- .widgets-doors[data-camera-toward=forward] .door.show-arrow.forward a:before ,
- .widgets-doors[data-camera-toward=right] .door.show-arrow.back a:before {
- margin-right: 3.5px;
- -webkit-transform: rotate(180deg);
- transform: rotate(180deg);
- }
- .widgets-doors[data-camera-toward="right"] .door.show-arrow.back a:before,
- .widgets-doors[data-camera-toward="right"] .door.show-arrow.forward a:after {
- content: "";
- position: relative;
- display: inline-block;
- width: 10.5px;
- height: 10.5px;
- background: url(./images/svg/room-arrow-label.svg) no-repeat 50%;
- background-size: 100% 100%;
- vertical-align: middle;
- }
- .widgets-doors[data-camera-toward="right"] .door.show-arrow.forward a:after {
- margin-left: 4px;
- }
- .widgets-doors[data-camera-toward="left"] .door.show-arrow.right a:after {
- -webkit-transform: rotate(-90deg);
- transform: rotate(-90deg);
- }
- .widgets-doors[data-camera-toward=back] .door.show-arrow.back a:after,
- .widgets-doors[data-camera-toward=left] .door.show-arrow.left a:after,
- .widgets-doors[data-camera-toward=left] .door.show-arrow.back a:after,
- .widgets-doors[data-camera-toward=left] .door.show-arrow.right a:after {
- content: "";
- display: inline-block;
- vertical-align: middle;
- width: 10.5px;
- height: 10.5px;
- background: url(./images/svg/room-arrow-label.svg) no-repeat 50%;
- background-size: 100% 100%;
- margin-left: 4px;
- }
- .widgets-doors[data-camera-toward="left"] .door.show-arrow.back a:after {
- position: relative;
- }
- .widgets-doors[data-camera-toward="left"] .door.show-arrow.forward a:before {
- position: relative;
- margin-right: 3.5px;
- -webkit-transform: rotate(180deg);
- transform: rotate(180deg);
- }
- .widgets-doors[data-camera-toward="back"] .door.show-arrow.forward a:after,
- .widgets-doors[data-camera-toward="left"] .door.show-arrow.forward a:before {
- content: "";
- display: inline-block;
- width: 10.5px;
- height: 10.5px;
- background: url(./images/svg/room-arrow-label.svg) no-repeat 50%;
- background-size: 100% 100%;
- vertical-align: middle;
- }
- .widgets-doors[data-camera-toward="back"] .door.show-arrow.forward a:after {
- margin-left: 4px;
- -webkit-transform: rotate(-90deg);
- transform: rotate(-90deg);
- }
- .widgets-doors[data-camera-toward="back"] .door.show-arrow.right a:after {
- margin-left: 4px;
- }
- .widgets-doors[data-camera-toward="back"] .door.show-arrow.left a:before,
- .widgets-doors[data-camera-toward="back"] .door.show-arrow.right a:after {
- content: "";
- position: relative;
- display: inline-block;
- width: 10.5px;
- height: 10.5px;
- background: url(./images/svg/room-arrow-label.svg) no-repeat 50%;
- background-size: 100% 100%;
- vertical-align: middle;
- }
- .widgets-doors[data-camera-toward="back"] .door.show-arrow.left a:before {
- margin-right: 3.5px;
- -webkit-transform: rotate(180deg);
- transform: rotate(180deg);
- }
- .widgets-doors .door {
- position: absolute;
- width: 0;
- height: 0;
- /* display: none; */
- -webkit-animation: viewport-door-label 0.3s ease 1s;
- animation: viewport-door-label 0.3s ease 1s;
- -webkit-animation-fill-mode: both;
- animation-fill-mode: both;
- -webkit-transform: translateZ(0);
- transform: translateZ(0);
- cursor: pointer;
- }
- .widgets-doors .door a {
- display: block;
- position: absolute;
- top: 50%;
- left: 50%;
- -webkit-transform: translate(-50%, -50%);
- transform: translate(-50%, -50%);
- border-radius: 1.75px;
- background: rgba(0, 0, 0, 0.5);
- line-height: 14px;
- padding: 8px 8px;
- border-radius: 4px;
- white-space: nowrap;
- font-size: 14px;
- font-style: normal;
- pointer-events: auto;
- -webkit-transition: background 0.3s ease, color 0.3s ease, -webkit-transform 1s ease;
- transition: background 0.3s ease, color 0.3s ease, -webkit-transform 1s ease;
- transition: transform 1s ease, background 0.3s ease, color 0.3s ease;
- transition: transform 1s ease, background 0.3s ease, color 0.3s ease, -webkit-transform 1s ease;
- }
- .widgets-doors .door a:after {
- -webkit-transition: opacity 0.3s ease;
- transition: opacity 0.3s ease;
- }
- .widgets-doors .door a:active {
- background: rgba(0, 0, 0, 0.5);
- color: hsla(0, 0%, 100%, 0.5);
- }
- .widgets-doors .door a:active:after {
- opacity: 0.5;
- }
- @-webkit-keyframes room-label {
- 0% {
- opacity: 0;
- margin-top: 8.75px;
- }
- to {
- opacity: 1;
- margin-top: 0;
- }
- }
- @keyframes room-label {
- 0% {
- opacity: 0;
- margin-top: 8.75px;
- }
- to {
- opacity: 1;
- margin-top: 0;
- }
- }
- @-webkit-keyframes door-label {
- 0% {
- opacity: 0;
- margin-top: 8.75px;
- }
- to {
- opacity: 1;
- margin-top: 0;
- }
- }
- @keyframes door-label {
- 0% {
- opacity: 0;
- margin-top: 8.75px;
- }
- to {
- opacity: 1;
- margin-top: 0;
- }
- }
- </style>
- </head>
- <body>
- <div id="scene" class="scene"></div>
- <div id="toolbar"></div>
- <script src="../dist/sdk/kankan-sdk-deps.js"></script>
- <script src="../dist/sdk/kankan-sdk.js"></script>
- <script>
- // ?data-old
- window.dontForbitSetsize = true
- var kankan = new KanKan({
- dom:'#scene',
- num:'t-jrjyXqu'
- })
- kankan.use("Controls")
- kankan.use("Tag").then(tour=>{
-
- })
- kankan.render()
- kankan.Scene.on('loaded',()=>{
-
- })
-
- </script>
- </body>
- </html>
|