1+ <!DOCTYPE html>
2+ < html >
3+ < head >
4+ < meta http-equiv ="Content-Type " content ="text/html; charset=utf-8 "/>
5+ < meta name ="viewport " content ="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0 "/>
6+ < meta name ="apple-mobile-web-app-capable " content ="yes "/>
7+ < title > SuperMap iClient3D示范程序</ title >
8+ < link href ="http://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css " rel ="stylesheet ">
9+ < link rel ="stylesheet " href ="../css/common.css ">
10+ < link rel ="stylesheet " href ="../css/sideBar.css ">
11+ < link rel ="stylesheet " href ="../css/examples.css ">
12+ < link rel ="stylesheet " href ="../../web/css/header.css ">
13+ < script type ="text/javascript " src ="http://cdn.bootcss.com/jquery/3.1.1/jquery.min.js "> </ script >
14+ < script type ="text/javascript " src ="../js/scrollTo.min.js "> </ script >
15+ < script type ="text/javascript " src ="http://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js "> </ script >
16+ < script type ="text/javascript " src ="./config.js "> </ script >
17+ < style >
18+ .container {
19+ width : 100% ;
20+ }
21+
22+ .navbar # headerMenu > li > a {
23+
24+ font-weight : inherit;
25+ }
26+ </ style >
27+ </ head >
28+
29+ < body >
30+ < nav class ="navbar navbar-fixed-top navbar-default ">
31+ </ nav >
32+ < script >
33+ $ ( '.navbar-fixed-top' ) . load ( '../../web/header.html' ) ;
34+ </ script >
35+ < div class ="main ">
36+
37+ < div class ="content " data-spy ="scroll " data-target ="#sidebar .menu ">
38+ < div id ="sidebar ">
39+ < ul class ="menu "> </ ul >
40+ </ div >
41+ < div id ="examples-container ">
42+ < ul id ="charts-list ">
43+
44+ </ ul >
45+ </ div >
46+ </ div >
47+ </ div >
48+ < script type ="text/javascript " src ="../js/sidebar.js "> </ script >
49+ < script type ="text/javascript " src ="../js/example.js "> </ script >
50+ < script >
51+
52+ $ ( document ) . ready ( function ( ) {
53+ initPage ( ) ;
54+ bindEvents ( )
55+ } ) ;
56+ function bindEvents ( ) {
57+ $ ( "#sidebar ul.menu>li" ) . on ( 'click' , function ( evt ) {
58+ window . location . hash = "#" + evt . target . id ;
59+ } ) ;
60+ $ ( "#sidebar ul.secondMenu>li" ) . on ( 'click' , function ( evt ) {
61+ var id = $ ( evt . target ) . parent ( ) . parent ( ) . parent ( ) . find ( "a.menuTitle" ) . attr ( 'id' ) ;
62+ id = id + "-" + evt . target . id ;
63+ window . location . hash = "#" + id ;
64+ evt . stopPropagation ( ) ;
65+ } ) ;
66+ window . addEventListener ( "hashchange" , function ( ) {
67+ this . scroll ( ) ;
68+ } ) ;
69+ $ ( '.dropdown-menu li a' ) . on ( 'click' , function ( ) {
70+ var host = window . location . protocol + "//" + window . location . host ;
71+ window . location . href = host + "/examples/" + this . text + "/examples.html" ;
72+ } )
73+
74+ }
75+ </ script >
76+
77+ </ body >
78+ </ html >
0 commit comments