Skip to content

Commit cfede7c

Browse files
committed
优化web
1 parent a8cd060 commit cfede7c

File tree

4 files changed

+12
-45
lines changed

4 files changed

+12
-45
lines changed

examples/css/header.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@
110110
font-size: 14px;
111111
padding-top: 12px;
112112
padding-bottom: 12px;
113+
background-color: #3375A1;
113114
}
114115

115116
/*鼠标在下拉菜单划过时的样式*/

examples/header.html

Lines changed: 5 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
<ul class="nav navbar-nav">
1717
<li class="overview-menu" id="headerIndex">
18-
<a href="#" class="center">
18+
<a href="../../web/index.html" class="center">
1919
首页
2020
</a>
2121
</li>
@@ -30,10 +30,10 @@
3030
<i class="fa fa-sort-down"></i>
3131
</a>
3232
<ul class="dropdown-menu ">
33-
<li><a href="#" id="leaflet">for Leaflet</a></li>
34-
<li><a href="#" id="openlayers">for OpenLayers</a></li>
35-
<li><a href="#" id="mapboxgl">for MapboxGL</a></li>
36-
<li><a href="#" id="3dwebgl">3D-WebGL</a></li>
33+
<li><a href="../leaflet/examples.html" id="leaflet">for Leaflet</a></li>
34+
<li><a href="../openlayers/examples.html" id="openlayers">for OpenLayers</a></li>
35+
<li><a href="../mapboxgl/examples.html" id="mapboxgl">for MapboxGL</a></li>
36+
<li><a href="../3dwebgl/examples.html" id="3dwebgl">3D-WebGL</a></li>
3737
</ul>
3838
</li>
3939
<li class="api-menu" id="headerPricing">
@@ -52,26 +52,9 @@
5252
</li>
5353
</ul>
5454
</div>
55-
<script type="text/javascript" src="../../web/config.js"></script>
5655
<script type="text/javascript">
57-
$('.example-menu .dropdown-menu li').on('click', function (e) {
58-
var id = $(e.target).attr("id");
59-
var path = dropMenuConfig[id];
60-
var host = window.location.protocol + "//" + window.location.host + (window.location.port ? "/iClient9" : "");
61-
if (path) {
62-
window.location.href = host + "/examples/" + dropMenuConfig[id] + "/examples.html";
63-
}
64-
});
65-
$('.download-menu .build').on('click', function () {
66-
var host = window.location.protocol + "//" + window.location.host + (window.location.port ? "/iClient9" : "");
67-
window.location.href = host + "/build/build.html";
68-
});
69-
$('.nav #headerIndex,.navbar-header #title').on('click', function (evt) {
70-
window.location.href = window.location.protocol + "//" + window.location.host + (window.location.port ? "/iClient9/web/index.html" : "");
71-
});
7256
$(document).ready (function () {
7357
var suffixHeader = document.getElementById("suffix-title");
7458
suffixHeader.innerText = "for " + identification.name;
7559
});
76-
7760
</script>

web/css/header.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@
9999
font-size: 14px;
100100
padding-top: 12px;
101101
padding-bottom: 12px;
102+
background-color: #3375A1;
102103
}
103104

104105
/*鼠标在下拉菜单划过时的样式*/

web/header.html

Lines changed: 5 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
<ul class="nav navbar-nav">
1818
<li class="overview-menu" id="headerIndex">
19-
<a href="#" class="center">
19+
<a href="./index.html" class="center">
2020
首页
2121
</a>
2222
</li>
@@ -31,10 +31,10 @@
3131
<i class="fa fa-sort-down"></i>
3232
</a>
3333
<ul class="dropdown-menu ">
34-
<li><a href="#" id="leaflet">for Leaflet</a></li>
35-
<li><a href="#" id="openlayers">for OpenLayers</a></li>
36-
<li><a href="#" id="mapboxgl">for MapboxGL</a></li>
37-
<li><a href="#" id="3dwebgl">3D-WebGL</a></li>
34+
<li><a href="../examples/leaflet/examples.html" id="leaflet">for Leaflet</a></li>
35+
<li><a href="../examples/openlayers/examples.html" id="openlayers">for OpenLayers</a></li>
36+
<li><a href="../examples/mapboxgl/examples.html" id="mapboxgl">for MapboxGL</a></li>
37+
<li><a href="../examples/3dwebgl/examples.html" id="3dwebgl">3D-WebGL</a></li>
3838
</ul>
3939
</li>
4040
<li class="api-menu" id="headerPricing">
@@ -53,21 +53,3 @@
5353
</li>
5454
</ul>
5555
</div>
56-
<script type="text/javascript" src="./config.js"></script>
57-
<script type="text/javascript">
58-
$('.example-menu .dropdown-menu li').on('click', function (e) {
59-
var id = $(e.target).attr("id");
60-
var path = dropMenuConfig[id];
61-
var host = window.location.protocol + "//" + window.location.host + (window.location.port ? "/iClient9" : "");
62-
if (path) {
63-
window.location.href = host + "/examples/" + dropMenuConfig[id] + "/examples.html";
64-
}
65-
});
66-
// $('.download-menu .build').on('click', function () {
67-
// var host = window.location.protocol + "//" + window.location.host + (window.location.port ? "/iClient9" : "");
68-
// window.location.href = host + "/build/build.html";
69-
// });
70-
$('.nav #headerIndex,.navbar-header #title').on('click', function (evt) {
71-
window.location.href = window.location.protocol + "//" + window.location.host + (window.location.port ? "/iClient9/web/index.html" : "");
72-
})
73-
</script>

0 commit comments

Comments
 (0)