Advertisement
Guest User

Unity offline deployment Web Build All

a guest
Mar 6th, 2015
210
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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.         <script type='text/javascript' src='jquery.min.js'></script>
  6.         <script type='text/javascript' src='UnityObject2.js'></script>
  7.  
  8.         <script type="text/javascript">
  9.         <!--
  10.             var config = {
  11.                 width: 916,
  12.                 height: 595,
  13.                 params: { enableDebugging:"0" }
  14.                
  15.             };
  16.             var u = new UnityObject2(config);
  17.  
  18.             jQuery(function() {
  19.  
  20.                 var $missingScreen = jQuery("#unityPlayer").find(".missing");
  21.                 var $brokenScreen = jQuery("#unityPlayer").find(".broken");
  22.                 $missingScreen.hide();
  23.                 $brokenScreen.hide();
  24.                
  25.                 u.observeProgress(function (progress) {
  26.                     switch(progress.pluginStatus) {
  27.                         case "broken":
  28.                             $brokenScreen.find("a").click(function (e) {
  29.                                 e.stopPropagation();
  30.                                 e.preventDefault();
  31.                                 u.installPlugin();
  32.                                 return false;
  33.                             });
  34.                             $brokenScreen.show();
  35.                         break;
  36.                         case "missing":
  37.                             $missingScreen.find("a").click(function (e) {
  38.                                 e.stopPropagation();
  39.                                 e.preventDefault();
  40.                                 u.installPlugin();
  41.                                 return false;
  42.                             });
  43.                             $missingScreen.show();
  44.                         break;
  45.                         case "installed":
  46.                             $missingScreen.remove();
  47.                         break;
  48.                         case "first":
  49.                         break;
  50.                     }
  51.                 });
  52.                 u.initPlugin(jQuery("#unityPlayer")[0], "WebBuild All.unity3d");
  53.             });
  54.         -->
  55.         </script>
  56.         <style type="text/css">
  57.         <!--
  58.         body {
  59.             font-family: Helvetica, Verdana, Arial, sans-serif;
  60.             background-color: white;
  61.             color: black;
  62.             text-align: center;
  63.             margin:0px;
  64.             padding:0px;
  65.             width:916px;
  66.             height:595px;
  67.         }
  68.         a:link, a:visited {
  69.             color: #000;
  70.         }
  71.         a:active, a:hover {
  72.             color: #666;
  73.         }
  74.         p.header {
  75.             font-size: small;
  76.         }
  77.         p.header span {
  78.             font-weight: bold;
  79.         }
  80.         p.footer {
  81.             font-size: x-small;
  82.         }
  83.         div.content {
  84.             margin: auto;
  85.             width: 916px;
  86.             height:595px;
  87.         }
  88.         div.broken,
  89.         div.missing {
  90.             margin: 0px;
  91.             position: relative;
  92.             top: 50%;
  93.             width: 193px;
  94.         }
  95.         div.broken a,
  96.         div.missing a {
  97.             height: 63px;
  98.             position: relative;
  99.             top: -31px;
  100.         }
  101.         div.broken img,
  102.         div.missing img {
  103.             border-width: 0px;
  104.         }
  105.         div.broken {
  106.             display: none;
  107.         }
  108.         div#unityPlayer {
  109.             cursor: default;
  110.             height: 595px;
  111.             width: 916px;
  112.         }
  113.         -->
  114.         </style>
  115.     </head>
  116.     <body>
  117.        
  118.         <div class="content">
  119.             <div id="unityPlayer">
  120.                 <div class="missing">
  121.                     <a href="http://unity3d.com/webplayer/" title="Unity Web Player. Install now!">
  122.                         <img alt="Unity Web Player. Install now!" src="http://webplayer.unity3d.com/installation/getunity.png" width="193" height="63" />
  123.                     </a>
  124.                 </div>
  125.                 <div class="broken">
  126.                     <a href="http://unity3d.com/webplayer/" title="Unity Web Player. Install now! Restart your browser after install.">
  127.                         <img alt="Unity Web Player. Install now! Restart your browser after install." src="http://webplayer.unity3d.com/installation/getunityrestart.png" width="193" height="63" />
  128.                     </a>
  129.                 </div>
  130.             </div>
  131.         </div>
  132.     </body>
  133. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement