From 722473e2b2cd4776a65ba0b620a9710728963611 Mon Sep 17 00:00:00 2001
From: fuchengshen <men883234@gmail.com>
Date: 星期二, 14 六月 2022 10:24:52 +0800
Subject: [PATCH] 更改棚内和煤棚视角

---
 public/hn3d/static/js/editor.js |   29 +++++++++++++++--------------
 1 files changed, 15 insertions(+), 14 deletions(-)

diff --git a/public/hn3d/static/js/editor.js b/public/hn3d/static/js/editor.js
index 74e4486..2ecac82 100644
--- a/public/hn3d/static/js/editor.js
+++ b/public/hn3d/static/js/editor.js
@@ -14,18 +14,18 @@
 let aceEditor;
 let containExamples = true;
 
-function initPage() {
+function initPage () {
   initEditor();
   screenResize();
 }
 
-function screenResize() {
+function screenResize () {
   window.onresize = function () {
     mapHeight();
   };
 }
 
-function findConfig(locationParam, search) {
+function findConfig (locationParam, search) {
   let exConfig = haoutil.storage.get("mars3d-es5-example");
   if (!exConfig) {
     return;
@@ -49,6 +49,7 @@
       for (let index3 = 0; index3 < item2.children.length; index3++) {
         let item3 = item2.children[index3];
         if (item3.fileName == locationParam) {
+          console.log(item, item2, item3, "itemitemite")
           document.title = item3.name + " 銆�" + item2.name + " " + item.name + "銆� | Mars3D绀轰緥 | 鍚堣偉鐏槦绉戞妧鏈夐檺鍏徃";
           return;
         }
@@ -58,7 +59,7 @@
 }
 
 //鍒濆鍖栫紪杈戝櫒
-function initCodeEditor() {
+function initCodeEditor () {
   if (!aceEditor) {
     aceEditor = ace.edit("editor");
     aceEditor.setTheme("ace/theme/xcode");
@@ -73,12 +74,12 @@
 }
 
 //鍒濆鍖栫紪杈戝櫒浠ュ強棰勮鍐呭
-function initEditor() {
+function initEditor () {
   loadExampleHtml();
   initCodeEditor();
 }
 
-function loadExampleHtml() {
+function loadExampleHtml () {
   let locationParam = getLocationParam();
   if (!locationParam) {
     return;
@@ -120,7 +121,7 @@
   }
 }
 
-function getLocationParam() {
+function getLocationParam () {
   let id = haoutil.system.getRequestByName("id");
   if (id) {
     return id;
@@ -137,7 +138,7 @@
 }
 
 //杩愯浠g爜
-function run() {
+function run () {
   let iframeContent = $("#editor").val();
   if (editor) {
     iframeContent = aceEditor.getValue();
@@ -146,7 +147,7 @@
 }
 
 //濉厖棰勮鏁堟灉鍐呭
-function loadPreview(content) {
+function loadPreview (content) {
   let iFrame = createIFrame(),
     iframeDocument = iFrame.contentWindow.document;
 
@@ -164,14 +165,14 @@
   mapHeight();
 }
 
-function loadIFrameForSrc(url) {
+function loadIFrameForSrc (url) {
   createIFrame();
   $("#innerPage").attr("src", url);
 
   mapHeight();
 }
 
-function createIFrame() {
+function createIFrame () {
   let preViewPane = $("#previewPane");
   preViewPane.empty();
   let iframe = document.createElement("iframe");
@@ -182,7 +183,7 @@
 }
 
 //閲嶇疆缂栬緫鍣�
-function refresh() {
+function refresh () {
   initEditor();
   run();
 }
@@ -199,13 +200,13 @@
 //   selectMenu(id)
 // }
 
-function mapHeight() {
+function mapHeight () {
   let doc = $("#innerPage").contents();
   doc.find("html").height("100%");
   doc.find("body").height("100%");
 }
 
-function bindEvents() {
+function bindEvents () {
   $("#sidebar ul.third-menu a").click(function (evt) {
     let target = $(evt.target).parent().parent();
     let nodeId = evt.target.id;

--
Gitblit v1.9.1