summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Pointner <equinox@ffgraz.net>2013-12-29 17:52:50 +0000
committerChristian Pointner <equinox@ffgraz.net>2013-12-29 17:52:50 +0000
commit335a7fc90858187bc756f115866fa7c2309720b5 (patch)
tree095aeb15efd7fa5e66ec81f584a988ef3de97590
parent035f9f75bdde891911ca3a7e7d324b59a2997f08 (diff)
added temporary debug output
-rw-r--r--index.php116
-rw-r--r--map3.js13
2 files changed, 70 insertions, 59 deletions
diff --git a/index.php b/index.php
index ff0174c..08efa76 100644
--- a/index.php
+++ b/index.php
@@ -59,10 +59,10 @@ if($_SERVER['HTTP_HOST'] == 'dev-karte.ffgraz.net') {
<b>Elemente<br />aus-/einblenden</b>
<form name="visibleform" action="#" onsubmit="return false">
<table class="legend">
- <tr>
- <td><input type="checkbox" name="defaultroute" value="true" onclick="javascript:toggleVisible('defaultroute')"></td>
- <td>&nbsp;</td><td>!Default</td>
- </tr>
+ /* <tr> */
+ /* <td><input type="checkbox" name="defaultroute" value="true" onclick="javascript:toggleVisible('defaultroute')"></td> */
+ /* <td>&nbsp;</td><td>!Default</td> */
+ /* </tr> */
<tr>
<td><input type="checkbox" name="offline" value="true" onclick="javascript:toggleVisible('offline')"></td>
<td>&nbsp;</td><td align="center"><img src="./img/marker_offline.png" /></td>
@@ -88,61 +88,61 @@ if($_SERVER['HTTP_HOST'] == 'dev-karte.ffgraz.net') {
<td>&nbsp;</td><td align="center"><img src="./img/link_blue.png" /></td>
</tr>
</table>
- <table class="undef">
- <td><input type="checkbox" name="undef" value="true" onclick="javascript:toggleVisible('undef')"></td>
- <td>&nbsp;</td><td>Kanaele undef.</td>
- </table>
- <table class="5channel">
- <tr>
- <td><input type="checkbox" name="5channel" value="true" onclick="javascript:toggleVisible('5channel')"></td>
- <td>&nbsp;</td><td>Alle 5GHz Kanaele</td>
- </tr>
- </table>
- <table class="2.4channel">
- <tr>
- <td><input type="checkbox" name="2.4channel" value="true" onclick="javascript:toggleVisible('2.4channel')"></td>
- <td>&nbsp;</td><td>Alle 2.4GHz Kanaele</td>
- </tr>
- </table>
- <table class="channel">
- <tr>
- <td><input type="checkbox" name="channel1" value="true" onclick="javascript:toggleVisible('channel1')"></td>
- <td>&nbsp;</td><td>1</td>
- <td><input type="checkbox" name="channel2" value="true" onclick="javascript:toggleVisible('channel2')"></td>
- <td>&nbsp;</td><td>2</td>
- <td><input type="checkbox" name="channel3" value="true" onclick="javascript:toggleVisible('channel3')"></td>
- <td>&nbsp;</td><td>3</td>
- </tr>
- <tr>
+ /* <table class="undef"> */
+ /* <td><input type="checkbox" name="undef" value="true" onclick="javascript:toggleVisible('undef')"></td> */
+ /* <td>&nbsp;</td><td>Kanaele undef.</td> */
+ /* </table> */
+ /* <table class="5channel"> */
+ /* <tr> */
+ /* <td><input type="checkbox" name="5channel" value="true" onclick="javascript:toggleVisible('5channel')"></td> */
+ /* <td>&nbsp;</td><td>Alle 5GHz Kanaele</td> */
+ /* </tr> */
+ /* </table> */
+ /* <table class="2.4channel"> */
+ /* <tr> */
+ /* <td><input type="checkbox" name="2.4channel" value="true" onclick="javascript:toggleVisible('2.4channel')"></td> */
+ /* <td>&nbsp;</td><td>Alle 2.4GHz Kanaele</td> */
+ /* </tr> */
+ /* </table> */
+ /* <table class="channel"> */
+ /* <tr> */
+ /* <td><input type="checkbox" name="channel1" value="true" onclick="javascript:toggleVisible('channel1')"></td> */
+ /* <td>&nbsp;</td><td>1</td> */
+ /* <td><input type="checkbox" name="channel2" value="true" onclick="javascript:toggleVisible('channel2')"></td> */
+ /* <td>&nbsp;</td><td>2</td> */
+ /* <td><input type="checkbox" name="channel3" value="true" onclick="javascript:toggleVisible('channel3')"></td> */
+ /* <td>&nbsp;</td><td>3</td> */
+ /* </tr> */
+ /* <tr> */
- <td><input type="checkbox" name="channel4" value="true" onclick="javascript:toggleVisible('channel4')"></td>
- <td>&nbsp;</td><td>4</td>
- <td><input type="checkbox" name="channel5" value="true" onclick="javascript:toggleVisible('channel5')"></td>
- <td>&nbsp;</td><td>5</td>
- <td><input type="checkbox" name="channel6" value="true" onclick="javascript:toggleVisible('channel6')"></td>
- <td>&nbsp;</td><td>6</td>
- </tr>
- <tr>
- <td><input type="checkbox" name="channel7" value="true" onclick="javascript:toggleVisible('channel7')"></td>
- <td>&nbsp;</td><td>7</td>
- <td><input type="checkbox" name="channel8" value="true" onclick="javascript:toggleVisible('channel8')"></td>
- <td>&nbsp;</td><td>8</td>
- <td><input type="checkbox" name="channel9" value="true" onclick="javascript:toggleVisible('channel9')"></td>
- <td>&nbsp;</td><td>9</td>
- </tr>
- <tr>
- <td><input type="checkbox" name="channel10" value="true" onclick="javascript:toggleVisible('channel10')"></td>
- <td>&nbsp;</td><td>10</td>
- <td><input type="checkbox" name="channel11" value="true" onclick="javascript:toggleVisible('channel11')"></td>
- <td>&nbsp;</td><td>11</td>
- <td><input type="checkbox" name="channel12" value="true" onclick="javascript:toggleVisible('channel12')"></td>
- <td>&nbsp;</td><td>12</td>
- </tr>
- <tr>
- <td><input type="checkbox" name="channel13" value="true" onclick="javascript:toggleVisible('channel13')"></td>
- <td>&nbsp;</td><td>13</td>
- </tr>
- </table>
+ /* <td><input type="checkbox" name="channel4" value="true" onclick="javascript:toggleVisible('channel4')"></td> */
+ /* <td>&nbsp;</td><td>4</td> */
+ /* <td><input type="checkbox" name="channel5" value="true" onclick="javascript:toggleVisible('channel5')"></td> */
+ /* <td>&nbsp;</td><td>5</td> */
+ /* <td><input type="checkbox" name="channel6" value="true" onclick="javascript:toggleVisible('channel6')"></td> */
+ /* <td>&nbsp;</td><td>6</td> */
+ /* </tr> */
+ /* <tr> */
+ /* <td><input type="checkbox" name="channel7" value="true" onclick="javascript:toggleVisible('channel7')"></td> */
+ /* <td>&nbsp;</td><td>7</td> */
+ /* <td><input type="checkbox" name="channel8" value="true" onclick="javascript:toggleVisible('channel8')"></td> */
+ /* <td>&nbsp;</td><td>8</td> */
+ /* <td><input type="checkbox" name="channel9" value="true" onclick="javascript:toggleVisible('channel9')"></td> */
+ /* <td>&nbsp;</td><td>9</td> */
+ /* </tr> */
+ /* <tr> */
+ /* <td><input type="checkbox" name="channel10" value="true" onclick="javascript:toggleVisible('channel10')"></td> */
+ /* <td>&nbsp;</td><td>10</td> */
+ /* <td><input type="checkbox" name="channel11" value="true" onclick="javascript:toggleVisible('channel11')"></td> */
+ /* <td>&nbsp;</td><td>11</td> */
+ /* <td><input type="checkbox" name="channel12" value="true" onclick="javascript:toggleVisible('channel12')"></td> */
+ /* <td>&nbsp;</td><td>12</td> */
+ /* </tr> */
+ /* <tr> */
+ /* <td><input type="checkbox" name="channel13" value="true" onclick="javascript:toggleVisible('channel13')"></td> */
+ /* <td>&nbsp;</td><td>13</td> */
+ /* </tr> */
+ /* </table> */
</form>
</div>
</div>
diff --git a/map3.js b/map3.js
index 51ae3be..07c9915 100644
--- a/map3.js
+++ b/map3.js
@@ -11,9 +11,18 @@ overlays["links"] = new Array();
var locations = new Array();
var links = new Array();
+
+debug = function (log_txt) {
+ if (typeof window.console != 'undefined') {
+ console.log(log_txt);
+ }
+}
+
function initialize(lat, lng, res) {
-// $('#visibox').hide();
$('#southeastcontainer').hide();
+
+ debug("Initializing Funkfeuer Graz Map");
+
google.maps.visualRefresh=true;
var mapOptions = {
center: new google.maps.LatLng(lat, lng),
@@ -59,6 +68,8 @@ function initialize(lat, lng, res) {
}
function onAddOverlay(overlay) {
+ debug("onAddOverlay called!");
+
switch(overlay.overlaytype) {
case "location": overlays["locations"].push(overlay); break;
case "link": overlays["links"].push(overlay); break;