OSDN Git Service

add comment/copright notice
authorishikawa <ishikawa@180c8125-5b33-4295-ad04-72a68a15b4cc>
Wed, 15 Jul 2009 11:42:44 +0000 (11:42 +0000)
committerishikawa <ishikawa@180c8125-5b33-4295-ad04-72a68a15b4cc>
Wed, 15 Jul 2009 11:42:44 +0000 (11:42 +0000)
lib/public/geopost-keitairc.js

index 65afa3f..07cd694 100644 (file)
@@ -1,10 +1,32 @@
 /*
+ -*- mode: javascript; coding: utf-8 -*-
+ $Id: geopost-keitairc.js,v 1.4 2009-07-15 11:42:44 ishikawa Exp $
+
+ Copyright (c) 2009 ISHIKAWA Mutsumi <ishikawa@hanzubon.jp>
+ This program is covered by the GNU General Public License 2
+*/
+
+/*
 keitairc_post_url: 発言POST先のURL
 keitairc_stamp: 発言のタイムスタンプ
 keitairc_channel: チャネル名
 
 をあらかじめ外部でセットしておく必要があります。
+
+上記はkeitairc都合な都合で表示メッセージを組み立てるのに必要
+(msg を組み立ててるところだけに使われてる)なだけで、それ以外は
+だいぶ generic に作ってある(keitairc 都合な部分はそこのみ)なつもり。
+
+現在位置を測位して <div id="map_canvas"></div> にその位置が中心に
+なった google map が表示されます。
+
+google map api 使ってるので <head> とかで
+
+<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=true"></script>
+
+も必要です。
 */
+
 addEventListener("load", function(event) {
        navigator.geolocation.getCurrentPosition(function (position) {
                var latLng = new google.maps.LatLng(position.coords.latitude,