| | |
| | | <script type="text/javascript" src="../static/js/utils.js"></script> |
| | | <script type="text/javascript" src="../static/js/common.js"></script> |
| | | <script type="text/javascript" src="../static/js/data/BuildingData.js"></script> |
| | | <script type="text/javascript" src="../static/js/data/ConveyData.js"></script> |
| | | <script type="text/javascript" src="../static/js/object/Cube.js"></script> |
| | | <script type="text/javascript" src="../static/js/object/StoreArea.js"></script> |
| | | <script type="text/javascript" src="../static/js/object/Store.js"></script> |
| | |
| | | <li id="menu-t"> |
| | | <div><div>俯</div></div> |
| | | </li> |
| | | <li id="menu-b"> |
| | | <div><div>返</div></div> |
| | | </li> |
| | | </ul> |
| | | |
| | | |
| | |
| | | document.getElementById("btn-lock").addEventListener('click', function () { |
| | | player.lockControl(); |
| | | removeClass(document.getElementById("ship-info-btn"), "show"); |
| | | removeClass(document.getElementById("title-box"), "show"); |
| | | document.getElementById("ship-type-ul").style.transform = 'translateY(-60px)'; |
| | | }, false); |
| | | |
| | |
| | | document.getElementById("menu-t").addEventListener('click', function () { |
| | | player.verticalView(); |
| | | }, false); |
| | | |
| | | document.getElementById("menu-b").addEventListener('click', function () { |
| | | player.backlView(); |
| | | }, false); |
| | | </script> |
| | | <script> |
| | | var percent = 0; |
| | |
| | | var speedDom = document.getElementById("speed"); |
| | | var timer = setInterval(function () { |
| | | if (percent < 100.00) { |
| | | percent += 0.02; |
| | | // percent += 1; |
| | | // percent += 0.02; |
| | | percent += 1; |
| | | speedDom.innerText = percent.toFixed(2); |
| | | } else { |
| | | speedDom.innerText = '100.00'; |
| | |
| | | }, 1); |
| | | |
| | | $(document).on('click','.btn-word', function () { |
| | | fullScreen() |
| | | $("#mask").fadeOut(3000, function () { // 3000 |
| | | // fullScreen() |
| | | $("#mask").fadeOut(1, function () { // 3000 |
| | | $("#menu").addClass("show"); |
| | | setTimeout(function () { |
| | | $("#ship-type-ul").css("transform", "translateY(-40px)"); |
| | |
| | | $("#ship-info-btn").data("type", 2).addClass("show"); |
| | | $("#ship-info-btn #btn-lock").css("z-index", "10"); |
| | | $("#menu li").css("transition", "all 200ms !important"); |
| | | }, 3000); // 1000 |
| | | setTimeout(function () { |
| | | removeClass(document.getElementById("title-box"), "show"); |
| | | }, 10000); |
| | | }, 1); // 1000 |
| | | }); |
| | | $("#title-box, #logo").addClass("show"); |
| | | $("#ship-info-btn").removeClass("show"); |