index.html 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>中国城市空气质量实况</title>
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7. <meta name="description" content="China">
  8. <meta name="author" content="kener.linfeng@gmail.com">
  9. <link href="../../../asset/css/bootstrap.css" rel="stylesheet">
  10. <link href="../../../asset/css/bootstrap-responsive.css" rel="stylesheet">
  11. <link rel="shortcut icon" href="../../../asset/ico/favicon.png">
  12. <style type="text/css">
  13. * {
  14. font-family: "Microsoft YaHei" !important;
  15. }
  16. body{
  17. background-image: url(../../../asset/img/groovepaper.png);
  18. background-repeat: repeat;
  19. }
  20. header {
  21. background-image: url(../../../asset/img/tweed.png);
  22. background-repeat: repeat;
  23. }
  24. h1 {
  25. color: #FFF;
  26. font-weight : bolder;
  27. margin:20px 0 5px 0;
  28. }
  29. header p {
  30. color: #FFF;
  31. margin-bottom: 20px;
  32. }
  33. section {
  34. background-image: url(../../../asset/img/ticks.png);
  35. background-repeat: repeat;
  36. padding: 10px;
  37. }
  38. footer {
  39. height: 100px;
  40. background-image: url(../../../asset/img/tweed.png);
  41. background-repeat: repeat;
  42. font-size: 14px;
  43. color: #CCC;
  44. text-align: center;
  45. padding-top: 15px;
  46. margin-top:15px;
  47. }
  48. .nav.nav-tabs.nav-justified {
  49. margin-bottom:0;
  50. }
  51. .ctrl-wrap {
  52. padding:20px 20px 0 20px;
  53. text-align: center;
  54. border-left: 1px solid #dddddd;
  55. border-right: 1px solid #dddddd;
  56. }
  57. .ctrl-content .btn{
  58. width: 7%;
  59. }
  60. .tab-content {
  61. padding:20px;
  62. border: 1px solid #dddddd;
  63. border-top: 0px;
  64. }
  65. .g2wrap {
  66. height:300px;
  67. width:33%;
  68. float:left;
  69. }
  70. input[type="radio"] {
  71. margin: -5px 5px 0;
  72. }
  73. label {
  74. display: inline-block;
  75. margin-bottom: 5px;
  76. font-weight: bold;
  77. }
  78. footer a:hover {
  79. color:#62C462
  80. }
  81. </style>
  82. </head>
  83. <body>
  84. <!-- HEADER -->
  85. <header>
  86. <div class="container">
  87. <h1>中国主要城市空气质量实况</h1>
  88. <p>数据更新时间:<span id="time">****-**-** --:--:--</span></p>
  89. </div>
  90. </header>
  91. <section>
  92. <div class="container">
  93. <strong>引言:</strong>你关注或者不关注,它就在我们身边...
  94. <div style="text-align: right"><i>忘记从什么时候开始,用颜色表示空气;不知道什么时候可以,用甜度描述空气。</i> from <a href="http://www.pm25.in/" target="_blank">pm25.in</a></div>
  95. </div>
  96. </section>
  97. <div class="container">
  98. <!-- CONTAINER -->
  99. <div class="row">
  100. <div id="overview" class="span12">
  101. <h3>概况:今天哪里又爆表了?</h3>
  102. <!-- Nav tabs -->
  103. <ul class="nav nav-tabs nav-justified">
  104. <li class="active">
  105. <a id = "o-aqi" href="#main0" data-toggle="tab">AQI<br/>(空气质量)</a></li>
  106. <li><a id = "o-pm25" href="#main0" data-toggle="tab">PM 2.5<br/>(细颗粒物)</a></li>
  107. <li><a id = "o-pm10" href="#main0" data-toggle="tab">PM 10<br/>(可吸入颗粒物)</a></li>
  108. <li><a id = "o-co" href="#main0" data-toggle="tab">CO<br/>(一氧化碳)</a></li>
  109. <li><a id = "o-no2" href="#main0" data-toggle="tab">NO2<br/>(二氧化氮)</a></li>
  110. <li><a id = "o-o3" href="#main0" data-toggle="tab">O3<br/>(臭氧)</a></li>
  111. <li><a id = "o-so2" href="#main0" data-toggle="tab">SO2<br/>(二氧化硫)</a></li>
  112. </ul>
  113. <div class="tab-content" id="main0">
  114. <div class="span8" style="margin:0 30px 0 0">
  115. <div id="g0" style="height:430px"></div>
  116. </div>
  117. <div style="min-height:430px;">
  118. <h4 id="overview-head"></h4><hr>
  119. <p id="overview-content"></p>
  120. <p style="text-align: right">更多详见 <a id="overview-link" target="_blank">百度百科 »</a></p>
  121. </div>
  122. </div>
  123. </div>
  124. <div class="span12" style="margin-top:15px;">
  125. <h3>重点城市对比</h3>
  126. <div id="g1" style="height:400px"></div>
  127. <h4 style="text-align: center">“PM2.5 vs 经济 vs 人口” 关联分析</h4>
  128. <div id="g20" class="g2wrap"></div>
  129. <div id="g21" class="g2wrap"></div>
  130. <div id="g22" class="g2wrap"></div>
  131. </div>
  132. <div class="span12" style="margin-top:15px;">
  133. <h3>空气质量排行榜</h3>
  134. <!-- Nav tabs -->
  135. <ul class="nav nav-tabs nav-justified">
  136. <li class="active">
  137. <a id = "r-aqi" href="#main3" data-toggle="tab">AQI<br/>(空气质量)</a></li>
  138. <li><a id = "r-pm25" href="#main3" data-toggle="tab">PM 2.5<br/>(细颗粒物)</a></li>
  139. <li><a id = "r-pm10" href="#main3" data-toggle="tab">PM 10<br/>(可吸入颗粒物)</a></li>
  140. <li><a id = "r-co" href="#main3" data-toggle="tab">CO<br/>(一氧化碳)</a></li>
  141. <li><a id = "r-no2" href="#main3" data-toggle="tab">NO2<br/>(二氧化氮)</a></li>
  142. <li><a id = "r-o3" href="#main3" data-toggle="tab">O3<br/>(臭氧)</a></li>
  143. <li><a id = "r-so2" href="#main3" data-toggle="tab">SO2<br/>(二氧化硫)</a></li>
  144. </ul>
  145. <div class="tab-content" id="main3">
  146. <div id="g3" style="height:700px"></div>
  147. </div>
  148. </div><!--/span-->
  149. </div><!--/row-->
  150. </div>
  151. <!-- FOOTER -->
  152. <footer>
  153. <p>&copy; 2014 <a href="http://weibo.com/wfsr" target="_blank">大佛</a>(百度) &middot; <a href="http://weibo.com/kenerlinfeng" target="_blank">林峰</a>(百度) 特别鸣谢 <a href="http://www.pm25.in/" target="_blank">PM25.in</a> &middot; <a href="http://www.iconpng.com/" target="_blank">iconpng</a></p>
  154. <p><a href="http://echarts.baidu.com" target="_blank">Data Visualization by ECharts</a></p>
  155. </footer>
  156. <script src="../../../asset/js/jquery.js"></script>
  157. <script src="../../../asset/js/bootstrap-transition.js"></script>
  158. <script src="../../../asset/js/bootstrap-alert.js"></script>
  159. <script src="../../../asset/js/bootstrap-modal.js"></script>
  160. <script src="../../../asset/js/bootstrap-dropdown.js"></script>
  161. <script src="../../../asset/js/bootstrap-scrollspy.js"></script>
  162. <script src="../../../asset/js/bootstrap-tab.js"></script>
  163. <script src="../../../asset/js/bootstrap-tooltip.js"></script>
  164. <script src="../../../asset/js/bootstrap-popover.js"></script>
  165. <script src="../../../asset/js/bootstrap-button.js"></script>
  166. <script src="../../../asset/js/bootstrap-collapse.js"></script>
  167. <script src="../../../asset/js/bootstrap-carousel.js"></script>
  168. <script src="../../../asset/js/bootstrap-typeahead.js"></script>
  169. <!-- core -->
  170. <script src="../../www/js/echarts.js"></script>
  171. <script src="./js/option0.js"></script>
  172. <script src="./js/option1.js"></script>
  173. <script src="./js/option2.js"></script>
  174. <script src="./js/option3.js"></script>
  175. <script src="./js/china_city_geo.js"></script>
  176. <script src="./js/data.js"></script>
  177. <script src="./js/main.js"></script>
  178. </body>
  179. </html>