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