SHOW:
|
|
- or go back to the newest paste.
| 1 | <script type='text/javascript' src='https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js'></script> | |
| 2 | <script type="text/javascript"> | |
| 3 | <!-- | |
| 4 | var unityObjectUrl = "http://webplayer.unity3d.com/download_webplayer-3.x/3.0/uo/UnityObject2.js"; | |
| 5 | if (document.location.protocol == 'https:') | |
| 6 | unityObjectUrl = unityObjectUrl.replace("http://", "https://ssl-");
| |
| 7 | document.write('<script type="text\/javascript" src="' + unityObjectUrl + '"><\/script>');
| |
| 8 | --> | |
| 9 | </script> | |
| 10 | <script type="text/javascript"> | |
| 11 | <!-- | |
| 12 | var config = {
| |
| 13 | width: 900, | |
| 14 | height: 600, | |
| 15 | params: { enableDebugging:"0" }
| |
| 16 | ||
| 17 | }; | |
| 18 | var u = new UnityObject2(config); | |
| 19 | ||
| 20 | jQuery(function() {
| |
| 21 | ||
| 22 | var $missingScreen = jQuery("#unityPlayer").find(".missing");
| |
| 23 | var $brokenScreen = jQuery("#unityPlayer").find(".broken");
| |
| 24 | $missingScreen.hide(); | |
| 25 | $brokenScreen.hide(); | |
| 26 | ||
| 27 | u.observeProgress(function (progress) {
| |
| 28 | switch(progress.pluginStatus) {
| |
| 29 | case "broken": | |
| 30 | $brokenScreen.find("a").click(function (e) {
| |
| 31 | e.stopPropagation(); | |
| 32 | e.preventDefault(); | |
| 33 | u.installPlugin(); | |
| 34 | return false; | |
| 35 | }); | |
| 36 | $brokenScreen.show(); | |
| 37 | break; | |
| 38 | case "missing": | |
| 39 | $missingScreen.find("a").click(function (e) {
| |
| 40 | e.stopPropagation(); | |
| 41 | e.preventDefault(); | |
| 42 | u.installPlugin(); | |
| 43 | return false; | |
| 44 | }); | |
| 45 | $missingScreen.show(); | |
| 46 | break; | |
| 47 | case "installed": | |
| 48 | $missingScreen.remove(); | |
| 49 | break; | |
| 50 | case "first": | |
| 51 | break; | |
| 52 | } | |
| 53 | }); | |
| 54 | - | u.initPlugin(jQuery("#unityPlayer")[0], "../Aeroviaggi3D.unity3d");
|
| 54 | + | u.initPlugin(jQuery("#unityPlayer")[0], "../Qui_Il_Vostro_File.unity3d");
|
| 55 | }); | |
| 56 | --> | |
| 57 | </script> | |
| 58 | <style type="text/css"> | |
| 59 | <!-- | |
| 60 | body {
| |
| 61 | font-family: Helvetica, Verdana, Arial, sans-serif; | |
| 62 | background-color: white; | |
| 63 | color: black; | |
| 64 | text-align: center; | |
| 65 | } | |
| 66 | a:link, a:visited {
| |
| 67 | color: #000; | |
| 68 | } | |
| 69 | a:active, a:hover {
| |
| 70 | color: #666; | |
| 71 | } | |
| 72 | p.header {
| |
| 73 | font-size: small; | |
| 74 | } | |
| 75 | p.header span {
| |
| 76 | font-weight: bold; | |
| 77 | } | |
| 78 | p.footer {
| |
| 79 | font-size: x-small; | |
| 80 | display: none; | |
| 81 | } | |
| 82 | div.content {
| |
| 83 | margin: auto; | |
| 84 | width: 900px; | |
| 85 | } | |
| 86 | div.broken, | |
| 87 | div.missing {
| |
| 88 | margin: auto; | |
| 89 | position: relative; | |
| 90 | top: 50%; | |
| 91 | width: 193px; | |
| 92 | } | |
| 93 | div.broken a, | |
| 94 | div.missing a {
| |
| 95 | height: 63px; | |
| 96 | position: relative; | |
| 97 | top: -31px; | |
| 98 | } | |
| 99 | div.broken img, | |
| 100 | div.missing img {
| |
| 101 | border-width: 0px; | |
| 102 | } | |
| 103 | div.broken {
| |
| 104 | display: none; | |
| 105 | } | |
| 106 | div#unityPlayer {
| |
| 107 | cursor: default; | |
| 108 | height: 600px; | |
| 109 | width: 900px; | |
| 110 | ||
| 111 | ||
| 112 | } | |
| 113 | --> | |
| 114 | </style> | |
| 115 | <div class="content"> | |
| 116 | <div id="unityPlayer"> | |
| 117 | <div class="missing"> | |
| 118 | <a href="http://unity3d.com/webplayer/" title="Unity Web Player. Install now!"> | |
| 119 | <img alt="Unity Web Player. Install now!" src="http://webplayer.unity3d.com/installation/getunity.png" width="193" height="63" /> | |
| 120 | </a> | |
| 121 | </div> | |
| 122 | <div class="broken"> | |
| 123 | <a href="http://unity3d.com/webplayer/" title="Unity Web Player. Install now! Restart your browser after install."> | |
| 124 | <img alt="Unity Web Player. Install now! Restart your browser after install." src="http://webplayer.unity3d.com/installation/getunityrestart.png" width="193" height="63" /> | |
| 125 | </a> | |
| 126 | </div> | |
| 127 | </div> | |
| 128 | </div> | |
| 129 | <p class="footer"></p> |