| 
									
										
										
										
											2018-12-26 20:21:22 +08:00
										 |  |  | <link rel="stylesheet" href="app/editor/static/preview-templates/ccc-devtools/css/element-ui.css"> | 
					
						
							|  |  |  | <link rel="stylesheet" href="app/editor/static/preview-templates/ccc-devtools/css/iview.css"> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | <style> | 
					
						
							|  |  |  | 	body { | 
					
						
							|  |  |  |         background-color: #333; | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  | 	.el-color-picker, .el-color-picker__trigger { | 
					
						
							|  |  |  | 		width: 100% !important; | 
					
						
							|  |  |  | 	} | 
					
						
							|  |  |  | 	.el-input-number .el-input__inner { | 
					
						
							|  |  |  | 		text-align: left; | 
					
						
							|  |  |  | 	} | 
					
						
							|  |  |  | 	.el-input-number.is-controls-right .el-input__inner { | 
					
						
							|  |  |  | 		padding-left: 5px; | 
					
						
							|  |  |  | 		padding-right: 5px; | 
					
						
							|  |  |  | 	} | 
					
						
							|  |  |  | 	.ivu-collapse-content { | 
					
						
							|  |  |  | 		color: #515a6e; | 
					
						
							|  |  |  | 		padding: 0 5px 0 16px; | 
					
						
							|  |  |  | 		background-color: #fff; | 
					
						
							|  |  |  | 	} | 
					
						
							|  |  |  | 	.el-input-number--mini .el-input-number__decrease, .el-input-number--mini .el-input-number__increase { | 
					
						
							|  |  |  | 		width: 12px; | 
					
						
							|  |  |  | 		font-size: 12px; | 
					
						
							|  |  |  | 	} | 
					
						
							|  |  |  | </style> | 
					
						
							|  |  |  | <div id="app"> | 
					
						
							|  |  |  | 	<div class="demo-split"> | 
					
						
							| 
									
										
										
										
											2018-12-28 09:18:49 +08:00
										 |  |  | 		<Split v-model="splitLeft" v-if="isDevMode"> | 
					
						
							| 
									
										
										
										
											2018-12-26 20:21:22 +08:00
										 |  |  | 			<div slot="left" class="demo-split-pane" id="game_panel" style="display:flex;justify-content:left;align-items:center;height: 100vh;"> | 
					
						
							|  |  |  | 				<div id="top" style="position: absolute;top:0;"></div> | 
					
						
							|  |  |  | 			</div> | 
					
						
							| 
									
										
										
										
											2018-12-28 19:30:18 +08:00
										 |  |  | 			<div slot="right" class="demo-split-pane no-padding"> | 
					
						
							| 
									
										
										
										
											2018-12-26 20:21:22 +08:00
										 |  |  | 				<Split v-model="splitRight" mode="vertical"> | 
					
						
							|  |  |  | 					<div slot="top" class="demo-split-pane" style="padding-left: 5px;"> | 
					
						
							|  |  |  | 						<el-input placeholder="搜索节点" v-model="filterText" size="mini" id="searchInput"></el-input> | 
					
						
							| 
									
										
										
										
											2018-12-28 19:30:18 +08:00
										 |  |  | 						<el-tree v-if="isDevMode" :data="sceneTreeData" :draggable="true" :props="nodeProps" :default-expanded-keys="defaultExpandedKeys" | 
					
						
							| 
									
										
										
										
											2018-12-28 09:18:49 +08:00
										 |  |  | 						 empty-text="加载场景..." :node-key="'_id'" :expand-on-click-node="false" :filter-node-method="filterNode" ref="sceneTree" | 
					
						
							|  |  |  | 						 @node-click="handleNodeClick" style="min-width: 250px;height: 100%;overflow-x:hidden;overflow-y:auto;"> | 
					
						
							| 
									
										
										
										
											2018-12-26 20:21:22 +08:00
										 |  |  | 							<span class="custom-tree-node" slot-scope="{ node, data }"> | 
					
						
							|  |  |  | 								<span v-bind:style="{color: data.activeInHierarchy?'#606266':'#C0C4CC'}">{{ node.label }}</span> | 
					
						
							|  |  |  | 							</span> | 
					
						
							|  |  |  | 						</el-tree> | 
					
						
							|  |  |  | 						<el-button @click="handleRefreshTree" icon="el-icon-refresh" size="mini" style="position: absolute;right:0;top:0;"></el-button> | 
					
						
							|  |  |  | 					</div> | 
					
						
							|  |  |  | 					<div slot="bottom" class="demo-split-pane" style="background: white;min-width: 250px;height: 100%;padding:5px 0;overflow-x:hidden;overflow-y:auto;"> | 
					
						
							|  |  |  | 						<div v-if="node"> | 
					
						
							|  |  |  | 							<el-row style="margin:5px 0;"> | 
					
						
							|  |  |  | 								<el-col :span="2" style="text-align:center;padding-top:7px;padding-left:5px;"> | 
					
						
							|  |  |  | 									<el-checkbox v-model="node.active"></el-checkbox> | 
					
						
							|  |  |  | 								</el-col> | 
					
						
							|  |  |  | 								<el-col :span="20"> | 
					
						
							|  |  |  | 									<el-input v-model="node.name" size="mini"></el-input> | 
					
						
							|  |  |  | 								</el-col> | 
					
						
							| 
									
										
										
										
											2018-12-28 10:20:31 +08:00
										 |  |  | 								<el-col :span="2"> | 
					
						
							|  |  |  | 									<el-button icon="el-icon-search" @click="outputNodeHandler" size="mini" circle></el-button> | 
					
						
							|  |  |  | 								</el-col> | 
					
						
							| 
									
										
										
										
											2018-12-26 20:21:22 +08:00
										 |  |  | 							</el-row> | 
					
						
							|  |  |  | 							<Collapse simple value="1"> | 
					
						
							|  |  |  | 								<Panel name="1"> | 
					
						
							|  |  |  | 									Node | 
					
						
							|  |  |  | 									<div slot="content"> | 
					
						
							|  |  |  | 										<el-row style="height: 28px;margin-bottom:3px;"> | 
					
						
							|  |  |  | 											<el-col :span="6" style="text-align: left;line-height: 28px;">Position</el-col> | 
					
						
							|  |  |  | 											<el-col :span="1" style="text-align: center; line-height: 28px;">X</el-col> | 
					
						
							|  |  |  | 											<el-col :span="8"> | 
					
						
							|  |  |  | 												<el-input-number v-model="node.x" controls-position="right" size="mini" style="width: 100%;"></el-input-number> | 
					
						
							|  |  |  | 											</el-col> | 
					
						
							|  |  |  | 											<el-col :span="1" style="text-align: center;line-height: 28px;">Y</el-col> | 
					
						
							|  |  |  | 											<el-col :span="8"> | 
					
						
							|  |  |  | 												<el-input-number v-model="node.y" controls-position="right" size="mini" style="width: 100%;"></el-input-number> | 
					
						
							|  |  |  | 											</el-col> | 
					
						
							|  |  |  | 										</el-row> | 
					
						
							|  |  |  | 										<el-row style="height: 28px;margin-bottom:3px;"> | 
					
						
							|  |  |  | 											<el-col :span="6" style="text-align: left;line-height: 28px;">Angle</el-col> | 
					
						
							|  |  |  | 											<el-col :span="18"> | 
					
						
							|  |  |  | 												<el-input-number v-model="node.angle" controls-position="right" size="mini" style="width: 100%;"></el-input-number> | 
					
						
							|  |  |  | 											</el-col> | 
					
						
							|  |  |  | 										</el-row> | 
					
						
							|  |  |  | 										<el-row style="height: 28px;margin-bottom:3px;"> | 
					
						
							|  |  |  | 											<el-col :span="6" style="text-align: left;line-height: 28px;">Scale</el-col> | 
					
						
							|  |  |  | 											<el-col :span="1" style="text-align: center; line-height: 28px;">X</el-col> | 
					
						
							|  |  |  | 											<el-col :span="8"> | 
					
						
							|  |  |  | 												<el-input-number v-model="node.scaleX" controls-position="right" size="mini" style="width: 100%;"></el-input-number> | 
					
						
							|  |  |  | 											</el-col> | 
					
						
							|  |  |  | 											<el-col :span="1" style="text-align: center;line-height: 28px;">Y</el-col> | 
					
						
							|  |  |  | 											<el-col :span="8"> | 
					
						
							|  |  |  | 												<el-input-number v-model="node.scaleY" controls-position="right" size="mini" style="width: 100%;"></el-input-number> | 
					
						
							|  |  |  | 											</el-col> | 
					
						
							|  |  |  | 										</el-row> | 
					
						
							|  |  |  | 										<el-row style="height: 28px;margin-bottom:3px;"> | 
					
						
							|  |  |  | 											<el-col :span="6" style="text-align: left;line-height: 28px;">Anchor</el-col> | 
					
						
							|  |  |  | 											<el-col :span="1" style="text-align: center; line-height: 28px;">X</el-col> | 
					
						
							|  |  |  | 											<el-col :span="8"> | 
					
						
							|  |  |  | 												<el-input-number v-model="node.anchorX" controls-position="right" size="mini" style="width: 100%;"></el-input-number> | 
					
						
							|  |  |  | 											</el-col> | 
					
						
							|  |  |  | 											<el-col :span="1" style="text-align: center;line-height: 28px;">Y</el-col> | 
					
						
							|  |  |  | 											<el-col :span="8"> | 
					
						
							|  |  |  | 												<el-input-number v-model="node.anchorY" controls-position="right" size="mini" style="width: 100%;"></el-input-number> | 
					
						
							|  |  |  | 											</el-col> | 
					
						
							|  |  |  | 										</el-row> | 
					
						
							|  |  |  | 										<el-row style="height: 28px;margin-bottom:3px;"> | 
					
						
							|  |  |  | 											<el-col :span="6" style="text-align: left;line-height: 28px;">Size</el-col> | 
					
						
							|  |  |  | 											<el-col :span="1" style="text-align: center; line-height: 28px;">W</el-col> | 
					
						
							|  |  |  | 											<el-col :span="8"> | 
					
						
							|  |  |  | 												<el-input-number v-model="node.width" controls-position="right" size="mini" style="width: 100%;"></el-input-number> | 
					
						
							|  |  |  | 											</el-col> | 
					
						
							|  |  |  | 											<el-col :span="1" style="text-align: center;line-height: 28px;">H</el-col> | 
					
						
							|  |  |  | 											<el-col :span="8"> | 
					
						
							|  |  |  | 												<el-input-number v-model="node.height" controls-position="right" size="mini" style="width: 100%;"></el-input-number> | 
					
						
							|  |  |  | 											</el-col> | 
					
						
							|  |  |  | 										</el-row> | 
					
						
							|  |  |  | 										<el-row style="height: 28px;margin-bottom:3px;"> | 
					
						
							|  |  |  | 											<el-col :span="6" style="text-align: left;line-height: 28px;">Color</el-col> | 
					
						
							|  |  |  | 											<el-col :span="18"> | 
					
						
							|  |  |  | 												<el-color-picker size="mini" v-model="nodeColor" @change="handleColorChange"></el-color-picker> | 
					
						
							|  |  |  | 											</el-col> | 
					
						
							|  |  |  | 										</el-row> | 
					
						
							|  |  |  | 										<el-row style="height: 28px;margin-bottom:3px;"> | 
					
						
							|  |  |  | 											<el-col :span="6" style="text-align: left;line-height: 28px;">Opacity</el-col> | 
					
						
							|  |  |  | 											<el-col :span="18"> | 
					
						
							|  |  |  | 												<el-input-number v-model="node.opacity" controls-position="right" size="mini" style="width: 100%;"></el-input-number> | 
					
						
							|  |  |  | 											</el-col> | 
					
						
							|  |  |  | 										</el-row> | 
					
						
							|  |  |  | 										<el-row style="height: 28px;margin-bottom:3px;"> | 
					
						
							|  |  |  | 											<el-col :span="6" style="text-align: left;line-height: 28px;">Skew</el-col> | 
					
						
							|  |  |  | 											<el-col :span="1" style="text-align: center; line-height: 28px;">X</el-col> | 
					
						
							|  |  |  | 											<el-col :span="8"> | 
					
						
							|  |  |  | 												<el-input-number v-model="node.skewX" controls-position="right" size="mini" style="width: 100%;"></el-input-number> | 
					
						
							|  |  |  | 											</el-col> | 
					
						
							|  |  |  | 											<el-col :span="1" style="text-align: center;line-height: 28px;">Y</el-col> | 
					
						
							|  |  |  | 											<el-col :span="8"> | 
					
						
							|  |  |  | 												<el-input-number v-model="node.skewY" controls-position="right" size="mini" style="width: 100%;"></el-input-number> | 
					
						
							|  |  |  | 											</el-col> | 
					
						
							|  |  |  | 										</el-row> | 
					
						
							|  |  |  | 										<el-row style="height: 28px;margin-bottom:0px;"> | 
					
						
							|  |  |  | 											<el-col :span="6" style="text-align: left;line-height: 28px;">Group</el-col> | 
					
						
							|  |  |  | 											<el-col :span="18"> | 
					
						
							|  |  |  | 												<el-input v-model="node.group" size="mini"></el-input> | 
					
						
							|  |  |  | 											</el-col> | 
					
						
							|  |  |  | 										</el-row> | 
					
						
							|  |  |  | 									</div> | 
					
						
							|  |  |  | 								</Panel> | 
					
						
							|  |  |  | 								<Panel name="2"> | 
					
						
							|  |  |  | 									Components | 
					
						
							|  |  |  | 									<p slot="content">Coming soon...</p> | 
					
						
							|  |  |  | 								</Panel> | 
					
						
							|  |  |  | 							</Collapse> | 
					
						
							|  |  |  | 						</div> | 
					
						
							|  |  |  | 					</div> | 
					
						
							|  |  |  | 				</Split> | 
					
						
							|  |  |  | 			</div> | 
					
						
							|  |  |  | 		</Split> | 
					
						
							| 
									
										
										
										
											2018-12-28 19:30:18 +08:00
										 |  |  | 		<div id="dev_switch" style="position: absolute;top:45px;left:10px;width: 200px;"> | 
					
						
							|  |  |  | 			<el-switch v-model="isDevMode" @change="handleChangeMode" active-color="#0099ff" inactive-color="gray"> | 
					
						
							| 
									
										
										
										
											2018-12-28 10:20:31 +08:00
										 |  |  | 			</el-switch> | 
					
						
							| 
									
										
										
										
											2018-12-28 10:50:43 +08:00
										 |  |  | 			<el-tooltip :content="'ccc-devtools@Next v1.2.2'" placement="top"> | 
					
						
							| 
									
										
										
										
											2018-12-28 19:30:18 +08:00
										 |  |  | 				<Icon type="logo-github" size="24" @click="openGithub" /> | 
					
						
							| 
									
										
										
										
											2018-12-28 10:20:31 +08:00
										 |  |  | 			</el-tooltip> | 
					
						
							|  |  |  | 		</div> | 
					
						
							| 
									
										
										
										
											2018-12-26 20:21:22 +08:00
										 |  |  | 	</div> | 
					
						
							|  |  |  | </div> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | <script type="text/javascript" charset="utf-8" src="app/editor/static/preview-templates/ccc-devtools/js/vue.js"></script> | 
					
						
							|  |  |  | <script src="app/editor/static/preview-templates/ccc-devtools/js/element-ui.js"></script> | 
					
						
							|  |  |  | <script type="text/javascript" charset="utf-8" src="app/editor/static/preview-templates/ccc-devtools/js/iview.js"></script> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | <script> | 
					
						
							|  |  |  | 	var app = new Vue({ | 
					
						
							|  |  |  | 		el: '#app', | 
					
						
							|  |  |  | 		data: { | 
					
						
							| 
									
										
										
										
											2018-12-28 09:18:49 +08:00
										 |  |  | 			isDevMode: false, | 
					
						
							| 
									
										
										
										
											2018-12-26 20:21:22 +08:00
										 |  |  | 			filterText: '', | 
					
						
							|  |  |  | 			splitLeft: 0.7, | 
					
						
							|  |  |  | 			splitRight: 0.5, | 
					
						
							|  |  |  | 			defaultExpandedKeys: [], | 
					
						
							|  |  |  | 			sceneTreeData: [], | 
					
						
							|  |  |  | 			nodeProps: { | 
					
						
							|  |  |  | 				children: 'children', | 
					
						
							|  |  |  | 				label: 'name' | 
					
						
							|  |  |  | 			}, | 
					
						
							|  |  |  | 			node: null, | 
					
						
							|  |  |  | 			nodeColor: '#ffffff', | 
					
						
							| 
									
										
										
										
											2018-12-28 09:18:49 +08:00
										 |  |  | 			intervalId: -1 | 
					
						
							| 
									
										
										
										
											2018-12-26 20:21:22 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  | 		}, | 
					
						
							|  |  |  | 		methods: { | 
					
						
							|  |  |  | 			handleRefreshTree() { | 
					
						
							|  |  |  | 				this.$data.sceneTreeData = []; | 
					
						
							|  |  |  | 				setTimeout(() => { | 
					
						
							|  |  |  | 					this.$data.sceneTreeData = cc.director.getScene().children; | 
					
						
							|  |  |  | 					this.defaultExpandedKeys = [this.$data.sceneTreeData[0]._id]; | 
					
						
							|  |  |  | 				}, 0); | 
					
						
							|  |  |  | 			}, | 
					
						
							|  |  |  | 			handleNodeClick(node) { | 
					
						
							|  |  |  | 				this.$data.node = node; | 
					
						
							|  |  |  | 				this.$data.nodeColor = '#' + node.color.toHEX(); | 
					
						
							|  |  |  | 				let superPreLoad = node._onPreDestroy; | 
					
						
							|  |  |  | 				node._onPreDestroy = () => { | 
					
						
							|  |  |  | 					superPreLoad.apply(node); | 
					
						
							|  |  |  | 					if (this.$data && this.$data.node === node) { | 
					
						
							|  |  |  | 						this.$data.node = null; | 
					
						
							|  |  |  | 					} | 
					
						
							|  |  |  | 				} | 
					
						
							|  |  |  | 			}, | 
					
						
							|  |  |  | 			handleColorChange(data) { | 
					
						
							|  |  |  | 				this.$data.node.color = new cc.Color().fromHEX(data); | 
					
						
							|  |  |  | 			}, | 
					
						
							| 
									
										
										
										
											2018-12-28 10:20:31 +08:00
										 |  |  | 			outputNodeHandler(target) { | 
					
						
							|  |  |  | 				let i = 1; | 
					
						
							| 
									
										
										
										
											2018-12-28 19:30:18 +08:00
										 |  |  | 				while (window['temp' + i] !== undefined) { | 
					
						
							| 
									
										
										
										
											2018-12-28 10:20:31 +08:00
										 |  |  | 					i++; | 
					
						
							|  |  |  | 				} | 
					
						
							| 
									
										
										
										
											2018-12-28 19:30:18 +08:00
										 |  |  | 				window['temp' + i] = this.$data.node; | 
					
						
							| 
									
										
										
										
											2018-12-28 10:20:31 +08:00
										 |  |  | 				console.log('temp' + i); | 
					
						
							| 
									
										
										
										
											2018-12-28 19:30:18 +08:00
										 |  |  | 				console.log(window['temp' + i]); | 
					
						
							| 
									
										
										
										
											2018-12-28 10:20:31 +08:00
										 |  |  | 			}, | 
					
						
							|  |  |  | 			outputComponentHandler(target) { | 
					
						
							|  |  |  | 				// TODO | 
					
						
							|  |  |  | 			}, | 
					
						
							|  |  |  | 			openGithub() { | 
					
						
							|  |  |  | 				window.open('https://github.com/potato47/ccc-devtools'); | 
					
						
							|  |  |  | 			}, | 
					
						
							| 
									
										
										
										
											2018-12-26 20:21:22 +08:00
										 |  |  | 			filterNode(value, node) { | 
					
						
							|  |  |  | 				if (!value) return true; | 
					
						
							|  |  |  | 				return node.name.toLowerCase().indexOf(value.toLowerCase()) !== -1; | 
					
						
							| 
									
										
										
										
											2018-12-28 09:18:49 +08:00
										 |  |  | 			}, | 
					
						
							|  |  |  | 			openDevMode() { | 
					
						
							|  |  |  | 				let initWin = () => { | 
					
						
							|  |  |  | 					if (window.cc) { | 
					
						
							|  |  |  | 						let top = document.getElementById('top') | 
					
						
							|  |  |  | 						// top.insertBefore(document.getElementsByClassName('toolbar')[0], top.firstChild); | 
					
						
							|  |  |  | 						top.appendChild(document.getElementsByClassName('toolbar')[0]); | 
					
						
							|  |  |  | 						document.getElementById('game_panel').appendChild(document.getElementById('content')); | 
					
						
							|  |  |  | 						// let content = document.getElementById('content'); | 
					
						
							|  |  |  | 						// content.insertBefore(document.getElementById('searchInput'), content.firstChild); | 
					
						
							|  |  |  | 						let scene = cc.director.getScene(); | 
					
						
							|  |  |  | 						if (scene) { | 
					
						
							|  |  |  | 							this.$data.sceneTreeData = scene.children; | 
					
						
							|  |  |  | 							this.defaultExpandedKeys = [this.$data.sceneTreeData[0]._id]; | 
					
						
							|  |  |  | 						} | 
					
						
							|  |  |  | 						cc.director.on(cc.Director.EVENT_AFTER_SCENE_LAUNCH, () => { | 
					
						
							|  |  |  | 							this.$data.sceneTreeData = cc.director.getScene().children; | 
					
						
							|  |  |  | 							this.defaultExpandedKeys = [this.$data.sceneTreeData[0]._id]; | 
					
						
							| 
									
										
										
										
											2018-12-28 19:30:18 +08:00
										 |  |  | 						}, this); | 
					
						
							| 
									
										
										
										
											2018-12-28 09:18:49 +08:00
										 |  |  | 						cc.director.on(cc.Director.EVENT_BEFORE_SCENE_LOADING, () => { | 
					
						
							|  |  |  | 							this.$data.sceneTreeData = []; | 
					
						
							|  |  |  | 							this.$data.node = null; | 
					
						
							| 
									
										
										
										
											2018-12-28 19:30:18 +08:00
										 |  |  | 						}, this); | 
					
						
							| 
									
										
										
										
											2018-12-28 09:18:49 +08:00
										 |  |  | 						clearInterval(this.$data.intervalId); | 
					
						
							|  |  |  | 					} else { | 
					
						
							|  |  |  | 						console.log('cc is not init'); | 
					
						
							|  |  |  | 					} | 
					
						
							|  |  |  | 				} | 
					
						
							|  |  |  | 				this.$data.intervalId = setInterval(initWin, 500); | 
					
						
							|  |  |  | 				setTimeout(initWin, 0); | 
					
						
							|  |  |  | 			}, | 
					
						
							|  |  |  | 			closeDevMode() { | 
					
						
							| 
									
										
										
										
											2018-12-28 19:30:18 +08:00
										 |  |  | 				this.$data.node = null; | 
					
						
							|  |  |  | 				this.$data.sceneTreeData = []; | 
					
						
							|  |  |  | 				cc.director.targetOff(this); | 
					
						
							| 
									
										
										
										
											2018-12-28 09:18:49 +08:00
										 |  |  | 				clearInterval(this.$data.intervalId); | 
					
						
							|  |  |  | 				document.body.appendChild(document.getElementsByClassName('toolbar')[0]); | 
					
						
							|  |  |  | 				document.body.appendChild(document.getElementById('content')); | 
					
						
							|  |  |  | 			}, | 
					
						
							|  |  |  | 			handleChangeMode(data) { | 
					
						
							| 
									
										
										
										
											2018-12-28 19:30:18 +08:00
										 |  |  | 				data ? this.openDevMode() : this.closeDevMode(); | 
					
						
							| 
									
										
										
										
											2018-12-26 20:21:22 +08:00
										 |  |  | 			} | 
					
						
							|  |  |  | 		}, | 
					
						
							|  |  |  | 		watch: { | 
					
						
							|  |  |  | 			filterText(val) { | 
					
						
							|  |  |  | 				this.$refs.sceneTree.filter(val); | 
					
						
							|  |  |  | 			} | 
					
						
							|  |  |  | 		}, | 
					
						
							| 
									
										
										
										
											2018-12-28 19:30:18 +08:00
										 |  |  | 		created: function () { | 
					
						
							|  |  |  | 			let toolbar = document.getElementsByClassName('toolbar')[0]; | 
					
						
							|  |  |  | 			// toolbar.insertBefore(document.getElementById('dev_switch'), toolbar.firstChild); | 
					
						
							| 
									
										
										
										
											2018-12-28 09:18:49 +08:00
										 |  |  | 			document.body.insertBefore(document.getElementById('app'), document.body.firstChild); | 
					
						
							| 
									
										
										
										
											2018-12-26 20:21:22 +08:00
										 |  |  | 		} | 
					
						
							|  |  |  | 	}); | 
					
						
							| 
									
										
										
										
											2018-12-28 09:18:49 +08:00
										 |  |  | </script> | 
					
						
							| 
									
										
										
										
											2018-12-28 19:30:18 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  | <script> | 
					
						
							|  |  |  | // (function(){var script=document.createElement('script');script.src='https://rawgit.com/paulirish/memory-stats.js/master/bookmarklet.js';document.head.appendChild(script);})() | 
					
						
							|  |  |  | // (function(){var script=document.createElement('script');script.onload=function(){var stats=new Stats();document.body.appendChild(stats.dom);requestAnimationFrame(function loop(){stats.update();requestAnimationFrame(loop)});};script.src='//mrdoob.github.io/stats.js/build/stats.min.js';document.head.appendChild(script);})() | 
					
						
							|  |  |  | </script> |