| | |
| | | <li><a id="console" onclick="nav(this.id)" class="nav-select" href="#">主控图</a></li> |
| | | <li><a id="pipeline" onclick="nav(this.id)" class="nav-unselect" href="#">输送设备</a></li> |
| | | <li><a id="forklift" onclick="nav(this.id)" class="nav-unselect" href="#">提升机</a></li> |
| | | <!-- <li><a id="ste" onclick="nav(this.id)" class="nav-unselect" href="#">穿梭车</a></li>--> |
| | | <li><a id="shuttle" onclick="nav(this.id)" class="nav-unselect" href="#">四向穿梭车</a></li> |
| | | <li><a id="task" onclick="nav(this.id)" class="nav-unselect" href="#">任务管理</a></li> |
| | | <li><a id="admin" onclick="nav(this.id)" class="nav-unselect" href="#">管理后台</a></li> |
| | | </ul> |
| | | </div> |
| | | </div> |
| | |
| | | <script> |
| | | // 导航栏 |
| | | function nav(id) { |
| | | if(id == 'admin') { |
| | | window.open('./admin/index.html') |
| | | return |
| | | } |
| | | $('.nav-select').attr("class", "nav-unselect"); |
| | | $('#'+id).attr("class", "nav-select"); |
| | | $('#content').attr("src", id+".html"); |