[html4strict] AL-GHINA

Viewer

  1. PanoramaStudioViewerParams = {
  2. "panoramaStudioViewer": {
  3. "actions": [
  4.         {
  5.             "func": "function(pan,tilt,hfov){ this.viewer.setFisheyeDistortion(1.0); this.viewer.lock(); this.viewer.stopAutoPlay(); this.viewer.setView(pan,90,150);  this.viewer.panTo(pan||0,tilt||0,hfov||90,2.5,1.0,'easeInOutSine',true); this.tween({'time': 1.25, 'delay': 2.25, 'lp': 0.0, 'transition': 'easeInOutSine', 'onInit' : function(a,dstParams){ a.lp=a.viewer.fisheyeDistortion(); }, 'onUpdate': function(a){ a.viewer.setFisheyeDistortion(a.lp);}}); }",
  6.             "id": "littlePlanetIntro"
  7.         },
  8.         {
  9.             "func": "function(){ var enabled = this.viewer.gyroscopeEnabled(); var gb = this.get('gyrobutton'); if (gb){ gb.skin = enabled?gb.enabledskin:gb.disabledskin; gb.updateSkins(); } }",
  10.             "id": "updateGyroButton"
  11.         },
  12.         {
  13.             "func": "function(a){ var d = this.viewer.get('map'); if (d&&!d.collapsing){ d.collapsing = !0;  if (!d.visible){   d.viewer.action('hideGallery'); d.setVisible(true); d.style = 'opacity: 1.0;'; d.updateStyles();   var o = d.viewer.get('thumbnailGallery');   if (!!o&&o.align == d.align){ d.height = o.height; d.updateSize(); }   var dh = Math.min(Math.max(this.viewer.height()*0.6, 96), this.viewer.height() - 96);   d.tween({ 'time': 0.3, 'transition' : 'easeInOutSine', 'height' : dh, 'onUpdate' : function(a){ a.updateSize(); }, 'onComplete' : function(a){ a.collapsing = !1; a.height = dh; a.updateSize(); a.center(); } }); } else { d.style = 'opacity: 0.0;'; d.updateStyles(); d.tween({ 'time': 0.3, 'transition' : 'easeInOutSine', 'height' : 0, 'onUpdate' : function(a){ a.updateSize(); }, 'onComplete' : function(a){ a.collapsing = !1; a.height = 0; a.updateSize(); a.setVisible(false); } }); }}}",
  14.             "id": "toggleMap"
  15.         },
  16.         {
  17.             "func": "function(delay){ var d=this.viewer.get('map'); if (d&&d.visible&&!d.collapsing){  d.collapsing = !0; d.updateStyles();  d.tween({'time': 0.5, 'delay': delay, 'transition': 'easeInOutSine', 'height': 0, 'onUpdate': function(a){ a.updateSize();  },'onComplete': function(a){ a.collapsing = !1; a.height = 0; a.updateSize(); a.setVisible(false); }});}}",
  18.             "id": "hideMap"
  19.         },
  20.         {
  21.             "func": "function(){ var map = this.get('map'); if (map && map.visible){  var h = Math.min(Math.max(this.viewer.height()*0.6, 96),this.viewer.height()-96);  map.height = h; map.updateSize();}}",
  22.             "id": "resizeMap"
  23.         },
  24.         {
  25.             "func": "function(a){ var id = this.viewer.currentMBId; if (!!id&&(a.id!=id)){this.viewer.action('hideMessage');} if (a.id!=id){ var s=this.viewer.get('globalData'); if (s&&s.messageBoxStyle){ a.style = s.messageBoxStyle; }this.viewer.currentMBId=null; if (!this.viewer.isVRModeEnabled()){ this.viewer.add('textbox',a); this.viewer.currentMBId=a.id; } } }",
  26.             "id": "showMessage"
  27.         },
  28.         {
  29.             "func": "function(){ if (this.viewer.currentMBId) this.viewer.remove(this.viewer.currentMBId); this.viewer.currentMBId=null; }",
  30.             "id": "hideMessage"
  31.         },
  32.         {
  33.             "func": "function(a){ var id = this.viewer.currentMBId; if (a.id!=id){ this.viewer.action('showMessage',a); } else { this.viewer.action('hideMessage'); } }",
  34.             "id": "toggleMessage"
  35.         }
  36.     ],
  37. "button": [
  38.         {
  39.             "align": "leftbottom",
  40.             "height": 24,
  41.             "id": "showTbButton",
  42.             "onclick": "function(){ this.get('toolbar').tween({'time': 0.75, 'yoff': 2,'transition':'easeOutExpo' , 'onUpdate': function(a){ a.updateAlign(); } }); this.tween({'time': 0.75, 'yoff': -30, 'onUpdate': function(a){ a.updateAlign(); } }); }",
  43.             "skin": "shadow(3,2,2,rgba(0,0,0,1));copy(defaultSkin,128,192,64,64,0,0,24,24);shadow(3,2,2,rgba(0,0,0,1));copy(defaultSkin,128,192,64,64,0,0,24,24)",
  44.             "skinactive": "shadow(3,0,0,rgba(0,0,0,1));copy(defaultSkin,128,192,64,64,1,1,24,24)",
  45.             "width": 28,
  46.             "xoff": 0,
  47.             "yoff": 0
  48.         },
  49.         {
  50.             "align": "leftbottom",
  51.             "height": 28,
  52.             "id": "leftStereoButton",
  53.             "onclick": "function(){ this.viewer.exitVRMode();  } ",
  54.             "skin": "shadow(3,0,0,rgba(0,0,0,1));copy(defaultSkin,192,256,64,64,0,0,28,28);",
  55.             "skinactive": "dim(-10px,-10px,48px,48px,48,48);comp(0.9);copy(defaultSkin,0,128,64,64,0,0,48,48);comp(1.0);shadow(3,0,0,rgba(0,0,0,1));copy(defaultSkin,192,256,64,64,11,11,28,28);",
  56.             "skinhover": "dim(-10px,-10px,48px,48px,48,48);comp(0.5);copy(defaultSkin,0,128,64,64,0,0,48,48);comp(1.0);shadow(3,0,0,rgba(0,0,0,1));copy(defaultSkin,192,256,64,64,10,10,28,28)",
  57.             "style": "opacity: 0.6;",
  58.             "stylehover": "opacity: 0.8;",
  59.             "visible": false,
  60.             "width": 28,
  61.             "xoff": 8,
  62.             "yoff": 8
  63.         },
  64.         {
  65.             "align": "bottom",
  66.             "height": 28,
  67.             "id": "rightStereoButton",
  68.             "onclick": "function(){ this.viewer.exitVRMode();  } ",
  69.             "skin": "shadow(3,0,0,rgba(0,0,0,1));copy(defaultSkin,192,256,64,64,0,0,28,28);",
  70.             "skinactive": "dim(-10px,-10px,48px,48px,48,48);comp(0.9);copy(defaultSkin,0,128,64,64,0,0,48,48);comp(1.0);shadow(3,0,0,rgba(0,0,0,1));copy(defaultSkin,192,256,64,64,11,11,28,28);",
  71.             "skinhover": "dim(-10px,-10px,48px,48px,48,48);comp(0.5);copy(defaultSkin,0,128,64,64,0,0,48,48);comp(1.0);shadow(3,0,0,rgba(0,0,0,1));copy(defaultSkin,192,256,64,64,10,10,28,28)",
  72.             "style": "opacity: 0.6;",
  73.             "stylehover": "opacity: 0.8;",
  74.             "visible": false,
  75.             "width": 28,
  76.             "xoff": 22,
  77.             "yoff": 8
  78.         }
  79.     ],
  80. "buttonBox": [
  81.         {
  82.             "align": "bottom",
  83.             "button": [
  84.                 {
  85.                     "align": "left",
  86.                     "id": "hideTbButton",
  87.                     "index": 1,
  88.                     "onclick": "function(){  this.viewer.action('hideMap');this.get('toolbar').tween({'time': 0.75, 'yoff': -52, 'onUpdate': function(a){ a.updateAlign(); } }); this.get('showTbButton').tween({'time': 0.75, 'yoff': 0, 'onUpdate': function(a){ a.updateAlign(); } });}",
  89.                     "priority": 3,
  90.                     "skin": "shadow(3,2,2,rgba(0,0,0,1));copy(defaultSkin,0,192,64,64,0,0,28,28);shadow(3,0,0,rgba(0,0,0,1));copy(defaultSkin,0,192,64,64,0,0,28,28);",
  91.                     "skinactive": "shadow(3,0,0,rgba(0,0,0,1));copy(defaultSkin,0,192,64,64,1,1,28,28);",
  92.                     "xoff": 8,
  93.                     "yoff": 0
  94.                 },
  95.                 {
  96.                     "align": "left",
  97.                     "id": "mapbutton",
  98.                     "index": 3,
  99.                     "onclick": "function(){ this.viewer.action('toggleMap'); }",
  100.                     "oninit": "function(){var m = this.viewer.map(); if (!!m){ this.setVisible(true);}}",
  101.                     "priority": 3,
  102.                     "skin": "shadow(3,2,2,rgba(0,0,0,1));copy(defaultSkin,128,448,64,64,0,0,28,28);shadow(3,0,0,rgba(0,0,0,1));copy(defaultSkin,128,448,64,64,0,0,28,28);",
  103.                     "skinactive": "shadow(3,0,0,rgba(0,0,0,1));copy(defaultSkin,128,448,64,64,1,1,28,28);",
  104.                     "visible": false,
  105.                     "xoff": 8,
  106.                     "yoff": 0
  107.                 },
  108.                 {
  109.                     "align": "center",
  110.                     "id": "infobutton",
  111.                     "index": 5,
  112.                     "onclick": "function(){ var d=this.viewer.get('localData'); d&&(d=d.infoTextBox); if(!d){ var d=this.viewer.get('globalData'); d&&(d=d.infoTextBox); } if (!!d){this.viewer.action('toggleMessage',d);} }",
  113.                     "onscenechanged": "function(){ var d=this.viewer.get('localData'); var g=this.viewer.get('globalData'); var o=d&&d.infoTextBox||g&&g.infoTextBox; this.setVisible(!!o); }",
  114.                     "priority": 3,
  115.                     "skin": "shadow(3,2,2,rgba(0,0,0,1));copy(defaultSkin,0,0,64,64,0,0,28,28);shadow(3,0,0,rgba(0,0,0,1));copy(defaultSkin,0,0,64,64,0,0,28,28);",
  116.                     "skinactive": "shadow(3,0,0,rgba(0,0,0,1));copy(defaultSkin,0,0,64,64,1,1,28,28);",
  117.                     "xoff": 0,
  118.                     "yoff": 0
  119.                 },
  120.                 {
  121.                     "align": "center",
  122.                     "index": 7,
  123.                     "priority": 0,
  124.                     "skin": "shadow(3,2,2,rgba(0,0,0,1));copy(defaultSkin,128,64,64,64,0,0,28,28);shadow(3,0,0,rgba(0,0,0,1));copy(defaultSkin,128,64,64,64,0,0,28,28);",
  125.                     "skinactive": "shadow(3,0,0,rgba(0,0,0,1));copy(defaultSkin,128,64,64,64,1,1,28,28);",
  126.                     "type": 1,
  127.                     "xoff": 0,
  128.                     "yoff": 0
  129.                 },
  130.                 {
  131.                     "align": "center",
  132.                     "index": 8,
  133.                     "priority": 0,
  134.                     "skin": "shadow(3,2,2,rgba(0,0,0,1));copy(defaultSkin,0,64,64,64,0,0,28,28);shadow(3,0,0,rgba(0,0,0,1));copy(defaultSkin,0,64,64,64,0,0,28,28);",
  135.                     "skinactive": "shadow(3,0,0,rgba(0,0,0,1));copy(defaultSkin,0,64,64,64,1,1,28,28);",
  136.                     "type": 2,
  137.                     "xoff": 0,
  138.                     "yoff": 0
  139.                 },
  140.                 {
  141.                     "align": "center",
  142.                     "index": 9,
  143.                     "priority": 0,
  144.                     "skin": "shadow(3,2,2,rgba(0,0,0,1));copy(defaultSkin,192,64,64,64,0,0,28,28);shadow(3,0,0,rgba(0,0,0,1));copy(defaultSkin,192,64,64,64,0,0,28,28)",
  145.                     "skinactive": "shadow(3,0,0,rgba(0,0,0,1));copy(defaultSkin,192,64,64,64,1,1,28,28);",
  146.                     "type": 3,
  147.                     "xoff": 0,
  148.                     "yoff": 0
  149.                 },
  150.                 {
  151.                     "align": "center",
  152.                     "index": 10,
  153.                     "priority": 0,
  154.                     "skin": "shadow(3,2,2,rgba(0,0,0,1));copy(defaultSkin,64,64,64,64,0,0,28,28);shadow(3,0,0,rgba(0,0,0,1));copy(defaultSkin,64,64,64,64,0,0,28,28)",
  155.                     "skinactive": "shadow(3,0,0,rgba(0,0,0,1));copy(defaultSkin,64,64,64,64,1,1,28,28);",
  156.                     "type": 4,
  157.                     "xoff": 0,
  158.                     "yoff": 0
  159.                 },
  160.                 {
  161.                     "align": "center",
  162.                     "index": 11,
  163.                     "priority": 2,
  164.                     "skin": "shadow(3,2,2,rgba(0,0,0,1));copy(defaultSkin,192,128,64,64,0,0,28,28);shadow(3,0,0,rgba(0,0,0,1));copy(defaultSkin,192,128,64,64,0,0,28,28)",
  165.                     "skinactive": "shadow(3,0,0,rgba(0,0,0,1));copy(defaultSkin,192,128,64,64,1,1,28,28);",
  166.                     "type": 5,
  167.                     "xoff": 0,
  168.                     "yoff": 0
  169.                 },
  170.                 {
  171.                     "align": "center",
  172.                     "index": 12,
  173.                     "priority": 2,
  174.                     "skin": "shadow(3,2,2,rgba(0,0,0,1));copy(defaultSkin,128,128,64,64,0,0,28,28);shadow(3,0,0,rgba(0,0,0,1));copy(defaultSkin,128,128,64,64,0,0,28,28)",
  175.                     "skinactive": "shadow(3,0,0,rgba(0,0,0,1));copy(defaultSkin,128,128,64,64,1,1,28,28);",
  176.                     "type": 6,
  177.                     "xoff": 0,
  178.                     "yoff": 0
  179.                 },
  180.                 {
  181.                     "align": "center",
  182.                     "id": "playbutton",
  183.                     "index": 13,
  184.                     "onclick": "function(){ if (this.viewer.isPlaying()) this.viewer.stopAutoPlay(); else this.viewer.startAutoPlay(); }",
  185.                     "priority": 1,
  186.                     "skin": "shadow(3,2,2,rgba(0,0,0,1));copy(defaultSkin,64,0,64,64,0,0,28,28);shadow(3,0,0,rgba(0,0,0,1));copy(defaultSkin,64,0,64,64,0,0,28,28)",
  187.                     "skinactive": "shadow(3,0,0,rgba(0,0,0,1));copy(defaultSkin,64,0,64,64,1,1,28,28)",
  188.                     "xoff": 0,
  189.                     "yoff": 0
  190.                 },
  191.                 {
  192.                     "align": "center",
  193.                     "id": "vrButton",
  194.                     "index": 14,
  195.                     "onclick": "function(){ if (this.viewer.isVRModeEnabled()){ this.viewer.exitVRMode();} else { this.viewer.enterVRMode(); } } ",
  196.                     "priority": 3,
  197.                     "skin": "shadow(3,2,2,rgba(0,0,0,1));copy(defaultSkin,192,256,64,64,0,0,28,28);shadow(3,0,0,rgba(0,0,0,1));copy(defaultSkin,192,256,64,64,0,0,28,28);",
  198.                     "skinactive": "shadow(3,0,0,rgba(0,0,0,1));copy(defaultSkin,192,256,64,64,1,1,28,28);",
  199.                     "visible": false,
  200.                     "xoff": 0,
  201.                     "yoff": 0
  202.                 },
  203.                 {
  204.                     "align": "center",
  205.                     "disabledskin": "shadow(3,0,0,rgba(0,0,0,1));comp(0.66);copy(defaultSkin,64,128,64,64,0,0,28,28);",
  206.                     "enabledskin": "shadow(3,2,2,rgba(0,0,0,1));comp(1.0);copy(defaultSkin,64,128,64,64,0,0,28,28);shadow(3,0,0,rgba(0,0,0,1));comp(1.0);copy(defaultSkin,64,128,64,64,0,0,28,28);",
  207.                     "id": "gyrobutton",
  208.                     "index": 18,
  209.                     "onclick": "function(){ var enabled = this.viewer.enableGyroscope(!this.viewer.gyroscopeEnabled()); } ",
  210.                     "priority": 3,
  211.                     "skin": "shadow(3,0,0,rgba(0,0,0,1));comp(0.66);copy(defaultSkin,64,128,64,64,0,0,28,28);",
  212.                     "visible": false,
  213.                     "xoff": 0,
  214.                     "yoff": 0
  215.                 },
  216.                 {
  217.                     "align": "right",
  218.                     "id": "audiobutton",
  219.                     "index": 17,
  220.                     "onclick": "function(){ var o = this.get('gAudio'); if (!o) o = this.get('lAudio'); if (!!o){ o.isPlaying()?o.pause():o.play(); }   }",
  221.                     "onscenechanged": "function(){ this.pauseskin = this.skin; this.pauseskinactive = this.skinactive; var o = this.get('gAudio')||this.get('lAudio'); this.setVisible(!!o); }",
  222.                     "playskin": "dim(-2px,-2px,32px,32px,32,32);shadow(3,2,2,rgba(0,0,0,1));copy(defaultSkin,64,256,64,64,2,2,28,28);shadow(3,0,0,rgba(0,0,0,1));copy(defaultSkin,64,256,64,64,2,2,28,28);",
  223.                     "playskinactive": "dim(-2px,-2px,32px,32px,32,32);shadow(3,0,0,rgba(0,0,0,1));copy(defaultSkin,64,256,64,64,3,3,28,28);",
  224.                     "priority": 3,
  225.                     "skin": "dim(-2px,-2px,32px,32px,32,32);shadow(3,2,2,rgba(0,0,0,1));copy(defaultSkin,0,256,64,64,2,2,28,28);shadow(3,0,0,rgba(0,0,0,1));copy(defaultSkin,0,256,64,64,2,2,28,28);",
  226.                     "skinactive": "dim(-2px,-2px,32px,32px,32,32);shadow(3,2,2,rgba(0,0,0,1));copy(defaultSkin,0,256,64,64,3,3,28,28);",
  227.                     "xoff": 8,
  228.                     "yoff": 0
  229.                 },
  230.                 {
  231.                     "align": "right",
  232.                     "id": "fullscreenButton",
  233.                     "index": 16,
  234.                     "onclick": "function(){ this.viewer.toggleFullscreen();  } ",
  235.                     "oninit": "function(){ if (!this.viewer.fullscreenSupported()) this.viewer.remove('fullscreenButton');  } ",
  236.                     "priority": 3,
  237.                     "skin": "shadow(3,2,2,rgba(0,0,0,1));copy(defaultSkin,192,0,64,64,0,0,28,28);shadow(3,0,0,rgba(0,0,0,1));copy(defaultSkin,192,0,64,64,0,0,28,28);",
  238.                     "skinactive": "shadow(3,0,0,rgba(0,0,0,1));copy(defaultSkin,192,0,64,64,1,1,28,28);",
  239.                     "xoff": 8,
  240.                     "yoff": 0
  241.                 }
  242.             ],
  243.             "buttonheight": 28,
  244.             "buttonstyle": "border-radius: 50%; background-color: rgba(255,255,255,0.0); transition: background-color 250ms,box-shadow 250ms;",
  245.             "buttonstyleactive": "background-color: rgba(255,255,255,0.4);box-shadow: 0px 0px 9px 8px rgba(255,255,255,0.4);",
  246.             "buttonstylehover": "background-color: rgba(255,255,255,0.25);box-shadow: 0px 0px 9px 8px rgba(255,255,255,0.25);",
  247.             "buttonwidth": 28,
  248.             "height": "48px",
  249.             "hidestyle": "",
  250.             "id": "toolbar",
  251.             "mapElement": {
  252.                 "align": "lefttop",
  253.                 "apikey": "HARISATATAMA_",
  254.                 "contentstyle": "position: absolute; left: 4px; right: 4px; bottom: 4px; top: 4px; display: inline; overflow: hidden; box-shadow: rgb(0, 0, 0) 1px 1px 3px 1.7px;",
  255.                 "gmapstype": "hybrid",
  256.                 "gmarker": "{ url: 'pap_marker_redorange.png', scaledSize: new google.maps.Size(30,48), anchor: new google.maps.Point(15, 42) }",
  257.                 "gmarkeractive": "{ url: 'pap_marker_lima.png', scaledSize: new google.maps.Size(30,48), anchor: new google.maps.Point(15, 42) }",
  258.                 "height": "0px",
  259.                 "id": "map",
  260.                 "onmarkerclick": "function(){ this.viewer.action('hideMap',0.3); }",
  261.                 "radar": {
  262.                     "radarcontext": "function(c){ c.lineWidth = 1; if (!this.fillStyle){ var w = c.canvas.width/2; this.fillStyle=c.createRadialGradient(w,w,0,w,w,w); this.fillStyle.addColorStop(0,'rgba(255,255,255,0.5)');this.fillStyle.addColorStop(1,'rgba(255,255,255,0.1)');} c.fillStyle = this.fillStyle; if (!this.strokeStyle){ var w = c.canvas.width/2; this.strokeStyle=c.createRadialGradient(w,w,0,w,w,w); this.strokeStyle.addColorStop(0,'#ccc');this.strokeStyle.addColorStop(1,'rgba(192,192,192,0.7)');} c.strokeStyle = this.strokeStyle;  }",
  263.                     "radius": 0.99,
  264.                     "width": 256
  265.                 },
  266.                 "style": "opacity: 0; transition: opacity 0.5s",
  267.                 "type": "gmap",
  268.                 "typecontrols": false,
  269.                 "visible": false,
  270.                 "zoom": 20,
  271.                 "zoomcontrols": true
  272.             },
  273.             "spacing": 8,
  274.             "style": "max-width: 100%;background: rgba(0,0,0,0.0);",
  275.             "visible": true,
  276.             "width": "500px",
  277.             "yoff": -52
  278.         }
  279.     ],
  280. "contextmenu": {
  281.         "id": "menu",
  282.         "items": [
  283.             {
  284.                 "id": "fullscreenItem",
  285.                 "onclick": "function(){ this.viewer.toggleFullscreen(); }",
  286.                 "oninit": "function(){ this.caption = this.viewer.tr('Fullscreen'); if (!this.viewer.fullscreenSupported()) this.visible = false;  } "
  287.             },
  288.             {
  289.                 "caption": "-"
  290.             },
  291.             {
  292.                 "id": "gyroItem",
  293.                 "onclick": "function(){  var gb = this.get('gyrobutton'); if (gb){ gb.onclick(); } else { this.viewer.enableGyroscope(!this.viewer.gyroscopeEnabled()); } }",
  294.                 "oninit": "function(){  this.caption = this.viewer.tr('Gyroscope Control'); }"
  295.             }
  296.         ],
  297.         "onshow": "function(){ var gyro = this.getItem('gyroItem'); if (gyro){ gyro.visible = this.viewer.gyroAvailable?true:false; }  this.update(); }",
  298.         "style": "background-color: rgba(255,255,255,0.8); box-shadow: 4px 4px 4px rgba(0,0,0,0.5); border-radius: 3px;"
  299.     },
  300. "events": {
  301.         "id": "mainEvents",
  302.         "onentervrmode": "function(){ this.viewer.action('hideMessage'); var tb = this.get('toolbar'); tb&&tb.setVisible(false); tb = this.get('galleryBtnPrev'); tb&&this.viewer.hasGallery&&tb.setVisible(false); tb = this.get('galleryBtnNext'); tb&&this.viewer.hasGallery&&tb.setVisible(false); tb = this.get('compass'); tb&&tb.setVisible(false); var lvrb = this.get('leftStereoButton'); lvrb&&lvrb.setVisible(true); var rvrb = this.get('rightStereoButton'); rvrb&&rvrb.setVisible(true); } ",
  303.         "onexit": "function(){  var d=this.viewer.get('localData'); if (!!d&&d.infoTextBox){ this.viewer.action('hideMessage'); } this.viewer.gyroWasEnabled = this.viewer.gyroAvailable&&this.viewer.gyroscopeEnabled();\t}",
  304.         "onexitvrmode": "function(){  var tb = this.get('toolbar'); tb&&tb.setVisible(true); var g = this.viewer.gallery(); tb = this.get('galleryBtnPrev'); tb&&this.viewer.hasGallery&&tb.setVisible(g&&g.length>1); tb = this.get('galleryBtnNext'); tb&&this.viewer.hasGallery&&tb.setVisible(g&&g.length>1); tb = this.get('compass'); tb&&tb.setVisible(true); var lvrb = this.get('leftStereoButton'); lvrb&&lvrb.setVisible(false); var rvrb = this.get('rightStereoButton'); rvrb&&rvrb.setVisible(false); } ",
  305.         "ongyroscopeavailable": "function(available){ this.viewer.gyroAvailable = available; var o = this.get('gyrobutton'); if(!!o){ o.setVisible(available&&this.viewer.panoType()==0); available&&o.onclick(); } } ",
  306.         "ongyroscopetoggle": "function(enabled){ this.viewer.action('updateGyroButton'); }",
  307.         "oninit": "function(){ var g = this.viewer.gallery(); this.viewer.hasGallery = ((!!g) && g.length>1); this.viewer.checkForGyroscope(); this.viewer.action('littlePlanetIntro',161.5100,19.2800,104.0000);  }",
  308.         "onplay": "function(){ var o = this.get('playbutton'); if (!!o){ o.sbackup = o.skin;  o.sabackup = o.skinactive; o.skin = 'shadow(3,2,2,rgba(0,0,0,1));copy(defaultSkin,128,0,64,64,0,0,28,28);shadow(3,0,0,rgba(0,0,0,1));copy(defaultSkin,128,0,64,64,0,0,28,28)'; o.skinactive = 'shadow(3,0,0,rgba(0,0,0,1));copy(defaultSkin,128,0,64,64,1,1,28,28)'; o.updateSkins(); } } ",
  309.         "onresize": "function(){ this.viewer.action('resizeMap');  }",
  310.         "onscenechanged": "function(){ var o = this.get('gyrobutton'); if(!!o){ o.setVisible(this.viewer.gyroAvailable&&this.viewer.panoType()==0); this.viewer.gyroAvailable&&this.viewer.panoType()==0&&this.viewer.gyroWasEnabled&&o.onclick(); }}",
  311.         "onstartaudio": "function(senderId){ if (senderId=='gAudio'||senderId=='lAudio'){var o = this.get('audiobutton'); if (!!o){ o.skin = o.playskin; o.skinhover = o.playskinhover; o.skinactive = o.playskinactive; o.updateSkins(); }} } ",
  312.         "onstop": "function(){ var o = this.get('playbutton'); if (!!o){ o.skin = o.sbackup;  o.skinactive = o.sabackup; o.updateSkins(); } } ",
  313.         "onstopaudio": "function(senderId){ if (senderId=='gAudio'||senderId=='lAudio'){var o = this.get('audiobutton'); if (!!o){ o.skin = o.pauseskin; o.skinhover = o.pauseskinhover; o.skinactive = o.pauseskinactive; o.updateSkins(); }} } ",
  314.         "onuseswebgl": "function(available){ this.viewer.webglAvailable = available; if (available){ var vr = this.get('vrButton'); vr&&vr.setVisible(true); } } "
  315.     },
  316. "translate": {
  317.         "de": {
  318.             "Fullscreen": "Vollbild",
  319.             "Gyroscope Control": "Gyroskop-Steuerung"
  320.         }
  321.     }
  322. }
  323. }

Editor

You can edit this paste and save as new:


File Description
  • AL-GHINA
  • Paste Code
  • 25 Jul-2021
  • 22.29 Kb
You can Share it: