index.html <!doctype html> <html> <head> <meta charset="utf-8"> <title> 東 広 島 EventMap</title> <link rel="stylesheet" href="css/hmap.css"> <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script> <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.8/jquery.min.js"></script> <script type="text/javascript" src="https://raw.github.com/padolsey/jquery-plugins/master/cross-domain-ajax/jquery.x domainajax.js"></script> <script type="text/javascript" src="js/data.js"></script> <script type="text/javascript" src="js/utility.js"></script> <script type="text/javascript" src="js/gmap.js"></script> <script type="text/javascript" src="js/sidelist.js"></script> <!-- <script type="text/javascript" src="js/eventdata.js"></script> --> <script type="text/javascript" src="js/higashieventdata.js"></script> <script type="text/javascript" src="js/main.js"></script> <!-- <script type="text/javascript" src="js/scrape.js"></script> --> <script type="text/javascript"> var mapcanvas; var currentinfowindow = null; window.onload = function() { </script> 1 / 13
<script type="text/javascript"><!-- あとで 分 離 --> $(function(){ $('#tabs div').hide(); $('#tabs div:first').show(); $('#tabs div:first div').show(); $('#tabs ul.tabmenu:first').addclass('active'); $('.tabmenu a').click(function(){ $('.tabmenu').removeclass('active'); $(this).parent().addclass('active'); var currenttab = $(this).attr('href'); $('#tabs div').hide(); $(currenttab).show(); $(currenttab).find("div").show(); return false; ); ); </script> <script type="text/javascript" src="js/move.js"></script> </head> <body> <header> <div id="bar"><!-- 上 端 の 見 出 し --> <div id="title"> <ul id="topbar"> <!-- <li> <button id="debug">debug button</button> </li> --><!-- コメントアウトすると 消 えてしまう --> <li class="cen"> <a><!-- <div class="cen"> --> 地 域 センター <!-- </div> --></a> <ul> <!-- mapcanvas に 対 して 指 定 した 座 標 で panto に 移 動 させる, '#': 同 じファ イル 内 の 特 定 位 置 にジャンプ(http://www.tohoho-web.com/html/a.htm より) --> google.maps.latlng(34.4267515, 132.7437521));"><a href="#"> 西 条 地 区 </a></li> 2 / 13
google.maps.latlng(34.4479755, 132.7878226));"><a href="#"> 高 屋 地 区 </a></li> google.maps.latlng(34.4992208, 132.6602356));"><a href="#"> 志 和 地 区 </a></li> google.maps.latlng(34.4407862, 132.6921863));"><a href="#"> 八 本 松 地 区 </a></li> google.maps.latlng(34.47223, 132.8883641));"><a href="#"> 河 内 地 区 </a></li> google.maps.latlng(34.5361797, 132.7781991));"><a href="#"> 福 富 地 区 </a></li> google.maps.latlng(34.5633558, 132.8248603));"><a href="#"> 豊 栄 地 区 </a></li> google.maps.latlng(34.3247474, 132.6762842));"><a href="#"> 黒 瀬 地 区 </a></li> google.maps.latlng(34.3196117, 132.8136826));"><a href="#"> 安 芸 津 地 区 </a></li> </ul><!-- " 地 域 センター" の ul タグここまで --> </li><!-- " 地 域 センター" の li タグここまで --> <!-- 次 の li タグを 作 ると 横 に 表 示 される --> <li class="cen"><a href="http://higashihiroshima.genki365.net/"> 市 民 活 動 情 報 サ イト</a></li> <li class="cen"><a href="http://www.city.higashihiroshima.hiroshima.jp/"> 東 広 島 市 役 所 </a> </li> <li class="cen"> <a>ict 加 盟 大 学 一 覧 </a> <ul> <li class="cen"><a href="http://www.hiro.kindai.ac.jp/index.html"> 近 畿 大 学 工 学 部 </a></li> <li class="cen"><a href="http://www.hiroshima-u.ac.jp/index-j.html"> 広 島 大 学 </a></li> <li class="cen"><a href="http://www.hirokoku-u.ac.jp/"> 広 島 国 際 大 学 </a></li> </ul><!-- "ICT 加 盟 大 学 一 覧 " の ul タグここまで --> </li><!-- "ICT 加 盟 大 学 一 覧 " の li タグここまで --> </ul><!-- ul id="topbar" ここまで --> </div><!-- div id="title" ここまで --> 3 / 13
</div><!-- div id="bar" ここまで --> </header> <div id="output"></div> <div id="mapcanvas"><!-- aiu( 表 示 される 本 文 ) --></div> <!-- <div id="rightbar">リスト</div> --> <div id="tabs"> <ul id=tabarea> <li class="tabmenu"><a href="#listarea">リスト</a></li> <li class="tabmenu"><a href="#information">お 知 らせ</a></li> <li class="tabmenu"><a href="#twit"> ツ イ ッ タ ー <img src="http://buturi.heteml.jp/student/2012/higashihiroshima/twitthis_ico.gif"></a></li> </ul> <div id="listarea"> <ul id="buttonarea"> <li id="datesort"> 日 付 順 </li> <li id="areasort"> 地 区 別 </li> <li id="weeksort">テスト</li> </ul> <!-- #buttonarea --> <div id="box"></div> </div> <!-- #listarea --> <div id="information"></div> <!-- #information --> <div id="twit"> <a class="twitter-timeline" href="https://twitter.com/search?q=%e6%9d%b1%e5%ba%83%e5%b3%b6" data-widget-id="277432419341189121"> 東 広 島 に 関 するツイート</a> <!--<script>!function(d,s,id){var js,fjs=d.getelementsbytagname(s)[0];if(!d.getelementbyid(id)){js=d.createelement(s);j s.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentnode.insertbefore(js,fjs);(do cument,"script","twitter-wjs");</script>--> </div> <!-- #twit --> </div> <!-- #tabs --> </body> </html> 4 / 13
hmap.css html, body, header { font-family: " MS ゴシック ", "MS Gothic", "Osaka - 等 幅 ", Osaka-mono, monospace ; /* 文 字 のフォントを 指 定 */ color: #000000; /* 文 字 の 色 を 指 定 */ html { width: 100%; height: 100%; body { margin: 0px; padding: 0px; overflow-y: hidden; overflow-x: hidden; ul { margin: 0; padding: 0; ul >.cen { /* カンマは 複 数 の 記 述 を 表 すので 内 包 される 意 味 で'>'を 用 いる */ width: 150px; position: relative; display: inline-block; list-style-type: none; /* 次 の 行 http://homepage3.nifty.com/sho-nan/mokei.files/sonota.files/color.html( ス タ イ ル : "background: #555;") */ background: #555; padding-bottom: 5px; color: white; 5 / 13
ul ul { position: relative; display: none; background-color: #999; ul.cen:hover > ul { display: inline-block; position: absolute; top: 100%; left: 0px; z-index: 9999; /* 最 前 面 に 表 示 */ /* バーの 見 出 し */ ul a{ display: block; font-size: 16px; color: white; /* 通 常 時 の 文 字 の 色 */ text-decoration: none; /* 下 線 なし */ cursor: pointer; /* マウスの 形 をポインター */ outline: none; ul a:hover >.cen { color: red; /* オンマウス 時 の 文 字 の 色 */ background-color: #272727;.cen { width: 150px; /* height < line-height のとき 文 字 が 各 メニューの 下 に 寄 る */ /* height > line-height のとき 文 字 が 各 メニューの 上 に 寄 る */ height: 45px; /* バーの 高 さ */ line-height: 45px; /* 行 間 の 高 さ */ 6 / 13
#mapcanvas { position: absolute; /* "debug button"の 直 下 */ width: 100%; height: 100%; #bar { background-color: #ffffff; width: 100%; z-index: 9999; /* 最 前 面 に 表 示 */ #title { line-height: 20px; text-align: center; color: #ffffff; background-color: #6F9; /* 上 端 のバーの 色 */ #topbar { width: 100%; height: 50px; /* グ ラ デ ー シ ョ ン http://www.css-lecture.com/log/css3/css3-gradient.html("css Lecture") より 引 用 */ /* Firefox 用 ( 左 から 順 に 方 向 開 始 色 終 了 色 ) */ background: -moz-linear-gradient(left top, rgb(229,255,221), rgb(180,209,192)); /* Safari,Google Chrome 用 ( 左 から 順 に 線 形 で 開 始 位 置 終 了 位 置 開 始 色 終 了 色 ) */ background: -webkit-gradient(linear, left top, left bottom, from(rgb(229,255,221)), to(rgb(180,209,192))); padding-bottom: 5px; padding-top: 5px; /* 次 の 行 http://webtips-blog.com/2011/04/27/css/("web Tips Blog") より 引 用 */ 7 / 13
box-shadow: 1px 1px 5px #aaa; /* 左 から 横 方 向 のずれ 下 方 向 のずれ ぼかし 具 合 シャドウの 色 */ /*------------------------------------------------------------------------- listarea 部 分 -------------------------------------------------------------------------*/ #listarea { background-color: white; /* 背 景 色 : 白 */ border-radius: 5px; /* 角 丸 */ opacity: 0.8; /* 透 過 度 :80% */ height: calc(100% - 120px); /* 縦 :100% - 120px */ height: -webkit-calc(100% - 120px); /* webkit 対 策 */ width: 300px; /* 横 :300px */ position: absolute; /* 絶 対 位 置 */ bottom: 10px; /* 下 から 10px の 位 置 */ right: 50px; /* 右 から 10px の 位 置 */ overflow: auto; /* はみ 出 したらスクロールバーを 表 示 */ #buttonarea { position: fixed; width: 215px; margin: 10px 0 10px 30px; cursor: pointer; /* マウスカーソルを 常 にデフォルト */ #buttonarea li { width: 60px; height: 30px; text-align: center; line-height: 30px; margin-right: 5px; display: inline-block; background-color: #26E8F2; border-radius: 5px; /* 角 丸 */ 8 / 13
font-weight: bold; /* 文 字 を 太 字 */ #box { margin-top: 50px;.wrapBox { height: 60px; width: 270px; margin-bottom: 10px;.dateBox { position: relative; font-weight: bold; /* 文 字 を 太 字 */ height: 50px; width: 50px; margin: 0 0 10px 5px; padding: 5px; color: rgb(50,50,50); /* 文 字 色 : 灰 色 */ border-radius: 3px; /* 角 丸 */ cursor: default; /* マウスカーソルを 常 にデフォルト */ float: left;.eventbox { position: relative; font-weight: bold; /* 文 字 を 太 字 */ height: 50px; width: 190px; margin: 0 0 10px 5px; padding: 5px; background-color: rgba(0,0,255,0.1); /* 背 景 色 指 定 */ color: rgb(50,50,50); /* 文 字 色 : 灰 色 */ border-radius: 3px; /* 角 丸 */ 9 / 13
cursor: default; /* マウスカーソルを 常 にデフォルト */ float: right; -o-text-overflow: ellipsis;.eventbox:hover { background-color: rgba(0,0,255,0.3); color: rgb(0,0,0); /* 文 字 色 : 黒 色 */.sponsorbox { text-align: right; color: rgb(100,100,100); /* 文 字 色 : 灰 色 */.month { top 5px; left: 5px; position: absolute;.split { font-size: 3em; line-height: 50px; text-align: center; position: static;.date { bottom: 5px; right: 5px; position: absolute;.sun { background-color: red; 10 / 13
.sat { background-color: rgb(0,68,204);.ordinary { background-color: rgba(0,0,255,0.1); /* 背 景 色 指 定 */ /*------------------------------------------------------------------------- information 部 分 -------------------------------------------------------------------------*/ #information { background-color: white; /* 背 景 色 : 白 */ border-radius: 5px; /* 角 丸 */ opacity: 0.8; /* 透 過 度 :80% */ height: calc(100% - 120px); /* 縦 :100% - 120px */ height: -webkit-calc(100% - 120px); /* webkit 対 策 */ width: 300px; /* 横 :300px */ position: absolute; /* 絶 対 位 置 */ bottom: 10px; /* 下 から 10px の 位 置 */ right: 50px; /* 右 から 10px の 位 置 */ overflow: auto; /* はみ 出 したらスクロールバーを 表 示 */ /*------------------------------------------------------------------------- twit 部 分 -------------------------------------------------------------------------*/ #twit { background-color: white; /* 背 景 色 : 白 */ border-radius: 5px; /* 角 丸 */ opacity: 0.8; /* 透 過 度 :80% */ height: calc(100% - 120px); /* 縦 :100% - 120px */ height: -webkit-calc(100% - 120px); /* webkit 対 策 */ 11 / 13
width: 300px; /* 横 :300px */ position: absolute; /* 絶 対 位 置 */ bottom: 10px; /* 下 から 10px の 位 置 */ right: 50px; /* 右 から 10px の 位 置 */ overflow: auto; /* はみ 出 したらスクロールバーを 表 示 */ #tabarea { top: 200px; right: 0; position: absolute; /* 絶 対 位 置 */.tabmenu { margin: 0 0 1px 0; padding: 0; width: 30px; height: 20%; list-style:none; /* リストの 先 頭 のマークを 非 表 示 に */.tabmenu a { display: inline-block; /* インライン-ブロック 要 素 に 変 換 */ color: black; /* 文 字 色 : 黒 */ background-color: #CCCCCC; /* 背 景 :lightgray */ text-decoration: none; /* リンクの 下 線 : 非 表 示 */ text-align: center; /* 中 央 寄 せ */ line-height: 30px; /* 縦 方 向 の 中 央 寄 せ */ /* height と 同 じ 値 を 指 定 すると 縦 方 向 の 中 央 寄 せになる */ border-top-left-radius: 5px; /* 左 上 の 角 丸 :5px */ border-bottom-left-radius: 5px; /* 左 下 の 角 丸 :5px */.active a { background-color: #000000; /* 背 景 : 黒 */ 12 / 13
color: white; /* 文 字 色 : 白 */ font-weight: bold; /* 太 文 字 */ border-top-left-radius: 5px; /* 左 上 の 角 丸 :5px */ border-bottom-left-radius: 5px; /* 左 下 の 角 丸 :5px */ 13 / 13