Skip to content

Instantly share code, notes, and snippets.

Created November 15, 2015 17:29
Show Gist options
  • Save anonymous/eb12d99935e209125a1c to your computer and use it in GitHub Desktop.
Save anonymous/eb12d99935e209125a1c to your computer and use it in GitHub Desktop.
GCTour
// ==UserScript==
// @name GC Tour
// @namespace madd.in
// @version 2.3
// @build 14271
// @description Cachetour planing made easy. Pick some Caches, sort the list and print it out. Free for all users of geocaching.com!
// @run-at document-end
// @include http*://www.geocaching.com/*
// @include http://gctour*.madd.in/map/show*#gui
// @exclude /^https?://www\.geocaching\.com/(login|about|articles)/
// @grant GM_getValue
// @grant GM_setValue
// @grant GM_deleteValue
// @grant GM_log
// @grant GM_addStyle
// @grant GM_xmlhttpRequest
// @grant GM_openInTab
// @grant GM_getResourceText
// @grant GM_getResourceURL
// @grant unsafeWindow
// @copyright 2008 - 2014 Martin Georgi
// @author madd.in
// @co-developer jens
// @icon http://www.madd.in/geocaching/gm/gctourextension/icon.png
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js
// @require http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/jquery-ui.min.js
// @resource jqUI_CSS http://code.jquery.com/ui/1.10.3/themes/ui-lightness/jquery-ui.css
// @resource jqui_img01 http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/themes/ui-lightness/images/animated-overlay.gif
// @resource jqui_img02 http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/themes/ui-lightness/images/ui-bg_diagonals-thick_18_b81900_40x40.png
// @resource jqui_img03 http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/themes/ui-lightness/images/ui-bg_diagonals-thick_20_666666_40x40.png
// @resource jqui_img04 http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/themes/ui-lightness/images/ui-bg_flat_10_000000_40x100.png
// @resource jqui_img05 http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/themes/ui-lightness/images/ui-bg_glass_65_ffffff_1x400.png
// @resource jqui_img06 http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/themes/ui-lightness/images/ui-bg_glass_100_f6f6f6_1x400.png
// @resource jqui_img07 http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/themes/ui-lightness/images/ui-bg_glass_100_fdf5ce_1x400.png
// @resource jqui_img08 http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/themes/ui-lightness/images/ui-bg_gloss-wave_35_f6a828_500x100.png
// @resource jqui_img09 http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/themes/ui-lightness/images/ui-bg_highlight-soft_75_ffe45c_1x100.png
// @resource jqui_img10 http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/themes/ui-lightness/images/ui-bg_highlight-soft_100_eeeeee_1x100.png
// @resource jqui_img11 http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/themes/ui-lightness/images/ui-icons_228ef1_256x240.png
// @resource jqui_img12 http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/themes/ui-lightness/images/ui-icons_222222_256x240.png
// @resource jqui_img13 http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/themes/ui-lightness/images/ui-icons_ef8c08_256x240.png
// @resource jqui_img14 http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/themes/ui-lightness/images/ui-icons_ffd27a_256x240.png
// @resource jqui_img15 http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/themes/ui-lightness/images/ui-icons_ffffff_256x240.png
// @license GPL version 3 or any later version; http://www.gnu.org/copyleft/gpl.html
// ==/UserScript==
/*****************************************************************************
* Copyright (C) 2008, 2009, 2010, 2011, 2012, 2013 Martin Georgi
*
* This is free software; you can redistribute it and/or modify it under the
* terms of the GNU General Public License as published by the Free Software
* Foundation; either version 3 of the License, or (at your option) any later
* version.
*
* This is distributed in the hope that it will be useful, but WITHOUT ANY
* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Public License for more details
*
* To obtain a copy of the GNU General Public License, please see
* <http://www.gnu.org.licenses/>
*****************************************************************************/
/*
* Changelog:
*
*
* version 2.3.14271
* - FIXED: "Add to tour" is now working from the map
* - FIXED: Setting the default width of the print view
* - FIXED: Printview is now working again if you generate it from the gc.com map
* - UPDATED: autoTour dialog -> Coordinates are taken from geocache detail page
* - UPDATED: autoTour dialog -> special filter extended with "Only PM cache"
*
* version 2.3.14249
* - FIXED: Printview is now working _AGAIN_
* - FIXED: Printview now contains travelbugs again
* - NEW: "send message to the author" now contains a response email address
*
* version 2.3.14198
* - FIXED: Printview is now working again
* version 2.3.13263
* - FIXED: gc.com update
*
* version 2.3.13241
* - NEW: Notifications with proper localisations and look
* - FIXED: Issue 50 (Send to GPS always sends GC14PCD)
*
* version 2.3.13239
* - FIXED: Issue 45, 47 and 49
*
* version 2.3.13018
* - FIXED: Tour upload is working again
*
* version 2.3.12356
* - FIXED: Issue 31
* - FIXED: wrong geocaches size in languages other than english
* - FIXED: wrong geocache location in languages other than english/german
* - FIXED: Bug on map that you need to log in
* - FIXED: Issue 42 "Add to tour" button on map
* - FIXED: Some minor CSS glitches
*
* version 2.3.12147
* - FIXED: Issue 37 and 39
* - UPDATED: buttons of searchpage and bookmarkpage adjusted
* - UPDATED: jquery to 1.7.2 and jquery-ui to 1.8.18
* - UPDATED: GPX -> cache-attributes to log settings, default = false
* - NEW: printview -> icon to add and underline if user has changed the coordinates
*
* version 2.2.12059
* - FIXED: autoTour menu button
* - NEW: maps show now details if you click on a marker
*
* version 2.2.12058
* - FIXED: new geocaching.com maps are now supported again
*
* version 2.2.12043
* - FIXED: autoTour - but still issues with GCVote, please disable this to use autoTour!
* - FIXED: OwnWaypoints and moveCoordinates
* - REMOVED: annoying alert on search page
*
* version 2.2.12042
* - FIXED: printview -> Bug with GCComment version
* - FIXED: searchpage in-use with Userscript GCVote
* - FIXED: Issue 22, 32 and 33
* - REMOVED: dojo completely removed
*
* version 2.2.12003
* - FIXED: GPX -> ALL caches were either not found or found
* - FIXED: printview -> Unsupported type for GM_setValue (Your Account Details -> Date Format)
*
* version 2.2.12002
* - FIXED: Map issues
* - FIXED: Upload Tour
* - FIXED: exception SyntaxError JSON.parse unexpected character by download tour
* - FIXED: exception TypeError progressBar is undefined
* - FIXED: function getlogs
* - FIXED: GPX found Caches from "<sym>Geocache</sym>" to "<sym>Geocache Found</sym>" (big thanks to Vasek)
* - UPDATED: French translation - thanks pascal
* - UPDATED: css adjustments
* - NEW: Map height is now variable
* - REMOVED: geocaching.com.au Type -> Groundspeak is now the only GPX Type
*
* version 2.1.11313
* - FIXED: GPX Download bug "...ctl00_hlSignOut... is undefined"
* - FIXED: Issue 18
* - FIXED: Update bug
* - NEW: Update added link in the error-Dialog
* - NEW: User can write a message in the error-Dialog
*
* version 2.1.11293
* - FIXED: <=3 Logs in printout -> "Last4Logs" (L4L) in the printout
* - FIXED: Logs in GPX (Unicode hexadez.)
* - UPDATED: dutch translation
* - Add jQuery (1.6.4) and jQuery-ui (1.8.16)
*
* version 2.1.11285
* - FIXED: autoTour
* - FIXED: GCTour on the search page
* - FIXED: Logs in printout
* - FIXED: Logs in GPX
* - UPDATED: french translation
* - GPX: New Groundspeak implementation to prevent XML errors
* - NEW: Titlepage in the printview now contains coordinates and basic informations
* - NEW: printview contains now the PM cache note!
* - NEW: delete button for current tour
* - NEW: "Last4Logs" (L4L) has been added to the printout - similar to http://www.gsak.net/help/hs11980.htm
*
* version 2.0.11280
* - FIXED: silent update changes from gc.com
*
* version 2.0.11239
* - FIXED: GPX bug
*
* version 2.0.11206
* - FIXED: GPX bug after gc.com update
* - FIXED: Printview after gc.com update
*
* version 2.0.11158
* - FIXED: scrollbar bug Firefox 3.6
* - FIXED: "Search For Geocaches" page in Firefox 3.6
* - FIXED: Bug with new GCComment version
* - FIXED: bug in popup after uploading an tour
* - UPDATED: french translation
*
* version 2.0.11158
* - FIXED: Event-Cache bug
* - FIXED: Printout need some work
* - FIXED: Update dialog bug
* - FIXED: autoTour dialog
* - FIXED: Layout modifications from gc.com
* - FIXED: autoTour find now earthcaches
* - FIXED: own waypoints coordinates were sometimes wrong rounded
* - GPX: Logs does now have an unique id
* - GPX: Archived/Unavailable geocaches are marked so
* - MAP: Tweak code on the map site. The use of the map will now be much faster.
* - NEW: Coordinates of geocaches can now be moved.
* - NEW: Added a dialog to send me a message.
* - NEW: Geocaches can now printed directly from their detailspage
* - NEW: Tour upload has been completly redesigned
* - NEW: Support for the new beta Maps
* - NEW: Dutch translation (thanks to searchjaunt)
* - NEW: Portuguese translation (thanks to Ruben)
* - NEW: French translation (thanks to flashmoon)
* - NEW: Added support for all GC.com date formats
* - NEW: GCComment print view implementation
* - ... and much more i already forgot
*
* version 1.97.11033
* - FIXED: gccom layout change.
*
* version 1.97.10361
* - FIXED: autotour with new OCR program
* - FIXED: GPX/Print now contains correct hidden date
* - FIXED: geocaches lists now are shown correctly again
* - NEW: Google-Appengine program to decode D/T/Size images
*
* version 1.97.10356
* - FIXED: GCTour is now working after gc.com update #2
*
* version 1.97.10313
* - FIXED: GCTour is now working after gc.com update
*
* version 1.97
* - GPX: add <groundspeak:name> to GPX
* - GPX: Additional Waypoints now named - Waypoint.Prefix + (GCID without leading GC)
* - GPX: changed Groundspeak "Multi-Cache" to "Multi-cache"
* - GPX: fixed earthcache type
* - GPX: changed log id to a usable value - Issue3
* - GPX: added attributes to Groundspeak GPX
* - FIXED: caches can remain in watchlist without error
* - FIXED: that a tour remains in list after deleting
* - FIXED: autoTour is working after update 7/28/10
* - FIXED: superscript text is now shown correct in printview
* - NEW: Bookmark Lists now have "add to tour" buttons
* - NEW: Tour can now sorted via drag n' drop
* - NEW: Add check on Firefox >= 3.5
* - NEW: Minimal-printview containing cacheheader, hint and spoiler images
* - NEW: Recode the complete update routine
* - NEW: Add check whether the script is still logged on when scraping data
* - CHANGED: Renew the buttons
* - MISC: Code Review
* - MISC: Create repository at http://code.google.com/p/gctour/
* - MISC: Start implementing http://gctour-spot.appspot.com/
*
* version 1.96
* - gc.com layout update 6/29/10 fixed
* - new groundspeak GPX implementation
* - close-window-button get a function in printview
* - removing annoying debug messages on maps
* - add an check after 20sec if gctour is loaded - important for no script users
* - caches on printview are now numbered
* - own waypoints are now uploaded again
* - tour uploads had now a map on gctour.madd.in
* - autoTour gets an option to filter PM-Only caches
* - update to dojo 1.4
*
* version 1.95
* - gc.com layout fixes
* - repair the "add selected caches"-to-tour button
*
* version 1.94
* - hints are now in the printout again
*
* version 1.93
* - fixed major functions after layout update
* - new code for the printview
* - remove the download-complete-map-button from maps page - please use autotour instead
* - some minor bugfixes
*
* version 1.92
* - add gpx option - old groundspeak schema or new geocaching.com.au schema
* - autoTour now part of GcTour
* - GUI improvements - now every tab is up-to-date
* - strip 'GC'-Option for GPX-Files
* - add OSM-Maps to the overview maps
* - append OSM and Topo Germany to default Maptype-Option
*
* version 1.91
* - Fast GPX-File bugfix! Type of caches is now correctly set!
*
* version 1.9
* - New-GcTour-GPX with geocaching.com.au/opencaching.de schema! Contains now logs and description for _ALL_ users.
* - Add dojo to make some DOM operations MUCH faster. Printview e.g. is now MUCH faster.
* - GUI improvments
* - Attributes are now shown in the printview
*
* version 1.85
* - fixed bug that own marker have wrong coordinates in printview
* - redesign of the cache list
* - redesign of "create new marker"-dialog
* - adding preview map to "create new marker"-dialog
* - adding "move to top/bottom" button to cache list - thanks to adam r
* - adding map size control in printview maps
*
* version 1.8
* - adding overview page to printpage
* - creating map with all caches on it
* - outline map for every cache + additional waypoints
* - adding costum waypoints
* - the GPX contains now the current date
* - adding information button to show which cache is in tour before loading
*
* version 1.7
* - adding upload feature
* - removed bug, that gctour is not able to handle multiple tabs
* - implement sorting
* - adding text size option for the printview
*
* version 1.6
* - fixed downloaded gpxfile - html-/ no-html-mode
* - add some fancy sliding effects
* - add multiple tour function
* - add trackables to printview
* - some minor bugfix (e.g. extended table on gc.com map)
*
* version 1.5
* - add download GPX-button
* - add additional waypoints to printview
* - add an add all button to the map. thx atornedging
* - fixed some mutated vowel bugs in GPX
* - tweak update function
* - adding changelog to updatedialog
*
* version 1.4
* - fixing bug, that premiummembers dont have coordinates in the printview
* - adding logcounter to printview
*
* version 1.3
* - adding buttons to the search tables
* - progress is now displayed in the print view and GPS Export
* - adding language support
*
* version 1.2
* - optimizing printview
* - add the possibility to export the spoiler images to the printview
* - add an add-to-tour-button in the GC-Table on the right side of the map view
* - fixed minor bug in the settings
*
* version 1.1
* - extended printview - it is now possible export logs and remove images/logs
* - update function is now working ...
*
* version 1.0
* - initial release
*
*/
if (window.top !== window.self && window.location.href.indexOf("/seek/sendtogps.aspx") <= 0) {
// don't run on frames or iframes - but allow the SEND TO GPS Page.
} else {
// run on top level document
// ... } = end of GCTour-Script
// globals
var
VERSION = "2.3", // will be checked once the day
BUILD = "14271", // will be checked once the day
SCRIPTID = 'gctour',
DEBUG_MODE = false,
GCTOUR_HOST = 'http://gctour.madd.in',
// GCTOUR_HOST = 'http://localhost',
// setze $ mit jQuery local (Greasemonkey)
$ = window.jQuery,
// is jQuery und UI geladen
isjQuery = (
(typeof $ !== "undefined") && (typeof $ === "function") &&
(typeof $.fn === "object") && (typeof $.ui === "object")
),
// const isFF = (((isjQuery === true) && $.browser.mozilla) || (typeof ???? !== "undefined")),
isOpera = (((isjQuery === true) && $.browser.opera) || (typeof opera !== "undefined")),
tours,
currentTour,
userName,
rot13array,
timeout,
sticky = GM_getValue('sticky', false),
wptArray = [
{wptTypeId: "2", hash: "32bc9333-5e52-4957-b0f6-5a2c8fc7b257", name: "Traditional Cache"},
{wptTypeId: "3", hash: "a5f6d0ad-d2f2-4011-8c14-940a9ebf3c74", name: "Multi-cache"},
{wptTypeId: "8", hash: "40861821-1835-4e11-b666-8d41064d03fe", name: "Unknown Cache"},
{wptTypeId: "5", hash: "4bdd8fb2-d7bc-453f-a9c5-968563b15d24", name: "Letterbox Hybrid"},
{wptTypeId: "11", hash: "31d2ae3c-c358-4b5f-8dcd-2185bf472d3d", name: "Webcam Cache"},
{wptTypeId: "4", hash: "294d4360-ac86-4c83-84dd-8113ef678d7e", name: "Virtual Cache"},
{wptTypeId: "1858", hash: "0544fa55-772d-4e5c-96a9-36a51ebcf5c9", name: "Wherigo Cache"},
{wptTypeId: "137", hash: "c66f5cf3-9523-4549-b8dd-759cd2f18db8", name: "Earthcache"},
{wptTypeId: "6", hash: "69eb8534-b718-4b35-ae3c-a856a55b0874", name: "Event Cache"},
{wptTypeId: "13", hash: "57150806-bc1a-42d6-9cf0-538d171a2d22", name: "Cache In Trash Out Event"},
{wptTypeId: "3653", hash: "3ea6533d-bb52-42fe-b2d2-79a3424d4728", name: "Lost and Found Event Cache"},
{wptTypeId: "453", hash: "69eb8535-b718-4b35-ae3c-a856a55b0874", name: "Mega-Event Cache"}
],
// {wptTypeId: "4738", hash: "", name: ""}
// {wptTypeId: "3773", hash: "", name: "Groundspeak Headquarters Cache"} // HQ_32.gif
// {wptTypeId: "mega", hash: "", name: "Mega-Event Cache"}
// {wptTypeId: "earthcache", hash: "", name: "EarthCache"}
// {wptTypeId: "1304", hash: "", name: "GPS Adventures Maze Exhibit"}
// {wptTypeId: "12", hash: "", name: "Locationless (Reverse) Cache"}
sizesArray = [
{sizeTypeId: "micro", name: "Micro"},
{sizeTypeId: "small", name: "Small"},
{sizeTypeId: "regular", name: "Regular"},
{sizeTypeId: "large", name: "Large"},
{sizeTypeId: "other", name: "Other"},
{sizeTypeId: "not_chosen", name: "Not chosen"},
{sizeTypeId: "virtual", name: "Virtual"}
],
attributes_array = [
// Attribute array ID, image, name
['1','dogs','Dogs'],
['2','fee','Access or parking fee'],
['3','rappelling','Climbing gear'],
['4','boat','Boat'],
['5','scuba','Scuba gear'],
['6','kids','Recommended for kids'],
['7','onehour','Takes less than an hour'],
['8','scenic','Scenic view'],
['9','hiking','Significant hike'],
['10','climbing','Difficult climbing'],
['11','wading','May require wading'],
['12','swimming','May require swimming'],
['13','available','Available at all times'],
['14','night','Recommended at night'],
['15','winter','Available during winter'],
['17','poisonoak','Poison plants'],
['18','snakes','Snakes'],
['19','ticks','Ticks'],
['20','mine','Abandoned mines'],
['21','cliff','Cliff / falling rocks'],
['22','hunting','Hunting'],
['23','danger','Dangerous area'],
['24','wheelchair','Wheelchair accessible'],
['25','parking','Parking available'],
['26','public','Public transportation'],
['27','water','Drinking water nearby'],
['28','restrooms','Public restrooms nearby'],
['29','phone','Telephone nearby'],
['30','picnic','Picnic tables nearby'],
['31','camping','Camping available'],
['32','bicycles','Bicycles'],
['33','motorcycles','Motorcycles'],
['34','quads','Quads'],
['35','jeeps','Off-road vehicles'],
['36','snowmobiles','Snowmobiles'],
['37','horses','Horses'],
['38','campfires','Campfires'],
['39','thorn','Thorns'],
['40','stealth','Stealth required'],
['41','stroller','Stroller accessible'],
['42','firstaid','Needs maintenance'],
['43','cow','Watch for livestock'],
['44','flashlight','Flashlight required'],
['45','landf','Lost and Found Tour'],
['47','field_puzzle','Field Puzzle'],
['48','UV','UV Light required'],
['49','snowshoes','Snowshoes'],
['50','skiis','Cross Country Skis'],
['51','tools','Special Tool required'],
['52','nightcache','Night Cache'],
['53','parkngrab','Park and grab'],
['54','abandonedbuilding','Abandoned structure'],
['55','hike_short','Short hike'],
['56','hike_med','Medium Hike'],
['57','hike_long','Long Hike'],
['58','fuel','Fuel nearby'],
['59','food','Food nearby'],
// liste von http://forums.groundspeak.com/GC/index.php?s=5a098c310648d9f536ab03a85432e70d&showtopic=282652&view=findpost&p=4855718
['60','wirelessbeacon','Wireless Beacon'],
['61','partnership','Partnership cache'],
['62','seasonal','Seasonal Access'],
['63','tourist','Tourist Friendly'],
['64','treeclimbing','Tree Climbing'],
['65','frontyard','Front Yard (Private Residence)'],
['66','teamwork','Teamwork Required']
];
/*
**************************
* TEST Anfang
*/
/*
// TEST wir als 3. ausgeführt
jQuery(function($){
alert("3. jQuery(function($){: " + $.fn.jquery);
});
// TEST wir als 2. ausgeführt
unsafeWindow.jQuery(function($){
alert("2. unsafeWindow.jQuery(function($){: " + $.fn.jquery);
});
// TEST wir als 1. ausgeführt
alert("0 $: " + $.fn.jquery);
*/
/*
**************************
* TEST ENDE
*/
if (DEBUG_MODE && console && console.time) {
console.time('gcTour load time');
}
/*
* greasemonkey settings and function
*/
/* ----- DEBUG OUTPUT FUNCTIONS ------*/
function toLog(typ, msg) {
//var console = unsafeWindow.console; //firebug console - http://getfirebug.com/wiki/index.php/Console_API
if (DEBUG_MODE) {
//if(console && console.firebug){ //use the firebug console is available
if (console && console[typ.toLowerCase()]) {
console[typ.toLowerCase()](msg);
} else {
GM_log(typ + ": " + msg.toString());
}
}
}
function log(msg) {
toLog("Log",msg);
}
function debug(msg) {
toLog("Debug",msg);
}
function warn(msg) {
toLog("Warn",msg);
}
function error(msg) {
toLog("Error",msg);
}
function info(msg) {
toLog("Info",msg);
}
function log_exception(ex) {
toLog("Exception",ex);
}
/* wrapper functions for persistence */
function saveValue(name, value){
return (GM_setValue(name,JSON.stringify(value)));
}
function loadValue(name, defaultValue){
debug("loadValue: '"+name+"', with default '"+defaultValue+"' (typeof "+(typeof defaultValue)+")");
//~ alert(GM_getValue(name, defaultValue));
var result = GM_getValue(name, "");
debug("loadValue: result -> '"+result.substr(0,20)+"...'");
try{
return result!=""?JSON.parse(result):defaultValue;
} catch(e){ // fallback eval
debug("loadValue: FALLBACK :-(");
return eval(result);
}
}
// GM_xmlhttpRequest response info
function responseInfo(r){
debug([
"",
"finalUrl: \t\t" + (r.finalUrl || "-"),
"status: \t\t" + (r.status || "-"),
"statusText: \t\t" + (r.statusText || "-"),
"readyState: \t\t" + (r.readyState || "-"),
"responseHeaders: \n\t" + (r.responseHeaders || "-"),
"responseXML: \t\t" + (r.responseXML || "-"),
"responseText: \t\t" + (r.responseText || "-")
].join("\n"));
}
/*
* set jquery and ui
*/
(function () {
var str = "";
str += "jQuery und UI geladen = " + isjQuery;
if (isjQuery) {
str += "\n\tjQuery Version = " + $.fn.jquery;
str += "\n\tjQueryUI Version = " + $.ui.version;
}
// str += "\n\tisunsafeWindow.jQuery = " + isjQueryWindow;
// str += "\n\tunsafeWindow.jQuery Version = " + ((isjQueryWindow) ? unsafeWindow.jQuery.fn.jquery : "");
str += "\n\tBrowser Opera ? = " + isOpera;
// str += "\n\tBrowser Mozilla ? = " + $.browser.mozilla;
debug(str);
// alert(str);
// init gctour object
$.gctour = $.gctour || {};
// init language object
$.gctour.i18n = $.gctour.i18n || {};
// set default Language
$.gctour.defaultLang = 'en';
// init current language = default language
$.gctour.currentLang = $.gctour.defaultLang;
// +jquery ui dialog (default setting)
$.gctour.dialog = $.gctour.dialog || {};
// default dialogs (http://api.jqueryui.com/dialog/)
$.extend($.gctour.dialog, {
buttons: {
'OK': {
//text: $.gctour.lang('btn.OK') || 'OK',
text: 'OK',
disabled: false,
click: function() {
// $(this).dialog("close");
$(this).dialog("destroy");
}
},
'Schliessen': {
//text: $.gctour.lang('btn.Schliessen') || 'Schliessen',
text: 'Schliessen',
disabled: false,
icons: {
primary: 'ui-icon-closethick'
},
click: function() {
// $(this).dialog("close");
$(this).dialog("destroy");
}
},
'Abbrechen': {
//text: $.gctour.lang('btn.Abbrechen') || 'Abbrechen',
text: 'Abbrechen',
disabled: false,
click: function() {
// $(this).dialog("close");
$(this).dialog("destroy");
}
}
},
/*
* Standard Optionen für ein Dialog
*/
basis: function() {
return ({
autoOpen: false,
resizable: true,
closeOnEscape: true,
modal: true,
closeText: $.gctour.lang('btn.Schliessen') || 'Schliessen',
show: 'drop', // blind, drop, scale
buttons: {
'Schliessen': this.buttons.Schliessen
},
width: 700, height: 500,
minWidth: 300, minHeight: 200,
maxWidth: 1000, maxHeight: 700,
title: 'GCTour',
closeText: 'Schliessen',
show: 'drop', // blind, drop, scale
dialogClass: 'gct gct_dialog',
open: function(event, ui) {
//$(".ui-dialog-titlebar-close").hide();
// $(this).dialog( "widget" ).find(".ui-dialog-titlebar-close").hide(); // x oben rechts ausblenden
//$(".ui-widget-overlay").wrap('<div class="gct"></div>'); // wrap für bessere Trennung zu gc.com
},
beforeClose: function( event, ui ) {
//if ( $(".ui-widget-overlay").parent().hasClass( "gct" ) ) {
// $(".ui-widget-overlay").unwrap();
//}
},
close: function(event, ui) {
$(this).dialog("destroy"); // diesen Dialog killen, weil immer ein neuer erstellt wird
}
});
},
/*
* Info Optionen für ein Dialog
*/
info: function() {
return ({
autoOpen: true,
resizable: true,
closeOnEscape: true,
modal: true,
closeText: $.gctour.lang('btn.Schliessen') || 'Schliessen',
show: 'drop', // blind, drop, scale
buttons: {
'Schliessen': this.buttons.Schliessen
},
width: 300, height: 200,
minWidth: 300, minHeight: 200,
maxWidth: 1000, maxHeight: 700,
title: 'GCTour Info',
closeText: 'Schliessen',
show: 'drop', // blind, drop, scale
dialogClass: 'gct gct_dialog',
close: function(event, ui) {
$(this).dialog("destroy"); // diesen Dialog killen, weil immer ein neuer erstellt wird
}
});
}
});
$.fn.addShadowEffect = function() {
return this.each(function() {
$(this).bind({
mouseenter: function() {
$(this).addClass( "imgShadow");
},
mouseleave: function() {
$(this).removeClass( "imgShadow");
}
});
});
};
$.fn.addOpacityEffect = function() {
return this.each(function() {
var $this = $(this);
$this
.css({opacity: "0.5"})
.bind({
mouseenter: function() {
$this.stop().animate({opacity:'1'}, 300);
},
mouseleave: function() {
$this.stop().animate({opacity:'0.5'}, 300);
}
});
});
};
})();
// ---------------------- THE IMAGES ----------------------
$.gctour.img = {
del: 'data:image/gif;base64,R0lGODlhEgASANUlAJaWluXl5dfX197e3pSUlNnZ2aampre3t3p6eubm5qioqLW1taenp9zc3LOzs7a2toGBgdra2t3d3YuLi3x8fKSkpHV1dc%2FPz%2BHh4ZiYmH5%2BfpeXl4qKioyMjMXFxaKior%2B%2Fv8vLy9DQ0LS0tDs7OwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAEAACUALAAAAAASABIAAAZ4wJJwSCwaj8gjaZkcLp9QJOkhGHgACM2EQzJCv9EiaQSKBEQGAiHT9Y5IGFKBpCAB2u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WvjBFIiteLH7690rdnI5GyR4uci2VUDYReklOxI7wTg45cct96O4CkPN%2FDpW9%2FP7r59lGbe8OLTK3KHJhh78rgJ8DwP0zSX7LscHwu5cOJBGkOs5t30FE9PvkcpFbLxHnCs0%2Fe7o67gK8npyLnW8v0%2F5Gb7fMJoZowAAAAASUVORK5CYII%3D',
dialogMask: 'data:image/png,%89PNG%0D%0A%1A%0A%00%00%00%0DIHDR%00%00%00%08%00%00%00%08%08%06%00%00%00%C4%0F%BE%8B%00%00%00%01sRGB%00%AE%CE%1C%E9%00%00%00%06bKGD%00%FF%00%FF%00%FF%A0%BD%A7%93%00%00%00%09pHYs%00%00%0E%C4%00%00%0E%C4%01%95%2B%0E%1B%00%00%00%07tIME%07%DB%03%17%0C%03%0F%8C%CB%E4%8C%00%00%00%19tEXtComment%00Created%20with%20GIMPW%81%0E%17%00%00%00%26IDAT%18%D3c%F8%FF%FF%FF%FFMW%3E%FF%C7E3%FC%87%02%98%20%3A%9F%81%A0%09%B8t%C2%00%C3%20p%03%00%DA%B4%F2%A1%8A%CD%18%A3%00%00%00%00IEND%AEB%60%82',
save: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8%2F9hAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A%2FwD%2FoL2nkwAAAAlwSFlzAAALEQAACxEBf2RfkQAAAAd0SU1FB9sDHAwxAVECGvsAAAJVSURBVDjLpZBNS1RRGICfO15HZ1BsphDHclHYLoXA0NBqkdQu6EMNEvoiSDI37SpJaBERbSRCyMrIXT%2FAjLKwUMfEFMMPJL8tU9FRcu54557zthgdKTKIHg6czXue8%2FAap0pP3AoEAjX8hm3bsTuyejm0732dx0wi2Uwm2XRjutzUln8wAMxAIFBz%2FuxF%2FkQkYvH4aX1dxLYpy6vCTDBJMFy0fH4en3EppVheXqIj2E5HsJ2u7k6GhvsZGu5nfHKU4uLD2NrG0Yrx%2BWGUaGzt8LCu9jaAqZTC4%2FGyJc0HgJGg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Am8xlrm0uBWQIm5hZyYJagsJisEgMDAC4YCUlXya0PAAAAAElFTkSuQmCC',
danger: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8%2F9hAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAN1wAADdcBQiibeAAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAIwSURBVDiNjdO9T5NRHMXx7%2B%2Fe573tU%2FoUCpTy1kjlTTExIRol0ZiY4OTE0iZuuhgHIxvRuGhcUAeMcXNwcwH%2FARcHjUpYTExUEsWQ6CAEWiiFXhc1QYvhLHc593OXc8UYQ6MsXJACyn4mZqdcM%2FXzRx%2Bbz416quFtQDnBk47j431to%2BdGHMt5uGev4eslORvrOTIUtmQk2ZpRXnbw1EJRRvcHiIhOJGda%2BoZ98SOUl6Tl4CFPfP%2FBvoC3RSYSPSNZ11WojiFUtp%2FAtyWWGxiYL8n4f4Hnp8Vy48l7UbY9EMtBpbKo5jxYFs1dXYH2%2FRluitoTaOrgYjzXFzpSRbUXmJyeZXJ6Ft3ej6drxNvymfmPFBsCby5JoILErSgdBOIGqGQLzaFNpslBRR2I45LOhDFl%2B9Mfroj7D6A2uNaUydh2vYLuHMRsb5BN2WQjG7Ozie4cxmWDMJ32yytc3gW8m5DIcrzJVIJAEhESC2G7QnezTb7Vhe0KEqYRSxM5qzED11%2BWJPwD1DxuJELXsswGunsQamWorjHWH3CsV8P6EpS%2FojsL2PU1wgDLF6YAZKFIzmje53Nu4OQK2IfP%2FB4E%2BuRdAHZeXAVjwNTZej3H1vIin5ap7BgOWGjuNMWxtami23upb64iokAUS09LgGCq64DBmDq6awDr2yKpOPrHGrctYCzuYQNsvZrbNZLUr7P693qAwMNdKXPCMoZHX74zZQxug97eETaV4b7s9Z33m5%2BP5JF%2FA6jokgAAAABJRU5ErkJggg%3D%3D',
plus: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAA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7%D7%F8%D5%D8%FA%D9%D9%F4%D6%D9%FD%D9%DB%FA%DD%DD%F5%DA%DD%FE%DA%DD%FF%DD%E0%FA%DE%E0%FD%DF%E0%FC%E1%E2%FF%E4%E4%F8%E3%E4%FE%E5%E5%FF%E6%E6%FA%E6%E7%FA%E7%E7%FB%E8%E8%FA%E8%E8%FF%E9%E8%FE%EA%EB%FE%EC%EC%FF%ED%ED%FE%ED%ED%FF%ED%EE%FE%EE%EE%FE%F0%F0%FE%F0%F0%FF%F1%F1%FF%F2%F2%FE%F2%F2%FF%F2%F3%FD%F3%F3%FE%F3%F3%FF%F4%F4%FF%F5%F5%FE%F5%F5%FF%F6%F6%FE%F8%F8%FD%F9%F9%FE%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00!%FE%11Created%20with%20GIMP%00!%F9%04%01%0A%00%7F%00%2C%00%00%00%00%0F%00%0D%00%00%07%85%80%7F%82%83%84%85%86%83%0E%17%09%87%83%12%1E1%2B%1C%03%86%06%18%25AR2%2C5%14%84%0B%19(FVbL-%40C%26%93%7F%0F%22%3BM%5Ded47JKG%16%82%15%20%1F%23)30%2FQSUW*%02%7F%13.9%3E%3D%3C%3ANY%5C_%5EE%07%82%1BDHPTX_bcO\'%0D%00%82%108PUZ%60aI%24%0C%01%85!U%5B%5BB%1D%08%8C%11%3F6%1A%05%8C%83%0A%08%FC%0B%04%00%3B',
//information: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8%2F9hAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAN1wAADdcBQiibeAAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAKvSURBVDiNlVNPSNNhGH6%2B7%2Fttv%2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aU%2Bys47Ez%2BZgBdCCKtCCMvxOmbhpN6OkXSuS2XxdLwaQlgRQliVuqaDMKWWY%2FRT%2Bt6NL6f0ti6E8CpeSn2ao1NpPA%2B%2Fx6IQwmtYi%2BPws3rkeLsB1tzWzrih5kz9gGtWdulobbShqUHD1m5bVnbZvmy95k1vum%2FWWJ0tjWZiHS7JilbvoKzcI6WkFnT0QxJ76%2BydSGUP2qt%2FU9nJsjZLcw3ra%2F203nhv%2FW3hpfe4cnp%2FOkelIMMInJwV3VopaMXatnYjEllswr%2BxIl9%2BO31UCpoxMitaoY5d1jmG4MJEIn%2BXTs7QrOj8%2BtbV04pKwTR8CMuzor%2FUt6yOOuqoo46%2B8R8zB2ZOLT0sIgAAAABJRU5ErkJggg%3D%3D',
};
$.gctour.i18n.de = {
'name' : 'Deutsch',
'language' : 'Sprache',
'addToTour' : 'Zur Tour hinzufügen',
'addToCurrentTour' : 'zur <b>aktuellen</b> Tour hinzufügen',
'addToNewTour' : 'zu <b>neuer</b> Tour hinzufügen',
'directPrint' : 'Drucke diesen Geocache',
'moveGeocache' : 'Verschiebe die Koordinaten',
'movedGeocache' : 'Die Koordinaten zu diesem Geocache wurden verschoben!',
'moveGeocacheHelp' : 'Hier hast du die Möglichkeit die original Koordinaten dieses Geocaches durch Neue zu ersetzen. Diese werden dann in der Druckansicht wie auch in der GPX verwendet. Praktisch bei der Lösung eines Mystery.',
'originalCoordinates' : 'Original Koordinaten',
'newCoordinates':"Neue Koordinaten",
'showCaches' : '<b>Angezeigte</b> Caches:',
'markedCaches' : '<b>Markierte</b> Caches:',
'removeTourDialog' : "Soll die Tour wirklich gelöscht werden?",
'logYourVisit' : "Logge deinen Besuch",
'removeFromList' : "aus Liste entfernen",
'emptyList' : 'Die Liste ist leer.',
'notLogedIn' : 'Sie müssen angemeldet sein, bitte einloggen ...',
'months' : ["Januar", "Februar", "März", "April", "Mai", "Juni", "Juli", "August", "September", "Oktober", "November", "Dezember"],
'printviewTitle' : 'GCTour - http://gctour.madd.in',
'pleaseWait' : 'Bitte warten - Daten werden geladen...',
'newList' : 'neue Tour erstellen',
'sendToGps' : 'an GPS senden',
'makeMap' : 'Auf Karte anzeigen',
'makeMapWait' : 'Verfügbarkeit der Karte wird getestet.',
'printview' : 'Druckansicht',
'print' : 'Druck starten',
'downloadGpx' : 'GPX downloaden',
'send2cgeo' : 'an c:geo senden',
'showSettings' : 'Einstellungen anzeigen',
'settings_caption' : 'Einstellungen',
'settingsPrintMinimal' : 'Minimierte Druckansicht',
'settingsLogCount' : 'Anzahl der Logs in Druckansicht',
'settingsLogCountNone' : 'keine<br/>',
'settingsLogCountAll' : 'alle<br/>',
'settingsLogCountShow' : 'anzeigen',
'settingsEditDescription' : 'Beschreibung editierbar',
'settingsRemoveImages' : 'Bilder bei Klick entfernen',
'settingsShowSpoiler' : 'Spoiler Bilder anzeigen',
'settingsAdditionalWaypoints' : 'Additional Waypoints anzeigen',
'settingsLoggedVisits' : 'Log-Counter anzeigen',
'settingsAttributes' : 'Attributes anzeigen',
'settingsDecryptHints' : 'Hints entschl&uuml;sseln',
'settingsSendToGPS' : 'An GPS senden',
'settingsShowGPX' : 'GPX anzeigen',
'settingsDownladGPX' : 'GPX download<br/>',
'settingsGPX' : 'GPX Einstellungen',
'settingsGPXHtml' : 'Beschreibung mit HTML',
'settingsUploadTour' : 'Tour upload',
'settingsGPXStripGC' : 'Entferne "GC" in GC-Code',
'settingsGPXWpts' : 'Additional-Waypoints exportieren',
'settingsGPXAttributestoLog' : 'Cache-Attribute als ersten Logeintrag',
'settingsFontSize' : 'Schriftgr&ouml;&szlig;e:',
'settingsPageBreak' : 'Seitenumbruch nach Geocache:',
'settingsPageBreakAfterMap' : 'Seitenumbruch nach Übersichtskarte:',
'settingsFrontPage' : 'Titelseite:',
'settingsOutlineMap' : 'Übersichtskarte für alle Caches:',
'settingsOutlineMapSinge' : 'Übersichtskarte für jeden Cache:',
'settingsDecryptHintsDesc' : 'Die Hinweise werden schon mittels Rot13 auf der Druckansicht entschlüsselt.',
'settingsPrintMinimalDesc' : 'Beinhaltet nur noch Hint und Spoiler zu jedem Geocache.',
'settingsEditDescriptionDesc' : 'Die Beschreibung lässt sich komplett nach eigenem Belieben anpassen.',
'settingsShowSpoilerDesc' : 'Es werden die Spoiler mit gedruckt.',
'settingsAdditionalWaypointsDesc' : 'In der Druckansicht findet sich eine Tabelle mit allen "Zusätzlichen Wegpunkten".',
'settingsLoggedVisitsDesc' : 'Eine Übersicht wie oft der Geocache schon gefunden wurde.',
'settingsPageBreakDesc' : 'Es wird nach jedem Geocache eine neue Seite angefangen. Sieht man erst beim Ausdrucken.',
'settingsPageBreakAfterMapDesc' : 'Es wird ein Seitenumbruch nach der Übersichtseite gemacht, um das Deckblatt abzuheben.',
'settingsFrontPageDesc' : 'Es wird eine Titelseite erzeugt mit allen Geocaches, Index und Platz für Notizen.',
'settingsOutlineMapDesc' : 'Auf der Titelseite wird eine Karte mit allen Geocaches in der Tour angezeigt.',
'settingsOutlineMapSingeDesc' : 'Unter jedem Geocache erscheint eine Karte mit seinen "Additional Waypoints"',
'settingsGPXHtmlDesc' : 'Manche Geräte/Programme haben Probleme beim Anzeigen eines Geocaches mit HTML-Formatierung. Wenn du nur noch kryptische Beschreibungen siehst, dann Bitte diese Option deaktivieren.',
'settingsGPXWptsDesc' : 'Additional-Waypoints werden als extra Wegpunkt mit in die GPX exportiert. Damit hat man jeden Parkplatz direkt auf dem Gerät.',
'settingsGPXStripGCDesc' : 'Alte Geräte haben Probleme mit Wegpunkten deren Name länger als 8 Zeichen sind. Wenn du so ein altes Garmin hast, dann bitte diese Option anwählen!',
'settingsGPXAttributestoLogDesc' : 'Cache Attribute werden zusätzlich als ersten Log eingetragen.',
'settings_map' : 'Karten',
'settings_map_geocacheid' : 'Geocache Code anzeigen',
'settings_map_geocacheindex' : 'Geocache Index anzeigen',
'settings_map_geocachename' : 'Geocache Namen anzeigen',
'settings_map_awpts' : 'Additional Waypoints anzeigen',
'settings_map_awpt_name' : 'Additional Waypoints Namen einblenden',
'settings_map_awpt_lookup' : 'Additional Waypoints Lookup einblenden',
'settings_map_owpts' : 'Eigene Wegpunkte einblenden',
'settings_map_owpt_name' : 'Eigener Wegpunkt Name anzeigen',
'settings_map_gcde' : 'Karte von geocaching.de einblenden',
'settings_map_geocacheidDesc' : 'Es wird immer der GCCode (z.B. GC0815) mit auf der Karte angezeigt.',
'settings_map_geocacheindexDesc' : 'Die Postion innerhalb der Tour wird mit angezeigt.',
'settings_map_geocachenameDesc' : 'Der Name eines Geocache wird zusätzlich mit eingeblendet.',
'settings_map_awptsDesc' : 'Wenn aktiviert, dann werden die "Additional Waypoints" eines Geocaches mit angezeigt.',
'settings_map_awpt_nameDesc' : 'Der Name eines "Additional Waypoints" wir mit angezeigt.',
'settings_map_awpt_lookupDesc' : 'Der Lookupcode eines "Additional Waypoints" wir mit angezeigt.',
'settings_map_owptsDesc' : 'Wenn du "Eigene Wegpunkte" mit in deiner Tour hast, so werden diese auch mit auf der Karte angezeigt.',
'settings_map_owpt_nameDesc' : 'Zusätzlich kann man sich noch den Namen zu jedem Wegpunkt anzeigen lassen.',
'settings_map_gcdeDesc' : 'Wenn das aktiviert wurde, werden automatisch zusätzliche zu deiner Tour, die Karte von Geocaching.de mit eingeblendet.',
'loadTour' : 'Tour laden:<br/>',
'openTour' : 'eine Tour laden',
'load' : 'laden',
'removeTour' : 'diese Tour löschen',
'deleteCoordinates' : 'Koordinaten löschen',
'copyTour' : 'Tour kopieren',
'copy' : 'Kopie',
'newTourDialog' : 'Bitte gib einen Namen für die neue Tour ein ...',
'rename' : 'umbenennen',
'upload' : 'Tour hochladen',
'onlineTour' : 'Tour runterladen',
'webcodeDownloadHelp':'Bitte gib hier den Webcode an, den du von deinem Freund bekommen hast und drücke dann auf "Tour runterladen".',
'webcodeDownloadButton':'Tour runterladen',
'findMe' : 'Finde mich!',
'webcodeerror' : 'Der angegebene Webcode existiert leider nicht!',
'tourUploaded1' : 'Die Tour wurde erfolgreich hochgeladen!\nDer Webcode lautet:\n ',
'tourUploaded2' : '\nDie Onlineabfrage kann unter http://gctour.madd.in geschehen.\nWichtig: Bitte Webcode notieren um die Tour wieder aufzurufen!!',
'webcodePrompt' : 'Tour download\nBitte gib einen gültigen Webcode ein,\num die dazu passende Tour zu laden:',
'webcodesuccess' : ' wurde erfolgreich geladen!',
'webcodeOld' : '\n !!ACHTUNG!!\nEs handelt sich bei diesem Webcode um eine alte Tour. Um sie auch mit den Vorzügen von GCTour 2.0 nutzen zu können musst du sie bitte jetzt erneut hochladen.',
'printviewCache' : 'Geocache',
'printviewFound' : 'Fund',
'printviewNote' : 'Notiz',
'printviewMarker' : "Eigene Wegpunkte",
'printviewAdditionalWaypoint' : "Zusätzliche Wegpunkte",
'printviewRemoveMap' : "Karte entfernen",
'printviewZoomMap' : "Diese Karte in einem neuem Tab öffen.",
'settingsMapType' : 'Standard Kartentyp',
'settingsMapSize' : 'Standard Kartengröße',
'addOwnWaypoint' : 'eigenen Wegpunkt hinzufügen',
"markerCoordinate" : "Koordinaten",
"markerContent" : "Inhalt",
"markerType" : "Typ",
"markerContentHint" : "wird in Druckansicht angezeigt",
"markerCaption" : "Beschriftung",
"autoTour" : "autoTour",
"autoTourWait" : "Bitte warten - autoTour wird erzeugt!",
"autoTourRadius" : "Radius",
"autoTourCenter" : "Mittelpunkt",
"autoTourHelp" : "Koordinaten oder Adresse:<i>N51° 12.123 E010° 23.123</i> oder <i>40.597 -75.542</i> oder <i>Berlin Ernst-Reuter-Platz</i>",
"autoTourRefresh" : "Berechne eine autoTour mit diesen Werten!",
"autoTourCacheCounts" : "Geschätzte <i>gesamt</i> Anzahl Caches in dieser Region:",
"autoTourDuration" : "Geschätzte Dauer der Erzeugung dieser autoTour:",
"autoTourFilter" : {
"type" : "Typ",
"size" : "Größe",
"difficulty" : "Schwierigkeit",
"terrain" : "Gelände",
"special" : "Spezial"
},
"save" : "Speichern",
"cancel" : "Abbrechen",
"close" : "Schließen",
'install' : 'Installieren',
"edit" : "bearbeiten",
"example" : "Beispiel:",
"exampleCoords" : "<i>N51° 12.123 E010° 23.123</i> oder <i>40.597 -75.542</i>",
"dontPrintHint" : "<b>Hinweis:</b><br/>Elemente in einem solchen Kasten werden <u>nicht</u> mit gedruckt!",
"SCRIPT_ERROR" : "Es sieht so aus, als blockierst du benötigte Javascript-Quellen (z.B. durch das Firefox-Addon NoScript). Bitte lasse 'geocaching.com' dauerhaft zu, um GCTour zu nutzen!" ,
'mapTypes' :
[{"caption":"Google Karte","value":"roadmap"},
{"caption":"Google Satellit","value":"satellite"},
{"caption":"Google Hybrid","value":"hybrid"},
{"caption":"Google Gelände","value":"terrain"},
{"caption":"Topo Deutschland","value":"oda"},
{"caption":"OSM Mapnik","value":"mapnik"},
{"caption":"OSM DE","value":"osmde"},
{"caption":"OSM Fahrrad","value":"osmaC"},
{"caption":"OSM ÖPNV","value":"osmaP"}],
'updateDialog' : "<div><img src='http://gctour-spot.appspot.com/i/signal_antenna.gif' style='float:right'><p>Es ist eine neue Version von &nbsp;&nbsp;&nbsp;<a target='_blank' href='http://gctour.madd.in'><b>GCTour</b></a>&nbsp;&nbsp;&nbsp;verf&uuml;gbar.</p><p>Du benutzt die Version <b>###VERSION_OLD###</b>. Die aktuellste Version ist <b>###VERSION_NEW###</b></p><p><b>Versions Historie:</b></p><div class='dialogHistory'>###VERSION_HISTORY###</div><div class='dialogFooter'></div>",
'updateCurrently' : 'GCTour Version '+VERSION+'.'+BUILD+' ist aktuell!',
// redesign begin 05.2012
'settings':{
'gpx':{
'maxLogCount': 'max. Anzahl der Logs'
}
},
'dlg':{
'sendMessage':{
'caption': 'Sende eine Nachricht an den Entwickler.',
'content': 'Du hast einen Fehler gefunden? Du möchtest eine Verbesserung vorschlagen oder deine Meinung zu GCTour loswerden? Dann schreibe mir eine <b>Nachricht:</b>',
'submit': 'Schicke diese Nachricht ab!',
'response': 'Deine Mail Adresse: '
// old: 'sendMessageTitle', 'sendMessage', 'sendMessageSubmit'
},
'newVersion':{
'caption': 'Neue Version verfügbar',
'content': 'Es gibt eine neue Version von GCTour.\nZum update gehen? \n\n' //ohne Anwendung
// old: 'newVersionDialog', 'newVersionTitle'
},
'error':{
'content': '<img src="http://forums.groundspeak.com/GC/public/style_emoticons/default/sad.gif">&nbsp;&nbsp;Es tut mir leid, aber es ist ein Fehler aufgetreten!<br/>' +
'Versuch es einfach noch einmal oder suche nach einem <a href="#" id="gctour_update_error_dialog">Update</a>!<br/><br/>' +
'Wenn dieser Fehler öfter auftritt, dann schicke bitte einen Fehlerbericht.<br/>' +
'<u>Notizen</u><br/>' +
'<textarea id="gctour_error_note" rows="4" style="width:99%"></textarea>',
'send': 'Fehlerbericht abschicken'
// old: 'ERROR_DIALOG', 'ERROR_DIALOG_SEND'
}
},
'notifications':{
'addgeocache':{
'success':{
'caption':'{0} wurde hinzugefügt!',
'content':'<b>{0}</b> enthält jetzt auch <b>{1}</b>.'
},
'contains':{
'caption':'{0} wurde <i>nicht</i> hinzugefügt!',
'content':'<b>{0}</b> enthält <b>{1}</b> schon.'
}
}
},
'units':{
'km': 'Kilometer',
'mi': 'Meilen'
}
};
$.gctour.i18n.en = {
'name' : 'English',
'language' : 'Language',
'addToTour' : 'Add to Tour',
'addToCurrentTour' : "to <b>curent</b> tour",
'addToNewTour' : 'to <b>new</b> tour',
'directPrint' : 'Print this geocache',
'moveGeocache' : 'Move the coordinates',
'movedGeocache' : 'The coordinates to this geocaches are moved.',
'moveGeocacheHelp' : 'You have the chance to change the original coordinates of this geocache. These will than used in the printview and also in the GPX file. This is quiet handy if you solve a mystery.',
'originalCoordinates' : 'Original coordinates',
'newCoordinates':"New coordinates",
'showCaches' : 'Add <b>shown</b> geocaches:',
'markedCaches' : 'Add <b>marked</b> geocaches:',
'removeTourDialog' : "Are you sure to remove this tour?",
'logYourVisit' : "Log your visit",
'removeFromList' : "Remove from list",
'emptyList' : 'The list is empty.',
'notLogedIn' : 'You need to be logged, please login in ...',
'months' : ["jan", "feb", "mar", "apr", "may", "jun", "jul", "aug", "sep", "oct", "nov", "dec"],
'printviewTitle' : 'GCTour - http://gctour.madd.in',
'pleaseWait' : 'Please wait - loading data ...',
'newList' : 'New Tour',
'sendToGps' : 'Send to GPS',
'makeMap' : 'View on map',
'makeMapWait' : 'Testing availablity of this map',
'printview' : 'Printview',
'print' : 'Start printing',
'downloadGpx' : 'Download GPX',
'send2cgeo' : 'Send to c:geo',
'showSettings' : 'Show settings',
'settings_caption' : 'Settings',
'settingsPrintMinimal' : 'Minimal printview',
'settingsLogCount' : 'Number of logs in printview',
'settingsLogCountNone' : 'none<br/>',
'settingsLogCountAll' : 'all<br/>',
'settingsLogCountShow' : 'show',
'settingsEditDescription' : 'Description editable',
'settingsRemoveImages' : 'Remove images on click',
'settingsShowSpoiler' : 'Display spoiler',
'settingsAdditionalWaypoints' : 'Show additional waypoints',
'settingsLoggedVisits' : 'Show log counter',
'settingsAttributes' : 'Show attributes',
'settingsDecryptHints' : 'Decrypt hints',
'settingsSendToGPS' : 'Send to GPS',
'settingsShowGPX' : 'Show the GPX-File',
'settingsDownladGPX' : 'GPX download<br/>',
'settingsGPX' : 'GPX Settings',
'settingsGPXHtml' : 'Description with HTML',
'settingsUploadTour' : 'Tour upload',
'settingsGPXStripGC' : 'Strip "GC" in GC-Code',
'settingsGPXWpts' : 'Export additional waypoints',
'settingsGPXAttributestoLog' : 'Create log with cache attributes',
'settings_map' : 'Map',
'settings_map_geocacheid' : 'Show geocache id',
'settings_map_geocacheindex' : 'Show geocache index',
'settings_map_geocachename' : 'Show geocache name',
'settings_map_awpts' : 'Display addtional waypoints',
'settings_map_awpt_name' : 'Show name of the additional waypoints',
'settings_map_awpt_lookup' : 'Show lookup code of additional waypoints',
'settings_map_owpts' : 'Display own waypoints',
'settings_map_owpt_name' : 'Show name of own waypoints',
'settings_map_gcde' : 'Show map from geocaching.de',
'loadTour' : 'Load tour:<br/>',
'openTour' : 'Load a tour',
'load' : 'Load',
'removeTour' : 'Delete this tour',
'deleteCoordinates' : 'Delete coordinates',
'copyTour' : 'Copy tour',
'copy' : 'Copy',
'newTourDialog' : 'Please enter a name for the new tour ...',
'rename' : 'Rename',
'upload' : 'Upload tour',
'onlineTour' : 'Download Tour',
'webcodeDownloadHelp':'Please enter here the webcode you receive from your friend and click on "Download tour".',
'webcodeDownloadButton':'Download tour',
'findMe' : 'Find me!',
'webcodeerror' : 'The choosen webcode does not exist!',
'tourUploaded1' : 'Uploading tour was successful!\nWebcode:\n ',
'tourUploaded2' : '\nYou can view the tour at http://gctour.madd.in.\nImportant: Please note webcode in order to retrieve the tour!!',
'settingsFontSize' : 'Fontsize:',
'settingsPageBreak' : 'Page break after cache:',
'settingsPageBreakAfterMap' : 'Page break after map:',
'webcodePrompt' : 'Download tour\nPlease enter a valid webcode, to load the tour:',
'webcodesuccess' : ' was successfully loaded!',
'webcodeOld' : '\n !!ATTENTION!!\nThis webcode is connected with an old tour. To get all benefits of GCTour 2.0 you must upload this tour again.',
'printviewCache' : 'Geocache',
'printviewFound' : 'Found',
'printviewNote' : 'Note',
'printviewMarker' : "Own waypoint",
'printviewAdditionalWaypoint' : "Additional waypoints",
'printviewRemoveMap' : "remove map",
'printviewZoomMap' : "Open this map in a new tab.",
'settingsFrontPage' : 'Front page:',
'settingsOutlineMap' : 'Outline map for all caches:',
'settingsOutlineMapSinge' : 'Outline map for every cache:',
'settingsDecryptHintsDesc' : 'Hints will be already decrypted in the printout.',
'settingsPrintMinimalDesc' : 'This contains only the hint and spoiler of a geocache.',
'settingsEditDescriptionDesc' : 'The description can be edited in the way you want it.',
'settingsShowSpoilerDesc' : 'Spoiler images will be on the printout.',
'settingsAdditionalWaypointsDesc' : 'The printview will contain a table with all "Additional waypoints" from a geocache.',
'settingsLoggedVisitsDesc' : 'This will show the "Find counts" overview.',
'settingsPageBreakDesc' : 'After each geocache there will be a page break. Visiable after printing.',
'settingsPageBreakAfterMapDesc' : 'It will be a page break after the overview to seperate it from the geocaches.',
'settingsFrontPageDesc' : 'An overview will be generated containing the complete list of geocaches including index and space to take notes. ',
'settingsOutlineMapDesc' : 'The overview will contain a map with all geocaches.',
'settingsOutlineMapSingeDesc' : 'After each geocache a map containing the geocache and its "Additional waypoints" will be shown.',
'settingsGPXHtmlDesc' : 'Some programs/GPSr have problems to show geocaches when their description is HTML formated. If you only see scrabbled descriptions then please disable this option.',
'settingsGPXWptsDesc' : 'Additional waypoints will be exported as extra waypoint to the GPX. You will see every parking place on your unit.',
'settingsGPXStripGCDesc' : 'Older GPSr still have problems with waypoints having their name longer than 8 characters. Please use this option if you own such an unit.',
'settingsGPXAttributestoLogDesc' : 'Cache attributes are also registered as a first sign.',
'settings_map_geocacheidDesc' : 'The GCCode (eg. GC0815) will be shown on the map.',
'settings_map_geocacheindexDesc' : 'The position of each waypoint in the current tour will be shown on the map.',
'settings_map_geocachenameDesc' : 'The name of an geocache will be shown on the map.',
'settings_map_awptsDesc' : 'If enabled, additional waypoints will be shown on the map.',
'settings_map_awpt_nameDesc' : 'The name of the additional waypoints will be shown on the map.',
'settings_map_awpt_lookupDesc' : 'The lookup code of the additional waypoints will be shown on the map.',
'settings_map_owptsDesc' : 'Own waypoints in the current tour will be shown on the map.',
'settings_map_owpt_nameDesc' : 'Display the name of your own waypoints',
'settings_map_gcdeDesc' : 'You will see the geocaching.de map in addition to your tour.',
'settingsMapType' : 'Default map type',
'settingsMapSize' : 'Default map size',
'addOwnWaypoint' : 'Add own waypoint',
"markerCoordinate" : "Coordinates",
"markerContent" : "Content",
"markerType" : "Type",
"markerContentHint" : "Will be shown in the printview",
"markerCaption" : "Caption",
"save" : "Save",
"cancel" : "Cancel",
"close" : "Close",
'install' : 'Install',
"edit" : "edit",
"example" : "eg. ",
"exampleCoords" : "<i>N51° 12.123 E010° 23.123</i> or <i>40.597 -75.542</i>",
"dontPrintHint" : "<b>Information :</b><br/>Elements in such a box will <u>not</u> be printed!",
"SCRIPT_ERROR" : "It appears, that you are blocking some javascript sources (e.g. NoScript). Please allow 'geocaching.com' permanently to use GCTour!" ,
'mapTypes' :
[{"caption":"Google Map","value":"roadmap"},
{"caption":"Google Satellite","value":"satellite"},
{"caption":"Google Hybrid","value":"hybrid"},
{"caption":"Google Terrain","value":"terrain"},
{"caption":"Topo Germany","value":"oda"},
{"caption":"OSM Mapnik","value":"mapnik"},
{"caption":"OSM Osma","value":"osma"},
{"caption":"OSM Cycle","value":"osmaC"},
{"caption":"OSM Public Transport","value":"osmaP"}],
'updateDialog' : "<div><img src='http://gctour-spot.appspot.com/i/signal_antenna.gif' style='float:right'><p>There is a new version of&nbsp;&nbsp;&nbsp;<a target='_blank' href='http://gctour.madd.in'><b>GCTour</b></a>&nbsp;&nbsp;&nbsp;available for installation.</p><p>You currently have version <b>###VERSION_OLD###</b> installed. The latest version is <b>###VERSION_NEW###</b></p><p><b>Version History:</b></p><div class='dialogHistory'>###VERSION_HISTORY###</div><div class='dialogFooter'></div>",
'updateCurrently' : 'GCTour version '+VERSION+'.'+BUILD+' is up to date!',
// redesign begin 05.2012
'settings':{
'gpx':{
'maxLogCount': 'max number of logs'
}
},
'autoTour' : {
'title': 'autoTour',
'wait' : 'Please wait - generating autoTour!',
'radius' : 'Radius',
'center' : 'Center',
'help' : 'Coordinates or address:<i>N51° 12.123 E010° 23.123</i> or <i>40.597 -75.542</i> or <i>Paris Eiffel Tower</i>',
'refresh' : 'Calculate an autoTour with these values!',
'cacheCounts' : 'Estimated <i>total number</i> of caches in this region:',
'duration' : 'Geschätzte Dauer der Erzeugung dieser autoTour:',
'filter' : {
'type' : 'Type',
'size' : 'Size',
'difficulty' : 'Difficulty',
'terrain' : 'Terrain',
'special' : {
'caption': 'Special',
'pm' : {
'not' : 'Is not a PM cache',
'ignore' : 'Is PM or not PM cache',
'only' : 'Is PM cache'
},
'notfound' : 'I haven\'t found ',
'isActive': 'is Active',
'minFavorites': 'min. Favorites'
}
}
},
'dlg':{
'sendMessage':{
'caption': 'Send a message to the author.',
'content': 'You have found a bug? Do you have suggestion on GCTour? I would like to hear your opinion.<br/>Feel free to send me a <b>message</b>:',
'submit': 'Submit this message!',
'response': 'Your mail address: '
// old: 'sendMessageTitle', 'sendMessage', 'sendMessageSubmit'
},
'newVersion':{
'caption': 'new version available',
'content': 'There is a new version of GCTour.\nDo you want to update? \n\n'
// old: 'newVersionDialog', 'newVersionTitle'
},
'error':{
'content': '<img src="http://forums.groundspeak.com/GC/public/style_emoticons/default/sad.gif">&nbsp;&nbsp;I\'m sorry but an error occurs.<br/>' +
'Please just try again, or look for an <a href="#" id="gctour_update_error_dialog">update</a>!<br/>' +
'If this error comes every time, please send this error report.<br/>' +
'<u>Notes</u><br/>' +
'<textarea id="gctour_error_note" rows="4" style="width:99%"></textarea>',
'send': 'Send report'
// old: 'ERROR_DIALOG', 'ERROR_DIALOG_SEND'
}
},
'notifications':{
'addgeocache':{
'success':{
'caption':'{0} added successfully!',
'content':'<b>{0}</b> now also contains <b>{1}</b>.'
},
'contains':{
'caption':'{0} was <i>not</i> added!',
'content':'<b>{0}</b> contains <b>{1}</b>.'
}
}
},
'units':{
'km': 'Kilometer',
'mi': 'Miles'
// old: 'kilometer', 'mile'
}
};
$.gctour.i18n.fr = {
'name' : 'Français',
'language' : 'Langue',
'addToTour' : 'Ajouter au Tour',
'addToCurrentTour' : "au tour <b>actuel</b>",
'addToNewTour' : 'à un <b>nouveau</b> Tour',
'directPrint' : 'Imprimer cette cache',
'moveGeocache' : 'Ajuster les coordonnées',
'movedGeocache' : 'Les coordonnées de cette cache ont été ajustées.',
'moveGeocacheHelp' : 'Vous avez la possibilité d\'ajuster les coordonnées de cette cache. Ces coordonnées seront utilisées dans la version imprimable et dans le fichier GPX . Très utile pour la saisie des solutions des caches Mystery.',
'originalCoordinates' : 'Coordonnées initiales',
'newCoordinates':"Nouvelles coordonnées",
'showCaches' : 'Ajouter les caches affichées:',
'markedCaches' : 'Add <b>marked</b> geocaches:', // ToDo
'removeTourDialog' : "Etes-vous sûrs de vouloir supprimer ce Tour?",
'logYourVisit' : "Loguer votre visite",
'removeFromList' : "Supprimer de la liste",
'emptyList' : 'La liste est vide.',
'notLogedIn' : 'Vous devez être connecté, merci de vous connecter ...',
'months' : ["jan", "fév", "mar", "avr", "mai", "jui", "jul", "aou", "sep", "oct", "nov", "dec"],
'printviewTitle' : 'GCTour - http://gctour.madd.in',
'pleaseWait' : 'Veuillez patienter...',
'newList' : 'Nouveau Tour',
'sendToGps' : 'Transférer vers le GPS',
'makeMap' : 'Voir sur la carte',
'makeMapWait' : 'Vérification de la disponibilité et création de la carte... ',
'printview' : 'Générer la version imprimable',
'print' : 'Lancez l\'impression',
'downloadGpx' : 'Télécharger le GPX',
'send2cgeo' : 'Transférer vers le c:geo',
'showSettings' : 'Configurer',
'settings_caption' : 'Configuration',
'settingsPrintMinimal' : 'Version imprimable minimaliste',
'settingsLogCount' : 'Nombre de logs à inclure dans la version imprimable',
'settingsLogCountNone' : 'aucun<br/>',
'settingsLogCountAll' : 'tous<br/>',
'settingsLogCountShow' : 'afficher',
'settingsEditDescription' : 'Description éditable',
'settingsRemoveImages' : 'Suppression des images par simple clic',
'settingsShowSpoiler' : 'Affichage des spoilers',
'settingsAdditionalWaypoints' : 'Affichage des Waypoints additionnels',
'settingsLoggedVisits' : 'Affichage du nombre de logs',
'settingsAttributes' : 'Affichage des attributs',
'settingsDecryptHints' : 'Decryptage des hints',
'settingsSendToGPS' : 'Envoyer vers le GPS',
'settingsShowGPX' : 'Afficher le fichier GPX',
'settingsDownladGPX' : 'Téléchargement du fichier GPX<br/>',
'settingsGPX' : 'Paramètres du fichier GPX',
'settingsGPXHtml' : 'Description des caches au format HTML',
'settingsUploadTour' : 'Soumettre un Tour',
'settingsGPXStripGC' : 'Tronquer le préfixe "GC" dans le GC-Code',
'settingsGPXWpts' : 'Exporter les Waypoints additionnels',
'settingsGPXAttributestoLog' : 'Créer connecter avec les attributs du cache',
'settings_map' : 'Carte',
'settings_map_geocacheid' : 'Afficher l\'Id de la cache sur la carte',
'settings_map_geocacheindex' : 'Afficher les Waypoints des caches sur la vue générale',
'settings_map_geocachename' : 'Afficher le nom des caches sur la vue générale',
'settings_map_awpts' : 'Afficher les Waypoints',
'settings_map_awpt_name' : 'Afficher les noms des Waypoints additionnels',
'settings_map_awpt_lookup' : 'Afficher les codes lookup des Waypoints additionnels',
'settings_map_owpts' : 'Afficher les Waypoints personnels',
'settings_map_owpt_name' : 'Afficher le nom des Waypoints personnels',
'settings_map_gcde' : 'Afficher la carte depuis geocaching.de',
'loadTour' : 'Charger un Tour:<br/>',
'openTour' : 'Ouvrir un Tour',
'load' : ' : Charger',
'removeTour' : 'Supprimer ce Tour',
'deleteCoordinates' : 'Supprimer les coordonnées',
'copyTour' : 'Dupliquer le Tour',
'copy' : 'Dupliquer',
'newTourDialog' : 'Veuillez saisir un nom pour ce nouveau Tour ...',
'rename' : 'Renommer',
'upload' : 'Soumettre un Tour sur http://gctour.madd.in',
'onlineTour' : 'Télécharger un Tour',
'webcodeDownloadHelp':'Entrer ici le webcode que vous avez reçu et cliquer sur "Télécharger le Tour".',
'webcodeDownloadButton':'Télécharger le Tour',
'findMe' : 'Localisez-moi!',
'webcodeerror' : 'Le webcode saisi est inexistant!',
'tourUploaded1' : 'Le Tour a été correctement transféré!\nWebcode:\n ',
'tourUploaded2' : '\nVous pouvez visualiser ce Tour sur http://gctour.madd.in.\nImportant: Notez bien le webcode pour une utilisation ultérieure!!',
'settingsFontSize' : 'Taille des caractères:',
'settingsPageBreak' : 'Saut de page entre les caches:',
'settingsPageBreakAfterMap' : 'Saut de page après la carte',
'webcodePrompt' : 'Téléchargement du Tour\nMerci de sasir le webcode du Tour à télécharger:',
'webcodesuccess' : ' a été chargé avec succès!',
'webcodeOld' : '\n !!ATTENTION!!\nCe webcode corrrespond à un ancien tour. Pour profiter pleinement de GCTour 2.0 vous devez soumettre de nouveau ce Tour.',
'printviewCache' : 'Geocache',
'printviewFound' : 'Trouvée',
'printviewNote' : 'Note',
'printviewMarker' : "Waypoint personnel",
'printviewAdditionalWaypoint' : "Waypoints Additionnels",
'printviewRemoveMap' : "Supprimer la carte",
'printviewZoomMap' : "Ouvrir la carte dans un nouvel onglet.",
'settingsFrontPage' : 'Page d\'accueil',
'settingsOutlineMap' : 'Vue d\'ensemble de toutes les caches du Tour:',
'settingsOutlineMapSinge' : 'Vue d\'ensemble pour chaque cache:',
'settingsDecryptHintsDesc' : 'Les indices seront décryptés dans la version imprimable.',
'settingsPrintMinimalDesc' : 'Ne contient que l\'indice et le spoiler de la cache.',
'settingsEditDescriptionDesc' : 'La description est éditable comme bon vous semble.',
'settingsShowSpoilerDesc' : 'Les images Spoiler seront visibles dans la version imprimables.',
'settingsAdditionalWaypointsDesc' : 'La version imprimable contiendra un tableau avec tous les "Waypoints additionnels" de la cache.',
'settingsLoggedVisitsDesc' : 'Affiche un récapitulatif des "Trouvé(s)".',
'settingsPageBreakDesc' : 'Il y aura un saut de page après chaque cache. Visible seulement à l\'impression.',
'settingsPageBreakAfterMapDesc' : 'Il y aura un saut de page après la vue globale du Tour pour la séparer des pages de caches qui suivent.',
'settingsFrontPageDesc' : 'Une vue d\'ensemble sera générée et incluera un index avec des cases dédiées à la prise de notes. ',
'settingsOutlineMapDesc' : 'La vue d\'ensemble incluera une carte avec toutes les caches.',
'settingsOutlineMapSingeDesc' : 'Après chaque cache, une carte indiquant l\'emplacement de la cache et de ses Waypoints additionnels sera affichée.',
'settingsGPXHtmlDesc' : 'Certains programmes/GPSr ont des problèmes pour afficher les descriptions au format HTML. Si vous ne voyez qu\'une description tronquée de la cache, désactivez cette option.',
'settingsGPXWptsDesc' : 'Les Waypoints additionnels seront exportés vers votres GPS. Les parkings conseillés seront visibles sur votre GPS.',
'settingsGPXStripGCDesc' : 'Les anciens GPSr ont parfois des problèmes avec les noms de Waypoints de plus de 8 caractères. Dans ce cas cochez cette option.',
'settingsGPXAttributestoLogDesc' : 'Attributs de mise en cache sont également enregistrés comme un premier signe.',
'settings_map_geocacheidDesc' : 'Les codes GC (eg. GC1S5ZE) seront affichés sur la carte.',
'settings_map_geocacheindexDesc' : 'Les Waypoints seront affichés sur la carte.',
'settings_map_geocachenameDesc' : 'Les noms des caches seront affichés sur la carte.',
'settings_map_awptsDesc' : 'Si cette option est cochée les Waypoints associées aux caches seront affichés sur la carte.',
'settings_map_awpt_nameDesc' : 'Les noms des Waypoints additionnels seront affichés sur la carte.',
'settings_map_awpt_lookupDesc' : 'Les codes lookup des Waypoints seront affichés sur la carte.',
'settings_map_owptsDesc' : 'Les Waypoints personnels seront visibles sur la carte.',
'settings_map_owpt_nameDesc' : 'Affiche le nom des Waypoints personnels sur la carte',
'settings_map_gcdeDesc' : 'La carte de geocaching.de sera ajoutée à la version imprimable de votre Tour.',
'settingsMapType' : 'Type de carte par défaut',
'settingsMapSize' : 'Taille de carte par défaut',
'addOwnWaypoint' : 'Ajouter un Waypoint personnel',
"markerCoordinate" : "Coordonnées",
"markerContent" : "Description",
"markerType" : "Type",
"markerContentHint" : "sera visble dans la version imprimable",
"markerCaption" : "Légende",
"save" : "Enregistrer",
"cancel" : "Abandonner",
"close" : "Fermer",
'install' : 'Installer',
"edit" : "Editer",
"example" : "Ex. ",
"exampleCoords" : "<i>N51° 12.123 E010° 23.123</i> ou <i>40.597 -75.542</i>",
"dontPrintHint" : "<b>Information :</b><br/>Les éléménts ayant cette apparence ne seront <u>pas</u> imprimés!",
"SCRIPT_ERROR" : "Il semble que des javascripts ne puissent pas s'exécuter sur votre ordinateur (e.g. NoScript). Merci d'autoriser 'geocaching.com' à utiliser GCTour de manière permanente!" ,
'mapTypes' :
[{"caption":"Google Plan","value":"roadmap"},
{"caption":"Google Satellite","value":"satellite"},
{"caption":"Google Hybride","value":"hybrid"},
{"caption":"Google Terrain","value":"terrain"},
{"caption":"Topo Germany","value":"oda"},
{"caption":"OSM Mapnik","value":"mapnik"},
{"caption":"OSM Osma","value":"osma"},
{"caption":"OSM Cycle","value":"osmaC"},
{"caption":"OSM Public Transport","value":"osmaP"}],
'updateDialog' : "<div><img src='http://gctour-spot.appspot.com/i/signal_antenna.gif' style='float:right'><p>Une nouvelle version de&nbsp;&nbsp;&nbsp;<a target='_blank' href='http://gctour.madd.in'><b>GCTour</b></a>&nbsp;&nbsp;&nbsp;est disponible.</p><p>Version installée : <b>###VERSION_OLD###</b>. Version la plus récente disponible: <b>###VERSION_NEW###</b></p><p><b>Historique des versions:</b></p><div class='dialogHistory'>###VERSION_HISTORY###</div><div class='dialogFooter'></div>",
'updateCurrently' : 'Version installée de GCTour '+VERSION+'.'+BUILD+' ! ',
// redesign begin 05.2012
'settings':{
'gpx':{
'maxLogCount': 'nombre maximum de journaux'
}
},
'autoTour' : {
'title': 'autoTour',
'wait' : 'Veuillez patienter pendant la génération automatique du Tour ...',
'radius' : 'Rayon',
'center' : 'Centre',
'help' : 'Coordonnées ou adresse:<i>N51° 12.123 E010° 23.123</i> ou <i>40.597 -75.542</i> ou <i>Paris Tour Eiffel</i>',
'refresh' : 'Continuer pour cette zone !',
'cacheCounts' : 'Estimation du<i>nombre total</i> de cache dans cette zone:',
'duration' : 'Durée estimée de création de cet autoTour:',
'filter' : {
'type' : 'Type',
'size' : 'Taille',
'difficulty' : 'Difficulté',
'terrain' : 'Terrain',
'special' : {
'caption': 'Spécial',
'pm' : {
'not' : 'Is not a PM cache',
'ignore' : 'Is PM or not PM cache',
'only' : 'Is PM cache'
},
'notfound' : 'I haven\'t found ',
'isActive': 'is Akctive',
'minFavorites': 'min. Favorites'
}
}
},
'dlg':{
'sendMessage':{
'caption': 'Contacter l\'auteur',
'content': 'Vous avez trouvé un bug ? Vous avez une suggestion à propos de GCTour? Votre opinion m\'intéresse.<br/>Envoyez-moi un<b>message</b>:',
'submit': 'Envoyer le message'
// old: 'sendMessageTitle', 'sendMessage', 'sendMessageSubmit'
},
'newVersion':{
'caption': 'Nouvelle version disponible',
'content': 'Une nouvelle version de GCTour est disponible.\n Voulez-vous mettre à jour? \n\n'
// old: 'newVersionDialog', 'newVersionTitle'
},
'error':{
'content': '<img src="http://forums.groundspeak.com/GC/public/style_emoticons/default/sad.gif">&nbsp;&nbsp;Désolé une erreur est survenue.<br/>' +
'Réessayez SVP, ou vérifier les <a href="#" id="gctour_update_error_dialog">mises à jour</a> du script !<br/><br/>' +
'Si cette erreur se reproduit, merci d\'envoyer le rapport d\'erreur.<br/>' +
'<u>Notes</u><br/>' +
'<textarea id="gctour_error_note" rows="4" style="width:99%"></textarea>',
'send': 'envoi du rapport'
// old: 'ERROR_DIALOG', 'ERROR_DIALOG_SEND'
}
},
'notifications':{
'addgeocache':{
'success':{
'caption':'{0} a été ajouté',
'content':'<b>{0}</b> contient désormais aussi <b>{1}</b>.'
},
'contains':{
'caption':'{0} n\'a pas été ajouté',
'content':'<b>{0}</b> contient <b>{1}</b>.'
}
}
},
'units':{
'km': 'Kilomètre',
'mi': 'Miles'
// old: 'kilometer', 'mile'
}
};
$.gctour.i18n.nl = {
'name' : 'Nederlands',
'language' : 'Taal',
'addToTour' : 'Aan toer toevoegen',
'addToCurrentTour' : "aan <b>huidige</b> toer",
'addToNewTour' : 'aan <b>nieuwe</b> toer',
'directPrint' : 'Deze geocache afdrukken',
'moveGeocache' : 'Verplaats de coördinaten',
'movedGeocache' : 'De coördinaten voor deze geocache zijn verplaatst.',
'moveGeocacheHelp' : 'Je kan de originele coördinaten van deze geocache verplaatsen. Deze worden dan gebruikt in de afdrukweergave en in het GPX bestand. Dit kan handig zijn bij een opgeloste mystery.',
'originalCoordinates' : 'Originele coördinaten',
'newCoordinates':"Nieuwe coördinaten",
'showCaches' : 'Getoonde geocaches toevoegen:',
'markedCaches' : 'Add <b>marked</b> geocaches:', // ToDo
'removeTourDialog' : "Weet je zeker dat je deze toer wil verwijderen?",
'logYourVisit' : "Log je bezoek",
'removeFromList' : "Van lijst verwijderen",
'emptyList' : 'De lijst is leeg.',
'notLogedIn' : 'U dient ingelogd te zijn, gelieve in te loggen ...',
'months' : ["januari", "februari", "maart", "april", "mei", "juni", "juli", "augustus", "september", "oktober", "november", "december"],
'printviewTitle' : 'GCTour - http://gctour.madd.in',
'pleaseWait' : 'Even geduld - gegevens worden geladen ...',
'newList' : 'Nieuwe toer',
'sendToGps' : 'Naar GPS versturen',
'makeMap' : 'Bekijk op de kaart',
'makeMapWait' : 'Beschikbaarheid kaart wordt getest',
'printview' : 'Afdrukweergave',
'print':'Begin met afdrukken',
'downloadGpx' : 'GPX downloaden',
'send2cgeo' : 'Naar c:geo versturen',
'showSettings' : 'Instellingen tonen',
'settings_caption' : 'Instellingen',
'settingsPrintMinimal' : 'Minimale afdrukweergave',
'settingsLogCount' : 'Aantal logs in afdrukweergave',
'settingsLogCountNone' : 'geen<br/>',
'settingsLogCountAll' : 'alle<br/>',
'settingsLogCountShow' : 'tonen',
'settingsEditDescription' : 'Beschrijving wijzigbaar',
'settingsRemoveImages' : 'Verwijder afbeeldingen met een klik',
'settingsShowSpoiler' : 'Spoiler tonen',
'settingsAdditionalWaypoints' : 'Additional waypoints tonen',
'settingsLoggedVisits' : 'Log teller tonen',
'settingsAttributes' : 'Attributen tonen',
'settingsDecryptHints' : 'Decodeer hints',
'settingsSendToGPS' : 'Naar GPS versturen',
'settingsShowGPX' : 'GPX bestand tonen',
'settingsDownladGPX' : 'GPX downloaden<br/>',
'settingsGPX' : 'GPX instellingen',
'settingsGPXHtml' : 'Beschrijving met HTML',
'settingsUploadTour' : 'Toer uploaden',
'settingsGPXStripGC' : '"GC" in GC-Code verwijderen',
'settingsGPXWpts' : 'Exporteer additional waypoints',
'settingsGPXAttributestoLog' : 'Maken te loggen met cache attributen',
'settings_map' : 'Kaart',
'settings_map_geocacheid' : 'Toon geocache id',
'settings_map_geocacheindex' : 'Toon geocache index',
'settings_map_geocachename' : 'Toon geocache naam',
'settings_map_awpts' : 'Toon additional waypoints',
'settings_map_awpt_name' : 'Toon naam additional waypoints',
'settings_map_awpt_lookup' : 'Toon lookup code additional waypoints',
'settings_map_owpts' : 'Toon eigen waypoints',
'settings_map_owpt_name' : 'Toon naam eigen waypoints',
'settings_map_gcde' : 'Toon kaart van geocaching.de',
'loadTour' : 'Laad toer:<br/>',
'openTour' : 'Een toer laden',
'load' : 'Laden',
'removeTour' : 'Deze toer wissen',
'deleteCoordinates' : 'Verwijderen coördinaten',
'copyTour' : 'Toer kopiëren',
'copy' : 'Kopiëren',
'newTourDialog' : 'Gelieve de naam van de nieuwe toer in te vullen ...',
'rename' : 'Hernoem',
'upload' : 'Toer uploaden',
'onlineTour' : 'Toer downloaden',
'webcodeDownloadHelp':'Gelieve de ontvangen webcode in te vullen en klik op "Toer downloaden".',
'webcodeDownloadButton':'Download toer',
'findMe' : 'Vind me!',
'webcodeerror' : 'De gekozen webcode bestaat niet!',
'tourUploaded1' : 'Uploaden toer was succesvol!\nwebcode:\n ',
'tourUploaded2' : '\nJe kan de toer bekijken op http://gctour.madd.in.\nBelangrijk gelieve de webcode te noteren om deze later op te kunnen opvragen!!',
'settingsFontSize' : 'Fontgrootte:',
'settingsPageBreak' : 'Pagina einde achter cache:',
'settingsPageBreakAfterMap' : 'Pagina einde achter kaart:',
'webcodePrompt' : 'Toer downloaden.\nGelieve een geldige webcode in te vullen om een toer te laden:',
'webcodesuccess' : ' is succesvol geladen!',
'webcodeOld' : '\n !!AANDACHT!!\nDeze webcode bevat een oude toer. Om alle voordelen van GCTour 2.0 te benutten moet deze toer opnieuw worden geüpload worden.',
'printviewCache' : 'geocache',
'printviewFound' : 'gevonden',
'printviewNote' : 'note',
'printviewMarker' : "eigen waypoint",
'printviewAdditionalWaypoint' : "additional waypoints",
'printviewRemoveMap' : "kaart verwijderen",
'printviewZoomMap' : "Open deze kaart in een nieuwe tab.",
'settingsFrontPage' : 'Frontpagina:',
'settingsOutlineMap' : 'Kaart maken voor alle geocaches:',
'settingsOutlineMapSinge' : 'Kaart maken voor elke cache afzonderlijk:',
'settingsDecryptHintsDesc' : 'Hints worden gedecodeerd bij het afdrukken.',
'settingsPrintMinimalDesc' : 'Dit bevat enkel de hint en spoiler van een geocache.',
'settingsEditDescriptionDesc' : 'De beschrijving van de geocache kan aangepast worden.',
'settingsShowSpoilerDesc' : 'Spoilers worden afgedrukt.',
'settingsAdditionalWaypointsDesc' : 'De afdrukweergave zal een tabel met de "additional waypoints" van een geocache bevatten.',
'settingsLoggedVisitsDesc' : 'Dit toont een "Find Counts" overzicht.',
'settingsPageBreakDesc' : 'Bij het afdrukken komt achter elke geocache een nieuwe pagina.',
'settingsPageBreakAfterMapDesc' : 'Er komt een nieuwe pagina tussen het overzicht en de geocaches.',
'settingsFrontPageDesc' : 'Een overzicht wordt gemaakt met de volledige lijst van de geocaches met een index en plaats voor notities. ',
'settingsOutlineMapDesc' : 'Het overzicht zal een kaart met alle geocaches bevatten.',
'settingsOutlineMapSingeDesc' : 'Na iedere geocache komt een kaart met de geocache en de additional waypoints.',
'settingsGPXHtmlDesc' : 'Sommige programma\'s en GPS toestellen hebben problemen met geocache beschrijvingen in HTML. Indien dit het geval is, kan je best deze optie afzetten.',
'settingsGPXWptsDesc' : 'Additional waypoints worden geëxporteerd als extra waypoint naar GPX. Alle paarkeerplaatsen zullen zichtbaar zijn op je toestel.',
'settingsGPXStripGCDesc' : 'Oudere GPS toestellen kunnen problemen hebben met waypoints waarvan de naam langer is dan 8 tekens. Gebruik deze optie indien dit het geval is.',
'settingsGPXAttributestoLogDesc' : 'Cache attributen worden ook geregistreerd als een eerste teken.',
'settings_map_geocacheidDesc' : 'De GCCode (eg. GC2NTTG) wordt getoond op de kaart.',
'settings_map_geocacheindexDesc' : 'De volgorde binnen de toer wordt getoond op de kaart.',
'settings_map_geocachenameDesc' : 'De naam van de geocache wordt getoond op de kaart.',
'settings_map_awptsDesc' : 'Additional waypoints worden getoond op de kaart.',
'settings_map_awpt_nameDesc' : 'De naam van het additional waypoint wordt getoond op de kaart.',
'settings_map_awpt_lookupDesc' : 'De lookup code van het additional waypoints wordt getoond op de kaart.',
'settings_map_owptsDesc' : 'Eigen waypoints worden getoond op de kaart.',
'settings_map_owpt_nameDesc' : 'De naam van het eigen waypoint wordt getoond op de kaart.',
'settings_map_gcdeDesc' : 'Met deze optie kan je ook de geocaching.de kaart in de toer zetten.',
'settingsMapType' : 'Standaard kaarttype',
'settingsMapSize' : 'Standaard kaartgrootte',
'addOwnWaypoint' : 'Eigen waypoint toevoegen',
"markerCoordinate" : "Coördinaten",
"markerContent" : "Inhoud",
"markerType" : "Type",
"markerContentHint" : "zal getoond worden in afdrukweergave",
"markerCaption" : "Onderschrift",
"save" : "Bewaren",
"cancel" : "Annuleren",
"close" : "Sluiten",
'install' : 'Installeren',
"edit" : "Bewerken",
"example" : "bv. ",
"exampleCoords" : "<i>N50°53.692 E004° 20.478</i> or <i>50.894867 4.341300</i>",
"dontPrintHint" : "<b>Ter info :</b><br/>Gegevens in dit kader worden <u>niet</u> afgedrukt!",
"SCRIPT_ERROR" : "Blijkbaar blokkeer je javascript functionaliteiten (bv. NoScript). Gelieve 'geocaching.com' niet te filteren om gebruik te kunnen maken van GCTour!" ,
'mapTypes' :
[{"caption":"Google Map","value":"roadmap"},
{"caption":"Google Satellite","value":"satellite"},
{"caption":"Google Hybrid","value":"hybrid"},
{"caption":"Google Terrain","value":"terrain"},
{"caption":"Topo Germany","value":"oda"},
{"caption":"OSM Mapnik","value":"mapnik"},
{"caption":"OSM Osma","value":"osma"},
{"caption":"OSM Cycle","value":"osmaC"},
{"caption":"OSM Public Transport","value":"osmaP"}],
'updateDialog' : "<div><img src='http://gctour-spot.appspot.com/i/signal_antenna.gif' style='float:right'><p>Er is een nieuwe versie van&nbsp;&nbsp;&nbsp;<a target='_blank' href='http://gctour.madd.in'><b>GCTour</b></a>&nbsp;&nbsp;&nbsp;beschikbaar voor installatie.</p><p>Versie <b>###VERSION_OLD###</b> is momenteel geïnstalleerd. De recentste versie is <b>###VERSION_NEW###</b></p><p><b>Versie geschiedenis:</b></p><div class='dialogHistory'>###VERSION_HISTORY###</div><div class='dialogFooter'></div>",
'updateCurrently' : 'GCTour versie '+VERSION+'.'+BUILD+' is op dit moment!',
// redesign begin 05.2012
'settings':{
'gpx':{
'maxLogCount': 'max aantal logs'
}
},
'autoTour' : {
'title': 'autoTour',
'wait' : 'Even geduld – autoTour wordt aangemaakt!',
'radius' : 'Radius',
'center' : 'Middelpunt',
'help' : 'coördinaten of adres:<i>N50° 53.692 E004° 20.478</i> of <i>50.894867 4.341300</i> of <i>Atomium</i>',
'refresh' : 'Bereken een autoTour aan met deze waarden!',
'cacheCounts' : 'Geschat <i>aantal</i> geocaches in deze regio:',
'duration' : 'Geschatte tijd om deze autoTour aan te maken:',
'filter' : {
'type' : 'Type',
'size' : 'Grootte',
'difficulty' : 'Moeilijkheid',
'terrain' : 'Terrein',
'special' : {
'caption': 'Speciaal',
'pm' : {
'not' : 'Is not a PM cache',
'ignore' : 'Is PM or not PM cache',
'only' : 'Is PM cache'
},
'notfound' : 'I haven\'t found ',
'isActive': 'is Akctive',
'minFavorites': 'min. Favorites'
}
}
},
'dlg':{
'sendMessage':{
'caption': 'Bericht naar auteur versturen.',
'content': 'Heb je een bug gevonden? Suggesties betreffende GCTour? Ik had graag je mening gehoord.<br/>Stuur me gerust een <b>bericht</b>:',
'submit': 'Bericht versturen!'
// old: 'sendMessageTitle', 'sendMessage', 'sendMessageSubmit'
},
'newVersion':{
'caption': 'Nieuwe versie beschikbaar',
'content': 'Er is een nieuwe versie van GCTour beschikbaar.\nWil je upgraden? \n\n'
// old: 'newVersionDialog', 'newVersionTitle'
},
'error':{
'content': '<img src="http://forums.groundspeak.com/GC/public/style_emoticons/default/sad.gif">&nbsp;&nbsp;ESpijtig genoeg is er een fout gebeurd.<br/>' +
'Probeer het opnieuw proberen, of kijk voor <a href="#" id="gctour_update_error_dialog">update</a>!<br/><br/>' +
'Als de fout blijft voorkomen, gelieve dan een foutenrapport te versturen.<br/>' +
'<u>Noot</u><br/>' +
'<textarea id="gctour_error_note" rows="4" style="width:99%"></textarea>',
'send': 'foutenrapport versturen'
// old: 'ERROR_DIALOG', 'ERROR_DIALOG_SEND'
}
},
'notifications':{
'addgeocache':{
'success':{
'caption':'{0} werd toegevoegd',
'content':'<b>{0}</b> bevat nu <b>{1}</b>.'
},
'contains':{
'caption':'{0} werd <i>niet</i> toegevoegd',
'content':'<b>{0}</b> bevat <b>{1}</b> reeds.'
}
}
},
'units':{
'km': 'Kilometer',
'mi': 'Miles'
// old: 'kilometer', 'mile'
}
};
$.gctour.i18n.pt = {
'name' : 'Português',
'language' : 'Idioma',
'addToTour' : 'Adicionar &#224; rota',
'addToCurrentTour' : "para a rota <b>seleccionada</b>",
'addToNewTour' : 'para uma <b>nova</b> rota',
'directPrint' : 'Imprimir esta Geocache',
'moveGeocache' : 'Mover as coordenadas',
'movedGeocache' : 'As coordenadas desta geocache foram mudadas.',
'moveGeocacheHelp' : 'Tens a oportunidade de mudar as coordenadas originais desta geocache. Ser&#227;o usadas no modo de impress&#227;o e tamb&#233;m no ficheiro GPX. &#201; util se resolver o enigma.',
'originalCoordinates' : 'Coordenadas Originais',
'newCoordinates':"Novas Coordenadas",
'showCaches' : 'Adicionar Geocaches vis&#237;veis:',
'markedCaches' : 'Add <b>marked</b> geocaches:', // ToDo
'removeTourDialog' : "Deseja mesmo remover esta rota?",
'logYourVisit' : "Registe a sua visita",
'removeFromList' : "Remover da lista",
'emptyList' : 'A lista est&#225; vazia.',
'notLogedIn' : 'Você precisa estar logado, faça o login ...',
'months' : ["jan", "feb", "mar", "apr", "may", "jun", "jul", "aug", "sep", "oct", "nov", "dec"],
'printviewTitle' : 'GCTour - http://gctour.madd.in',
'pleaseWait' : 'Por favor aguarde - a carregar conte&#250;do ...',
'newList' : 'Nova Rota',
'sendToGps' : 'Enviar para o GPS',
'makeMap' : 'Visualizar no mapa',
'makeMapWait' : 'A testar disponibilidade deste mapa',
'printview' : 'Modo de impress&#227;o',
'print':'iniciar a impressão',
'downloadGpx' : 'Transferir GPX',
'send2cgeo' : 'Enviar para o c:geo',
'showSettings' : 'Mostrar Configura&#231;&#245;es',
'settings_caption' : 'Configura&#231;&#245;es',
'settingsPrintMinimal' : 'Modo de Impress&#227;o m&#237;nimo',
'settingsLogCount' : 'N&#250;mero de logs no modo de impress&#227;o',
'settingsLogCountNone' : 'nenhum<br />',
'settingsLogCountAll' : 'tudo<br />',
'settingsLogCountShow' : 'mostrar',
'settingsEditDescription' : 'Descri&#231;&#227;o edit&#225;vel',
'settingsRemoveImages' : 'remover imagem no clique',
'settingsShowSpoiler' : 'Mostrar spoiler',
'settingsAdditionalWaypoints' : 'Mostrar Waypoints Adicionais',
'settingsLoggedVisits' : 'Mostrar contador de log',
'settingsAttributes' : 'mostrar Atributos',
'settingsDecryptHints' : 'Decifrar dicas',
'settingsSendToGPS' : 'enviar para o GPS',
'settingsShowGPX' : 'mostrar o ficheiro GPX',
'settingsDownladGPX' : 'transferir GPX<br />',
'settingsGPX' : 'Configura&#231;&#245;es do GPX',
'settingsGPXHtml' : 'Descri&#231;&#227;o com HTML',
'settingsUploadTour' : 'Enviar Rota',
'settingsGPXStripGC' : 'Remover "GC" no GC-Code',
'settingsGPXWpts' : 'Exportar waypoints adicionais',
'settingsGPXAttributestoLog' : 'Criar login com atributos de cache',
'settings_map' : 'Mapa',
'settings_map_geocacheid' : 'Mostrar id da Geocache',
'settings_map_geocacheindex' : 'Mostrar ind&#237;ce da Geocache',
'settings_map_geocachename' : 'Mostrar nome da Geocache',
'settings_map_awpts' : 'Mostrar Waypoints Adicionais',
'settings_map_awpt_name' : 'Mostrar o nome dos Waypoints Adicionais',
'settings_map_awpt_lookup' : 'Mostrar c&#243;digo dos Waypoints Adicionais',
'settings_map_owpts' : 'Mostrar os nossos waypoints',
'settings_map_owpt_name' : 'Mostrar o nome dos nossos waypoints',
'settings_map_gcde' : 'Mostrar o mapa de geocaching.de',
'loadTour' : 'Carregar Rota:<br />',
'openTour' : 'Carregar uma Rota',
'load' : 'Carregar',
'removeTour' : 'Apagar esta Rota',
'deleteCoordinates' : 'Coordenadas para deletar',
'copyTour' : 'Copiar Rota',
'copy' : 'Copiar',
'newTourDialog' : 'Introduza um nome para a nova rota ...',
'rename' : 'Renomear',
'upload' : 'Enviar rota',
'onlineTour' : 'Transferir Rota',
'webcodeDownloadHelp':'Por favor introduza aqui o c&#65533;digo que recebeu e clique em "Transferir Rota".',
'webcodeDownloadButton':'Transferir Rota',
'findMe' : 'Encontra-me!',
'webcodeerror' : 'O C&#243;digo escolhido n&#227;o existe!',
'tourUploaded1' : 'Rota enviada com sucesso!\nC&#243;digo:\n ',
'tourUploaded2' : '\nPode ver a rota em http://gctour.madd.in.\nImportante: Por favor anote o c&#243;digo para retirar a rota!!',
'settingsFontSize' : 'Tamanho da letra:',
'settingsPageBreak' : 'Espa&#231;o na pagina depois da cache:',
'settingsPageBreakAfterMap' : 'Espa&#231;o na p&#225;gina depois do mapa:',
'webcodePrompt' : 'Transferir rota\nIntroduza um c&#243;digo v&#225;lido, para carregar a rota:',
'webcodesuccess' : ' foi carregada!',
'webcodeOld' : '\n !!ATEN&#199;&#195;O!!\nEste c&#243;digo est&#225; conectado com uma rota antiga. Para obter todos os benef&#237;cios do GCTour 2.0, tem de enviar a rota novamente.',
'printviewCache' : 'geocache',
'printviewFound' : 'encontrada',
'printviewNote' : 'nota',
'printviewMarker' : "waypoint pr&#243;prio",
'printviewAdditionalWaypoint' : "waypoints adicionais",
'printviewRemoveMap' : "remover mapa",
'printviewZoomMap' : "Abrir este mapa num novo separador.",
'settingsFrontPage' : 'Primeira p&#225;gina:',
'settingsOutlineMap' : 'Mapa com todas as caches:',
'settingsOutlineMapSinge' : 'Mapa para todas as caches:',
'settingsDecryptHintsDesc' : 'As dicas v&#227;o estar decifradas no modo de impress&#227;o.',
'settingsPrintMinimalDesc' : 'Cont&#233;m apenas a dica e o spoiler da geocache.',
'settingsEditDescriptionDesc' : 'A descri&#231;&#227;o pode ser editada da forma como quiser.',
'settingsShowSpoilerDesc' : 'Imagens de spoiler v&#227;o estar no modo de impress&#227;o.',
'settingsAdditionalWaypointsDesc' : 'O modo de impress&#227;o vai conter uma tabela com todos os "Waypoints Adicionais" de uma geocache.',
'settingsLoggedVisitsDesc' : 'Vai mostrar um resumo do "Contador de Visitas".',
'settingsPageBreakDesc' : 'Depois de cada geocache vai existir uma espa&#231;amento. Vis&#237;vel depois da impress&#227;o.',
'settingsPageBreakAfterMapDesc' : 'Vai existir um espa&#231;amento depois do resumo para separar as geocaches.',
'settingsFrontPageDesc' : 'Um resumo vai ser gerado incluindo uma lista completa de todas as geocaches com um &#237;ndice e um espa&#231;o para colocar notas. ',
'settingsOutlineMapDesc' : 'O resumo vai conter um mapa com todas as geocaches.',
'settingsOutlineMapSingeDesc' : 'Depois de cada geocache est&#225; um mapa contendo a geocache e os seus "Waypoints Adicionais".',
'settingsGPXHtmlDesc' : 'Alguns programas/GPSr tem problemas em mostrar as geocaches se a descri&#231;&#227;o estiver no formato HTML. Se a descri&#231;&#227;o estiver confusa, desactive este op&#231;&#227;o.',
'settingsGPXWptsDesc' : 'Os waypoints-adicionais v&#227;o ser exportados como waypoint extra no GPX. Ir&#225; ver cada lugar de estacionamento na sua unidade.',
'settingsGPXStripGCDesc' : 'GPSr antigos tem problemas com os waypoints com nome maior que 8 caracteres. Use esta op&#231;&#227;o se tem uma unidade destas.',
'settingsGPXAttributestoLogDesc' : 'Atributos de cache também são registrados como um primeiro sinal.',
'settings_map_geocacheidDesc' : 'O c&#243;digo GCCode (eg. GC0815) estar&#225; visivel no mapa.',
'settings_map_geocacheindexDesc' : 'A posi&#231;&#227;o de cada waypoint estar&#225; vis&#237;vel na rota seleccionada.',
'settings_map_geocachenameDesc' : 'O nome da geocache estar&#225; visivel.',
'settings_map_awptsDesc' : 'Se seleccionada, os Waypoints-Adicionais v&#227;o estar vis&#237;veis.',
'settings_map_awpt_nameDesc' : 'O nome dos Waypoints-Adicionais v&#227;o estar no mapa.',
'settings_map_awpt_lookupDesc' : 'Os c&#243;digos dos Waypoints-Adicionais v&#227;o estar vis&#237;veis.',
'settings_map_owptsDesc' : 'Se tem Waypoints seus na rota seleccionada e se esta op&#231;&#227;o estiver marcada, v&#227;o estar vis&#237;veis no mapa.',
'settings_map_owpt_nameDesc' : 'Mostrar o nome dos seus Waypoints',
'settings_map_gcdeDesc' : 'Se esta op&#231;&#227;o estiver marcada, ir&#225; ver no mapa do geocaching.de.',
'settingsMapType' : 'Tipo de Mapa padr&#227;o',
'settingsMapSize' : 'Tamanho de Mapa padr&#227;o',
'addOwnWaypoint' : 'Adicionar o seu Waypoint',
"markerCoordinate" : "Coordenadas",
"markerContent" : "Conte&#250;do",
"markerType" : "Tipo",
"markerContentHint" : "estar&#225; visivel no modo de impress&#227;o",
"markerCaption" : "captura",
"save" : "Guardar",
"cancel" : "Cancelar",
"close" : "Fechar",
'install' : 'Instalar',
"edit" : "editar",
"example" : "ex. ",
"exampleCoords" : "<i>N51&#186; 12.123 E010&#186; 23.123</i> ou <i>40.597 -75.542</i>",
"dontPrintHint" : "<b>Informa&#231;&#227;o :</b><br />Elementos na caixa <u>n&#227;o</u> v&#227;o ser impressos!",
"SCRIPT_ERROR" : "Aparenta que est&#225; a bloquear algumas fontes de javascript (ex. NoScript). Por favor permita 'geocaching.com' permanentemente para usar GCTour!" ,
'mapTypes' :
[{"caption":"Google Map","value":"roadmap"},
{"caption":"Google Satellite","value":"satellite"},
{"caption":"Google Hybrid","value":"hybrid"},
{"caption":"Google Terrain","value":"terrain"},
{"caption":"Topo Germany","value":"oda"},
{"caption":"OSM Mapnik","value":"mapnik"},
{"caption":"OSM Osma","value":"osma"},
{"caption":"OSM Cycle","value":"osmaC"},
{"caption":"OSM Public Transport","value":"osmaP"}],
'updateDialog' : "<div><img src='http://gctour-spot.appspot.com/i/signal_antenna.gif' style='float:right'><p>Existe uma nova vers&#227;o de &nbsp;&nbsp;&nbsp;<a target='_blank' href='http://gctour.madd.in'><b>GCTour</b></a>&nbsp;&nbsp;&nbsp;dispon&#237;vel para instalar.</p><p>Tem a vers&#227;o <b>###VERSION_OLD###</b> instalada. A &#250;ltima versão &#233; <b>###VERSION_NEW###</b></p><p><b>Hist&#243;rico</b></p><div class='dialogHistory'>###VERSION_HISTORY###</div><div class='dialogFooter'></div>",
'updateCurrently' : 'GCTour versão '+VERSION+'.'+BUILD+' está atualmente!',
// redesign begin 05.2012
'settings':{
'gpx':{
'maxLogCount': 'maksymalna liczba dzienników'
}
},
'autoTour' : {
'title': 'autoRota',
'wait' : 'Por favor aguarde - criando a autoRota!',
'radius' : 'Raio',
'center' : 'Centro',
'help' : 'Coordenadas ou Endere&#231;o:<i>N51&#186; 12.123 E010&#186; 23.123</i> ou <i>40.597 -75.542</i> ou <i>Paris Eiffel Tower</i>',
'refresh' : 'Oblicz autoRota com estes valores!',
'cacheCounts' : '<i>N&#250;mero</i> estimado de caches na regi&#227;o:',
'duration' : 'Previs&#227;o do tempo de cria&#231;&#227;o desta autoRota:',
'filter' : {
'type' : 'Typ',
'size' : 'Rozmiar',
'difficulty' : 'Trudność',
'terrain' : 'Teren',
'special' : {
'caption': 'Specjalne',
'pm' : {
'not' : 'Is not a PM cache',
'ignore' : 'Is PM or not PM cache',
'only' : 'Is PM cache'
},
'notfound' : 'I haven\'t found ',
'isActive': 'is Active',
'minFavorites': 'min. Favorites'
}
}
},
'dlg':{
'sendMessage':{
'caption': 'Enviar uma mensagem para o autor.',
'content': 'Encontrou um erro? Deseja sugerir algo para o GCTour? Desejamos ouvir a sua opini&#227;o.<br />Envie uma <b>mensagem</b>:',
'submit': 'Submeter a mensagem!'
// old: 'sendMessageTitle', 'sendMessage', 'sendMessageSubmit'
},
'newVersion':{
'caption': 'Nova versão dispon&#xED;vel',
'content': 'Existe uma nova vers&#227;o de GCTour.\nDeseja actualizar? \n\n'
// old: 'newVersionDialog', 'newVersionTitle'
},
'error':{
'content': '<img src="http://forums.groundspeak.com/GC/public/style_emoticons/default/sad.gif">&nbsp;&nbsp;Lamento mas ocorreu um erro.<br/>' +
'Por favor tente outra vez, ou procure por uma <a href="#" id="gctour_update_error_dialog">atualização</a>!<br/><br/>' +
'Se este erro voltar a aparecer, por favor envie um relat&#243;rio.<br/>' +
'<u>Nota</u><br/>' +
'<textarea id="gctour_error_note" rows="4" style="width:99%"></textarea>',
'send': 'enviar relatório'
// old: 'ERROR_DIALOG', 'ERROR_DIALOG_SEND'
}
},
'notifications':{
'addgeocache':{
'success':{
'caption':'{0} foi adicionada!',
'content':'<b>{0}</b> agora inclui <b>{1}</b>.'
},
'contains':{
'caption':'{0} não foi adicionada',
'content':'<b>{0}</b> contém <b>{1}</b> já.'
}
}
},
'units':{
'km': 'Quilometros',
'mi': 'Milhas'
// old: 'kilometer', 'mile'
}
};
(function () {
/*
$.each( $.gctour.i18n, function( l, o ) {
alert( ((o.name) || "unbekannt") );
//$.each( o, function( key, trans ) {
// alert( key + " : " + trans );
//});
});
*/
/*
return translate from [language][str]
is language or str undefined = return ""
*/
$.gctour.lang = function(str){
var i18n = $.gctour.i18n,
cur = $.gctour.currentLang,
def = $.gctour.defaultLang,
i, arr, lang, trans, cur_trans, def_trans;
// �bersetzungssuchstring ggf. splitten f�r Objekte
arr = str.split(".");
cur_trans = i18n[cur] || false;
def_trans = i18n[def] || false;
// Versuch die �bersetzung zu holen
// 'boolean' : false => wird richtig ausgegeben
for (i = 0; i < arr.length; i++) {
cur_trans = (cur_trans && (cur_trans[arr[i]] !== undefined)) ? cur_trans[arr[i]] : undefined;
def_trans = (def_trans && (def_trans[arr[i]] !== undefined)) ? def_trans[arr[i]] : undefined;
}
// Check ob �bersetzung erfolgreich geholt werden konnte
trans = (cur_trans !== undefined) ? cur_trans :
(def_trans !== undefined) ? def_trans :
((DEBUG_MODE === true) ? "NO LANGUAGE" : "");
// debug info current language
if (!i18n[cur]) {
debug("ERROR: language '" + cur + "' is undefined");
} else if (cur_trans === undefined) {
debug("ERROR: active language (" + cur + "), search '" + str + "' is undefined");
}
// debug info current language
if (!i18n[def]) {
debug("ERROR: language '" + def + "' is undefined");
} else if (def_trans === undefined) {
debug("ERROR: default language (" + def + "), search '" + str + "' is undefined");
}
return trans;
};
})();
/*
* CSS Container, run before init
*/
function initStyle(){
// +jquery ui css + images
var jqUI_CSS = GM_getResourceText ("jqUI_CSS"),
reg,
resources = {
'animated-overlay.gif': GM_getResourceURL('jqui_img01'),
'ui-bg_diagonals-thick_18_b81900_40x40.png': GM_getResourceURL('jqui_img02'),
'ui-bg_diagonals-thick_20_666666_40x40.png': GM_getResourceURL('jqui_img03'),
'ui-bg_flat_10_000000_40x100.png': GM_getResourceURL('jqui_img04'),
'ui-bg_glass_65_ffffff_1x400.png': GM_getResourceURL('jqui_img05'),
'ui-bg_glass_100_f6f6f6_1x400.png': GM_getResourceURL('jqui_img06'),
'ui-bg_glass_100_fdf5ce_1x400.png': GM_getResourceURL('jqui_img07'),
'ui-bg_gloss-wave_35_f6a828_500x100.png': GM_getResourceURL('jqui_img08'),
'ui-bg_highlight-soft_75_ffe45c_1x100.png': GM_getResourceURL('jqui_img09'),
'ui-bg_highlight-soft_100_eeeeee_1x100.png': GM_getResourceURL('jqui_img10'),
'ui-icons_228ef1_256x240.png': GM_getResourceURL('jqui_img11'),
'ui-icons_222222_256x240.png': GM_getResourceURL('jqui_img12'),
'ui-icons_ef8c08_256x240.png': GM_getResourceURL('jqui_img13'),
'ui-icons_ffd27a_256x240.png': GM_getResourceURL('jqui_img14'),
'ui-icons_ffffff_256x240.png': GM_getResourceURL('jqui_img15')
};
//jqUI_CSS = jqUI_CSS.replace (/images\//g, "");
$.each(resources, function(resName, resUrl) {
//console.log(resourceName + ': ' + resourceUrl);
reg = new RegExp('images/' + resName, "g"); // replaceAll
jqUI_CSS = jqUI_CSS.replace( reg, resUrl);
});
// adding styles:
GM_addStyle((""+
jqUI_CSS+""+
"/*"+
"* GCTour - Container"+
"*/"+
""+
"#gctourButtonWrapper {"+
" height: 32px !important;"+
" padding: 0 !important;"+
" position: fixed !important;"+
" top: 30px !important;"+
" width: 35px !important;"+
" background-color: #fff;"+
" z-index: 1001 !important;"+
" border: 1px solid #333;"+
" border-width: 1px 1px 1px 0;"+
" border-radius: 0 5px 5px 0;"+
" -moz-user-select: none;"+
"}"+
""+
"#gctourButtonWrapper img {"+
" position: relative;"+
" top: 8px;"+
" left: 8px;"+
"}"+
""+
"#gctourContainer {"+
" background-color: #fff;"+
" overflow: hidden;"+
" left: -210px;"+
" padding: 0 !important;"+
" position: fixed !important;"+
" top: 30px !important;"+
" width: 200px;"+
" z-index: 1002 !important;"+
" border: 1px solid #333;"+
" border-left: 0px;"+
" border-radius: 0 5px 5px 0;"+
" font-size: 12px;"+
" font-family: Arial;"+
" line-height: 1.5;"+
"}"+
""+
"#gctourContainer .cachelist {"+
" width: 100%;"+
" margin: 0;"+
" padding:0;"+
" font-size:80%;"+
" list-style-type:none;"+
"}"+
""+
"#gctourContainer .cachelist li {"+
" color:#000;"+
" margin:0.5em;"+
" padding:3px;"+
" width:120px;"+
" min-height:44px;"+
" list-style-position:inside;"+
" border:1pt dashed gray;"+
" background-color:#FFF;"+
" -moz-background-clip:border;"+
" -moz-background-inline-policy:continuous;"+
" -moz-background-origin:padding;"+
" -moz-border-radius:8px 0 8px 0;"+
" border-radius:8px 0 8px 0;"+
"}"+
""+
"#gctourContainer img.imgShadow {"+
" -moz-box-shadow: 0 0 4px 2px rgba(0, 0, 0, 0.2);"+
" box-shadow: 0 0 4px 2px rgba(0, 0, 0, 0.2);"+
" background-color: lightgray;"+
"}"+
""+
"#gctourContainer img.tourImage {"+
" cursor: pointer;"+
" margin: 0 2px 0 2px;"+
"}"+
""+
"/* Styling the placeholder for when the user starts dragging an item */"+
"#gctourContainer li.ui-sortable-placeholder {"+
" min-height:50px;"+
" max-height:80px;"+
" width: 90%;"+
" background-color: rgba(0, 0, 0, 0.03);"+
"}"+
"/*"+
"* GCTour - Grand"+
"*/"+
""+
".gctour-grand-default {"+
" /* http://www.colorzilla.com/gradient-editor/#a7cfef+0,c9dded+3,ffffff+10;gctour-grand-default"+
" * http://css3please.com/"+
" */"+
" background: rgb(167,207,239); /* Old browsers */"+
" background: -moz-linear-gradient(top, rgba(167,207,239,1) 0%, rgba(201,221,237,1) 3px, rgba(255,255,255,1) 10px); /* FF3.6+ */"+
" background: -webkit-linear-gradient(top, rgba(167,207,239,1) 0%,rgba(201,221,237,1) 3px,rgba(255,255,255,1) 10px); /* Chrome10+,Safari5.1+ */"+
" background: -o-linear-gradient(top, rgba(167,207,239,1) 0%,rgba(201,221,237,1) 3px,rgba(255,255,255,1) 10px); /* Opera 11.10+ */"+
" background: linear-gradient(top, rgba(167,207,239,1) 0%,rgba(201,221,237,1) 3px,rgba(255,255,255,1) 10px); /* W3C */"+
"}"+
""+
".gctour-grand-hover {"+
" /* http://www.colorzilla.com/gradient-editor/#ffad32+0,ffd699+3,ffffff+10;gctour-grand-hover */"+
" background: rgb(255,173,50); /* Old browsers */"+
" background: -moz-linear-gradient(top, rgba(255,173,50,1) 0%, rgba(255,214,153,1) 3px, rgba(255,255,255,1) 10px); /* FF3.6+ */"+
" background: -webkit-linear-gradient(top, rgba(255,173,50,1) 0%,rgba(255,214,153,1) 3px,rgba(255,255,255,1) 10px); /* Chrome10+,Safari5.1+ */"+
" background: -o-linear-gradient(top, rgba(255,173,50,1) 0%,rgba(255,214,153,1) 3px,rgba(255,255,255,1) 10px); /* Opera 11.10+ */"+
" background: linear-gradient(top, rgba(255,173,50,1) 0%,rgba(255,214,153,1) 3px,rgba(255,255,255,1) 10px); /* W3C */"+
"}"+
""+
".gctour-grand-highlight {"+
" /* http://www.colorzilla.com/gradient-editor/#ffe000+0,ffee7f+3,ffffff+10;gctour-grand-highlight */"+
" background: rgb(255,224,0); /* Old browsers */"+
" background: -moz-linear-gradient(top, rgba(255,224,0,1) 0%, rgba(255,238,127,1) 3px, rgba(255,255,255,1) 10px); /* FF3.6+ */"+
" background: -webkit-linear-gradient(top, rgba(255,224,0,1) 0%,rgba(255,238,127,1) 3px,rgba(255,255,255,1) 10px); /* Chrome10+,Safari5.1+ */"+
" background: -o-linear-gradient(top, rgba(255,224,0,1) 0%,rgba(255,238,127,1) 3px,rgba(255,255,255,1) 10px); /* Opera 11.10+ */"+
" background: linear-gradient(top, rgba(255,224,0,1) 0%,rgba(255,238,127,1) 3px,rgba(255,255,255,1) 10px); /* W3C */"+
"}"+
""+
".gctour-grand-active {"+
" /* Grün http://www.colorzilla.com/gradient-editor/#3dff32+0,9eff99+3,ffffff+10;gctour-grand-active */"+
" background: rgb(61,255,50); /* Old browsers */"+
" background: -moz-linear-gradient(top, rgba(61,255,50,1) 0%, rgba(158,255,153,1) 3px, rgba(255,255,255,1) 10px); /* FF3.6+ */"+
" background: -webkit-linear-gradient(top, rgba(61,255,50,1) 0%,rgba(158,255,153,1) 3px,rgba(255,255,255,1) 10px); /* Chrome10+,Safari5.1+ */"+
" background: linear-gradient(top, rgba(61,255,50,1) 0%,rgba(158,255,153,1) 3px,rgba(255,255,255,1) 10px); /* W3C */$$$$"+
" background: -o-linear-gradient(top, rgba(61,255,50,1) 0%,rgba(158,255,153,1) 3px,rgba(255,255,255,1) 10px); /* Opera 11.10+ */"+
"}"+
""+
".gctour-grand-error {"+
" /* http://www.colorzilla.com/gradient-editor/#ff3232+0,ff9999+3,ffffff+10;gctour-grand-error */"+
" background: rgb(255,50,50); /* Old browsers */"+
" background: -moz-linear-gradient(top, rgba(255,50,50,1) 0%, rgba(255,153,153,1) 3px, rgba(255,255,255,1) 10px); /* FF3.6+ */"+
" background: -webkit-linear-gradient(top, rgba(255,50,50,1) 0%,rgba(255,153,153,1) 3px,rgba(255,255,255,1) 10px); /* Chrome10+,Safari5.1+ */"+
" background: -o-linear-gradient(top, rgba(255,50,50,1) 0%,rgba(255,153,153,1) 3px,rgba(255,255,255,1) 10px); /* Opera 11.10+ */"+
" background: linear-gradient(top, rgba(255,50,50,1) 0%,rgba(255,153,153,1) 3px,rgba(255,255,255,1) 10px); /* W3C */"+
"}"+
""+
"/*"+
"* GCTour Slider"+
"*/"+
""+
".gct_scrollbar {"+
" background-color:pink;"+
" height: 20px;"+
" left: 0;"+
" position: absolute;"+
" top: 0;"+
" width: 100%;"+
"}"+
""+
".gct_scroller{"+
" background-color:lime;"+
" height: 20px;"+
" left: 0;"+
" position: absolute;"+
" top: 0;"+
" width: 20px; "+
"}"+
""+
""+
"/*"+
" * GCTour Pop-Up"+
" */"+
""+
".gct_popup{"+
" position:absolute;"+
" z-index:10; "+
" width:172px;"+
" height:102px;"+
" text-align:center;"+
" color:#FF0000;"+
" font: 14px Verdana, Arial, Helvetica, sans-serif;"+
" background-color:lime;"+
" border-radius: 5px;"+
"}"+
""+
".gct_popup_header{"+
" border-radius: 5px 5px 0px 0px;"+
"}"+
""+
".dialogMask {"+
" background-image:url(##dialogMaskImage##);"+
" height:100%;"+
" left:0;"+
" opacity:0.7;"+
" position:fixed;"+
" top:0;"+
" width:100%;"+
" z-index:1100;"+
"}"+
""+
".dialogBody {"+
" -moz-border-radius:5px;"+
" border-radius:5px;"+
" background:none repeat scroll 0 0 #fff;"+
" border:1px solid #333333;"+
" color:#333333;"+
" cursor:default;"+
" font-family:Arial;"+
" font-size:12px;"+
" left:50%;"+
" margin-left:-250px;"+
" margin-top:20px;"+
" padding:0 0 1em;"+
" position:fixed;"+
" text-align:left;"+
" top:0;"+
" width:600px;"+
" z-index:1101;"+
" max-height:85%;"+
" min-height:440px;"+
" overflow:auto;"+
"}"+
""+
".dialogBody p {"+
" font-size:12px;"+
" font-weight:normal;"+
" margin:1em 0;"+
"}"+
""+
".header h1 {"+
" background-color:#B2D4F3;"+
" background-repeat:repeat-x;"+
" font-size:110% !important;"+
" font-family:Helvetica Neue,Arial,Helvetica,sans-serif;"+
" margin-bottom:0.2em;"+
" margin-top:0;"+
" padding:0.5em;"+
" -moz-border-radius: 5px 5px 0 0;"+
" border-radius: 5px 5px 0 0;"+
" color:#333333;"+
" background-image:url(##tabBgImage##)"+
"}"+
""+
"/*"+
".dialogBody h1 {"+
" background-color:#7A7A7A;"+
" border-bottom:1px solid #333333;"+
" font-size:110%;"+
" font-family:Helvetica Neue,Arial,Helvetica,sans-serif;"+
" margin-bottom:0.2em;"+
" padding:0.5em;"+
" -moz-border-radius:5px 5px 0px 0px;"+
" border-radius:5px 5px 0px 0px;"+
" color:#fff;"+
"}"+
"*/"+
""+
".dialogHistory {"+
" border:1px inset #999999;"+
" margin:0 1em 1em;"+
" padding-bottom: 1em;"+
" max-height: 200px;"+
" overflow-y:auto;"+
" width:518px;"+
" padding-left:1em;"+
"}"+
""+
".dialogHistory ul {"+
" margin-left:2em;"+
"}"+
""+
".dialogHistory li {"+
" list-style-type:circle;"+
"}"+
""+
".dialogFooter input {"+
" -moz-border-radius:3px;"+
" border-radius:3px;"+
" background:none no-repeat scroll 4px center #EEEEEE;"+
" border:1px outset #666666;"+
" cursor:pointer;"+
" float:right;"+
" margin-left:0.5em;"+
" padding:3px 5px 5px 20px;"+
" min-width:100px;"+
" font-size: 12px;"+
"}"+
""+
".dialogFooter input:hover {"+
" background-color:#f9f9f9;"+
"}"+
""+
".dialogContent {"+
" padding:0 10px 0 10px;"+
"}"+
""+
".dialogMin {"+
" min-height:0 !important"+
"}"+
""+
""+
"/* neuer Dialog-Style mit jQuery-ui + gcTour Header (.gct_dialog) */"+
""+
".gct_dialog {"+
" font-size: 10pt;"+
" font-family: Arial;"+
"}"+
".gct_dialog .ui-widget {"+
"}"+
".gct_dialog.ui-dialog {"+
" padding: 0;"+
"}"+
".gct_dialog.ui-dialog .ui-widget-header {"+
" border: 0;"+
"}"+
".gct_dialog.ui-dialog .ui-dialog-titlebar {"+
" padding: 0.2em 0.1em;"+
" background: -moz-linear-gradient(center top, #A7CFEF 0%, #C9DDED 3px, #FFFFFF 10px) repeat scroll 0 0 transparent;"+
" color: #000;"+
"}"+
".gct_dialog.ui-dialog .ui-dialog-title {"+
" padding-top: 4px;"+
" text-align: left;"+
" padding-left: 120px;"+
" width: 75%;"+
" background: url(##gctourLogo##) 2px 2px no-repeat;"+
"}"+
".gct_dialog.ui-dialog .ui-dialog-buttonpane {"+
" padding: 0 0.4em 0 0.4em;"+
"}"+
".gct_dialog .ui-button-text-only .ui-button-text {"+
" padding: 0.2em 0.8em;"+
"}"+
".gct_dialog .ui-progressbar .ui-progressbar-value {"+
" margin: 0;"+
"}"+
".gct_dialog .progressbar-label {"+
" width: 80%;"+
" text-align: center;"+
"}"+
""+
"#dialogDetails {"+
" height:364px;"+
" padding:3px;"+
" overflow:auto;"+
" background-color:#eff4f9;"+
" border:1px solid #C0CEE3;"+
" -moz-border-radius: 0 5px 5px 0;"+
" width:424px;"+
" position: absolute;"+
" right: 10px;"+
"}"+
""+
".dialogList li {"+
" font-size:10px;"+
" padding:3px;"+
" clear:both;"+
" list-style-type: none;"+
"}"+
""+
".dialogList {"+
" margin:0;"+
" padding:0"+
"}"+
""+
".activeTour {"+
" border: 1px solid #C0CEE3;"+
" -moz-border-radius: 5px 0 0 5px;"+
" border-radius: 5px 0 0 5px;"+
" background-color:#eff4f9;"+
" padding:1px;"+
"}"+
"#dialogListContainer {"+
" height:374px;"+
" overflow:auto;"+
" width:146px;"+
" position: absolute;"+
" left: 10px;"+
"}"+
""+
".unselectable {"+
" -o-user-select: none;"+
" -webkit-user-select: none;"+
" -moz-user-select: -none;"+
" -khtml-user-select: none;"+
" user-select: none;"+
"}"+
""+
"#cacheList .counter {"+
" position:absolute;"+
" right:4px;"+
" bottom: 0;"+
" z-index:0;"+
" overflow:hidden;"+
" font: normal 24px arial,sans-serif;"+
" color: #d5d5d5;"+
" text-align:right;"+
" text-shadow: 1px 1px 1px #C0C0C0;"+
" vertical-align: text-bottom;"+
" background-color: transparent;"+
" margin-right:0;"+
" margin-bottom:0;"+
" padding: 0;"+
"}"+
""+
"#gctour-notification-box {"+
" position: fixed;"+
" right: 4px;"+
" bottom: 2%;"+
" width: 220px;"+
" height: auto;"+
" max-height: 96%;"+
" overflow: hidden;"+
" overflow-y: auto;"+
" list-style-type: none;"+
" margin: 0;"+
" padding: 0;"+
" z-index: 1100;"+
"}"+
""+
"#gctour-notification-box li {"+
" overflow: hidden;"+
" background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABsAAAAoCAYAAAAPOoFWAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAPZJREFUeNq81tsOgjAMANB2ov7/7ypaN7IlIwi9rGuT8QSc9EIDAsAznxvY4pXPKr05RUE5MEVB+TyWfCEl9LZApYopCmo9C4FKSMtYoI8Bwv79aQJU4l6hXXCZrQbokJEksxHo9KMOgc6w1atHXM8K9DVC7FQnJ0i8iK3QooGgbnyKgMDygBWyYFZoqx4qS27KqLZJjA1D0jK6QJcYEQEiWv9PGkTsbqxQ8oT+ZtZB6AkdsJnQDnMoHXHLGKOgDYuCWmYhEERCI5gaamW0bnHdA3k2ltlIN+2qKRyCND0bhqSYCyTB3CAOc4WusBEIpkeBuPgJMAAX8Hs1NfqHRgAAAABJRU5ErkJggg==');"+
" background-repeat: repeat-x;"+
" background-attachment: scroll;"+
" background-position: left top;"+
" box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.5);"+
" width: 220px;"+
" cursor: pointer;"+
"}"+
""+
".gctour-notification-green {"+
" background-color: lightgreen;"+
" color: #000000;"+
" border: 1px solid #50C24E;"+
" text-shadow: 0 1px 0 #FFFFFF;"+
"}"+
""+
".gctour-notification-red {"+
" background-color: red;"+
" border: 1px solid #8B0000;"+
" color: #FFFFFF;"+
" text-shadow: 0 1px 0 #000000;"+
"}"+
""+
".gctour-notification-blue {"+
" background-color: #57B7E2;"+
" border: 1px solid #0B90C4;"+
" color: #000000;"+
" text-shadow: 0 1px 0 #FFFFFF;"+
"}"+
""+
".gctour-notification-yellow {"+
" background-color: #FFFC00;"+
" border: 1px solid #FFC237;"+
" color: #000000;"+
" text-shadow: 0 1px 0 #FFFFFF;"+
"}"+
""+
"/*"+
"* jquery ui overwrite"+
"*/"+
""+
".ui-front {"+
" z-index: 1100 !important;"+
"}"+
""+
".ui-button-icon-only .ui-icon {"+
" margin-top: -8px !important;"+
" margin-left: -8px !important;"+
"}"+
""+
".gct .ui-widget-content {"+
" background: #FFFFFF;"+
" /* border: 0; */"+
"}"+
".ui-button-text-only .ui-button-text {"+
" padding: .2em .6em;"+
"}"+
""+
"input.ui-button {"+
" padding: .2em .6em;"+
"}"+
""+
".ui-dialog .ui-dialog-buttonpane {"+
" margin-top: 0;"+
"}"+
+
"")
.replace("##gctourLogo##", $.gctour.img.gctourLogo)
.replace("##dialogMaskImage##", $.gctour.img.dialogMask)
.replace("##tabBgImage##", $.gctour.img.tabBg)
);
}
/* ----- utilities ------*/
// Read a GET URL variables and return them as an associative array.
function getUrlVars(url) {
var vars = [], hash;
var hashes = url.slice( url.indexOf('?') + 1 ).split('&');
for(var i = 0; i < hashes.length; i++) {
hash = hashes[i].split('=');
vars.push(hash[0]);
vars[hash[0]] = hash[1];
}
return vars;
}
/* USAGE: createElement('table',{style:"border-collapse:seperate;"});append(image_table,dummy_images); */
function createElement(type, attributes) {
var node = document.createElement(type), attr;
for (attr in attributes) {
if (attributes.hasOwnProperty(attr)){
node.setAttribute(attr, attributes[attr]);
}
}
return node;
}
function append(thisElement, toThis) {
return toThis.appendChild(thisElement);
}
function parseXml(str, typ) {
// typ z.B. 'text/xml'
return (new DOMParser()).parseFromString(str, typ);
}
function fillTemplate(mapping, template){
var j, dummy;
for(j = 0 ; j<mapping.length ; j++){
template = template.replace(new RegExp("###"+mapping[j][0]+"###","g"),mapping[j][1]);
}
dummy = createElement('div');
dummy.innerHTML = template;
return dummy.firstChild;
}
// rot13.js from gc.com
function createROT13array() {
var A = 0,
C = [],
D = "abcdefghijklmnopqrstuvwxyz",
B = D.length;
for (A = 0; A < B; A++) {
C[D.charAt(A)] = D.charAt((A + 13) % 26);
}
for (A = 0; A < B; A++) {
C[D.charAt(A).toUpperCase()] = D.charAt((A + 13) % 26).toUpperCase();
}
return C;
}
function convertROT13Char(A) {
return (A >= "A" && A <= "Z" || A >= "a" && A <= "z" ? rot13array[A] : A);
}
function convertROT13String(C) {
var A = 0,
B = C.length,
D = "";
if (!rot13array) {
rot13array = createROT13array();
}
for (A = 0; A < B; A++) {
D += convertROT13Char(C.charAt(A));
}
return D;
}
function convertROTStringWithBrackets(C) {
var F = "",
D = "",
E = true,
A = 0,
B = C.length;
if (!rot13array) {
rot13array = createROT13array();
}
for (A = 0; A < B; A++) {
F = C.charAt(A);
if (A < (B - 4)) {
if (C.toLowerCase().substr(A, 4) == "<br/>") {
D += "<br/>";
A += 3;
continue;
}
}
if (F == "[" || F == "<") {
E = false;
} else {
if (F == "]" || F == ">") {
E = true;
} else {
if ((F === " ") || (F === "&dhbg;")) {
} else {
if (E) {
F = convertROT13Char(F);
}
}
}
}
D += F;
}
return D;
}
/* Replace all &,< and > with there HTML tag */
function encodeHtml(htmlString) {
return (!htmlString) ? "" : htmlString.replace(/&/g,'&amp;').replace(/</g,'&lt;').replace(/>/g,'&gt;');
}
function xsdDateTime(date) {
function pad(n) {
var s = n.toString();
return (s.length < 2) ? '0'+s : s;
}
var yyyy = date.getFullYear(),
mm1 = pad(date.getMonth()+1),
dd = pad(date.getDate()),
hh = pad(date.getHours()),
mm2 = pad(date.getMinutes()),
ss = pad(date.getSeconds());
return yyyy +'-' +mm1 +'-' +dd +'T' +hh +':' +mm2 +':' +ss+'Z';
}
function get(url, cb) {
log([
"---GET---",
"\turl: " + url,
"---/GET/---"
].join("\n"));
GM_xmlhttpRequest({
method: "GET",
url: url,
headers:{'Content-type':'application/x-www-form-urlencoded'},
onload: function(xhr) {
responseInfo(xhr);
cb(xhr.responseText);
}
});
}
function postSync(url, data){
log([
"---POST SYNCHRON---",
"\turl: " + url,
"\tdata: " + data,
"---/POST SYNCHRON/---"
].join("\n"));
var result = GM_xmlhttpRequest({
method: "POST",
url: url,
headers:{'Content-type':'application/x-www-form-urlencoded'},
data:encodeURI(data),
synchronous:true
}).responseText;
return result;
}
function post(url, data, cb) {
log([
"---POST---",
"\turl: " + url,
"\tdata: " + data,
"---/POST/---"
].join("\n"));
GM_xmlhttpRequest({
method: "POST",
url: url,
headers:{'Content-type':'application/x-www-form-urlencoded'},
data:encodeURI(data),
onload: function(xhr) {
responseInfo(xhr);
cb(xhr.responseText);
}
});
}
// inspiration: dojo.date.difference
// http://jsfiddle.net/fr4Na/
function DateDiff(date1, date2, einheit) {
var ms = date1.getTime() - date2.getTime(); // milliseconds
var diff;
switch (einheit) {
case "second":
diff = ms / 1000;
break;
case "minute":
diff = ms / 60000; // 1000 * 60
break;
case "hour":
diff = ms / 3600000; // 1000 * 60 * 60
break;
case "day":
diff = ms / 86400000; // 1000 * 60 * 60 * 24
break;
case "week":
diff = ms / 604800000; // 1000 * 60 * 60 * 24 * 7
break;
default:
diff = ms;
break;
}
return diff;
}
function getDateFormat(force){
var date_format_update = new Date(GM_getValue('date_format_update')),
current_date = new Date(),
req = new XMLHttpRequest(),
myUrl = 'http://www.geocaching.com/account/ManagePreferences.aspx',
response_div,
date_format;
// get date format every 30 minutes
if (force || !date_format_update || Math.round(DateDiff(current_date, date_format_update, "minute")) > 30) {
//replace updatedate
GM_setValue('date_format_update', current_date.toString());
var response = GM_xmlhttpRequest({
method: "GET",
url: myUrl,
synchronous: true
});
response_div = createElement('div');
response_div.innerHTML = response.responseText;
// parse date format
date_format = $('select#SelectedDateFormat option:selected', response_div).val();
if (date_format !== "undefined") {
// and save the selected option
GM_setValue('date_format', date_format);
debug("fn getDateFormat - GM_setValue: 'date_format' = " + date_format);
} else {
error("fn getDateFormat - select#SelectedDateFormat is undefined");
}
}
// allways set! otherwise something went wrong...
return GM_getValue('date_format');
}
/* Test code for all date pattern
http://jsfiddle.net/rmpyL/
*/
// GC dateformat to jQuery ui datepicker dateformat
function dateFormatConversion(format, force){
force = force || false;
var conversions = {
"d. M. yyyy" : "d. mm. yy",
"d.M.yyyy" : "d.mm.yy",
"d.MM.yyyy" : "d.mm.yy",
"d/M/yy" : "d/mm/y",
"d/M/yyyy" : "d/mm/yy",
"d/MM/yyyy" : "d/mm/yy",
"dd MMM yy" : "dd M y",
"dd.MM.yyyy" : "dd.mm.yy",
"dd.MM.yyyy.": "dd.mm.yy.",
"dd.MMM.yyyy": "dd.M.yy",
"dd/MM/yy" : "dd/mm/y",
"dd/MM/yyyy" : "dd/mm/yy",
"dd/MMM/yyyy": "dd/M/yy",
"dd-MM-yy" : "dd-mm-y",
"dd-MM-yyyy" : "dd-mm-yy",
"d-M-yyyy" : "d-mm-yy",
"M/d/yyyy" : "mm/d/yy",
"MM/dd/yyyy" : "mm/dd/yy",
"MMM/dd/yyyy": "M/dd/yy",
"yyyy.MM.dd.": "yy.mm.dd.",
"yyyy/MM/dd" : "yy/mm/dd",
"yyyy-MM-dd" : "yy-mm-dd"
},
jqui_format = conversions[format];
if (!jqui_format) {
if (force) {
return dateFormatConversion(getDateFormat(true));
} else {
throw "fn dateFormatConversion: no dateformat found: '" + format + "'";
}
}
return jqui_format;
}
function parseDate(date_string){
var orig_date_format = getDateFormat(),
jqui_date_format = dateFormatConversion(orig_date_format, true),
date,
debugStr = "Parse Datestring: '" + date_string + "'\nOrig-Format: '" + orig_date_format + "'\njqui-Format: '" + jqui_date_format;
try {
date = $.datepicker.parseDate(jqui_date_format, date_string);
debug(debugStr + "'\nDate: " + date + "'");
} catch(e) {
throw e + ", " + debugStr;
}
return date;
}
function formatDate(date){
var orig_date_format = getDateFormat(),
jqui_date_format = dateFormatConversion(orig_date_format),
date_string = $.datepicker.formatDate(jqui_date_format, date);
debug("format Date: '" + date + "'\nOrig-Format: '" + orig_date_format + "'\njqui-Format: '" + jqui_date_format + "'\nDatestring: '" + date_string + "'");
return date_string;
}
/** Orientiert an Geodesy representation conversion functions (c) Chris Veness 2002-2011 **/
var Geo = {}; // Geo namespace, representing static class
/**
* Interpretiert einen String als Gradzahl. Diese Funktion verarbeitet alle 3 möglichen Formate (d, dm, dms)
* Limitiert auf eine Komponente pro Aufruf.
*
* @param {String} dmsStr: Koordinaten String
* @returns {Number} deg: Degrees
*/
Geo.parseDMS = function(dmsStr){
// entferne alle nicht Zahlen (Regex:[^\d.\s]) und teile den String an den verbleibenden Leerzeichen (Regex:[^0-9.,])
var dms = dmsStr.replace(/[^\d.\s]/g,' ').trim().split(/[^0-9.,]+/);
var deg;
// wenn nix mehr übrig bleibt -> keine Koordinate
if (dms == '') { return NaN; }
// Anhand der Länge von dms wird ermittelt im welchem Format die Koordinaten vorliegen
switch (dms.length) {
case 3: // interpret 3-part result as d/m/s
deg = dms[0]/1 + dms[1]/60 + dms[2]/3600;
break;
case 2: // interpret 2-part result as d/m
deg = dms[0]/1 + dms[1]/60;
break;
case 1: // just d (possibly decimal) or non-separated dddmmss
deg = dms[0];
break;
default:
return NaN;
}
// anschließend negiere Wert wenn der String ein S oder W beinhaltet
if (/^-|^[WS]/i.test(dmsStr.trim())) {
deg = -deg;
}
return deg;
};
/**
* Konvertiert dezimal Gradzahlen zu dem festgelgegten Format ('d', 'dm', 'dms') - Vorangestellt N/S
*
* @param {Number} deg: Degrees
* @param {String} [format=dms]: Return value as 'd', 'dm', 'dms'
* @param {Number} [dp=0|2|4]: No of decimal places to use - default 0 for dms, 2 for dm, 4 for d
* @returns {String} Deg/min/seconds
*/
Geo.toLat = function(deg, format) {
var lat = Geo.toDMS(deg, format);
return lat=='' ? '' : (deg<0 ? 'S' : 'N')+ " " +lat.slice(1); // erste '0' abschneiden für Lat
};
/**
* Konvertiert dezimal Gradzahlen zu dem festgelgegten Format ('d', 'dm', 'dms') - Vorangestellt E/W
*
* @param {Number} deg: Degrees
* @param {String} [format=dms]: Return value as 'd', 'dm', 'dms'
* @returns {String} Deg/min/seconds
*/
Geo.toLon = function(deg, format) {
var lon = Geo.toDMS(deg, format);
return lon=='' ? '' : (deg<0 ? 'W' : 'E')+ " " +lon;
};
/**
* Konvertiert dezimal Gradzahlen in das "deg°"(d), "deg° min" (dm) oder "deg°min'sec''"(dms) Format
*
* @private
* @param {Number} deg: Degrees
* @param {String} [format=dm]: Return Format 'd', 'dm', 'dms'
* @returns {String} Koordinaten String in dem festgelegten Format
* @throws {TypeError} wenn deg ein Object ist
*/
Geo.toDMS = function(deg, format) {
if (typeof deg == 'object') { throw new TypeError('Geo.toDMS - deg is an object'); }
if (isNaN(deg)) { return 'NaN'; } // give up here if we can't make a number from deg
// default value of format = dms
if (typeof format == 'undefined') { format = 'dm'; }
deg = Math.abs(deg); // (unsigned result ready for appending NS|WE)
var dms, d, m, s, min, sec, tmpD, tmpM;
switch (format) {
case 'd':
d = deg.toFixed(8); // round degrees
tmpD = d;
if (d<100) { tmpD = '0' + tmpD; } // pad with leading zeros
if (d<10) { tmpD = '0' + tmpD; }
dms = tmpD; // add ° symbol
break;
case 'dm':
min = (deg*60).toFixed(8); // convert degrees to minutes & round
d = Math.floor(min / 60); // get component deg/min
m = (min % 60).toFixed(3); // pad with trailing zeros
tmpD = d;
tmpM = m;
if (d<100) { tmpD = '0' + tmpD; } // pad with leading zeros
if (d<10) { tmpD = '0' + tmpD; }
if (m<10) { tmpM = '0' + tmpM; }
dms = tmpD + '\u00B0' + tmpM; // add ° symbols
break;
case 'dms':
sec = (deg*3600).toFixed(0); // convert degrees to seconds & round
d = Math.floor(sec / 3600); // get component deg/min/sec
m = Math.floor(sec/60) % 60;
s = (sec % 60).toFixed(0); // pad with trailing zeros
if (d<100) { d = '0' + d; } // pad with leading zeros
if (d<10) { d = '0' + d; }
if (m<10) { m = '0' + m; }
if (s<10) { s = '0' + s; }
dms = d + '\u00B0' + m + '\u2032' + s + '\u2033'; // add °, ', " symbols
break;
}
return dms;
};
// LatLon Object:
/**
* Erzeugt einen Punkt mit den gegebenen Latitude und Longitude
* @constructor
* @param {Number} lat: latitude in numeric degrees
* @param {Number} lon: longitude in numeric degrees
*/
function LatLon(lat, lon) {
// only accept numbers or valid numeric strings
this._lat = typeof(lat)=='number' ? lat : typeof(lat)=='string' && lat.trim()!='' ? +lat : NaN;
this._lon = typeof(lon)=='number' ? lon : typeof(lon)=='string' && lon.trim()!='' ? +lon : NaN;
}
/**
* Gibt einen String mit "lat() lon()" von diesem Punkt zurück
*
* @param {String} [format]: Return value als 'd', 'dm', 'dms'
* @returns {String} Space-separated latitude/longitude
*
*/
LatLon.prototype.toString = function(format) {
if (typeof format == 'undefined') { format = 'dm'; }
if (isNaN(this._lat) || isNaN(this._lon)) { return '-,-'; }
return Geo.toLat(this._lat, format) + ' ' + Geo.toLon(this._lon, format);
};
/**
* Interpretiert eine Koordinaten Eingabe des Formats "N51° 12.123 E010° 23.123" oder "51.123 10.123" bzw. benutzt Googles Geocoding API um die Koordinaten zu finde.
*
* @param {String} coord_string: Koordinaten in einem Format
* @param {Boolean} [force_Geocoding=false]: Wenn gesetzt sucht die Methode bei nicht numerischer Eingabe mittels Geocoding nach den Koordinaten
* @returns {LatLon} Koordinaten Object
*/
function parseCoordinates(coord_string,force_Geocoding){
// entferne alle "," in Koordinaten String
if(typeof coord_string == "string") {
coord_string = coord_string.replace(/,/g,".");
}
var lat, lon;
// regex for N51° 12.123 E12° 34.123
var regex_coord_ns = new RegExp(/(N|S)\s*(\d{0,2})\s*°\s*(\d{0,2}[\.,]\d+)/);
var regex_coord_ew = new RegExp(/(E|W)\s*(\d{0,3})\s*°\s*(\d{0,2}[\.,]\d+)/);
//regex for 51.123 12.123
var regex_coord_dec = new RegExp(/(-{0,1}\d{0,2}[\.,]\d+)\s*(-{0,1}\d{0,3}[\.,]\d+)/);
var result_coord_ns = regex_coord_ns.exec(coord_string);
var result_coord_ew = regex_coord_ew.exec(coord_string);
var result_coord_dec = regex_coord_dec.exec(coord_string);
// Koordinate ist keins der beiden numerischen Formate
if (!(result_coord_ns && result_coord_ew) && !result_coord_dec) {
// ... jetzt hilft nur noch Google ...
if(force_Geocoding){
var geocoding_obj = JSON.parse(GM_xmlhttpRequest({ // sende einen synchronen request an die geocoding api von google - Doc: http://code.google.com/apis/maps/documentation/javascript/services.html#GeocodingRequests
method: "GET",
synchronous: true,
url: "http://maps.googleapis.com/maps/api/geocode/json?address="+coord_string+"&sensor=false"
}).responseText);
if(geocoding_obj.status === "ZERO_RESULTS"){ // noch nicht einmal Google kann mit der eingabe etwas anfangen
return false;
}
lat = geocoding_obj.results[0].geometry.location.lat;
lon = geocoding_obj.results[0].geometry.location.lng;
return new LatLon(lat, lon);
} else {
return false;
}
} else if (result_coord_ns && result_coord_ew) {
// result_coord_ns[0] = "N51° 12.123"
// result_coord_ew[0] = "E010° 23.123"
lat = Geo.parseDMS(result_coord_ns[0]);
lon = Geo.parseDMS(result_coord_ew[0]);
return new LatLon(lat,lon);
} else {
// result enthält beide Teile der Koordinate
lat = Geo.parseDMS(result_coord_dec[1]);
lon = Geo.parseDMS(result_coord_dec[2]);
return new LatLon(lat,lon);
}
}
function distanceBetween(lat1,lon1, lat2,lon2) {
var R = 6371000; // meters (change this constant to get miles)
var dLat = (lat2-lat1) * Math.PI / 180;
var dLon = (lon2-lon1) * Math.PI / 180;
var a = Math.sin(dLat/2) * Math.sin(dLat/2) + Math.cos(lat1 * Math.PI / 180 ) * Math.cos(lat2 * Math.PI / 180 ) * Math.sin(dLon/2) * Math.sin(dLon/2);
var c = 2 * Math.atan2(Math.sqrt(a), Math.sqrt(1-a));
var d = R * c;
return d;
}
// helpers
// for map page
// googleMap center and radius: return object center and radius
var getMapCenterAndRadius = function(){
var googleMap = unsafeWindow.MapSettings ? unsafeWindow.MapSettings.Map : undefined,
ret = {},
bounds;
ret.center = "";
ret.radius = "";
if ( typeof(googleMap) !== "undefined" ) {
bounds = googleMap.getBounds();
ret.center = googleMap.getCenter();
ret.radius = Math.floor(
distanceBetween(
ret.center.lat, ret.center.lng,
bounds.getNorthEast().lat,
bounds.getNorthEast().lng - (bounds.getNorthEast().lng - bounds.getSouthWest().lng) / 2
)
) / 1000;
}
return ret;
};
// is string json, isJSON(response.responseText)
// fn from js-Framework prototype v1.7
var isJSON = function (str) {
if (str.length === 0) { return false; }
str = str.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g, '@')
.replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g, ']')
.replace(/(?:^|:|,)(?:\s*\[)+/g, '');
return (/^[\],:{}\s]*$/).test(str);
};
// is String a GCCode ?
// begin with 'GC' + 1 to 6 chars, current is 5 (05.2012)
// return Boolean
var isGCCode = function (gccode) {
return (/^\s*(GC[0-9A-Z]{1,6})\s*$/).test(gccode);
};
// find GCID (GCCode) in String
// first 'GC' + 1 to 6 chars in a string, current is 5 (05.2012)
// return String
// example: http://jsfiddle.net/NUFGq/15/
var findGCCodeFromString = function (str) {
if (!str || str.length === 0) { return false; }
var treffer = str.match(/\bGC([0-9A-Z]{1,6})\b/) || [];
return (treffer[0] || "");
};
// init core variables
function initCore(){
debug("Start: init_core()");
// setting up the language (style from 10.2011)
var l = GM_getValue('language',$.gctour.defaultLang);
// ToDO: switch in der "übernächsten" Veröffentlichung wieder entfernen !
// Nur um ggf. von alter zur neuer Version zu wechseln
// START: switch from old to new style
if (typeof(l) === "number") {
l = ['de','en','fr','nl','pt'][parseInt(l, 10)] || $.gctour.defaultLang;
debug("current language:" + l);
GM_setValue('language',l);
}
// END: switch from old to new style
$.gctour.currentLang = l;
// getting all tours
tours = loadValue('tours',[]);
//eval(GM_getValue('tours',[]));
// structur a tour:
// id <--- int
// name <--- string
// caches <--- caches
// go get the current tour from the tour list
currentTourId = GM_getValue('currentTour',-1);
currentTour = getTourById(currentTourId);
// oh - there is no current tour!? create one!
if(!currentTour){
currentTour = {};
currentTour.id = getNewTourId();
currentTour.name = "Tour "+currentTour.id;
currentTour.geocaches = [];
tours.push(currentTour);
log("found no currentTour! Creating new one: "+currentTour.id +" ; "+ currentTour.name);
saveCurrentTour();
}
checkOnlineConsistent(currentTour);
}
function init(){
var i;
// set Styles (GM_addStyle)
initStyle();
// add global styles
var head = document.getElementsByTagName('head')[0],
style = document.createElement('style');
style.type = 'text/css';
head.appendChild(style);
// first filter blacklist
// process "add to your GCTour"-link from gctour.madd.in
if(document.URL.search("webcode")>=0) {
document.title = "GcTour";
document.getElementsByTagName('body')[0].innerHTML = "<div align='center'><a href='http://www.geocaching.com'><img border='0' src='http://madd.in/icon.png'/></a></div>";
downloadTourFunction(document.URL.split("webcode/")[1]);
return;
}
// start sepcial script on send-to-gps page
if(document.URL.search("sendtogps.aspx")>=0) {
// show the GPX box, if the option is set
if(GM_getValue('showGpx',false)){
document.getElementById('dataString').parentNode.style.visibility = 'visible';
document.getElementById('dataString').style.width = '100%';
}
// see, whether this windows is opened by the tour or by something else
var qsParm = [];
var query = window.location.search.substring(1);
var parms = query.split('&');
for (i=0; i<parms.length; i++) {
var pos = parms[i].indexOf('=');
if (pos > 0) {
var key = parms[i].substring(0,pos);
var val = parms[i].substring(pos+1);
qsParm[key] = val;
}
}
if(qsParm['tour']){
sendToGPS();
}
return;
}
$(window).bind({
// update the complete gui if the tab gets focus
'focus': function(e) {
updateTour();
},
'resize': function(e) {
handleResize(e);
}
});
// process autoTour
if ( GM_getValue('tq_url') ) {
// if the cancelbutton is presssed
if( GM_getValue("stopTask", false) ) {
GM_deleteValue('tq_url');
GM_deleteValue('tq_caches');
GM_setValue('stopTask', false);
document.location.href = GM_getValue('tq_StartUrl', 'http://www.geocaching.com');
return; // then return!
}
var tq_url = GM_getValue('tq_url');
if ( tq_url == document.location.href ) {
addProgressbar( {
caption: $.gctour.lang('autoTour.wait'),
closeCallback: function(){
return function(){
GM_setValue("stopTask",true);
closeOverlayRemote(document)();
};
}
});
var tq_caches = loadValue('tq_caches', []),
tq_typeFilter = JSON.parse(GM_getValue('tq_typeFilter')),
tq_sizeFilter = JSON.parse(GM_getValue('tq_sizeFilter')),
tq_dFilter = JSON.parse(GM_getValue('tq_dFilter')),
tq_tFilter = JSON.parse(GM_getValue('tq_tFilter')),
tq_specialFilter = JSON.parse(GM_getValue('tq_specialFilter')),
pagesSpan = $("td.PageBuilderWidget > span:first"),
pagesSpanBolds = $('b', pagesSpan),
entries = getEntriesFromSearchpage(),
addBool;
if ( pagesSpan.length <= 0 ) {
alert("no caches here :-( pagesSpan missing");
GM_deleteValue('tq_url');
GM_deleteValue('tq_caches');
document.location.href = GM_getValue('tq_StartUrl','http://www.geocaching.com');
return;
}
setProgress(
parseFloat(pagesSpanBolds.eq(1).text()) - 1,
parseFloat(pagesSpanBolds.eq(2).text()),
document
);
console.log("entries: " + JSON.stringify(entries));
// BEGIN for each cache
$.each( entries, function( i, entry ) {
debug("entry[" + i + "]: " + JSON.stringify(entry));
debug("##### 0 " +
"type:\t" + tq_typeFilter[entry.type] + "\n" +
"size:\t" + tq_sizeFilter[entry.size] + "\n" +
"difficulty: " + tq_dFilter[entry.difficulty] + "\n" +
"terrain:\t" + tq_tFilter[entry.terrain]);
// autoTour magic starts here (filter)
// check whether the caches match against the given D/T values
addBool = tq_typeFilter[entry.type] &&
tq_sizeFilter[entry.size] &&
tq_dFilter[entry.difficulty] &&
tq_tFilter[entry.terrain];
debug("##### 1: "+addBool);
if(tq_specialFilter['is Active']){
log("Check if " + entry.name + " is active:\n" +
"available: " + entry.available);
addBool = addBool && (entry.available);// only add if active!
}
debug("##### 2: "+addBool);
//if(tq_specialFilter['is not a PM cache']){
if(tq_specialFilter['pm'] == "only"){ // PM only
addBool = addBool && entry.pm_only;
} else {
if(tq_specialFilter['pm'] == "not"){ // not PM
addBool = addBool && !entry.pm_only;
}
}
debug("##### 3: "+addBool);
// autoTour parameter "haven't found" is not checked here because of URL parameter
addBool = addBool &&
(parseInt(((tq_specialFilter['minFavorites']) ? tq_specialFilter['minFavorites'] : 0), 10) <= parseInt(entry.favorites, 10)); // minimal Favorites
debug("##### 4: "+addBool);
/*
// Alle Geocaches die von madd.in gefunden wurden. Damit wir autoTour auch mit meinem Zweitaccount brauchbar ;-)
var maddinGeocaches =["1T51H", "1QC72", "1KARH", "1RBBE", "1PEBN", "1FAYJ", "1ERQE", "1F093", "1EWH4", "1C068", "1R91D", "1PPZG", "1BXA7", "1PYPN", "1FEJD", "14PB1", "KARW", "1BX9N", "14743", "1NXG0", "1Q0NA", "1PN3W", "1PY8K", "1NWE0", "1D6KQ", "1NQAF", "YN3G", "MFTR", "1QH9J", "VT7D", "XBMV", "14FEY", "ZQ1V", "1Q0NW", "1QHKE", "1PDA5", "1Q59B", "1Q49G", "1JB9B", "1HBFF", "1G8VV", "1P4XG", "13481", "15GZT", "16H37", "1HBPR", "1Q5PP", "1ND1A", "ZVG5", "Y7VH", "MJ4W", "WJQ4", "ZQJX", "16FR7", "N8A1", "VAD4", "1NKEZ", "1NFFK", "1JQYH", "1ABRC", "1HH3Q", "1JZGF", "1KF0E", "1NDBF", "1MEYF", "1H76A", "1MG3M", "1NBF8", "1FNGG", "1JZB6", "156F9", "1HWPZ", "11J9Y", "N9EM", "17QZ6", "1EBQY", "YKV0", "15TH0", "H73R", "1MM0F", "19T6R", "1K40H", "1AXVX", "14TP0", "12AQP", "VEAJ", "VE84", "1K9V0", "1MY7K", "1N4JH", "1HGQJ", "1JNP2", "1GD3Z", "1MZVZ", "1KWJC", "1MY1P", "1M0X6", "VCF4", "1M9B8", "1KFC1", "1MMWC", "1KYY7", "1G24R", "1J3A8", "QVGP", "1JTTV", "1J9CA", "1FBWT", "K2HZ", "T47Y", "TAX8", "1J6EB", "1JBAD", "MG58", "19FVE", "16F7N", "1K5D3", "1EAD8", "1K1DD", "XDFK", "NA43", "1DBT8", "1DHNR", "1HH26", "KCHR", "1JKZY", "1JW04", "1J1NB", "1D1XY", "1D29W", "1H2R5", "18M3W", "175F8", "1HJ75", "192CY", "1G9BB", "12C2Z", "N2EN", "ZH3N", "19PKN", "1HE9P", "1FVM4", "18V3Q", "16YH5", "1H3FF", "14PCD", "YK51", "N5DM", "1E43W", "TYEQ", "1FAAK", "1FAAF", "1E7NC", "NXYZ", "18P9K", "17ZCN", "VD4E", "1G7QA", "15J88", "RBQQ", "QQJ4", "1EVRW", "1FFJC", "GNCW", "16PMP", "10ZXY", "15J2W", "15J2C", "139YE", "WDME", "1GCZK", "15CFG", "18P9D", "HX0H", "TJMM", "VNRV", "VEA0", "TRKC", "1F53F", "1BK3B", "159MQ", "1196K", "RHX3", "T5KW", "TN4A", "WZXA", "RWZW", "12Q9J", "124V4", "1GEMC", "1BGB2", "1BZ0K", "1GAB9", "1CFFQ", "VABH", "131GR", "1FYA3", "1CFG9", "18YF8", "18CJF", "16EB4", "Q139", "17VHA", "1A75J", "N0V3", "YK2K", "QYRJ", "10P4G", "127K5", "11Z8Q", "RCG5", "127GA", "127G6", "127G3", "127G0", "127FZ", "1DG6G", "1DF0X", "127GC", "127FQ", "127FF", "11V8A", "1CGR0", "1CGR4", "PH47", "1FJJ5", "1DZ3J", "WDKY", "174BB", "WDKP", "ZAGR", "WDK6", "N9VG", "10A44", "10A4B", "10CCH", "10A3X", "XDT0", "10A59", "XDRN", "X1JQ", "ZAGE", "XDRK", "X1JN", "XDR8", "X1JM", "X1JC", "XDR0", "1FGVX", "17QR6", "1DFZE", "1D0WW", "17T06", "17QR8", "1EACF", "15YA3", "1DKWQ", "15DEZ", "17PXH", "11YRW", "16F6Z", "WDKH", "12WMX", "QV1Y", "1BKQ4", "1DFE4", "1FFX8", "13A0N", "13F65", "1F9AW", "1CFFK", "12Y3V", "T61B", "1BZ1A", "13DV5", "1DG4E", "1DTV2", "1A7B3", "NDZ7", "V9CN", "1C6G6", "WDMD", "RY5V", "RB1Z", "1F9BF", "114WA", "11H5X", "198WY", "110E9", "10R03", "198WJ", "119AZ", "198XD", "19ERD", "11GKY", "1119C", "115BG", "117N1", "114XB", "10R0V", "10NRF", "138TN", "114JE", "11H45", "10QE3", "1BEA6", "138VM", "129Q4", "1AHPR", "1AHPA", "12ATD", "152KC", "P4XY", "TGWP", "15EAD", "1752N", "1BZAA", "P6D2", "136WW", "GM8H", "19BMX", "19BN3", "1AQ1A", "V3TN", "JA2E", "V5RZ", "1CWT3", "NCQY", "G6HQ", "14MBG", "XKBE", "MBFQ", "NK7D", "1C7FC", "QJ7J", "1A4PW", "1DRY7", "1C9VC", "J41M", "148VH", "14GD2", "1E8NM", "1F0JB", "YJ6M", "H8GZ", "144K5", "GHRQ", "V5PW", "1B0X6", "10V62", "1D5Q8", "168N5", "1A3X8", "YZTQ", "WDMC", "119VP", "QJHK", "1DCK5", "VDPM", "126G2", "T05X", "WDM9", "R9AH", "M80P", "1D6JZ", "1212Y", "QJHK", "1D8KX", "R4DE", "192DY", "10W9R", "1BAZ8", "ZR4C", "ZDPG", "11CQM", "16AVV", "YN3W", "11E5N", "QZFE", "R8ZN", "12Y7J", "YN56", "R9K2", "M44T", "GJY9", "192DV", "XK6Z", "QEA3", "15E9W", "15EA7", "1548J", "19RN7", "1CFG1", "16V5D", "15361", "14F38", "W1KT", "V5RD", "1C28J", "1AYXM", "1BGH9", "1BKM3", "TH0V", "1D5Q7", "1BRJQ", "H0DN", "J698", "18HKA", "1D48Y", "WBWM", "RQBQ", "W4G8", "19680", "ZDQK", "ZG48", "PHW4", "XZF5", "XZF8", "XZFC", "12WDT", "12VTN", "XZVB", "1CGR3", "1CGR1", "1CDV1", "1CDTQ", "150J6", "18AGZ", "19Q5V", "TKJ9", "VCVR", "11RBJ", "18VY2", "1BR9E", "191R9", "R18H", "19ED2", "14HQV", "1BAX9", "11MMP", "P5ZQ", "11RWF", "12B6H", "1598X", "1753H", "NFQ9", "NFQ4", "NGA0", "11YNV", "157VV", "10K61", "188J0", "WH9Y", "164A9", "MCH7", "M6KY", "T02D", "M6KX", "18QR8", "QXC3", "Q2VP", "185RY", "RB1V", "VAHD", "YVN2", "Z38V", "Z36X", "Z0GC", "Z0F7", "W6Y9", "ZRW9", "RXG9", "1BE4G", "R4HF", "NRGM", "13R1A", "1AWNW", "19PFG", "TGTX", "J7JT", "1B3DF", "1823H", "11E4K", "W5A2", "WPHE", "ZYF2", "1AHC2", "YHMJ", "N978", "131XN", "Y3W1", "YN8Y", "14KH4", "1593G", "17VHK", "17VH9", "ZHTP", "17VHE", "14WQJ", "1C01D", "17Q2X", "Y3TG", "Y3VN", "Y3VW", "PXJE", "131X0", "175YQ", "RB1T", "1AACB", "1AJVT", "QMYK", "QMYH", "14GT5", "QPG5", "14GTC", "14BJ5", "14CBR", "NXCA", "VPWF", "W546", "A9B5", "ZDN2", "NXDE", "18NJX", "19EAE", "193B9", "VK0B", "17MXT", "YK33", "16AY3", "14PCG", "13BMK", "15EK7", "175EV", "1A761", "VE2G", "WPNA", "15HF9", "16AW0", "XYHG", "10EBJ", "157XG", "1140G", "ZMWT", "15HEX", "17DP9", "ZMX1", "WHA2", "1264X", "14G1N", "17MXM", "WDMB", "N95X", "190R1", "142C8", "10Q97", "129Q2", "1A20K", "1A20R", "193FE", "12C3N", "12AZ2", "198XZ", "110ER", "11H64", "121GE", "10C4W", "11H4F", "11GMJ", "11XG9", "16D4Z", "121KT", "13C49", "VADH", "16CYR", "NCQZ", "13ZG7", "H28R", "NWHN", "NW4V", "RNDH", "MKV3", "195TN", "R179", "18DMK", "W98A", "X20D", "VWZQ", "NQVT", "1207T", "151M6", "XHJN", "113EJ", "110F7", "18V7G", "W0Q2"];
for(var maddinI = 0; maddinI < maddinGeocaches.length; maddinI++){
if("GC"+maddinGeocaches[maddinI] == entry.id){
addBool = false;
break;
}
}
*/
// if all parameters match - add the cache
if(addBool){
tq_caches.push(entry);
}
debug(entry.id + " " + entry.name + " filter:" +
"\n\ttype:" + entry.type + " = " + tq_typeFilter[entry.type] +
"\n\tsize:" + entry.size + " = " + tq_sizeFilter[entry.size] +
"\n\tdifficulty:" + entry.difficulty + " = " + tq_dFilter[entry.difficulty + ""] +
"\n\tterrain:" + entry.terrain + " = " + tq_tFilter[entry.terrain + ""] +
"\n\tavailable:" + entry.available +
"\n\tpm only:" + entry.pm_only +
"\n\t ==> Add to tour: " + addBool);
}); // END for each cache
GM_setValue('tq_caches', JSON.stringify(tq_caches));
var gcComLinks = $("td.PageBuilderWidget > a", document),
nextLink = false;
// next Link finden
gcComLinks.each(function(index) {
if($(this).html() == "<b>&gt;&gt;</b>") {
nextLink = gcComLinks.eq(index + 1);
return false; // each schleife verlassen
}
});
// check if there are some caches on this page (next link is not there)
if(!nextLink){
alert("no caches here :-(");
GM_deleteValue('tq_url');
GM_deleteValue('tq_caches');
document.location.href = GM_getValue('tq_StartUrl', "http://www.geocaching.com");
return;
}
// action finden aus next link
var action = (nextLink.attr("href")) ? nextLink.attr("href").split("'")[1] : false;
if(action){
var u = 500,
l = 2000,
waitingTime = Math.floor( ( Math.random() * (u - l + 1) ) + l);
// wait between 0.5 -> 2 seconds to do the next request
window.setTimeout(function(){
unsafeWindow.__doPostBack(action, '');
}, waitingTime);
} else {
currentTour = {};
currentTour.id = getNewTourId();
currentTour.name = "autoTour " + currentTour.id;
currentTour.geocaches = tq_caches;
tours.push(currentTour);
log("autoTour done - create new Tour: " + currentTour.id + " ; " + currentTour.name);
saveCurrentTour();
document.location.href = GM_getValue('tq_StartUrl', "http://www.geocaching.com");
}
} else {
GM_deleteValue('tq_url');
GM_deleteValue('tq_caches');
}
}
// maps - map/default.aspx
if(document.URL.search("\/map\/")>=0) {
$("<div>",{
"class": "header",
"css": {
'width': 100,
'height': 30,
'margin-top': 10,
'overflow': "hidden",
'border-radius': 5,
'background-color': "#FFF",
'border': "4px solid #999",
'cursor': 'pointer',
'float': 'right'
},
"html": $("<h1>", {
"css": {'padding': 0},
click: function(e) {
var gooMap = getMapCenterAndRadius();
showAutoTourDialog(gooMap.center, gooMap.radius);
},
"html": $("<img>", {
"src": $.gctour.img.mapToAutoTour
})
})
.hover(
function(){ $(this).css({'backgroundColor': 'orange'}); },
function(){ $(this).css({'backgroundColor': '#B2D4F3'}); }
)
}).prependTo($("div:first", "header:first"));
// ToDo: Template erweitern bzw. anpassen mit Add2Tour Button
$('#cacheDetailsTemplate').text(
function(index, text) {
var tmpAddToTour = '{{#if $ctx.userIsLoggedIn() }}'+
'<a class="lnk" id="attKnopf" href="javascript:add2tour();">'+
'<img src="'+$.gctour.img.addToTour+'">&nbsp;<span>'+$.gctour.lang('addToTour')+'</span>'+
'</a>';
return text.replace(/\{\{\#if \$ctx.userIsLoggedIn\(\) \}\}/g, tmpAddToTour);
}
);
var add2tour = function(){
setTimeout(function() {
var gccode = $('#gmCacheInfo div[class="code"]:visible:first').text().trim();
var name = $("#gmCacheInfo a[href*='cache_details.aspx']:visible:first").text().trim();
var guid = getUrlVars($("#gmCacheInfo a[href*='/seek/log.aspx?guid']:visible:first").attr("href"))["guid"];
var imageUrl = $("#gmCacheInfo img[src*='images/WptTypes/sm/']:visible:first").attr("src");
var imageUrlArr = imageUrl.split('/');
var cacheTypeImage = imageUrlArr[imageUrlArr.length-1];
// alternativ imageUrl.substring(imageUrl.lastIndexOf('/') + 1) oder imageUrl.split('/')[imageUrl.split('/').length-1]
debug("map add2tour: gccode:'" + gccode + "' name:'" + name + "' image:'" + cacheTypeImage + "' guid:'" + guid + "'");
addElementFunction(gccode, guid, name, cacheTypeImage)();
}, 0);
};
exportFunction(add2tour, unsafeWindow, {defineAs: "add2tour"});
}
// add buttons to Bookmark site
if(document.URL.search("\/bookmarks\/view.aspx")>=0) {
var k, bookmarkLine, entry;
var bookmarkLines = $('tr[id$="Row"]'); // id muss mit Row enden
debug("bookmarkLines.length = " + bookmarkLines.length);
for(k = 0; k < bookmarkLines.length; k++){
bookmarkLine = $("td", bookmarkLines[k]);
entry = getEntryFromBookmarkTd(bookmarkLine);
$("<img>", {
"alt": $.gctour.lang('addToTour'),
"title": $.gctour.lang('addToTour'),
"src": $.gctour.img.addToTour,
"css": {
"cursor": "pointer",
"margin": "0 15px 0 0"
}
})
.bind('click', {entry: entry}, function(e){
addElementFunction(e.data.entry.id, e.data.entry.guid, e.data.entry.name, e.data.entry.image)();
})
.appendTo(bookmarkLine[4]);
}
// helper function
var addEntryFromBookmark = function(e) {
var ck = e.data.checkedOnly || false;
var nt = e.data.newTour || false;
var listName = nt ? $("span#ctl00_ContentBody_lbHeading").text() : "";
if (!nt || (nt && newTourFunction(listName)())){ // ggf. neue Tour
$.each(e.data.bLs, function(i, v) {
var bookmarkLine = $("td", v);
var entry = getEntryFromBookmarkTd(bookmarkLine);
if ( (entry) && (!ck || (ck && entry.checked)) ){
addElementFunction(entry.id, entry.guid, entry.name, entry.image)();
}
});
}
};
// buttons to add all caches in list to current and new tour
$("<div>",{
"css": { "margin": '10px 0 10px 0' },
html: $.gctour.lang('showCaches')
})
.append(
// button to add all caches in list to current tour
$("<button>", {
"css": { "margin": 10 },
"html": "<img src='" + $.gctour.img.addToTour + "'/>&nbsp;" + $.gctour.lang('addToCurrentTour')
})
.bind('click', {bLs: bookmarkLines, checkedOnly: false, newTour: false}, function(e){
e.preventDefault();
addEntryFromBookmark(e);
})
)
.append(
// button to add all caches in list to a new tour
$("<button>", {
"css": { "margin": 10 },
"html": "<img src='" + $.gctour.img.newTour + "'/>&nbsp;+&nbsp;<img src='" + $.gctour.img.addToTour + "'/>&nbsp;" + $.gctour.lang('addToNewTour')
})
.bind('click', {bLs: bookmarkLines, checkedOnly: false, newTour: true}, function(e){
e.preventDefault();
addEntryFromBookmark(e);
})
)
.appendTo('div#ctl00_ContentBody_ListInfo_uxAbuseReport');
// buttons to add all checked caches in list to current and new tour
$("<div>",{
"css": { 'margin': '2px 0 20px 0' },
html: $.gctour.lang('markedCaches')
})
.append(
// button to add all checked caches in list to current tour
$("<button>", {
"css": { 'margin-left': 10 },
"html": "<img src='" + $.gctour.img.addToTour + "'/>&nbsp;" + $.gctour.lang('addToCurrentTour')
})
.bind('click', {bLs: bookmarkLines, checkedOnly: true, newTour: false}, function(e){
e.preventDefault();
addEntryFromBookmark(e);
})
)
.append(
// button to add all checked caches in list to new tour
$("<button>", {
"css": { 'margin-left': 10 },
"html": "<img src='" + $.gctour.img.newTour + "'/>&nbsp;+&nbsp;<img src='" + $.gctour.img.addToTour + "'/>&nbsp;" + $.gctour.lang('addToNewTour')
})
.bind('click', {bLs: bookmarkLines, checkedOnly: true, newTour: true}, function(e){
e.preventDefault();
addEntryFromBookmark(e);
})
)
.insertBefore("input#ctl00_ContentBody_ListInfo_btnDownload");
}
// add the buttons to the search table
//~ var searchResultTable = document.getElementById('ctl00_ContentBody_dlResults');
//~ if(searchResultTable){
if(document.URL.search("\/seek\/nearest.aspx")>=0) {
var entry_i, entry;
var entries = getEntriesFromSearchpage();
// helper function
var addEntryFromSearchpage = function(e) {
var i, entry, entries;
var ck = e.data.checkedOnly || false;
var nt = e.data.newTour || false;
entries = getEntriesFromSearchpage();
if (!nt || (nt && newTourFunction()())){ // ggf. neue Tour
for(i = 0; i < entries.length; i++){
entry = entries[i];
if ( (entry) && (!ck || (ck && entry.checked)) ){ // alle oder nur ausgewählte
addElementFunction(entry.id,entry.guid,entry.name,entry.image.substring(entry.image.lastIndexOf("/")+1, entry.image.length))();
;
}
}
}
};
for(entry_i = 0; entry_i < entries.length; entry_i++){
entry = entries[entry_i];
$("<img>", {
"alt": $.gctour.lang('addToTour'),
"title": $.gctour.lang('addToTour'),
"src": $.gctour.img.addToTour,
"css": {
"cursor": "pointer",
"margin": "0 5px 0 0"
}
})
.bind('click', {entry: entry}, function(e){
addElementFunction(e.data.entry.id, e.data.entry.guid, e.data.entry.name, e.data.entry.image.substring(e.data.entry.image.lastIndexOf("/")+1, e.data.entry.image.length))();
})
.appendTo(entry.addBtnPosition);
}
// buttons to add all caches in list to current and new tour
$("<div>",{
"css": { "margin": '10px 0 10px 0' },
html: $.gctour.lang('showCaches')
})
.append(
// button to add show caches in list to current tour
$("<button>", {
"css": { "margin-left": 10 },
"html": "<img src='" + $.gctour.img.addToTour + "'/>&nbsp;" + $.gctour.lang('addToCurrentTour')
})
.bind('click', {checkedOnly:false, newTour:false}, function(e){
e.preventDefault();
addEntryFromSearchpage(e);
})
)
.append(
// button to add show caches in list to new tour
$("<button>", {
"css": { "margin-left": 10 },
"html": "<img src='" + $.gctour.img.newTour + "'/>&nbsp;+&nbsp;<img src='" + $.gctour.img.addToTour + "'/>&nbsp;" + $.gctour.lang('addToNewTour')
})
.bind('click', {checkedOnly:false, newTour:true}, function(e){
e.preventDefault();
addEntryFromSearchpage(e);
})
)
.prependTo("div#ctl00_ContentBody_ResultsPanel");
if(DEBUG_MODE){
$("<div>", {
"css": { "margin-left": 10 },
"html": "Test 'getEntriesFromSearchPage'!"
})
.bind('click', function(e){
getEntriesFromSearchpage();
})
.prependTo("div#ctl00_ContentBody_ResultsPanel");
}
//
// buttons to add all checked caches in list to current and new tour
$("<div>",{
"css": { 'margin': '2px 0 20px 0' },
html: $.gctour.lang('markedCaches')
})
.append(
// button to add all checked caches in list to current tour
$("<button>", {
"css": { 'margin-left': 10 },
"html": "<img src='" + $.gctour.img.addToTour + "'/>&nbsp;" + $.gctour.lang('addToCurrentTour')
})
.bind('click', {checkedOnly:true, newTour:false}, function(e){
e.preventDefault();
addEntryFromSearchpage(e);
})
)
.append(
// button to add all checked caches in list to new tour
$("<button>", {
"css": { 'margin-left': 10 },
"html": "<img src='" + $.gctour.img.newTour + "'/>&nbsp;+&nbsp;<img src='" + $.gctour.img.addToTour + "'/>&nbsp;" + $.gctour.lang('addToNewTour')
})
.bind('click', {checkedOnly:true, newTour:true}, function(e){
e.preventDefault();
addEntryFromSearchpage(e);
})
)
.insertAfter($('table.SearchResultsTable:first').next('table'));
}
// dont display the list on the sendtogpx page
if(document.URL.search("sendtogps.aspx")<=0) {
initComponents();
// add the button to the details page
if(document.URL.search("cache_details.aspx")>=0) {
initButton();
}
window.setTimeout(function(){ // wichtig da die MAP Seite verzögert gestartet wird
var userLink = $('p.CommonProfileWidget, p.SignedInText, header').find('a[href*="/my/"]:visible:first'); // default, Challenges + Account + Membership
if (userLink) {
userName = userLink.text().trim();
debug("Username: " + userName);
} else {
debug("Username not found");
}
}, 0);
if (DEBUG_MODE && console && console.timeEnd) {
console.timeEnd('gcTour load time');
}
}
}
/* END init() */
function initButton(){
// if we are on a cache page the buttonGroup != null - so add the 'to tour'-button
var cacheControl = $("div.CacheInformationTable:first");
if (cacheControl.length > 0){
var div_element = createElement('div',{style:"border-top: 1px solid rgb(192, 206, 227);"});
cacheControl.append(div_element);
var gcTourFieldset = createElement('fieldset',{style:"background-color: #EFF4F9;border-color: #C0CEE3 !important;margin-top:0;padding: 0.5em;"});
append(gcTourFieldset,div_element);
gcTourFieldset.setAttribute('class','dialogFooter');
gcTourFieldset.innerHTML = "<legend class='note' style='background:url(\""+$.gctour.img.gctourLogoSmall+"\") no-repeat scroll 0 0 transparent;padding-left:20px;'>GCTour</legend>";
var newButton = createElement('input',{type:"button",value:$.gctour.lang('addToTour'),style:"float:left;background-image:url("+$.gctour.img.addToTour+")"});
append(newButton,gcTourFieldset);
newButton.setAttribute('onclick','return false;');
//~ var newButton = document.createElement("button");
//~ newButton.name = 'btnGPXDL';
//~ newButton.type = 'submit';
//~ newButton.innerHTML = "<img src='"+$.gctour.img.addToTour+"'/>&nbsp;"+$.gctour.lang('addToTour');
//~ newButton.id = 'btnGPXDL';
// locate the values and save it
var minimal_geocache = getMinimalGeocacheDetails(document.getElementsByTagName('html')[0]);
var cacheId = minimal_geocache.gccode;
var guidId = minimal_geocache.guid;
var cacheName = minimal_geocache.name;
var cacheTypeImage = minimal_geocache.type;
// on click add an element
newButton.addEventListener('click', addElementFunction(cacheId,guidId,cacheName,cacheTypeImage), false);
// add it to the group
//~ append(newButton,add_button)
//~ append(newButton,gcTourFieldset)
// make direct print button
newButton = createElement('input',{type:"button",value:$.gctour.lang('directPrint'),style:"float:left;background-image:url("+$.gctour.img.printer+")"});append(newButton,gcTourFieldset);
newButton.setAttribute('onclick','return false;');
// on click add an element
newButton.addEventListener('click', function(){
var entry = {};
entry.id = cacheId;
entry.name = cacheName;
entry.guid = guidId;
entry.image = 'http://www.geocaching.com/images/WptTypes/sm/'+cacheTypeImage;
temp_tour = {};
temp_tour.name = entry.name;
temp_tour.geocaches = new Array(entry);
printPageFunction(temp_tour)();
}, false);
append(newButton,gcTourFieldset);
// change coordinates
newButton = createElement('input',{type:"button",value:$.gctour.lang('moveGeocache'),style:"float:left;background-image:url(http://www.geocaching.com/images/icons/coord_update.gif)"});append(newButton,gcTourFieldset);
newButton.setAttribute('onclick','return false;');
newButton.addEventListener('click', openChangeCoordinates, false);
append(newButton,gcTourFieldset);
// update the coordinates if it is already changed:
if(GM_getValue('coords_'+cacheId,"null") != "null"){
var coords_cacheId = GM_getValue('coords_'+cacheId);
changeCoordinates(new LatLon(coords_cacheId.split('#')[0], coords_cacheId.split('#')[1]).toString());
}
}
}
// the tour list under main navigation
function initComponents(){
// gcTour Button +++++++++++++++++++++++++++++++++++
$("<div>",{
id: "gctourButtonWrapper",
"class": "header gctour-grand-default",
"html":
$("<img>", {
"src": $.gctour.img.gctourLogoSmall
})
})
.hover(
function(){
$(this).addClass('gctour-grand-hover');
$("#gctourContainer").animate({
left: 0
}, 500 );
},
function(){ $(this).removeClass('gctour-grand-hover'); }
)
.appendTo("body");
// gcTour Container +++++++++++++++++++++++++++++++++++
$("<div>", {
id: "gctourContainer",
"css": {
left: (sticky) ? 0 : -210
}
})
.hover(
function(){
clearTimeout(timeout);
},
function(){
if(!sticky){
timeout = setTimeout(function(){
$("#gctourContainer").animate({
left: -210
}, 500 );
}, 1000);
}
}
)
.appendTo("body");
var $geocacheList = $('<div>',{
id: "gctour_geocacheList",
"css": {
overflow: 'auto',
height: '80%',
width: '100%'
},
"html":
$('<ul>',{
id: "cacheList",
'class': 'cachelist'
})
.sortable({
axis: 'y',
placeholder: 'ui-sortable-placeholder',
opacity: 0.8,
revert: true,
start: function(e, ui) {
// save old position
$(this).data('old-pos', ui.item.index());
},
stop: function(e, ui){
// init
var newPos = ui.item.index();
var oldPos = $(this).data('old-pos');
$(this).removeData('old-pos');
debug("Drag n Drop in progress:\n" +
"\tMove " + currentTour.geocaches[oldPos].id + "(=" + ui.item.attr('id') + ") from '" + oldPos + "' to '" + newPos + "'");
// ignore the same position
if (oldPos === newPos) { return; }
// determine positions
var insertPos = (oldPos > newPos) ? newPos : newPos + 1;
var removePos = (oldPos < newPos) ? oldPos : oldPos + 1;
// changing the position
currentTour.geocaches.splice(insertPos, 0, currentTour.geocaches[oldPos]);
currentTour.geocaches.splice(removePos, 1);
// ... and save the new tour object
setTimeout(function() { // hack to prevent "access violation" from Greasemonkey
saveCurrentTour();
}, 0);
return;
}
})
.disableSelection()
});
var webcodelink = GCTOUR_HOST+'/tour/'+$.trim(currentTour.webcode);
var $tourHeader = $("<div>",{
id: "gctour_tourHeader",
"css": {
},
"html": '<img id="inconsistentTour" src="'+$.gctour.img.danger+'" style="float:right;padding:3px;display:none"/>' +
'<u id="tourName">'+currentTour.name +'</u>&nbsp;<span style="font-size:66%" id="cachecount">('+currentTour.geocaches.length+')</span>' +
'<span id="webcode" style="display:'+ ((!currentTour.webcode) ? "none" : "inline") + ';"><br/>'+
'Webcode: <b><a href="'+webcodelink+'" title="'+$.gctour.lang('makeMap')+'" target="_blank">'+currentTour.webcode+'</a></b>&nbsp;</span><br/>'
});
$tourHeader.append(
// rename
$('<img>', {
'class': 'tourImage',
src: $.gctour.img.edit,
title: $.gctour.lang('rename'),
alt : $.gctour.lang('rename'),
click: function(){
var newTourName = prompt($.gctour.lang('newTourDialog'), currentTour.name);
if(!newTourName) { return; }
currentTour.name = newTourName;
saveCurrentTour();
updateTour();
}
}),
// print
$('<img>', {
'class': 'tourImage',
src: $.gctour.img.printer,
title: $.gctour.lang('printview'),
alt : $.gctour.lang('printview'),
click: function(){
printPageFunction(currentTour)();
}
}),
// sendGPS
$('<img>', {
'class': 'tourImage',
src: $.gctour.img.sendGPS,
title: $.gctour.lang('sendToGps'),
alt : $.gctour.lang('sendToGps'),
click: function(){
openSend2GpsDialog();
}
}),
// downloadGPX
$('<img>', {
'class': 'tourImage',
src: $.gctour.img.downloadGPX,
title: $.gctour.lang('downloadGpx'),
alt : $.gctour.lang('downloadGpx'),
click: function(){
downloadGPXFunction()();
}
}),
// send2cgeo
$('<img>', {
'class': 'tourImage',
src: $.gctour.img.send2cgeo,
title: $.gctour.lang('send2cgeo'),
alt : $.gctour.lang('send2cgeo'),
'style' : (DEBUG_MODE) ? '' : 'display:none;', // Testphase
click: function(){
openGcTour2cgeoDialog();
}
}),
// makeMap
$('<img>', {
'class': 'tourImage',
src: $.gctour.img.map,
title: $.gctour.lang('makeMap'),
alt : $.gctour.lang('makeMap'),
click: function(){
makeMapFunction();
}
}),
// uploadTour
$('<img>', {
'class': 'tourImage',
src: $.gctour.img.upload,
title: $.gctour.lang('upload'),
alt : $.gctour.lang('upload'),
click: function(){
uploadTourFunction(currentTour.id)();
}
}),
// addWaypoint
$('<img>', {
'class': 'tourImage',
src: $.gctour.img.plus,
title: $.gctour.lang('addOwnWaypoint'),
alt : $.gctour.lang('addOwnWaypoint'),
click: function(){
showNewMarkerDialog();
}
}),
// deleteTour
$('<img>', {
id: 'gctourDeleteButton',
'class': 'tourImage',
src: $.gctour.img.del,
title: $.gctour.lang('removeTour'),
alt : $.gctour.lang('removeTour'),
css: {'display' : (tours.length <= 1) ? 'none' : 'inline'},
click: function(){
deleteCurrentTour();
}
})
).find("img.tourImage").addShadowEffect().addOpacityEffect();
var $toolbar = $("<div>", {
id: "gctour_toolbar",
"css": {
height: 20,
'-moz-user-select': "none"
}
});
$toolbar.append(
// newTourButton
$('<img>', {
'class': 'tourImage',
src: $.gctour.img.newTour,
title: $.gctour.lang('newList'),
alt : $.gctour.lang('newList'),
click: function(){
newTourFunction()();
}
}),
// toggleTourListButton
$('<img>', {
'class': 'tourImage',
src: $.gctour.img.openTour,
title: $.gctour.lang('openTour'),
alt : $.gctour.lang('openTour'),
click: function(){
openTourDialog();
}
}),
// downloadButton
$('<img>', {
'class': 'tourImage',
src: $.gctour.img.download,
title: $.gctour.lang('onlineTour'),
alt : $.gctour.lang('onlineTour'),
click: function(){
downloadTourDialog();
//~ var webcode = window.prompt($.gctour.lang('webcodePrompt'));
//~ if(webcode && $.trim(webcode) != ""){
//~ downloadTourFunction(webcode);
//~ }
}
}),
// autoTourButton
$('<img>', {
'class': 'tourImage',
src: $.gctour.img.autoTour,
title: $.gctour.lang('autoTour.title'),
alt : $.gctour.lang('autoTour.title'),
click: function(){
var gooMap = getMapCenterAndRadius();
showAutoTourDialog(gooMap.center, gooMap.radius);
}
}),
// toggleSettingsButton
$('<img>', {
'class': 'tourImage',
src: $.gctour.img.settings,
title: $.gctour.lang('showSettings'),
alt : $.gctour.lang('showSettings'),
click: function(){
openSettingsDialog();
}
}),
// sendMessageButton
$('<img>', {
'class': 'tourImage',
src: $.gctour.img.sendMessage,
title: $.gctour.lang('dlg.sendMessage.caption'),
alt : $.gctour.lang('dlg.sendMessage.caption'),
click: function(){
sendMessageDialog();
}
})
);
var $header = $("<div>",{
id: "gctour_header",
"class": "header gctour-grand-default" + ((sticky) ? " gctour-grand-hover" : ""),
"css": {
height: 40,
'cursor': "pointer",
'-moz-user-select': "none"
},
"html": "<img src='"+$.gctour.img.gctourLogo+"' style='margin: 6px 0 0 6px;'/>" +
"<img id='gcTourPin' style='float:right;margin: 6px 2px 0 0;' src='" + ((sticky) ? $.gctour.img.pinned : $.gctour.img.pin) + "'>",
click: function(e) {
sticky = !sticky;
GM_setValue('sticky', sticky);
$("img#gcTourPin").attr("src", ((sticky) ? $.gctour.img.pinned : $.gctour.img.pin) );
}
})
.hover(
function(){ $(this).addClass('gctour-grand-hover'); },
function(){
if (!sticky) {
$(this).removeClass('gctour-grand-hover');
}
}
);
var $footer = $('<div>',{
id: "gctour_footer",
"css":{
position: "absolute",
bottom: 0,
"font-size": "75%",
width: "100%",
height: 14
},
"html":
$("<div>",{
"css": {
'width': '100%'
}
}).append(
$("<a>",{
"css": {
'padding-left': 5
},
href: 'http://gctour.madd.in',
title: 'http://gctour.madd.in',
text: 'http://gctour.madd.in'
})
.click(function(){
window.open(this.href);
return false;
})
).append(
$("<div>", {
"css": {
'float': 'right',
'margin-right': 5
},
"html": "v "+ VERSION + "." + BUILD
})
)
});
$("#gctourContainer").append(
$header,
$toolbar,
$tourHeader,
$geocacheList,
$footer
);
// popultate the current list on load
for (var i = 0; i < currentTour.geocaches.length; i++){
addNewTableCell(currentTour.geocaches[i],false);
}
if(currentTour.geocaches.length <= 0){
var table = document.getElementById('cacheList');
table.innerHTML = $.gctour.lang('emptyList');
}
//finally: set new heights and layout!
handleResize();
}
function addCacheToTourFromMap(cacheUrl){ // old Map only
var req = new XMLHttpRequest();
var myUrl = cacheUrl;
//var myUrl = 'http://www.geocaching.com/seek/cdpf.aspx?guid='+currentTour.geocaches[i].guid;
req.open("GET", myUrl, false);
req.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded; charset=UTF-8');
// execute the request synchron
req.send(null);
// after execution parse the result
var responseDetails = req;
var cacheDetails = document.createElement('div');
cacheDetails.innerHTML = responseDetails.responseText;
var minimal_geocache = getMinimalGeocacheDetails(cacheDetails);
addElementFunction(minimal_geocache.gccode,minimal_geocache.guid,minimal_geocache.name,minimal_geocache.type)();
}
function getEntryFromBookmarkTd(bmLine){
/*
http://code.google.com/p/gctour/issues/detail?id=31
noPremiumMember - Tabellenstruktur
1. checkbox
2. Richtung und Entfernung
3. GC Code
4. Cache Name
5. "extra Feld"
premiumMember - Tabellenstruktur
1. checkbox...
2. Richtung und Entfernung
3. Found
4. GC Code
5. Cache Name
6. "extra Feld"
*/
var entry = {},
colID = 2, // default column CacheID = noPremiumMember
nameSpan = $("span", bmLine.eq(colID)).eq(0);
if ( bmLine.eq(2).text().length == 0 ) {
colID++; // premiumMember
}
entry.id = $.trim(bmLine.eq(colID).text());
entry.name = (nameSpan.length > 0) ? nameSpan.parent().html().replace(/<img.*?>/,"") : $.trim(bmLine.eq(colID+1).text());
entry.guid = bmLine.eq(colID+1).find('a:first').attr("href").split('guid=')[1];
entry.image = bmLine.eq(colID+1).find('img:first').attr('src').split("/")[6];
entry.checked = bmLine.eq(0).find("input:checkbox:first").is(':checked');
debug("Bookmarklist cache row" +
"\n id: '" + entry.id + "'" +
"\n Name: '" + entry.name + "'" +
"\n Guid: '" + entry.guid + "'" +
"\n image: '" + entry.image + "'" +
"\n checked: '" + entry.checked + "'"
);
return entry;
}
// Searchpage http://www.geocaching.com/seek/nearest.aspx
// ToDo: erweitern um autoTour wieder lauffähig zu bekommen
function getEntriesFromSearchpage(){
// Data Rows without header and without GCVote tr
// <tr class="SolidRow Data BorderTop"> and
// <tr class="AlternatingRow Data BorderTop">
var q = $("table.SearchResultsTable tbody tr.Data");
var entries = [];
entries = q.map(function() {
// ToDo: in 099... bei process autoTour ~ Zeile 172 fast gleich ~~ beide zusammenlegen ?!
var entryTds = $(this).find('td');
var entry = {};
var lnk, checkbox, dt;
// RegEx gc-id
entryTds.eq(5).find("span").eq(1).text().search(/\|\s*GC(\S{2,9})\s*\|/);
entry.id = "GC" + RegExp.$1;
lnk = entryTds.eq(5).find("a.lnk:first");
entry.name = $.trim(lnk.text());
entry.available = (lnk.css('text-decoration') !== "line-through");
//~ alert(entryTds.html());
entry.guid = entryTds.eq(4).find("a:first").attr("href").split('guid=')[1];
entry.image = entryTds.eq(4).find("img:first").attr("src").replace(/wpttypes\//, "WptTypes/sm/");
//entry.type = entry.image.split("/")[6].split(".")[0];
entry.type = entry.image.substring(entry.image.lastIndexOf("/")+1, entry.image.lastIndexOf(".")); // von / bis .
// type Korrektur
entry.type = (entry.type == "earthcache") ? 137 : entry.type;
//entry.type = (entry.type == "mega") ? 453 : entry.type;
entry.pm_only = (entryTds.eq(6).find("img[src$='premium_only.png']").length > 0);
dt = $.trim(entryTds.eq(7).find('img[src*="/images/icons/container/"]:first').closest('td').find('span.small').text());
entry.difficulty = dt.split("/")[0];
entry.terrain = dt.split("/")[1];
entry.size = $.trim(entryTds.eq(7).find('img[src*="/images/icons/container/"]:first').attr("src").split("/")[4].split(".")[0]);
entry.addBtnPosition = entryTds.eq(10);
entry.checked = entryTds.eq(0).find("input:checkbox:first").is(':checked');
entry.favorites = entryTds.eq(2).find("span[id$='FavoritesValue']").text();
debug(
"getEntriesFromSearchpage cache row: " + "\n" +
"\tid:\t\t" + entry.id + "\n" +
"\tname:\t\t" + entry.name + "\n" +
"\tguid:\t\t" + entry.guid + "\n" +
"\tavailable:\t" + entry.available + "\n" +
"\timage:\t\t" + entry.image + "\n" +
"\tsize:\t\t" + entry.size + "\n" +
"\ttype:\t\t" + entry.type + "\n" +
"\tdifficulty:\t" + entry.difficulty + "\n" +
"\tterrain:\t" + entry.terrain + "\n" +
"\tfavorites:\t" + entry.favorites + "\n" +
"\tpm_only:\t" + entry.pm_only + "\n" +
"\tchecked:\t" + entry.checked + "\n"
);
return entry;
}).get();
return entries;
}
// is logged = true : false
function isLogedIn(){
if(userName){
return true;
} else {
alert($.gctour.lang('notLogedIn'));
return false;
}
}
// list is not empty = true : false
function isNotEmptyList(){
if(currentTour.geocaches.length > 0){
return true;
} else {
alert($.gctour.lang('emptyList'));
return false;
}
}
function showGeocacheNotification(geocache,event){
if(event.type == "success"){
$.gctour.notification.add({
title: $.gctour.lang('notifications.addgeocache.success.caption').format(geocache.id),
text: $.gctour.lang('notifications.addgeocache.success.content').format(currentTour.name,geocache.name),
icon: "http://www.geocaching.com/images/WptTypes/sm/"+geocache.image,
style: "green"
});
} else if(event.type == "contains"){
$.gctour.notification.add({
title: $.gctour.lang('notifications.addgeocache.contains.caption').format(geocache.id),
text: $.gctour.lang('notifications.addgeocache.contains.content').format(currentTour.name,geocache.name),
icon: "http://www.geocaching.com/images/WptTypes/sm/"+geocache.image,
style: "yellow"
});
} else {
$.gctour.notification.add({title:"ERROR",text:"Event '"+event+"' is not supported!",style:"red"});
}
return;
/*
var popup = $("<div>", {
"class": "gct_popup gctourContainer"
}).appendTo("body");
popup.html("<div class='gctour-grand-default gct_popup_header'>"+geocache.name+"</div>");
//getting height and width of the message box
var height = popup.height();
var width = popup.width();
//calculating offset for displaying popup message
leftVal=event.pageX-(width/2)+"px";
topVal=event.pageY-(height/2)+"px";
//show the popup message and hide with fading effect
// popup.css({left:leftVal,top:topVal}).show().fadeOut(1500);
popup.css({left:leftVal,top:topVal});
setTimeout(function() {popup.fadeOut("slow");}, 1000 );
*/
}
function handleResize(e) {
// Change the height of the container and Cache List
var container = $(window).height() - 55,
header = $("#gctourContainer #gctour_header").height(), // 40
toolbar = $("#gctourContainer #gctour_toolbar").height(), // 20;
tourheader = $("#gctourContainer #gctour_tourHeader").height(),
footer = $("#gctourContainer #gctour_footer").height(), // 14;
minus = header + toolbar + tourheader + footer,
cachelist = container - minus;
// set the container height
$('#gctourContainer').css("height", container );
// set the cachelist height
$('#cacheList').parent().css("height", cachelist );
log(
"handleResize change height:\n" +
"\tcontainer: " + container + "\n" +
"\theader: " + header + "\n" +
"\ttoolbar: " + toolbar + "\n" +
"\ttourheader: " + tourheader + "\n" +
"\tfooter: " + footer + "\n" +
"\t => cachelist: " + cachelist
)
}
function updateGUI(){
var cacheList, i, table;
// update the cache count
updateCacheCount(currentTour.geocaches.length);
// update tourName
$("#tourName").html(currentTour.name);
// update webcode
var webcode = $("#webcode");
if(currentTour.webcode){
webcode
.find("a:first")
.attr('href', GCTOUR_HOST+'/tour/'+$.trim(currentTour.webcode))
.text(currentTour.webcode)
.end()
.show();
} else {
webcode.hide();
}
cacheList = $('#cacheList');
cacheList.html("");
// popultate the current list on load
for (i = 0; i < currentTour.geocaches.length; i++){
addNewTableCell( currentTour.geocaches[i], false );
}
if(currentTour.geocaches.length <= 0){
cacheList.html($.gctour.lang('emptyList'));
}
handleResize();
var deleteButton = $('#gctourDeleteButton');
if(tours.length == 1 && deleteButton){
deleteButton.hide();
} else {
deleteButton.show();
}
}
// ToDo: switch to $.fn.addOpacityEffects
var addOpacityEffects = function(elem) {
$(elem)
.css({opacity: "1"})
.bind({
mouseenter: function() {
$(this).stop().animate({opacity:'0.4'},200);
},
mouseleave: function() {
$(this).stop().animate({opacity:'1'},300);
}
});
};
function addClickEffect(element){return function(){ element.style.background = '#a9b2bf';}; }
function removeClickEffect(element){return function(){element.style.background = '#cdd8e8';}; }
function addHoverEffect(element){return function(){element.style.margin = '0px';element.style.border = '1px solid lightgray';element.style.background = '#cdd8e8';}; }
function removeHoverEffect(element){return function(){element.style.margin = '1px';element.style.border = '0px solid lightgray';element.style.background = '';}; }
function addHoverEffects(element){
element.addEventListener('mouseover', addHoverEffect(element),false);
element.addEventListener('mouseout', removeHoverEffect(element),false);
element.addEventListener('mousedown', addClickEffect(element),false);
element.addEventListener('mouseup', removeClickEffect(element),false);
element.style.margin = '1px';
}
function openSend2GpsFunctionLocal(){
return function(){
var url = 'https://www.geocaching.com/seek/sendtogps.aspx?guid=9d2b4990-7222-4b1c-8062-8b753af24ac5&tour=true',
h = (GM_getValue('showGpx',false)) ? 610 : 280;
conf = 'width=425,height=' + h +',toolbar=no,menubar=no,scrollbars=no,resizable=no,location=yes,directories=no,status=no';
if(isLogedIn() && isNotEmptyList()){
window.open(url, 's2gps', config=conf);
}
};
}
function downloadGPXFunction(){
//return false;
return function(){
var gpxForm, nameInput, contentArea, tourName, currentDate, currentDateString, dummyString;
if(isLogedIn() && isNotEmptyList()){
// add progressbar while loading
addProgressbar();
gpxForm = document.createElement('form');
gpxForm.setAttribute('style','display:;');
gpxForm.action = 'http://gc.madd.in/gm/download2.php';
gpxForm.id="gpxForm";
gpxForm.method = 'post';
nameInput = document.createElement('input');nameInput.type = 'hidden';gpxForm.appendChild(nameInput);
nameInput.name = 'name';
contentArea = document.createElement('textarea');gpxForm.appendChild(contentArea);
contentArea.name = 'content';
tourName = currentTour.name.replace(/\s+/g,"_").replace(/[^A-Za-z0-9_]*/g,"");
currentDate = new Date();
currentDateString = currentDate.getFullYear()+"-"+(currentDate.getMonth()+1)+"-"+currentDate.getDate()+"_"+currentDate.getHours()+"-"+currentDate.getMinutes()+"-"+currentDate.getSeconds();
nameInput.value = 'GCTour.'+tourName+'.'+currentDateString+'.gpx';
try {
dummyString = getGPX();
//iff the cancel button is pressed the dummyString just contain canceled
if(dummyString == "canceled"){
closeOverlay();
return;
}
contentArea.innerHTML = encodeURIComponent(dummyString);
document.body.appendChild(gpxForm);
document.getElementById('gpxForm').submit();
document.body.removeChild(gpxForm);
// all done - remove the overlay
closeOverlay();
} catch (e) {
addErrorDialog({caption:"GPX error", _exception:e});
}
}
};
}
function sendToGPS(){
var dataStringElement, tourName, d, currentDateString;
// add the overlay while loading
addProgressbar();
// fix width and height of the header
$("div#dialogBody").find("h1").css({
width: 486,
height: 14
});
// first time send to GPS is clicked: Accept the License
var accept_input = document.getElementById('chkAccept');
if(accept_input){
accept_input.checked = "checked";
document.getElementById('btnSubmit').click();
return;
}
// change ALWAYS to Garmin
var garmin_tab = document.getElementById('uxGPSProviderTabsn2');
if(garmin_tab.getElementsByTagName('table')[0].className != "Selected"){
unsafeWindow.__doPostBack('uxGPSProviderTabs','2');
return;
}
$('#uxGPSProviderTabs').html("<tbody><tr><td>GCTOUR: GARMIN ONLY</td></tr></tbody>");
$('#premiumUpsellMessage').remove();
try{
dataStringElement = document.getElementById('dataString');
dataStringElement.value = $.gctour.lang('pleaseWait');
dataStringElement.value = getGPX();
tourName = currentTour.name.replace(/\s+/g,"_").replace(/[^A-Za-z0-9_]*/g,"");
d = new Date();
currentDateString = d.getFullYear() + "-" + (d.getMonth() + 1) + "-" + d.getDate() +
"_" + d.getHours() + "-" + d.getMinutes() + "-" + d.getSeconds();
$('#cacheID').val('GCTour.' + tourName + '.' + currentDateString + '.gpx');
// all done - remove the overlay
closeOverlay();
}catch (e){
addErrorDialog({caption:"Send to GPSr error", _exception:e});
}
}
function getMapGeocache(gcid){
var geocache = getGeocache(gcid);
if(geocache !== "pm only"){
var mapCache = {};
mapCache.gcid = geocache.gcid;
mapCache.guid = geocache.guid;
mapCache.image = geocache.image;
mapCache.name = geocache.name;
mapCache.difficulty = geocache.difficulty;
mapCache.terrain = geocache.terrain;
mapCache.latitude = geocache.lat;
mapCache.longitude = geocache.lon;
// save additional waypoints
var additional_waypoints = geocache.additional_waypoints;
for(waypoint_i = 0 ; waypoint_i < additional_waypoints.length; waypoint_i++){
additional_waypoints[waypoint_i].note = "";
}
mapCache.additional_waypoints = additional_waypoints;
return mapCache;
}
}
function getMapMarker(markerId){
var position = getPositionsOfId(markerId),
marker = currentTour.geocaches[position];
marker.index = position;
return marker;
}
function uploadMap(markerObj,callback){
var jsonMap = JSON.stringify(markerObj).replace(/&/g," and ");// IMPORTANT! prevents critical errors in webapplication
post(GCTOUR_HOST+'/map/save', "map="+jsonMap,callback);
}
//BUG: Entlossschleife, wenn PMO-Cache in Tour ist und der Cache noch nicht auf Server liegt!
function makeMapFunction(){
var gcIds = [], wptIds = [], allIds = [], cache_i, result;
if(isLogedIn() && isNotEmptyList()){
// add the overlay while loading
addProgressbar({caption:$.gctour.lang('makeMapWait')});
for (cache_i = 0; cache_i < currentTour.geocaches.length; ++cache_i){
var marker = currentTour.geocaches[cache_i];
if(marker.id){
gcIds.push(marker.id);
allIds.push(marker.id);
} else if(marker.wptcode){
wptIds.push(marker.wptcode);
allIds.push(marker.wptcode);
}
}
debug("Map request (POST):"+GCTOUR_HOST+'/map/check');
post(GCTOUR_HOST+'/map/check/',"gcIds="+gcIds.join(",")+"&wptIds="+wptIds.join(","),function(response){
try{
result = JSON.parse(response);
if(result.missing_wptIds.length === 0 && result.missing_gcIds.length === 0){ // map is completly available in appengine
GM_openInTab(getMapUrl(allIds.join(","))+"#gui");
closeOverlay();
} else {
var geocaches = [];
var costumMarkers = [];
if(result.missing_gcIds.length > 0){
for (cache_i= 0; cache_i < result.missing_gcIds.length; cache_i++){
var temp = getMapGeocache(result.missing_gcIds[cache_i]);
if(temp){
geocaches.push(temp);
}
setProgress(cache_i,result.missing_gcIds.length+result.missing_wptIds.length-1,document);
}
}
if(result.missing_wptIds.length > 0){
for (cache_i = 0; cache_i < result.missing_wptIds.length; cache_i++){
costumMarkers.push(getMapMarker(result.missing_wptIds[cache_i]));
setProgress(cache_i + result.missing_gcIds.length,
result.missing_gcIds.length + result.missing_wptIds.length - 1,
document);
}
}
var cacheObject = {};
cacheObject.geocaches = geocaches;
cacheObject.costumMarkers = costumMarkers;
uploadMap(cacheObject, makeMapFunction);
}
} catch(e){addErrorDialog({caption:"Temporary map error", _exception:e});}
});
/*
get(GCTOUR_HOST+'/map/check/'+,
function(text){
var result = JSON.parse(text);
if(result.length < 1){ // map is completly available in appengine
GM_openInTab(getMapUrl(markerQuery.join(","))+"#gui");
closeOverlay();
} else {
try{
var geocaches = [];
var costumMarkers = [];
for ( var i= 0; i < result.length; i++){
var id = result[i];
if(id.indexOf("GC") === 0){
var mapCache = getMapGeocache(id);
if(mapCache){
geocaches.push(mapCache);
}
} else {
costumMarkers.push(getMapMarker(id));
}
setProgress(i,result.length,document);
}
var cacheObject = {};
cacheObject.geocaches = geocaches;
cacheObject.costumMarkers = costumMarkers;
uploadMap(cacheObject, makeMapFunction);
} catch(e){addErrorDialog({caption:"Make map error", _exception:e});}
}
}
);*/
}
}
function upload(tour){
if( !tour.password){ // vllt doch mit !tour.uuid || ????
//~ var pw = prompt("passwort");
//~ if(!pw){
//~ closeOverlay();
//~ return;
//~ }
//~ tour.password = pw;
tour.password = "not yet implemented";
upload(tour);
} else {
// maybe there are more CHARS than only '&'!
var jsonTour = JSON.stringify(tour).replace(/&/g," and ");// IMPORTANT! prevents critical errors in webapplication
post(GCTOUR_HOST+'/tour/save', "tour="+jsonTour,
function(text){
try{
var tourServer = JSON.parse(text);
// after an error you get this result, eg:
// {"message":"wrong password","type":"error"}
// only if the result is a message
if(tourServer.message && tourServer.type == "error"){
var pw = prompt("falsches Passwort - bitte richtiges eingeben"); // TODO !!! LANGUAGES!!
//if pw is empty or dialog closed
if(!pw){
closeOverlay();
return;
}
tour.password = pw;
upload(tour);
} else if (tourServer.message && tourServer.type == "info"){
alert(tourServer.message);
closeOverlay();
} else { // result is a tour and could be saved - all done
// remaind to local id!!
tourServer.id = tour.id;
// and the password
tourServer.password = tour.password;
currentTour = tourServer;
saveCurrentTour();
checkOnlineConsistent(currentTour);
updateTour();
closeOverlay();
var codeString = $.gctour.lang('tourUploaded1')+currentTour.webcode+$.gctour.lang('tourUploaded2');
alert(codeString);
}
}catch(e){addErrorDialog({caption:"Upload online tour error", _exception:e});}
}
);
}
}
function uploadTourFunction(id){
return function(){
var i, geocaches, cache_i, costumMarker, geocache, mapCache, waypoint_i, codeString, costumMarkers;
if(isLogedIn() && isNotEmptyList()){
try{
for (i = 0; i < tours.length; i++){
if(tours[i].id == id){
// add the overlay while loading
addProgressbar();
if (GM_getValue('uploadMap',true)){ // TODO - upload Map noch gewünscht?
//create the overview map
geocaches = [];
costumMarkers = [];
for (cache_i = 0; cache_i < tours[i].geocaches.length; ++cache_i){
if(GM_getValue("stopTask",false) && cache_i !== 0){
GM_setValue("stopTask",false);
closeOverlay();
break;
} else if (GM_getValue("stopTask",false) && cache_i === 0 ) {
GM_setValue("stopTask",false);
}
costumMarker = (typeof(tours[i].geocaches[cache_i].latitude) != "undefined");
if(!costumMarker){
mapCache = getMapGeocache(tours[i].geocaches[cache_i].id);
if(mapCache){
geocaches.push(mapCache);
}
} else {
var cm = tours[i].geocaches[cache_i];
cm.index = cache_i;
costumMarkers.push(cm);
}
setProgress(cache_i,tours[i].geocaches.length,document);
}
}
// create request
var tourObject = currentTour;
tourObject.geocaches = geocaches;
tourObject.costumMarkers = costumMarkers;
tourObject.password = currentTour.password;
upload(tourObject);
break;
}
}
} catch(e){addErrorDialog({caption:"Upload tour error", _exception:e});}
}
};
}
function openSend2GpsDialog(){
if(isLogedIn() && isNotEmptyList()){
var overlay= getOverlay({caption:"Send to GPS"});
overlay.innerHTML = "<iframe src='https://www.geocaching.com/seek/sendtogps.aspx?guid=9d2b4990-7222-4b1c-8062-8b753af24ac5&tour=1' width='450px' height='350' scrolling='no' marginheight='0' marginwidth='0' frameborder='0'></iframe>";
}
}
function openSettingsDialog(){
var settings = new Settings();
settings.show();
}
function sendMessageDialog(){
if(isLogedIn()){
var overLay = getOverlay({caption:$.gctour.lang('dlg.sendMessage.caption'),minimized:true});
overLay.innerHTML = '<form style="clear:both" method="POST" action="'+GCTOUR_HOST+'/mail/gccom">'+
$.gctour.lang('dlg.sendMessage.content')+'<br/>'+
'<input type="hidden" name="redir" value='+window.location+'>'+
'<input type="hidden" name="user" value='+userName+'>'+
'<textarea rows="10" style="width:99%" name="message"></textarea>'+
'<br/>'+$.gctour.lang('dlg.sendMessage.response')+'<input type="text" name="responsemail"><br/>'+
'<div class="dialogFooter"><input style="background-image:url('+$.gctour.img.sendMessage+')" type="submit" name="send" value="'+$.gctour.lang('dlg.sendMessage.submit')+'"></input></div>'+
'</form>';
}
}
function populateTours(){
var tour, tourListLi, tourLink, tourIt;
var tourList = $('#dialogListContainer');
tourList.html("");
var tourListUl = $('<ul>', {
"class": "dialogList"
});
tourList.append(tourListUl);
// construct tour list
for (tourIt = 0; tourIt < tours.length; tourIt++){
tour = tours[tourIt];
tourListLi = $('<li>', {
id: "tour" + tour.id
});
tourListUl.append(tourListLi);
tourLink = $('<a>',{
"css":{
"cursor": "pointer",
"font-size": 10,
"color": "#003399"
},
html: tour.name + "&nbsp;<small>(" + tour.geocaches.length + ")</small>"
})
.bind('click', {tour: tour}, function(e){
showCacheList(e.data.tour)();
});
// make the current Tour not clickable nor deletable!
if (tour.id == currentTour.id) {
//~ tourListLi.setAttribute("class", "activeTour");
tourLink.css({'font-weight' : 'bolder'});
} else {
var deleteButton = $('<img>',{
title: $.gctour.lang('removeTour'),
src: $.gctour.img.del,
"css": {
"cursor": 'pointer',
"margin-right": 3,
"float": 'right'
}
})
.bind('click', {tour: tour}, function(e){
deleteTourFunction(e.data.tour.id)();
});
tourListLi.append(deleteButton);
}
if (tour.webcode) {
var webImage = $('<img>',{
src: $.gctour.img.globeImage,
"css": {
"float": "left",
"margin-right": 3
}
});
tourLink.append(webImage);
}
tourListLi.append(tourLink);
}
}
function showCacheList(tour){
return function(){
var cacheList = document.getElementById('dialogDetails');
cacheList.scrollTop=0;
cacheList.setAttribute("tourid", tour.id);
cacheList.innerHTML = "<u><b>"+tour.name+"</b>";
if(tour.webcode){
cacheList.innerHTML += "&nbsp;&nbsp;&nbsp;<i>Webcode: <a href='"+GCTOUR_HOST+"/tour/"+$.trim(tour.webcode)+"' title='"+$.gctour.lang('makeMap')+"' target='_blank'>"+tour.webcode+"</a></i>";
}
cacheList.innerHTML += "</u><br/>";
var copyButton = document.createElement('img');
copyButton.title = $.gctour.lang('copyTour');
copyButton.src = $.gctour.img.copy;
copyButton.style.cursor = 'pointer';
copyButton.style.marginRight = '5px';
copyButton.style.cssFloat = 'right';
copyButton.addEventListener('click',function(){
var newTour = JSON.parse(JSON.stringify(tour));
newTour.id = getNewTourId();
newTour.name = newTour.name + " - "+$.gctour.lang('copy');
tours.push(newTour);
log("Creating copy tour: "+newTour.id +" ; "+ newTour.name);
saveTour(newTour,true);
populateTours();
showCacheList(newTour)();
},false);
var deleteButton = document.createElement('img');
deleteButton.title = $.gctour.lang('removeTour');
deleteButton.src = $.gctour.img.del;
deleteButton.style.cursor = 'pointer';
deleteButton.style.marginRight = '5px';
deleteButton.style.cssFloat = 'right';
deleteButton.addEventListener('click',deleteTourFunction(tour.id), false);
var renameButton = document.createElement('img');
renameButton.src = $.gctour.img.edit;
renameButton.title = $.gctour.lang('rename');
renameButton.alt = $.gctour.lang('rename');
renameButton.style.cursor = 'pointer';
renameButton.style.marginRight = '5px';
renameButton.style.cssFloat = 'right';
renameButton.addEventListener('click',
function(){
var newTourName = prompt($.gctour.lang('newTourDialog'), tour.name);
if(!newTourName) { return; }
tour.name = newTourName;
saveTour(tour,true);
populateTours();
showCacheList(tour)();
},false);
if(tour.id != currentTour.id){
cacheList.insertBefore(deleteButton,cacheList.firstChild);
}
cacheList.insertBefore(renameButton,cacheList.firstChild);
cacheList.insertBefore(copyButton,cacheList.firstChild);
var cacheListUl = createElement('ul');
cacheListUl.setAttribute("class", "dialogList");
for (var cacheIt = 0; cacheIt<tour.geocaches.length; cacheIt++){
var geocache = tour.geocaches[cacheIt];
var cacheListLi = createElement('li',{style:"b"});append(cacheListLi,cacheListUl);
cacheListLi.innerHTML = "<img src='"+geocache.image+"' style='margin-left=10px'> "+geocache.name+"&nbsp;<small>("+((geocache.id !== undefined)?geocache.id:geocache.wptcode)+")</small>";
}
append(cacheListUl,cacheList);
// make loadButton available
var loadButton = document.getElementById('loadButton');
loadButton.value = "'"+tour.name+"' "+$.gctour.lang('load');
loadButton.removeAttribute('disabled');
// first remove all active tour css classes
$("ul.dialogList > li").removeClass("activeTour");
//and then set it to the clicked
$('#tour' + tour.id).addClass("activeTour");
};
}
function openTourDialog(){
var overLay = getOverlay({caption:$.gctour.lang('openTour')});
var tourList = createElement('div',{id:"dialogListContainer"});append(tourList,overLay);
var cacheList = createElement('div',{id:"dialogDetails"});append(cacheList,overLay);
populateTours();
// load,close buttons
var buttonsDiv = createElement('div',{style:"width:580px;position: absolute; bottom: 10px;"});append(buttonsDiv,overLay);
buttonsDiv.setAttribute('class','dialogFooter');
var closeButton = createElement('input',{type:"button",value:$.gctour.lang('cancel'),style:"background-image:url("+$.gctour.img.closebutton+")"});append(closeButton,buttonsDiv);
closeButton.addEventListener('click', closeOverlay, false);
var loadButton = createElement('input',{type:"button",value:$.gctour.lang('load'),disabled:"",id:"loadButton",style:"background-image:url("+$.gctour.img.openTour+")"});append(loadButton,buttonsDiv);
loadButton.addEventListener('click', function(){
var id = $("#dialogDetails").attr("tourid"); // ToDo: to $().data
loadTour(id)();
closeOverlay();
}, false);
// load currentTour
showCacheList(currentTour)();
loadButton.setAttribute("disabled","disabled");
}
function downloadTourFunction(webcode){
var details = {};
var onlineTour;
// 30c097a6, b5c082e3
// add the overlay while loading
addProgressbar();
details.method = 'GET';
//~ details.url = 'http://gctour.madd.in/query.php?crc='+ $.trim(webcode);
details.url = GCTOUR_HOST + '/tour/' + $.trim(webcode) + '/json';
details.onload = function(response) {
responseInfo(response);
var responseObject;
var booResponse = (response.status === 200); // only status 200
var booIsJson = isJSON(response.responseText); // is response json ?
if (!booResponse || !booIsJson) {
alert("webcode '" + webcode + "' could not be loaded.\n" +
response.status + ", " + response.statusText + ((booIsJson) ? "" : ", format is not valid"));
closeOverlay();
return false;
}
try{
responseObject = JSON.parse(response.responseText);
if (responseObject.type == "error" && responseObject.message == "no tour"){
alert($.gctour.lang('webcodeerror'));
} else if (responseObject.type == "oldtour"){
onlineTour = JSON.parse(responseObject.message);
onlineTour.id = getNewTourId();
tours.push(onlineTour);
saveCurrentTour();
log("Download of an old online tour successfull: " + onlineTour.id + " ; " + onlineTour.name);
alert("tour '" + onlineTour.name + "'\n" + $.gctour.lang('webcodesuccess') + "\n" + $.gctour.lang('webcodeOld'));
loadTour(onlineTour.id)();
} else {
onlineTour = responseObject;
onlineTour.id = getNewTourId();
tours.push(onlineTour);
saveCurrentTour();
alert("tour '" + onlineTour.name + "'\n" + $.gctour.lang('webcodesuccess'));
loadTour(onlineTour.id)();
}
closeOverlay();
} catch(e){
addErrorDialog({caption:"Download tour error", _exception:e});
}
};
GM_xmlhttpRequest(details);
}
function downloadTourDialog(){
var overlay= getOverlay({caption:$.gctour.lang('webcodeDownloadButton'),minimized:true});
var divEbene = createElement('div');append(divEbene,overlay);
divEbene.innerHTML = '<b>Webcode:</b>&nbsp;&nbsp;&nbsp;&nbsp;<input type="text" id="webcodeInput" style="width:300px;"><br/>'+$.gctour.lang('webcodeDownloadHelp');
divEbene = createElement('div');append(divEbene,overlay);
divEbene.setAttribute('class','dialogFooter');
var downloadButton = createElement('input',{type:"button",value:$.gctour.lang('webcodeDownloadButton'),style:"background-image:url("+$.gctour.img.download+")"});append(downloadButton,divEbene);
downloadButton.addEventListener('click',function(){
var webcode = $.trim($('#webcodeInput').val());
if (webcode == "") { return; }
downloadTourFunction(webcode);
},false);
}
/*
* BETA begin GcTour send2cgeo
*/
GM_addStyle(""+
"#gctour_send2cgeo_progressbar {"+
" margin: 2px 0;"+
"}"+
""+
".hide {"+
" display: none;"+
"}"+
".ui-progressbar {"+
" position: relative;"+
"}"+
""+
".ui-progressbar-value {"+
"}"+
".progress-label {"+
" position: absolute;"+
" width: 100%;"+
" text-align: center;"+
" top: 4px;"+
" font-weight: bold;"+
" text-shadow: 1px 1px 0 #fff;"+
"}"+
"ol li {"+
" padding: 2px;"+
"}"+
"ul {"+
" list-style-type: disc;"+
"}"+
"ul, ol {"+
" padding-left: 1.5em;"+
" margin-bottom: 0.5em;"+
" margin-left: 1.5em;"+
"}"+
"");
function getSync(url, data){
data = data || "";
log([
"---GET SYNCHRON---",
"\turl: " + url,
"\tdata: " + data,
"---/GET SYNCHRON/---"
].join("\n"));
log("getSync1: " + currentTime());
var result = GM_xmlhttpRequest({
method: "GET",
url: url,
headers:{'Content-type':'application/x-www-form-urlencoded'},
data:encodeURI(data),
synchronous:true
})
.responseText;
log("getSync2: " + currentTime());
return result;
}
function currentTime() {
var cD = new Date();
return (cD.getHours() + ":" + cD.getMinutes() + ":" + cD.getSeconds() + "." + cD.getMilliseconds());
}
function send2cgeo() {
var cacheIDs = [],
caches = currentTour.geocaches,
cachesCount = caches.length, // mit ggf. Waypoints
cacheIDsCount = 0, // ohne ggf. Waypoints
group = 1, // wieviel IDs sollen gleichzeitig übertragen werden
url = "http://send2.cgeo.org/add.html",
//url = "http://send2.cgeo.org/device.html", // TEST exception
$pBar = $( "#gctour_send2cgeo_progressbar" ),
$btn = $( "#btnSend2cgeo" ),
txtReg = "Register first!", // möglicher response wenn der Browser noch nicht registriert ist
txtSuc = "Success!", // möglicher response wenn das hinzufügen erfolgreich war
waitTime = 1500; // warten zwischen den urls, Millisekunden
// IDs only to array (without Waypoints)
cacheIDs = $.map(caches, function(n, i){
return ((n.id !== undefined) ? n.id : null);
});
cacheIDsCount = cacheIDs.length;
$pBar
.progressbar( "option", {"value": 0, "max": cacheIDsCount})
.removeClass("hide");
$btn.button( "disable" );
log("START: " + currentTime() + " => " + cacheIDs.join(","));
// sendet die url, wartet dann um die function erneut aufzurufen
// vererbte Variablen
// group, cacheIDsCount, cacheIDs, url
// $pBar, txtReg, txtSuc, waitTime
function sendRequests(fromPos) {
var toPos = fromPos + group,
param = "",
res = "",
boo = true;
// toPos darf nicht größer sein als die Liste
toPos = (toPos > cacheIDsCount) ? cacheIDsCount : toPos;
param = cacheIDs.slice(fromPos, toPos).join(",");
log("1: " + currentTime());
// eins nach dem anderen, response abwarten
res = getSync(url + "?cache=" + param);
$pBar.progressbar( "option", "value", toPos );
//get(url + "?cache=" + param, function(){}); // alles wird ohne pause abgefeuert (in while) = nicht erwünscht
log("2: " + currentTime());
// responseText to XML ?
//$body = $( $.parseXML( res ) ).find( "body" );
if (res.indexOf(txtReg) !== -1) { // Browser nicht registriert
boo = false;
$("<div>Browser not registred, Register first !</div>").dialog( $.gctour.dialog.info() );
$pBar.addClass("hide");
$btn.button( "enable" );
} else if (res.indexOf(txtSuc) === -1) { // response nicht okay (Cache konnte wahrscheinlich nicht hinzugefügt werden)
boo = false;
$("<div>no success, error when adding</div>").dialog( $.gctour.dialog.info() );
$pBar.addClass("hide");
$btn.button( "enable" );
}
log( res ); // send2.cgeo.org/add.html?cache=GC4924F
fromPos = toPos;
log("next Pos: " + fromPos);
if (cacheIDsCount > fromPos && boo) {
setTimeout(sendRequests, waitTime, fromPos);
}
};
if (cacheIDsCount > 0) {
setTimeout(sendRequests, waitTime, 0);
}
}
$('#gctour_tourHeader').find('.tourImage').eq(2).after(
// sendcgeo
$('<img>', {
'class': 'tourImage',
src: "",
title: $.gctour.lang('send2cgeo'),
alt : $.gctour.lang('send2cgeo'),
click: function(){
openGcTour2cgeoDialog();
}
})
);
var openGcTour2cgeoDialog = function(){
if (!DEBUG_MODE) { return; }
var cacheIDsCount = $.grep(currentTour.geocaches, function( n, i ) {
return (n.id !== undefined);
}).length,
waypointCount = currentTour.geocaches.length - cacheIDsCount,
btnText = $.gctour.lang('send2cgeo') + ' (' + cacheIDsCount + ' Caches' + (waypointCount > 0 ? ', without ' + waypointCount + ' Waypoints)' : ')'),
$content = $('<div id="dlgsendtocgeo">'+
'<div>'+
'<strong>send to c:geo</strong>'+
'<ul>'+
'<li><a target="_blank" href="http://send2.cgeo.org/home.html">Overview</a></li>'+
'<li><a target="_blank" href="http://send2.cgeo.org/howto.html">How To</a></li>'+
'</ul>'+
'</div>'+
'<div>'+
'<strong>quick steps</strong>'+
'<ol>'+
'<li><a href="http://send2.cgeo.org/browser.html" target="_blank" title="http://send2.cgeo.org/browser.html">Register this browser ...</a></li>' +
'<li>'+
'<ol style="list-style-type:lower-alpha">'+
'<li>Run c:geo on your android device and go to settings.</li>'+
'<li>On the bottom of settings page you can set up your "device name". Afterwards click Request registration.</li>'+
'<li>If registration is succesful you will get a five digit PIN number.</li>'+
'</ol>'+
'</li>'+
'<li>'+
'<a href="http://send2.cgeo.org/device.html" target="_blank" title="http://send2.cgeo.org/device.html">Add your device ...</a> and type that PIN into.' +
'<form name="device" action="http://send2.cgeo.org/pin.html" target="_blank" method="post">'+
'<label for="pin">quickly and directly from here</label> '+
'<input name="pin" type="text" value="" />'+
' <input name="button" type="submit" value="send PIN and add device" class="button" />'+
'</form>'+
'</li>'+
'<li>Start c:geo.</li>'+
'<li>Optional: Stored -> Menu -> List -> ...</li>'+
'<li>Finally: Stored -> Menu -> Manage -> Import from web</li>'+
'<li><button id="btnSend2cgeo">' + btnText + '</button><div id="gctour_send2cgeo_progressbar" class="hide"><div class="progress-label">Loading...</div></div></li>' +
'</ol>'+
'</div>'+
'</div>');
// event create zuweisen (unabhängig ob es schon ein create event existiert)
$content.on( "dialogcreate", function( event, ui ) {
var $thisDlg = $(this).dialog("widget"),
$progressbar = $thisDlg.find( "#gctour_send2cgeo_progressbar" ),
$pl = $thisDlg.find( ".progress-label" );
$thisDlg.find("input[type=submit], button").button();
$progressbar.progressbar({
value: false,
max: currentTour.geocaches.length,
change: function(e, ui) {
var $pBar = $( this ),
value = $pBar.progressbar( "value" ),
max = $pBar.progressbar( "option", "max" );
$pl.text(value + " / " + max);
},
complete: function() {
$pl.text( $pl.text() + " Complete!" );
}
});
$thisDlg.find("#btnSend2cgeo").on('click', {}, function(e){
send2cgeo();
});
});
var $overLay = $content.dialog(
$.gctour.dialog.basis(),
{
title: "send from GCTour to c:geo",
autoOpen: true,
height: 530
}
);
};
/*
* BETA end GcTour send2cgeo
*/
/* use of the overlays
var options = {
caption: "Test Beschriftung",
color: 'red',
_document: document,
minimized: true,
closeCallback : function(_document){alert('oioio');}
}
getOverlay(options);
*/
function closeOverlayRemote(theDocument){
return function(){
$(theDocument)
.find("#dialogMask").remove().end()
.find("#dialogBody").remove().end()
.find("#progressOverlay").remove();
};
}
function getOverlay(options){
var bodyNew, verLay, overlayMarker, title, closeDiv, closeButton, caption,theDocument,background_color;
caption = options.caption;
localDocument = options._document || document;
background_color = options.color || "#B2D4F3";
bodyNew = localDocument.getElementsByTagName('body')[0];
// first - close all old overlays
closeOverlayRemote(localDocument)();
overLay = localDocument.createElement('div');
overLay.align = 'center';
overLay.className = 'dialogMask';
overLay.id = "dialogMask";
var dialogBody = localDocument.createElement('div');
dialogBody.id= "dialogBody";
dialogBody.className= "dialogBody header";
if(options.minimized){dialogBody.className += " dialogMin";}
var dialogHead = localDocument.createElement('h1');
append(dialogHead,dialogBody);
dialogHead.style.backgroundColor = background_color;
var icon = "<img style='float:left;position:relative;top:-3px;' src='"+$.gctour.img.gctourLogo+"'>";
dialogHead.innerHTML = icon+caption;
closeButton = createElement('img', {style:"cursor:pointer;"});
append(closeButton, dialogHead);
closeButton.style.cssFloat = "right";
closeButton.src = $.gctour.img.closebutton;
var closeFunction = options.closeCallback || closeOverlayRemote;
closeButton.addEventListener('click',closeFunction(localDocument), false);
//addOpacityEffects(closeButton);
var dialogContent = localDocument.createElement('div');
append(dialogContent,dialogBody);
dialogContent.className= "dialogContent";
bodyNew.appendChild(overLay);
bodyNew.appendChild(dialogBody);
return dialogContent;
}
function closeOverlay(){
closeOverlayRemote(document)();
}
function getListOverlay(options){
var overlay = getOverlay(options);
var list = createElement('div',{id:"dialogListContainer"});
append(list,overlay);
var listUl = createElement('ul');
listUl.setAttribute("class", "dialogList");
append(listUl,list);
var details = createElement('div',{id:"dialogDetails"});
append(details,overlay);
var dialogFooter = createElement('div',{style:"width:580px;position: absolute; bottom: 10px;"});
append(dialogFooter,overlay);
dialogFooter.setAttribute('class','dialogFooter');
var close = createElement('input',{type:"button",value:$.gctour.lang('close'),style:"background-image:url("+$.gctour.img.save+")"});
append(close,dialogFooter);
close.addEventListener('click', closeOverlay, false);
return [listUl, details];
}
function addErrorDialog(options){
var localDocument, post_data;
localDocument = options._document || document;
closeOverlay();
options.minimized = true;
options.color = "#f00";
//log the exception:
log_exception(options._exception);
var overlay = getOverlay(options);
// expects a post with this fields:
// - version: 2.1.11293
// - exception: TypeError: span#ctl00_ContentBody_LatLon is undefined
// - gccode: GC2W6GG
// - errorSource: Upload tour error
// - username: MOKA28
// - userAgent: Mozilla/5.0 (Windows NT 6.1; rv:7.0.1) Gecko/20100101 Firefox/7.0.1
// - lastTour: {"id":43,"name":"Limes","geocaches":[{"id":"GC2W6GG","name":"Limesturm","guid":"61e421f5-c68b-43be-9257-648648c0deac","image":"http://www.geocaching.com/images/WptTypes/sm/3.gif"},{"id":"GC1TN89","name":"Brunnencache - im Strütbachtal","guid":"badf0b94-9986-406e-a809-531d8289421a","image":"http://www.geocaching.com/images/WptTypes/sm/2.gif"},{"id":"GC15YWV","name":"Porta Caracalla","guid":"606441b0-1988-4ca4-8c50-cc202fed92bb","image":"http://www.geocaching.com/images/WptTypes/sm/2.gif"},{"id":"GC2QF45","name":"Strütbachreiter I","guid":"ff785a18-7ea3-4dc8-8608-ccb5f143bedd","image":"http://www.geocaching.com/images/WptTypes/sm/3.gif"},{"id":"GC2EPR0","name":"Rainau-Buch - Nähe Grill/Spielplatz","guid":"8c84156d-3969-4663-a878-2b5da0163bd9","image":"http://www.geocaching.com/images/WptTypes/sm/2.gif"}]}
$(overlay).append(
$('<div/>')
.css('border','1px dashed red')
.css('clear','both')
.css('margin','3px').css('padding','5px')
.html(GM_getValue("debug_lastgcid","")+':<b>'+options._exception+'</b>'),
$('<div/>')
.html($.gctour.lang('dlg.error.content')),
$('<div/>')
.addClass('dialogFooter')
.append(
$('<input/>')
.attr('onclick','return false;')
.attr('type','button')
.attr('value', $.gctour.lang('close'))
.css('background-image','url('+$.gctour.img.closebutton+')')
.bind('click',function(){
if(localDocument == document){
closeOverlayRemote(localDocument)();
} else { // if we are on the printview - close the whole window
localDocument.defaultView.close();
}
}),
$('<input/>')
.attr('onclick','return false;')
.attr('type','button')
.attr('value', $.gctour.lang('dlg.error.send'))
.css('background-image','url('+$.gctour.img.sendMessage+')')
.bind('click',function(){
post_data = [
"version=" + VERSION+'.'+BUILD,
"exception=" + options._exception,
"username=" + userName,
"gccode=" + GM_getValue("debug_lastgcid",""),
"errorSource=" + options.caption,
"userAgent=" + unsafeWindow.navigator.userAgent,
"lastTour=" + JSON.stringify(currentTour),
"userNote=" + $('#gctour_error_note').val()
].join("&");
post(GCTOUR_HOST+"/errors/send",post_data,function(response){alert(response);});
if (localDocument == document) {
closeOverlayRemote(localDocument)();
} else { // if we are on the printview - close the whole window
localDocument.defaultView.close();
}
})
)
).find("#gctour_update_error_dialog").bind('click', function() {update(true);});
}
function addProgressbar(options){
var overlay;
if(options){
var theDocument = options._document || document;
var theCaption = options.caption || $.gctour.lang('pleaseWait');
if(options.closeCallback){
overlay = getOverlay({caption:theCaption,minimized:true,_document:theDocument,closeCallback:options.closeCallback});
} else {
overlay = getOverlay({caption:theCaption,minimized:true,_document:theDocument});
}
} else {
overlay = getOverlay({caption:$.gctour.lang('pleaseWait'),minimized:true,_document:document});
}
var progressBarContainer = document.createElement('div');
append(progressBarContainer,overlay);
progressBarContainer.style.marginLeft = "135px";
var progressBar = document.createElement('div');
append(progressBar,progressBarContainer);
progressBar.style.border = '1px solid lightgray';
progressBar.style.height = '13px';
progressBar.style.width = '208px';
progressBar.style.cssFloat = 'left';
progressBar.style.margin = '10px';
progressBar.style.align = 'center';
progressBar.style.lineHeight = '13px';
progressBar.style.verticalAlign = 'middle';
progressBar.style.background = "url(http://madd.in/ajax-loader2.gif)";
progressBar.style.setProperty("-moz-border-radius", "4px", "");
progressBar.style.setProperty("border-radius", "4px", "");
var progressBarElement = document.createElement('div');
append(progressBarElement,progressBarContainer);
progressBarElement.id = 'progressbar';
progressBarElement.style.opacity = '0.6';
progressBarElement.style.width = '0px';
progressBarElement.style.height = '13px';
progressBarElement.style.fontSize = '10px';
progressBarElement.style.backgroundColor = '#E78F08';
progressBarElement.style.position = 'absolute';
progressBarElement.style.margin = '11px';
progressBarElement.align = 'center';
progressBarElement.style.setProperty("-moz-border-radius", "4px", "");
progressBarElement.style.setProperty("border-radius", "4px", "");
}
function setProgress(i,count,theDocument){
var width = ( (208 * (i+1) ) / count);
$("#progressbar", theDocument)
.css('width', width)
.html("<b>" + (i+1) + "/" + count + "</b>");
}
$.gctour.notification = $.gctour.notification || {};
$.gctour.notification.init = function(){
var $noteBlock = $('<ul>',{
id: "gctour-notification-box"
}).appendTo('body');
};
$.gctour.notification.add = function(options){
//~ var content = (options.title != null)?:"nix title"s;
var content = (options.icon)? "<img style='float:left;padding-right:6px;'src='"+options.icon+"'/>":"";
content += (options.title)? "<span style='font-size:18px'><b>"+options.title+"</b></span><br/>":"";
content += (options.text)? options.text:"";
var $note = $('<li>',{
"class": "gctour-notification-"+((options.style)?options.style:"green"),
click: function(){
$(this).animate({height: 0}, 300,"linear",function()
{
$(this).remove();
}
);
}
})
.disableSelection()
.append(
$('<div>',{
html: content,
css: {
'font-size': '13px',
'line-height': '16px',
'padding': '8px 10px 9px',
'position': 'relative',
'text-align': 'left',
'width': 'auto'
}
})
)
//~ .prependTo( $('#gctour-notification-box') ).show('fast');
.prependTo( $('#gctour-notification-box') );
setTimeout(function() {
$note.animate({height: 0}, 600, "linear", function()
{
$note.remove();
}
);
}, 6000);
};
$.gctour.notification.init();
/* TEST AREA BEGIN */
if (DEBUG_MODE){
var dummyNote = [
{title:"test",icon:"http://www.geocaching.com/images/WptTypes/sm/2.gif",text:"1. eine test Nachricht!",style:"yellow"},
{title:"test",icon:"http://www.geocaching.com/images/WptTypes/sm/3.gif",text:"2. eine test Nachricht! mit längeren Text",style:"red"},
{title:"test",icon:"http://www.geocaching.com/images/WptTypes/sm/4.gif",text:"3. eine test Nachricht! mit wirlich sehr langem langem Text, oder ?",style:"blue"},
{title:"test",icon:"http://www.geocaching.com/images/WptTypes/sm/2.gif",text:"4. eine test Nachricht!"}
],
dummyNoteZaehler = 0,
dummyNoteLength = dummyNote.length,
dummyNoteInterval,
foo = function() {
if ((0 <= dummyNoteZaehler ) && (dummyNoteZaehler <= dummyNote.length)) {
$.gctour.notification.add( dummyNote[dummyNoteZaehler] );
}
dummyNoteZaehler ++;
if (dummyNoteZaehler >= dummyNoteLength) {
clearInterval(dummyNoteInterval);
dummyNoteZaehler = 0;
}
};
$('#ctl00_HDHomeLink').hover(function(){
clearInterval(dummyNoteInterval);
dummyNoteZaehler = 0;
dummyNoteInterval = window.setInterval(foo, 500);
});
}
/* TEST AREA END */
function changeType(value,table,typeArray,staticMap){
return function(){
var trElement, i, tdElement;
document.getElementById('typeInput').value = value[0];
document.getElementById('typeInputSym').value = value[1];
staticMap.setIcon(value[0]);
table.innerHTML = "";
trElement = createElement('tr',{style:"height:27px"}); table.appendChild(trElement);
for( i = 0; i< typeArray.length ; i++ ){
tdElement = createElement('td',{style:"width:25px;"});
tdElement.style.cursor = 'pointer';
tdElement.style.padding = '0px';
tdElement.style.border = '1px solid silver';
tdElement.style.background ="url("+typeArray[i][0]+") center center no-repeat";
if (typeArray[i][0] == value[0]){tdElement.style.backgroundColor = '#B2D4F3';}
tdElement.addEventListener('click', changeType(typeArray[i],table,typeArray,staticMap), false);
trElement.appendChild(tdElement);
}
};
}
function showNewMarkerDialog(marker){
var overlayMarker, dangerDanger, anTable, tr, td, nameInput, cordsInputLat, cordsInputLon, cordsInput,
exampleCoords, staticGMap, staticGMapControl, zoomPlusButton, zoomMinusButton, contentTextarea,
markerTypeTable, typeInput, trElement, i , tdElement, cancel, submit, errors, makerName, markerContent,
markerType, markerTypeSym, latitude, longitude,markerPosition, markerPositionDelta, entry, latArray,
lonArray, latOrigin, lonOrigin;
overlayMarker = getOverlay({caption:$.gctour.lang('printviewMarker'),minimized:true});
dangerDanger = document.createElement('div');dangerDanger.id = "dangerdanger";
dangerDanger.style.visibility = "hidden";
dangerDanger.style.cssFloat = "right";
dangerDanger.innerHTML = "<img src='"+$.gctour.img.danger+"'>";
overlayMarker.appendChild(dangerDanger);
anTable = document.createElement('table');overlayMarker.appendChild(anTable);
anTable.style.width = '100%';
anTable.style.clear = 'both';
anTable.align = 'center';
tr = document.createElement('tr');anTable.appendChild(tr);
td = document.createElement('td');tr.appendChild(td);
td.style.width = '20%';
td.textContent = 'Name';
td = document.createElement('td');tr.appendChild(td);
nameInput = document.createElement('input');td.appendChild(nameInput);
nameInput.type = 'text';
nameInput.id = 'markerName';
tr = document.createElement('tr');anTable.appendChild(tr);
td = document.createElement('td');tr.appendChild(td);
td.textContent = $.gctour.lang('markerCoordinate');
td = document.createElement('td');tr.appendChild(td);
cordsInputLat = document.createElement('input');td.appendChild(cordsInputLat);
cordsInputLat.type = "hidden";
cordsInputLat.id = 'cordsInputLat';
cordsInputLon = document.createElement('input');td.appendChild(cordsInputLon);
cordsInputLon.type = "hidden";
cordsInputLon.id = 'cordsInputLon';
cordsInput = document.createElement('input');td.appendChild(cordsInput);
cordsInput.type = 'text';
cordsInput.id = 'markerCoords';
cordsInput.style.width = '450px';
cordsInput.style.marginRight = '5px';
var wptcodeInput = document.createElement('input');td.appendChild(wptcodeInput);
wptcodeInput.type = "hidden";
wptcodeInput.id = 'wptcodeInput';
exampleCoords = document.createElement('div');
exampleCoords.innerHTML = $.gctour.lang('example') + ' <i>N51° 12.123 E010° 23.123</i> or <i>51.123 10.123</i>';
td.appendChild(exampleCoords);
tr = document.createElement('tr');anTable.appendChild(tr);
td = document.createElement('td');tr.appendChild(td);
td = document.createElement('td');tr.appendChild(td);
td.align = 'left';
staticGMap = document.createElement('div');
var staticMap = new StaticMap($(staticGMap),{width: 450, height: 300});
var checkMarkerCoord = function(input){
return function(){
var coords = parseCoordinates(input.value);
if(coords === false){
cordsInput.style.backgroundColor = "#FF8888";
} else {
cordsInput.style.backgroundColor = "#88DC3B";
cordsInputLat.value = coords._lat;
cordsInputLon.value = coords._lon;
staticMap.setCoordinates(coords._lat,coords._lon);
}
};
};
cordsInput.addEventListener('keyup',checkMarkerCoord(cordsInput),false);
cordsInput.addEventListener('paste',checkMarkerCoord(cordsInput),false);
td.appendChild(staticGMap);
tr = document.createElement('tr');anTable.appendChild(tr);
td = document.createElement('td');tr.appendChild(td);
td.innerHTML = $.gctour.lang('markerContent')+'<br/><div style="font-size:xx-small">('+$.gctour.lang('markerContentHint')+')</div>';
td = document.createElement('td');tr.appendChild(td);
contentTextarea = document.createElement('textarea');td.appendChild(contentTextarea);
contentTextarea.style.width = '450px';
contentTextarea.id = 'markerContent';
contentTextarea.rows = '5';
// type buttons
tr = document.createElement('tr');anTable.appendChild(tr);
td = document.createElement('td');tr.appendChild(td);
td.style.width = '20%';
td.textContent = $.gctour.lang('markerType');
td = document.createElement('td');tr.appendChild(td);
markerTypeTable = createElement('table',{style:"width:auto;"});td.appendChild(markerTypeTable);
markerTypeTable.id = 'markerType';
typeArray = [
['http://www.madd.in/geocaching/gm/gctourextension/map/icons/neu/RedFlag.png','Red Flag'],
['http://www.madd.in/geocaching/gm/gctourextension/map/icons/neu/BlueFlag.png','Blue Flag'],
['http://www.madd.in/geocaching/gm/gctourextension/map/icons/neu/GreenFlag.png','Green Flag'],
['http://www.madd.in/geocaching/gm/gctourextension/map/icons/neu/Geocache.png','Geocache'],
['http://www.madd.in/geocaching/gm/gctourextension/map/icons/neu/GeocacheFound.png','Geocache Found'],
['http://www.madd.in/geocaching/gm/gctourextension/map/icons/neu/Information.png','Information'],
['http://www.madd.in/geocaching/gm/gctourextension/map/icons/neu/Park.png','Park'],
['http://www.madd.in/geocaching/gm/gctourextension/map/icons/neu/ParkingArea.png','Parking'],
['http://www.madd.in/geocaching/gm/gctourextension/map/icons/neu/SkullAndBones.png','Skull And Crossbones']
];
// iff we are editing a marker - so please set the right type
typeInput = document.createElement('input');
typeInput.id = 'typeInput';
typeInput.type = 'hidden';
if(!marker){
typeInput.value = typeArray[0][0];
} else {
typeInput.value = marker.image;
}
overlayMarker.appendChild(typeInput);
typeInput = document.createElement('input');
typeInput.id = 'typeInputSym';
typeInput.type = 'hidden';
if(!marker){
typeInput.value = typeArray[0][1];
} else {
typeInput.value = marker.symbol;
}
overlayMarker.appendChild(typeInput);
trElement = createElement('tr',{style:"height:27px;"}); markerTypeTable.appendChild(trElement);
for(i = 0; i< typeArray.length ; i++ ){
tdElement = createElement('td',{style:"width:25px;"});
tdElement.style.background ="url("+typeArray[i][0]+") center center no-repeat";
if(!marker){
if (i === 0) { tdElement.style.backgroundColor = '#B2D4F3'; }
staticMap.setIcon(typeArray[0][0]);
} else {
if(typeArray[i][0] == marker.image){
tdElement.style.backgroundColor = '#B2D4F3';
staticMap.setIcon(marker.image);
}
}
tdElement.style.cursor = 'pointer';
tdElement.style.padding = '0px';
tdElement.style.border = '1px solid silver';
//~ tdElement.innerHTML = "<img src='"+typeArray[i][0]+"'>";
tdElement.addEventListener('click', changeType(typeArray[i],markerTypeTable,typeArray,staticMap), false);
trElement.appendChild(tdElement);
}
staticMap.hide();
// in the end please add a save and cancel button
tr = document.createElement('tr');anTable.appendChild(tr);
td = document.createElement('td');tr.appendChild(td);
td.colSpan = '2';
td.align = 'right';
var buttonsDiv = createElement('div');append(buttonsDiv,overlayMarker);
buttonsDiv.setAttribute('class','dialogFooter');
cancel = createElement('input',{type:"button",value:$.gctour.lang('cancel'),style:"background-image:url("+$.gctour.img.closebutton+")"});append(cancel,buttonsDiv);
cancel.addEventListener('click', closeOverlay, false);
submit = createElement('input',{type:"button",value:$.gctour.lang('save'),style:"background-image:url("+$.gctour.img.save+")"});append(submit,buttonsDiv);
submit.addEventListener('click', function(){
errors = 0;
markerName = document.getElementById('markerName');
if (markerName.value != "") {
markerName.style.backgroundColor = "#FFFFFF";
} else {
markerName.style.backgroundColor = "#FF8888";
errors++;
}
markerCoords = document.getElementById('markerCoords');
if(markerCoords.style.backgroundColor != "rgb(136, 220, 59)"){
markerCoords.style.backgroundColor = "#FF8888";
errors++;
}
markerContent = document.getElementById('markerContent');
markerType = document.getElementById('typeInput');
markerTypeSym = document.getElementById('typeInputSym');
if(errors !== 0){
document.getElementById('dangerdanger').style.visibility = "visible";
return;
}
latitude = document.getElementById('cordsInputLat').value*1;
longitude = document.getElementById('cordsInputLon').value*1;
if(marker){
markerPosition = getPositionsOfId(marker.id);
markerPositionDelta = markerPosition - currentTour.geocaches.length +1;
deleteElementFunction((marker.id)?marker.id:marker.wptcode)();
} else {
markerPositionDelta = 0;
}
var wptCode = document.getElementById('wptcodeInput').value;
entry = addCustomMarker(markerName.value, latitude, longitude, markerContent.value, markerType.value, markerTypeSym.value,wptCode);
move(entry.id, markerPositionDelta);
closeOverlay();
}, false);
// now set all previous values IFF a marker is given
if(marker){
nameInput.value = marker.name;
cordsInputLat.value = marker.latitude; // 51.123123
cordsInputLon.value = marker.longitude; // 123.12333
wptcodeInput.value = marker.wptcode; // 123.12333#12312412312
var latLon = new LatLon(marker.latitude,marker.longitude);
cordsInput.value = latLon.toString("dm");
cordsInput.style.backgroundColor = "#88DC3B";
contentTextarea.innerHTML = marker.content;
checkMarkerCoord(cordsInput)();
}
// set the focus to the maker name input
nameInput.focus();
}
// static map object
function StaticMap(container,options){
this._options = options;
this._container = container; // jQuery object
this._zoom = 13;
this._minZoom = 0;
this._maxZoom = 19;
this.build();
this.update();
}
StaticMap.prototype.zoomIn = function(thiz){
return function(){
thiz._zoom = thiz._zoom+1;
thiz.update();
};
};
StaticMap.prototype.zoomOut = function(thiz){
return function(){
thiz._zoom = thiz._zoom-1;
thiz.update();
};
};
StaticMap.prototype.hide = function(){
this._staticGMap.style.display = "none";
};
StaticMap.prototype.show = function(){
this._staticGMap.style.display = "block";
};
StaticMap.prototype.setNewCoordinates = function(lat,lon){
this._options.newLat = lat;
this._options.newLon = lon;
this.update();
};
StaticMap.prototype.setCoordinates = function(lat,lon){
this._options.lat = lat;
this._options.lon = lon;
this.update();
};
StaticMap.prototype.setIcon = function(icon){
this._options.icon = icon;
this.update();
};
StaticMap.prototype.update = function(){
if (this._zoom < this._minZoom || this._zoom > this._maxZoom) { return; }
if(this._options.radius){
var pathString = "";
// to draw a circle - add 24 edges und combine them
for(var i = 1; i<=361;i = i+15){
var waypoint = CalcPrjWP(this._options.lat,this._options.lon,this._options.radius,i);
pathString += waypoint[0]+","+waypoint[1];
if(i != 361) {
pathString += "|";
}
}
this._staticGMap.style.backgroundImage = 'url(http://maps.google.com/maps/api/staticmap?path=color:0xB2D4F3FF|weight:5|fillcolor:0xB2D4F366|'+pathString+'&size='+((this._options.width)?this._options.width:'350')+'x'+((this._options.height)?this._options.height:'200')+'&sensor=false)';
this.show();
} else {
var markerString = "markers=";
if(this._options.geocache_type){
markerString += "icon:http://www.geocaching.com/images/wpttypes/pins/"+this._options.geocache_type+".png";
} else if (this._options.icon){
markerString += "icon:"+this._options.icon;
} else {
markerString += "color:blue";
}
markerString += "|"+this._options.lat+","+this._options.lon;
if(this._options.newLat && this._options.newLon){
markerString += "&markers=color:green|"+(this._options.newLat)+","+(this._options.newLon);
markerString += "&center="+(this._options.newLat)+","+(this._options.newLon);
}
this._staticGMap.style.backgroundImage = 'url(http://maps.google.com/maps/api/staticmap?zoom='+this._zoom+'&size='+((this._options.width)?this._options.width:'350')+'x'+((this._options.height)?this._options.height:'200')+'&maptype=roadmap&'+markerString+'&sensor=false)';
this.show();
}
};
StaticMap.prototype.build = function(){
var staticGMap = document.createElement('div');
staticGMap.style.display = "none";
//~ staticGMap.id = 'staticGMap2';
staticGMap.style.border = '2px solid gray';
staticGMap.style.height = (this._options.height)?this._options.height+'px':'200px';
staticGMap.style.width = (this._options.width)?this._options.width+'px':'350px';
staticGMap.style.backgroundRepeat = 'no-repeat';
this._staticGMap = staticGMap;
if(!this._options.radius){ // just make marker maps zoomable
var staticGMapControl = document.createElement('div');staticGMap.appendChild(staticGMapControl);
staticGMapControl.style.padding = '3px 0px 0px 3px';
staticGMapControl.style.width = '16px';
staticGMapControl.style.cssFloat = 'left';
var zoomPlusButton = document.createElement('img');
zoomPlusButton.style.opacity = '0.75';
zoomPlusButton.style.cursor = 'pointer';
zoomPlusButton.src = "http://www.geocaching.com/images/zoom_in.png";
zoomPlusButton.addEventListener('click', this.zoomIn(this), false);
staticGMapControl.appendChild(zoomPlusButton);
var zoomMinusButton = document.createElement('img');
zoomMinusButton.style.opacity = '0.75';
zoomMinusButton.style.cursor = 'pointer';
zoomMinusButton.src = "http://www.geocaching.com/images/zoom_out.png";
zoomMinusButton.addEventListener('click', this.zoomOut(this), false);
staticGMapControl.appendChild(zoomMinusButton);
}
this._container.append(staticGMap);
};
function changeCoordinates(coordinates){
var coordinates_org, showLink;
var coordinates_ele = $('#uxLatLon');
try {
coordinates_org = coordinates_ele.text().split("(")[1].split(")")[0];
} catch(e){
coordinates_org = coordinates_ele.text();
}
if (!coordinates) {
coordinates_ele.html(coordinates_org);
} else {
coordinates_ele.html("<div style='font-weight:bold;'>" + coordinates +
"&nbsp;&nbsp;-&nbsp;&nbsp;changed by GCTour <small><a style='cursor:pointer'>" + $.gctour.lang('makeMap') +
"</a></small></div><small>("+coordinates_org+")</small>");
showLink = coordinates_ele.find('a:first');
showLink.bind('click', function(){
var overlay = getOverlay({caption:$.gctour.lang('settings_map'),minimized:true});
var origCoordinates = parseCoordinates(coordinates_org);
var newCoordinates = parseCoordinates(coordinates);
var srcArr = $("img:first", "a[href='/about/cache_types.aspx']").attr("src").split("/");
var gc_type = srcArr[srcArr.length-1].split(".")[0];
var staticMap = new StaticMap($(overlay), {
lat: origCoordinates._lat,
lon: origCoordinates._lon,
newLat: newCoordinates._lat,
newLon: newCoordinates._lon,
width: 577,
height: 300,
geocache_type: gc_type
});
});
}
}
function openChangeCoordinates(){
var overlayMarker, dangerDanger, anTable, tr, td, nameInput, cordsInputLat, cordsInputLon, cordsInput,
exampleCoords, staticGMap, staticGMapControl, zoomPlusButton, zoomMinusButton, contentTextarea,
markerTypeTable, typeInput, trElement, i , tdElement, cancel, submit, errors, makerName, markerContent,
markerType, markerTypeSym, latitude, longitude,markerPosition, markerPositionDelta, entry, latArray,
lonArray, latOrigin, lonOrigin, latlng;
overlayMarker = getOverlay({caption:$.gctour.lang('moveGeocache'),minimized:true});
anTable = createElement('table',{style:"clear:both;"});overlayMarker.appendChild(anTable);
anTable.style.width = '100%';
anTable.align = 'center';
tr = document.createElement('tr');anTable.appendChild(tr);
td = document.createElement('td');tr.appendChild(td);
td.colSpan = 2;
td.innerHTML = $.gctour.lang('moveGeocacheHelp');
tr = document.createElement('tr');anTable.appendChild(tr);
td = document.createElement('td');tr.appendChild(td);
td.style.width = '20%';
td.textContent = $.gctour.lang('originalCoordinates');
var coordinates = $('#uxLatLon').text();
try{
coordinates = coordinates.split("(")[1].split(")")[0];
} catch(e){
coordinates = coordinates;
}
var mapTd = document.createElement('td');
mapTd.align = 'left';
var minimal_geocache = getMinimalGeocacheDetails(document.getElementsByTagName('html')[0]);
var gc_type = minimal_geocache.type;
var coords = parseCoordinates(coordinates);
var staticMap = new StaticMap($(mapTd),{lat:coords._lat,lon:coords._lon,geocache_type:gc_type.split(".")[0]});
var cacheId = minimal_geocache.gccode;
td = document.createElement('td');tr.appendChild(td);
nameInput = document.createElement('input');td.appendChild(nameInput);
nameInput.type = 'text';
nameInput.id = 'markerName';
nameInput.value = coords;
nameInput.style.width = '350px';
nameInput.style.marginRight = '5px';
nameInput.disabled = 'disabled';
tr = document.createElement('tr');anTable.appendChild(tr);
td = document.createElement('td');tr.appendChild(td);
td.textContent = $.gctour.lang('newCoordinates');
td = document.createElement('td');tr.appendChild(td);
cordsInputLat = document.createElement('input');td.appendChild(cordsInputLat);
cordsInputLat.type = "hidden";
cordsInputLat.id = 'cordsInputLat';
cordsInputLon = document.createElement('input');td.appendChild(cordsInputLon);
cordsInputLon.type = "hidden";
cordsInputLon.id = 'cordsInputLon';
cordsInput = document.createElement('input');td.appendChild(cordsInput);
cordsInput.type = 'text';
cordsInput.id = 'markerCoords';
cordsInput.style.width = '350px';
cordsInput.style.marginRight = '5px';
var checkMarkerCoord = function(input){
return function(){
var coords = parseCoordinates(input.value);
if(coords === false){
cordsInput.style.backgroundColor = "#FF8888";
} else {
cordsInput.style.backgroundColor = "#88DC3B";
cordsInputLat.value = coords._lat;
cordsInputLon.value = coords._lon;
staticMap.setNewCoordinates(coords._lat,coords._lon);
}
};
};
cordsInput.addEventListener('keyup',checkMarkerCoord(cordsInput),false);
cordsInput.addEventListener('paste',checkMarkerCoord(cordsInput),false);
exampleCoords = document.createElement('div');
exampleCoords.innerHTML = "<small>"+$.gctour.lang('example')+" "+$.gctour.lang('exampleCoords')+"</small>";
td.appendChild(exampleCoords);
tr = document.createElement('tr');anTable.appendChild(tr);
td = document.createElement('td');tr.appendChild(td);
tr.appendChild(mapTd);
// in the end please add a save and cancel button
var buttonsDiv = createElement('div');append(buttonsDiv,overlayMarker);
buttonsDiv.setAttribute('class','dialogFooter');
cancel = createElement('input',{type:"button",value:$.gctour.lang('cancel'),style:"background-image:url("+$.gctour.img.closebutton+")"});append(cancel,buttonsDiv);
cancel.addEventListener('click', closeOverlay, false);
var delete_btn = createElement('input',{type:"button",value:$.gctour.lang('deleteCoordinates'),style:"background-image:url("+$.gctour.img.closebutton+")"});append(delete_btn,buttonsDiv);
delete_btn.addEventListener('click', function(){
GM_deleteValue('coords_'+cacheId);
changeCoordinates();
updateGUI();
closeOverlay();
}, false);
submit = createElement('input',{type:"button",value:$.gctour.lang('save'),style:"background-image:url("+$.gctour.img.save+")"});append(submit,buttonsDiv);
submit.addEventListener('click', function(){
GM_setValue('coords_'+cacheId, cordsInputLat.value+'#'+cordsInputLon.value);
changeCoordinates(new LatLon(cordsInputLat.value,cordsInputLon.value).toString());
closeOverlay();
}, false);
// now set all previous values IFF a marker is given
if(GM_getValue('coords_'+cacheId,"null") != "null"){
var coords_cacheId = GM_getValue('coords_'+cacheId);
latlng = new LatLon(coords_cacheId.split('#')[0],coords_cacheId.split('#')[1]);
cordsInputLat.value = latlng._lat; // 51.123123
cordsInputLon.value = latlng._lon; // 123.12333
cordsInput.value = latlng.toString();
cordsInput.style.backgroundColor = "#88DC3B";
staticMap.setNewCoordinates(cordsInputLat.value ,cordsInputLon.value);
} else {
latlng = parseCoordinates(coordinates);
cordsInputLat.value = latlng._lat; // 51.123123
cordsInputLon.value = latlng._lon; // 123.12333
cordsInput.value = latlng.toString();
cordsInput.style.backgroundColor = "#88DC3B";
staticMap.setNewCoordinates(cordsInputLat.value ,cordsInputLon.value);
}
}
function getTourById(id){
var currentTourId = GM_getValue('currentTour',-1);
var tours = loadValue('tours', []);
for (var i = 0; i<tours.length;i++){
if(tours[i].id == currentTourId){
return tours[i];
}
}
return;
}
function getNewTourId(){
var tourId = 0;
for (var i = 0; i<tours.length;i++){
if(tours[i].id >= tourId){
tourId = tours[i].id + 1;
}
}
return tourId;
}
function isIdInTable(gcId){
for (var i = 0; i < currentTour.geocaches.length; i++) {
if(currentTour.geocaches[i].id == gcId){
return true;
}
}
return false;
}
function getPositionsOfId(theId){
var id = -1;
$.each(currentTour.geocaches, function(i, obj) {
if(obj.id == theId || obj.wptcode == theId){
id = i;
return false; // break each
}
});
return id;
}
function checkOnlineConsistent(t){
// Creates way to much traffic :(
// maybe in the next version
/*
if(t.webcode){
geocaches = new Array();
waypoints = new Array();
costumMarkers = new Array();
var list = {webcode:t.webcode,geocaches:[]};
for (cache_i = 0; cache_i < t.geocaches.length; ++cache_i){
list.geocaches.push((typeof(t.geocaches[cache_i].latitude) != "undefined")?t.geocaches[cache_i].wptcode:t.geocaches[cache_i].id );
}
var jsonTour = JSON.stringify(list);
post(API_HOST+'/tour/check', "tour="+jsonTour,
function(text){
log("checkOnlineConsistent:"+text)
if(text == "false"){
if (document.getElementById("inconsistentTour")){
document.getElementById("inconsistentTour").style.display="inline";
} else {
window.setTimeout(function(){document.getElementById("inconsistentTour").style.display="inline"},3000);
}
} else {
if (document.getElementById("inconsistentTour")){
document.getElementById("inconsistentTour").style.display="none";
} else {
window.setTimeout(function(){document.getElementById("inconsistentTour").style.display="none"},3000);
}
}
}
);
} */
}
function saveTour(tour, notLoad){
var i;
for (i= 0; i < tours.length; ++i){
if(tours[i].id == tour.id){
tours[i] = tour;
}
}
GM_setValue('tours', JSON.stringify(tours));
if(notLoad === undefined){
GM_setValue('currentTour', tour.id);
log("updating "+tour.name);
checkOnlineConsistent(tour);
}
}
function saveCurrentTour(){
saveTour(currentTour);
}
function addNewTableCell(theEntry,effects){
var costumMarker = (typeof(theEntry.latitude) !== "undefined");
// if this is a cosutm marker user other id
var theId = (!costumMarker)?theEntry.id:theEntry.wptcode;
var entryLi = createElement('li', {id: theId, style: "position:relative;opacity:0;width:90%;list-style-image='url('"+theEntry.image+"');background-color:pink;"});
// set the background image
//~ entryLi.style.background = "transparent url(http://stats.madd.in/counter/digit.php?digit="+(getPositionsOfId(theEntry.id || theEntry.wptcode)+1)+") fixed no-repeat bottom right";
//entryLi.style.backgroundImage = "url(http://stats.madd.in/counter/digit.php?digit="+(getPositionsOfId(theEntry.id || theEntry.wptcode)+1)+")";
//entryLi.style.backgroundRepeat = "no-repeat";
//entryLi.style.backgroundPosition = "bottom right";
//set the type
entryLi.style.listStyleImage="url('"+theEntry.image+"')";
// make the gcid link
var nameCite = createElement('span',{style:"vertical-align:top"});
//~ var indexDiv = createElement('span',{style:"margin-right: 6px;"});
//~ indexDiv.innerHTML = "<b>"+(getPositionsOfId(theEntry.id || theEntry.wptcode)+1)+"</b>";
//~ append(indexDiv,nameCite);
if(!costumMarker){
var coordinates = GM_getValue('coords_'+theId,"null");
if(coordinates != "null"){
var moveCoords = createElement('img',{src:'http://www.geocaching.com/images/icons/coord_update.gif',height:"12",style:"float:right;margin-right:5px", alt:$.gctour.lang('movedGeocache'), title:$.gctour.lang('movedGeocache')});
nameCite.appendChild(moveCoords);
}
var linkElement = document.createElement('a');
//linkElement.style.fontSize = '9px'; to small!
linkElement.style.fontFamily = 'arial,sans-serif';
linkElement.href = 'http://coord.info/'+theId;
linkElement.target = '_self';
linkElement.textContent = theId;
nameCite.appendChild(linkElement);
} else {
nameCite.innerHTML += theEntry.name;
nameCite.style.textDecoration = "underline";
}
// the log/edit button and the delete button
var functionButtonsDiv = document.createElement('div');
functionButtonsDiv.style.cssFloat = 'right';
functionButtonsDiv.setAttribute("class", "controls");
if(!costumMarker){
var logVisitImage = document.createElement('img');
logVisitImage.alt = $.gctour.lang('logYourVisit');
logVisitImage.title = $.gctour.lang('logYourVisit');
logVisitImage.style.cursor = 'pointer';
logVisitImage.src = "http://www.geocaching.com/images/stockholm/16x16/add_comment.gif";
logVisitImage.addEventListener('click', function(){window.location.href = 'http://www.geocaching.com/seek/log.aspx?wp='+theId;}, true);
addOpacityEffects(logVisitImage);
functionButtonsDiv.appendChild(logVisitImage);
} else {
var editMarkerButton = document.createElement('img');
editMarkerButton.alt = $.gctour.lang('edit');
editMarkerButton.title = $.gctour.lang('edit');
editMarkerButton.style.cursor = 'pointer';
editMarkerButton.src = $.gctour.img.edit;
editMarkerButton.addEventListener('click', function(){showNewMarkerDialog(theEntry);}, false);
addOpacityEffects(editMarkerButton);
functionButtonsDiv.appendChild(editMarkerButton);
}
var deleteImage = document.createElement('img');
deleteImage.alt = $.gctour.lang('removeFromList');
deleteImage.title = $.gctour.lang('removeFromList');
deleteImage.style.cursor = 'pointer';
deleteImage.src = $.gctour.img.del;
deleteImage.addEventListener('click', deleteElementFunction(theId), true);
addOpacityEffects(deleteImage);
functionButtonsDiv.appendChild(deleteImage);
// thanks to adam r
/* unneeded since the list uses drag and drop
var upDownDiv = document.createElement('div');
upDownDiv.align = "right";
var topButton = document.createElement('img');
topButton.alt = "top";
topButton.title = "top";
topButton.style.cursor = 'pointer';
topButton.src = $.gctour.img.topArrow;
topButton.addEventListener('click', moveTop(theId), true);
addOpacityEffects(topButton);
var upButton = document.createElement('img');
upButton.alt = "up";
upButton.title = "up";
upButton.style.marginRight = '5px';
upButton.style.cursor = 'pointer';
upButton.src = $.gctour.img.upArrow;
upButton.addEventListener('click', moveUp(theId), true);
addOpacityEffects(upButton);
var downButton = document.createElement('img');
downButton.alt = "down";
downButton.title = "down";
downButton.style.cursor = 'pointer';
downButton.style.marginRight = '5px';
downButton.src = $.gctour.img.downArrow;
downButton.addEventListener('click', moveDown(theId), true);
addOpacityEffects(downButton);
var bottomButton = document.createElement('img');
bottomButton.alt = "bottom";
bottomButton.title = "bottom";
bottomButton.style.cursor = 'pointer';
bottomButton.src = $.gctour.img.bottomArrow;
bottomButton.addEventListener('click', moveBottom(theId), true);
addOpacityEffects(bottomButton);
functionButtonsDiv.appendChild(document.createElement('br'));
upDownDiv.appendChild(upButton);
upDownDiv.appendChild(topButton);
upDownDiv.appendChild(document.createElement('br'));
upDownDiv.appendChild(downButton);
upDownDiv.appendChild(bottomButton);
functionButtonsDiv.appendChild(upDownDiv);*/
entryLi.appendChild(functionButtonsDiv);
entryLi.appendChild(nameCite);
var nameDiv = document.createElement('div');
nameDiv.style.clear = 'left';
nameDiv.style.position = 'relative';
nameDiv.style.zIndex = 2;
if(!costumMarker){
nameDiv.innerHTML += theEntry.name;
}else {
nameDiv.innerHTML += new LatLon(theEntry.latitude,theEntry.longitude).toString() + " " + theEntry.content;
}
entryLi.appendChild(nameDiv);
var counterDiv = document.createElement('div');
counterDiv.className='counter unselectable';
counterDiv.innerHTML = (getPositionsOfId(theEntry.id || theEntry.wptcode)+1);
entryLi.appendChild(counterDiv);
/*
// todo: jquery
var counterDiv = $('<div>', {
"class": 'counter unselectable',
html: (getPositionsOfId(theEntry.id +3|| theEntry.wptcode) + 1)
});
*/
$('#cacheList').append(entryLi);
if(unsafeWindow.draglist){
unsafeWindow.draglist.sync(); // needed to function properly
}
if (effects) {
$("#" + theId).fadeTo(1000, 1);
} else {
$("#" + theId).css({opacity: 1});
}
}
// function to move an cache to an given position in the list
function move(id,positionDelta){
var i;
// locate the selected cache in the list
var position = getPositionsOfId(id);
// return if we are at the end or at top of the list!
if((position === 0 && positionDelta < 0) || (position == currentTour.geocaches.length-1 && positionDelta > 0) ){
return;
}
// save clicked cache
var geoCache = currentTour.geocaches[position];
// remove it from the current geocaches
currentTour.geocaches.splice(position,1);
var tempCaches = [];
// first push all caches in front of the selected in the new array
for(i = 0; i < position+positionDelta; i++){
tempCaches.push(currentTour.geocaches[i]);
}
// then the selected
tempCaches.push(geoCache);
// and now the rest
for(i = position+positionDelta; i < currentTour.geocaches.length; i++){
tempCaches.push(currentTour.geocaches[i]);
}
// ... and make it persistent
currentTour.geocaches = tempCaches;
saveCurrentTour();
// redraw the list:
var cacheList = document.getElementById('cacheList');
// just clear the list
while(cacheList.firstChild) { cacheList.removeChild(cacheList.firstChild); }
for (i = 0; i < currentTour.geocaches.length; i++){
addNewTableCell(currentTour.geocaches[i],false);
}
}
function moveUp(id){
return function(){
move(id,-1);
};
}
function moveDown(id){
return function(){
move(id,1);
};
}
function moveTop(id){
return function(){
var position = getPositionsOfId(id);
move(id,-position);
};
}
function moveBottom(id){
return function(){
var position = getPositionsOfId(id);
move(id,currentTour.geocaches.length-position-1);
};
}
function saveNewCache(entry){
currentTour = getTourById(currentTourId);
currentTour.geocaches.push(entry);
saveCurrentTour();
log("saving "+ entry.id +" to "+currentTour.name);
}
function updateCacheCount(count){
$("#cachecount")
.html('(' + count + ')')
.stop(true, true)
.animate({backgroundColor: '#ffe000'}, 800)
.animate({backgroundColor: '#ffffff'}, 700);
if (!sticky) { // nur wenn sichtbar
$("#gctourButtonWrapper")
.stop(true, true)
.toggleClass( "gctour-grand-highlight", 300 )
.toggleClass( "gctour-grand-highlight", 1200 );
}
}
function addCustomMarker(name, lat, lon, content, typeImage, typeSymbol,wptcode){
if(!isNotEmptyList){
var table = document.getElementById('cacheList');
table.innerHTML = '';
}
// customMarker: e.g.:
// name -> the cachename parking area
// image -> the typeimage http://gctour.madd.in/map/icons/flag.png
// lat -> latitude 51.12342
// lon -> longitude -12.33456
// content -> the content "Test\nLINEBREAK"
// symbol -> GPX symbol name "Red Flag"
var entry = {};
entry.wptcode = (wptcode)?wptcode:(new Date().getTime()-Math.round(lat+lon*1000)).toString(16);
entry.name = name;
entry.latitude = lat;
entry.longitude = lon;
entry.image = typeImage;
entry.content = content;
entry.symbol = typeSymbol;
log("New custommarker: " + entry.name +" lat:"+entry.lat+" lon:"+entry.lon+" Type:"+entry.symbol +" content:"+entry.content);
// add the newbie
addNewTableCell(entry,true);
// and make it persistence
saveNewCache(entry);
// update the cache count
updateCacheCount(currentTour.geocaches.length);
return entry;
}
function addElementFunction(theId, theGuId, theName, theTypeImage){
return function (event) {
if(!isNotEmptyList){
var table = document.getElementById('cacheList');
table.innerHTML ='';
}
if(!isIdInTable(theId)){
// entry: e.g.:
// id -> the gc.com id GC00815
// guid -> the guid 6e974919-2b47-46e2-8661-3fc62a5a9650
// name -> the cachename Echo the tomcat
// image -> the typeimage http://www.geocaching.com/images/WptTypes/sm/2.gif
var entry = {};
entry.id = theId;
//~ entry.name = theName.textContent;
entry.name = theName;
entry.guid = theGuId;
// split the src an take only x.gif
//~ var typeGif = theTypeImage.getAttribute('src').split("/")[3];
var typeGif = theTypeImage.replace("http://www.geocaching.com/images/WptTypes/sm/", ""); // ggf. schon komplette url k�rzen
entry.image = 'http://www.geocaching.com/images/WptTypes/sm/' + typeGif;
// add the newbie
addNewTableCell(entry,true);
// and make it persistence
saveNewCache(entry);
// update the cache count
updateCacheCount(currentTour.geocaches.length);
showGeocacheNotification({id:theId,name:theName,image:theTypeImage},{type:"success"});
} else {
showGeocacheNotification({id:theId,name:theName,image:theTypeImage},{type:"contains"});
}
};
}
function deleteElementFunction(theId){
return function () {
// effect
$("#" + theId)
.fadeOut(500, function() {
$(this).remove();
});
// locate the element to delete
for (var i = 0; i < currentTour.geocaches.length; i++){
if(currentTour.geocaches[i].id == theId || currentTour.geocaches[i].wptcode == theId){
// array in js are dumb - where is removeAt ??
currentTour.geocaches.splice(i, 1);
log("removing '" + theId +"' from '" + currentTour.name + "'");
break;
}
}
saveCurrentTour();
// update the cache count
updateCacheCount(currentTour.geocaches.length);
if (!isNotEmptyList) {
$('#cacheList').html($.gctour.lang('emptyList'));
}
};
}
function removeElementsFunction(descriptionElement, id, tagName){
return function () {
var elements = descriptionElement.getElementsByTagName(tagName);
for (var x = 0; x<elements.length; x++) {
if(elements[x].id == id){
elements[x].style.display = "none";
}
}
};
}
function updateTour(){
initCore();
updateGUI();
}
function loadTour(id){
return function(){
GM_setValue('currentTour',id);
if (document.getElementById("inconsistentTour")){
document.getElementById("inconsistentTour").style.display="none";
}
if(document.URL.search("webcode")>=0){
window.location = "http://www.geocaching.com";
} else {
updateTour();
}
};
}
function newTourFunction(preset){
return function(){
var newTour = {};
newTour.id = getNewTourId();
var tourName = (preset) ? preset : "Tour " + newTour.id;
newTour.name = prompt($.gctour.lang('newTourDialog'), tourName);
newTour.geocaches = [];
if(!newTour.name) { return false; }
tours.push(newTour);
log("Creating new tour: "+newTour.id +" ; "+ newTour.name);
saveTour(newTour);
//~ window.location.reload();
updateTour();
return true;
};
}
function deleteTourFunction(id, force){
return function(){
if (force || confirm($.gctour.lang('removeTourDialog'))) {
for (var i = 0; i < tours.length; i++){
if (tours[i].id == id) {
log("removing '" + tours[i].name + "'");
// array in js are dumb - where is removeAt ??
var cachelist = $('#dialogDetails');
if (cachelist.length > 0 && cachelist.attr("tourid") == tours[i].id) {
showCacheList(currentTour)();
$('#loadButton').attr("disabled", "disabled");
}
$("#tour" + id).remove();
tours.splice(i,1);
saveCurrentTour();
//updateTour();
break;
}
}
}
};
}
function deleteCurrentTour(){
if (confirm($.gctour.lang('removeTourDialog'))) {
var tableId;
for (tableId = 0; tableId<tours.length;tableId++){
if(tours[tableId].id == currentTour.id){
break;
}
}
var nextTourId = tours[(tableId + 1) % tours.length].id;
var currentTourId = currentTour.id;
loadTour(nextTourId)();
deleteTourFunction(currentTourId, true)();
}
}
function printPageFunction(currentTour){
return function(){
var i, tr, td;
if(isLogedIn() && isNotEmptyList()){
var minimal = GM_getValue('printMinimal',false);
var cacheDetailTemplate =
'<div class="cacheDetail" id="###GUID###">'+
' <div class="geocache_count ###HIDDENSTYLE###"><span>###CACHECOUNT###</span></div>'+
' <div class="geocache_id">###GCID###</div>'+
' <div>'+
' <img src="http://www.geocaching.com/images/WptTypes/sm/###TYPE###.gif">'+
' <span style="font-weight: bold;">###CACHENAME###</span>'+
' <span style="margin-right: 3px;"> (###OWNER### - ###HIDDEN###)</span>'+
' </div>'+
' <div class="details">'+
' <span><img src="http://www.geocaching.com/images/icons/coord_update.gif" heigth="12px" class="###COORDINATESISEDIT###"/> ###COORDINATES###</span>'+
' <span><img src="http://www.geocaching.com/images/icons/compass/###BEARING###.gif"/>###DISTANCE###&nbsp;</span>'+
' <span>D:<img src="http://www.geocaching.com/images/stars/stars###DIFFICULTY###.gif"/></span>'+
' <span>T:<img src="http://www.geocaching.com/images/stars/stars###TERRAIN###.gif"/></span>'+
' <span>S:<img src="http://www.geocaching.com/images/icons/container/###SIZE###.gif"/></span>'+
' </div>'+
' <div>'+
' <span>###ATTRIBUTES###</span>'+
' <span><img alt="Inventory" src="http://www.geocaching.com/images/WptTypes/sm/tb_coin.gif"/>Inventory:</span>'+
' <span>###INVENTORY###</span>'+
' </div>'+
' <div class="content">'+
' <div class="short ###HIDDENSTYLE###">###SHORT_DESCRIPTION###</div>'+
' <div class="long ###HIDDENSTYLE###">###LONG_DESCRIPTION###</div>'+
' <div>###GCCOMMENT###</div>'+
' <div>###CACHENOTE###</div>'+
' <div><b>Hint:</b> ###HINT###</div>'+
' <div class="waypoints ###HIDDENSTYLE###">###ADDITIONAL_WAYPOINTS###</div>'+
' <div class="images">###IMAGES###</div>'+
' <div id = "###MAPID###" class="map ###HIDDENSTYLE###">###MAP###</div>'+
' <div class="removable ###HIDDENSTYLE###">###LOGCOUNTER###</div>'+
' <div class="logs ###HIDDENSTYLE###">###LOGS###</div>'+
' <div style="clear:both">&nbsp;</span>'+
' </div>'+
'</div>';
var ownMarkerTemplate =
'<div class="cacheDetail">'+
' <div class="geocache_count ###HIDDENSTYLE###" style="padding:5px !important"><span>###CACHECOUNT###</span></div>'+
' <div class="wpt_id">###GCID###</div>'+
' <div>'+
' <img src="###TYPE###">'+
' <span style="font-weight: bold;">###NAME###</span><br/>'+
' <span>###COORDINATES###</span>'+
' </div>'+
' <div>'+
' <div class="long">###CONTENT###</div>'+
' </div>'+
'</div>';
var costumMarker = (typeof(currentTour.geocaches[0].latitude) != "undefined");
var url_guid = (!costumMarker) ? currentTour.geocaches[0].guid : "39eedff9-69ea-4a18-97b0-bde6bfbccfb7";
//var newwindow2 = window.open('http://www.geocaching.com/seek/cdpf.aspx?guid=' + url_guid, null, 'fullscreen=yes,scrollbars=yes,toolbar=yes,menubar=yes');
$('html').html("");
//var bodyTag = document.getElementsByTagName('body')[0];
var bodyTag = document.createElement('body');
$('html').append(bodyTag);
bodyTag.style.background='none';
bodyTag.style.backgroundColor="white";
// set the title of the print view
var now = new Date();
var Jahresmonat = now.getMonth();
var Monat = $.gctour.lang('months');
var Std = now.getHours();
var Min = now.getMinutes();
var StdAusgabe = ((Std < 10) ? "0" + Std : Std);
var MinAusgabe = ((Min < 10) ? "0" + Min : Min);
bodyTag.innerHTML = '';
var body = document.createElement('div');
$(body).width("648px");
$( body ).css( "margin", "30px auto" );
bodyTag.appendChild(body);
addProgressbar({_document:document,closeCallback:function(_document){return function(){GM_setValue("stopTask",true);_document.defaultView.close();};}});
var head = document.getElementsByTagName('head')[0];
var jqCss = $('<link/>').attr("href", "http://www.geocaching.com/css/jqueryui1104/jqUI").attr("rel","stylesheet").appendTo($(head));
var style = document.createElement('style');
style.type = 'text/css';
//~ style.innerHTML = 'font {font-size:x-small !important} td {font-size:x-small !important} span {font-size:x-small !important}'+
//~ 'div {font-size:x-small !important} p {font-size:x-small !important}';
//~ style.innerHTML = 'font,td,th,span,div, p {font-size:'+GM_getValue("printFontSize","x-small")+'!important} ';
style.innerHTML = '*{ font-size:'+GM_getValue("printFontSize","x-small")+' } .cacheDetail{ border: 1px solid lightgray; width: 100%; text-align: left;padding:5px; -moz-box-sizing: border-box; } .wpt_id{ position:relative; padding:5px !important; float:right; font-size:medium; font-weight:bold; } .geocache_id{ position:relative; padding:20px !important; float:right; font-size:medium; font-weight:bold; } .content{ clear:both; border-top:2px dashed lightgray; margin-top:10px; padding-top:10px; } img{ vertical-align:middle; } #details span{ margin-left: 10px } .images{clear:both;height:auto}';
style.innerHTML += '.map{clear:both} .logs{clear:both} .hidden{display:none} .highlight{background-color:pink}';
style.innerHTML += '.geocache_count{ position:relative; padding:20px !important; float:right; font-size:medium; font-weight:bold; } .geocache_count span{padding: 5px; font-weight: bold; font-size: 18px; -moz-border-radius: 5px; border-radius: 5px; border:2px dotted black;}';
style.innerHTML += 'sup {vertical-align:baseline;font-size:77%;position:relative;top:-5px;}';
style.innerHTML += '.dialogMask {background-image:url('+$.gctour.img.dialogMask+');height:100%;left:0;opacity:0.7;position:fixed;top:0;width:100%;z-index:1100;}'+
'.dialogBody{-moz-border-radius:5px; border-radius:5px; background:none repeat scroll 0 0 #fff;border:1px solid #333333;color:#333333;cursor:default;font-family:Arial;font-size:12px;left:50%;margin-left:-250px;margin-top:20px;padding:0 0 1em;position:fixed;text-align:left;top:0;width:500px;z-index:1101;max-height:85%;min-height:370px;overflow:auto;}'+
'.dialogBody p {font-size:12px;font-weight:normal;margin:1em 0em;}'+
'.dialogBody h1{background-color:#B2D4F3;font-size:110%;font-family:Helvetica Neue,Arial,Helvetica,sans-serif;margin-bottom:0.2em;padding:0.5em;-moz-border-radius:5px 5px 0px 0px;border-radius:5px 5px 0px 0px;color:#333333;background-image:url("'+$.gctour.img.tabBg+'");margin:0px;}'+
'.dialogHistory {border:1px inset #999999;margin:0 1em 1em;height:200px;overflow-y:auto;width:448px;padding-left:1em;}'+
'.dialogHistory ul{margin-left:2em;}'+
'.dialogHistory li{list-style-type:circle;}'+
'.dialogFooter input{-moz-border-radius:3px;border-radius:3px;background:none no-repeat scroll 4px center #EEEEEE;border:1px outset #666666;cursor:pointer;float:right;margin-left:0.5em;padding:3px 5px 5px 20px;min-width:100px;}'+
'.dialogFooter input:hover { background-color:#f9f9f9; }'+
'.dialogContent {padding:0px 10px 0px 10px;}'+
'.dialogMin {min-height:0px !important}'+
'.noprint {padding:2px;border: 1px solid #c0cee3;z-index: 10000;background-color: #eff4f9; text-align: left;margin-top:10px} .noprint>div {margin-top:2px} '+
'.noprint>input {border: 1px outset #666666;cursor: pointer;margin:5px;padding: 3px 5px 5px 25px;background: none no-repeat scroll 4px center #eeeeee;float:left;clear:both;} '+
'.noprint>input:hover {background-color:#f9f9f9}';
head.appendChild(style);
style = document.createElement('style');
style.media = 'print';
style.type = 'text/css';
//hide the map control in print
style.innerHTML = '.noprint { display: none; } body {margin: 0;padding: 0;color: black;background: transparent;width:99%}';
head.appendChild(style);
var printInfo = document.createElement('div');
printInfo.className = 'noprint';
printInfo.innerHTML = $.gctour.lang('dontPrintHint');
body.appendChild(printInfo);
$("<fieldset/>",{
'class': 'noprint'
})
.css('right','50px')
.css('position','fixed')
.append(
$("<legend/>").html($.gctour.lang('printview'))
.css('background',"url(\""+$.gctour.img.gctourLogoSmall+"\") no-repeat scroll 0 0 transparent")
.css('padding-left','20px')
,
$("<input/>").attr("type","input").attr("value",$.gctour.lang('print')).css("background-image","url("+$.gctour.img.printer+")").click(function(){self.print()}),
$("<input/>").attr("type","input").attr("value",$.gctour.lang('close')).css("background-image","url("+$.gctour.img.closebutton+")").click(function(){location.reload();})
).appendTo($(body));
// front page
if(GM_getValue('printFrontpage',true) && !minimal){
var title = $('<div>',{
id: 'printTitle',
css: {
width: "100%",
textAlign: 'center',
"page-break-after": ((GM_getValue('printPageBreakAfterMap', true)) ? 'always' : 'never')
},
html: "<h1>" + currentTour.name + "</h1>"
});
$(body).append(title);
var coverTable = document.createElement('table');
coverTable.style.width = "100%";
//~ coverTable.style.textAlign = 'left';
//~ coverTable.style.marginLeft = 'auto';
//~ coverTable.style.marginRight = 'auto';
coverTable.style.border = '1px solid lightgray';
coverTable.innerHTML =
'<thead><tr> '+
' <th colspan="2" style="border-bottom:1px solid lightgray;"><b>'+$.gctour.lang('printviewCache')+'</b></th> '+
' <th style="border-bottom:1px solid lightgray;">&nbsp;</th> '+
' <th style="border-bottom:1px solid lightgray;">&nbsp;</th> '+
' <th style="border-bottom:1px solid lightgray;" align="center"><b>D</b></th> '+
' <th style="border-bottom:1px solid lightgray;" align="center"><b>T</b></th> '+
' <th style="border-bottom:1px solid lightgray;" align="center"><b>S</b></th> '+
' <th style="border-bottom:1px solid lightgray;" align="center"><b>L4L</b>&nbsp;</th> '+
' <th style="border-bottom:1px solid lightgray;"><b>'+$.gctour.lang('markerCoordinate')+'</b></th> '+
' <th style="border-bottom:1px solid lightgray;"><b>'+$.gctour.lang('printviewFound')+'</b></th> '+
' <th style="border-bottom:1px solid lightgray;">&nbsp;&nbsp;<b>'+$.gctour.lang('printviewNote')+'</b></th> '+
'</tr><thead>';
var tbody = createElement('tbody');append(tbody,coverTable);
var isCostumMarker = false;
for (i = 0; i < currentTour.geocaches.length; ++i){
var costumMarker = (typeof(currentTour.geocaches[i].latitude) != "undefined");
if(!costumMarker){
tr = document.createElement('tr');tbody.appendChild(tr);
td = document.createElement('td');tr.appendChild(td);
td.innerHTML = "<b style='margin:0 6px'>"+(i+1)+"</b>";
td = createElement('td',{style:"border-bottom:1px solid lightgray;"});tr.appendChild(td);
td.innerHTML = "<img src='"+currentTour.geocaches[i].image+"'>";
td = createElement('td',{style:"border-bottom:1px solid lightgray;white-space:nowrap;"});tr.appendChild(td);
//~ td.style.width = "100%";
td.innerHTML = "<a style='color:#000000;text-decoration: none' target='_blank' href='http://coord.info/"+currentTour.geocaches[i].id+"'>"+currentTour.geocaches[i].name + "</a>";
td = createElement('td',{style:"border-bottom:1px solid lightgray;border-right:1px dashed lightgray;"});tr.appendChild(td);
td.innerHTML = "<span style='margin:0 2px'>"+currentTour.geocaches[i].id+"</span>";
td = createElement('td',{style:"border-bottom:1px solid lightgray;border-right:1px dashed lightgray;"});tr.appendChild(td);
td.innerHTML = "<span style='margin:0 2px' id='d_" + currentTour.geocaches[i].id + "'></span>";
td = createElement('td',{style:"border-bottom:1px solid lightgray;border-right:1px dashed lightgray;"});tr.appendChild(td);
td.innerHTML = "<span style='margin:0 2px' id='t_" + currentTour.geocaches[i].id + "'></span>";
td = createElement('td',{style:"border-bottom:1px solid lightgray;border-right:1px dashed lightgray;"});tr.appendChild(td);
td.innerHTML = "<span style='margin:0 2px' id='s_" + currentTour.geocaches[i].id + "'></span>";
td = createElement('td',{style:"border-bottom:1px solid lightgray;white-space:nowrap;"});tr.appendChild(td);
td.innerHTML = "<canvas id='l4l_"+currentTour.geocaches[i].id+"' width='17' height='17' style='margin-left: 2px;position: relative;top: 2px;'/>";
td = createElement('td',{style:"border-bottom:1px solid lightgray;white-space:nowrap;"});tr.appendChild(td);
td.innerHTML = "<span style='margin:0 2px' id='coords_"+currentTour.geocaches[i].id+"'></span>";
td = document.createElement('td');tr.appendChild(td);
td.style.verticalAlign = "middle";
//~ td.style.border = '1px solid lightgray';
// ToDo: if "Found" is (GPX)sym = "Geocache Found" => Print Found = true, or Property = ignore my founds by print
td.innerHTML = "<div style='margin-left:auto;margin-right:auto;width:10px;height:10px;border:1px solid lightgray;'>&nbsp;</div>";
td = createElement('td',{style:"border-bottom:1px solid lightgray;"});tr.appendChild(td);
td.style.verticalAlign = "middle";
td.style.width = "100%";
td.innerHTML = "&nbsp;";
} else {
isCostumMarker = costumMarker;
}
}
if(isCostumMarker){
tbody.innerHTML +=
'<tr> '+
' <td colspan="11" style="border-bottom:1px solid lightgray;"><b>'+$.gctour.lang('printviewMarker')+'</b></td> '+
'</tr>';
for (i = 0; i < currentTour.geocaches.length; ++i){
var costumMarker = (typeof(currentTour.geocaches[i].latitude) != "undefined");
if(costumMarker){
tr = document.createElement('tr');tbody.appendChild(tr);
td = document.createElement('td');tr.appendChild(td);
td.innerHTML = "<b style='margin:0 10px'>"+(i+1)+"</b>";
td = document.createElement('td');tr.appendChild(td);
td.innerHTML = "<img src='"+currentTour.geocaches[i].image+"'>";
td = document.createElement('td');tr.appendChild(td);
td.style.verticalAlign = "middle";
td.style.width = "30%";
td.colSpan = "9";
td.style.borderBottom = '1px solid lightgray';
td.innerHTML = currentTour.geocaches[i].name;
td.innerHTML += " - "+new LatLon(currentTour.geocaches[i].latitude,currentTour.geocaches[i].longitude).toString();
}
}
}
$(title).append($(coverTable));
var overview_map = createElement('div',{id:"overview_map"});
$(title).append($(overview_map));
}
/* map array */
var geocaches = [];
var costumMarkers = [];
for (i = 0; i < currentTour.geocaches.length; ++i){
if(GM_getValue("stopTask",false) && i !== 0){
GM_setValue("stopTask",false);
alert("aktualisiere dich!");
} else if (GM_getValue("stopTask",false) && i === 0 ) {
GM_setValue("stopTask",false);
}
var costumMarker = (typeof(currentTour.geocaches[i].latitude) != "undefined");
if(!costumMarker){
var geocache = getGeocache(currentTour.geocaches[i].id);
if(geocache == "pm only"){
var pmOnlyDiv = createElement('div');
pmOnlyDiv.setAttribute('class','cacheDetail');
pmOnlyDiv.innerHTML = "<b><img src='"+currentTour.geocaches[i].image+"'>"+currentTour.geocaches[i].name+" ("+currentTour.geocaches[i].id+") is PM ONLY!</b>";
body.appendChild(pmOnlyDiv);
body.appendChild(document.createElement('br'));
} else {
//log
var logs_div = createElement('div');
var logs = geocache.logs;
var maxPrintLogs = parseInt(GM_getValue('maxPrintLogs',3), 10);
// if maxprintlogs is <= -1, export all logs to the print overview
if(maxPrintLogs <= -1) {
maxPrintLogs = logs.length;
}
maxPrintLogs = maxPrintLogs;
for (var log_i = 0; (log_i < logs.length && (log_i < maxPrintLogs)); log_i++){
var log_div = createElement('div', {style:"width:100%;page-break-inside:avoid;"});
log_div.setAttribute("class", "removable");
var log_type_img = createElement('img', {src:'http://www.geocaching.com/images/logtypes/'+logs[log_i].LogTypeImage});
log_div.appendChild(log_type_img);
log_div.innerHTML += " " + logs[log_i].Created +" - "+ logs[log_i].UserName +" ("+logs[log_i].GeocacheFindCount+")<br/>";
log_div.innerHTML += logs[log_i].LogText;
log_div.style.borderBottom = "1px dashed lightgray";
append(log_div, logs_div);
}
var dummy_additional_waypoints = createElement('div');
if (GM_getValue('printAdditionalWaypoints',true)){
var wpts_table = createElement('table', {style:"width:100%;border-collapse:separate;"} );append(wpts_table,dummy_additional_waypoints);
wpts_table.setAttribute("class", "removable");
var content = "<tr>";
for(var waypoints_i = 0; waypoints_i < geocache.additional_waypoints.length; waypoints_i++){
if(waypoints_i % 2 === 0 || waypoints_i == geocache.additional_waypoints.length-1){
if(waypoints_i !== 0 && waypoints_i != 1){
content += "</tr>";
}
if(waypoints_i == geocache.additional_waypoints.length-1 && waypoints_i !== 1){
content += "<tr>";
}
}
content += "<td style='width:50%;'>";
content +="<img src='"+geocache.additional_waypoints[waypoints_i].symbol+"'>";
content +="<b>"+geocache.additional_waypoints[waypoints_i].name+"</b>";
content +=" | "+geocache.additional_waypoints[waypoints_i].coordinates + "<br/>";
content += "<i>"+geocache.additional_waypoints[waypoints_i].note + "</i><br/>";
}
content += "</tr>";
wpts_table.innerHTML = content;
}
//images
var dummy_images = createElement('div');
if (GM_getValue('printSpoilerImages',true)){
var image_table = createElement('table',{style:"border-collapse:seperate;border-spacing:2px;width:100%"});append(image_table,dummy_images);
var content = "<tr>";
for(var images_i = 0; images_i < geocache.images.length; images_i++){
if(images_i % 2 === 0 || images_i == geocache.images.length-1){
if(images_i !== 0 && images_i !== 1){
content += "</tr>";
}
if(images_i == geocache.images.length-1 && images_i != 1){
content += "<tr>";
}
}
content += "<td class='removable'>";
content += "<img style='max-width:8cm;' src='"+geocache.images[images_i].href+"'><br/>";
content += "<b>"+geocache.images[images_i].textContent+"</b>";
content += "</td>";
}
content += "</tr>";
image_table.innerHTML = content;
}
// inventory
var inventory = createElement('span');
for (var inventory_i = 0; inventory_i < geocache.inventory.length; inventory_i++){
var image = createElement('img');
image.src = geocache.inventory[inventory_i].src;
append(image,inventory);
}
if(geocache.inventory.length === 0){
var empty_inventory = createElement('span');
empty_inventory.innerHTML = "empty";
append(empty_inventory,inventory);
}
//attributes
var attributes = createElement('span');
for (var attributes_i = 0; attributes_i < geocache.attributes.length; attributes_i++){
var attribute = geocache.attributes[attributes_i];
attribute.style.width = "16px";
attribute.style.height = "16px";
attribute.style.marginRight = "3px";
//~ attribute.style.opacity = "0.5";
if(attribute.src != "http://www.geocaching.com/images/attributes/attribute-blank.gif") {
append(attribute, attributes);
}
}
var map_element_dummy = createElement('div');
var map_element = createElement('div');append(map_element, map_element_dummy);
// map the geocache to uploadable version
var mapCache = {};
mapCache.gcid = geocache.gcid;
mapCache.guid = geocache.guid;
mapCache.image = geocache.image;
mapCache.name = geocache.name;
mapCache.difficulty = geocache.difficulty;
mapCache.terrain = geocache.terrain;
mapCache.latitude = geocache.lat;
mapCache.longitude = geocache.lon;
// save additional waypoints
var additional_waypoints = geocache.additional_waypoints;
for(waypoint_i = 0 ; waypoint_i < additional_waypoints.length; waypoint_i++){
additional_waypoints[waypoint_i].note = "";
}
mapCache.additional_waypoints = additional_waypoints;
geocaches.push(mapCache);
// map the geocache to uploadable version - END -
var gcComment = "";
if(geocache.comment){
gcComment = "<b><u>GCComment:</u></b><br/>";
if(geocache.comment.lat){
var parsedCoords = new LatLon(geocache.comment.lat,geocache.comment.lng).toString();
gcComment += "<b>Final Coordinates:</b> "+parsedCoords+"<br/>";
}
gcComment += "<b>Comment:</b> ("+geocache.comment.state+") "+geocache.comment.commentValue;
}
var cache_note = "";
if(geocache.cache_note){
cache_note = "<b><u>Cache Note:</u></b><br/>";
cache_note += geocache.cache_note;
}
if(GM_getValue('printFrontpage',true) && !minimal){
$(document)
// setting real coordinates on titlepage
.find("span#coords_" + geocache.gcid)
.html(geocache.coordinates)
.css({'border-bottom': (geocache.coordinatesisedit === true ? '2px solid gray' : 'none') })
.end()
// setting D, T and size on titlepage
.find("span#d_"+geocache.gcid).html(geocache.difficulty).end()
.find("span#t_"+geocache.gcid).html(geocache.terrain).end()
.find("span#s_"+geocache.gcid).html(geocache.size.substring(0,1)).end();
// set the last 4 logs icon:
getLast4Logs(geocache.logs, $("canvas#l4l_" + geocache.gcid, document));
//~ $("span#l4l_"+geocache.gcid,document)[0].html(getLast4Logs(geocache.logs));
}
var geocacheMapping = [
['GCID',geocache.gcid],
['CACHECOUNT',i+1],
['GUID',geocache.guid],
['TYPE',geocache.type],
['CACHENAME',(geocache.available)?geocache.name:"<span style='text-decoration: line-through !important;'>"+geocache.name+"</span>"],
['CACHESYM',geocache.cacheSym],
['OWNER',geocache.owner],
['HIDDEN',formatDate(geocache.hidden)],
['ATTRIBUTES',attributes.innerHTML],
['BEARING',geocache.bearing],
['DISTANCE',geocache.distance],
['INVENTORY',inventory.innerHTML],
['COORDINATESISEDIT',(geocache.coordinatesisedit===true)?'':'hidden'],
['COORDINATES',geocache.coordinates],
['DIFFICULTY',geocache.difficulty.replace(/\./,"_")],
['TERRAIN',geocache.terrain.replace(/\./,"_")],
['SIZE',geocache.size.toLowerCase().replace(/ /,"_")],
['SHORT_DESCRIPTION',(geocache.short_description.length === 1) ? geocache.short_description.html() : ""],
['LONG_DESCRIPTION',(geocache.long_description.length === 1) ? geocache.long_description.html() : ""],
['GCCOMMENT',gcComment],
['CACHENOTE',cache_note],
['HINT',(GM_getValue('decryptPrintHints',true))?geocache.hint:convertROTStringWithBrackets(geocache.hint)],
['ADDITIONAL_WAYPOINTS',dummy_additional_waypoints.innerHTML],
['IMAGES',dummy_images.innerHTML],
['MAP', map_element_dummy.innerHTML],
['MAPID', "MAP_"+geocache.gcid],
['LOGCOUNTER',(GM_getValue('printLoggedVisits',false))? geocache.find_counts.html() : ""],
['LOGS',logs_div.innerHTML]
];
if(minimal){
geocacheMapping.push(['HIDDENSTYLE',"hidden"]);
} else {
geocacheMapping.push(['HIDDENSTYLE',""]);
}
var cacheDetailTemp = fillTemplate(geocacheMapping,cacheDetailTemplate);
// class "removable" elements and removable images in description
$(".removable, div[class*='long'] img", cacheDetailTemp)
.click(function(e){
e.stopPropagation();
$(this).remove();
})
.hover(
function(){
$(this).css({
"opacity": "0.5",
"cursor": "url('" + $.gctour.img.del + "'),pointer"
});
},
function(){
$(this).css({
"opacity": 1
});
}
);
// remove href attribute from links in "*=long" class
$("div[class*='long'] a", cacheDetailTemp).removeAttr("href");
// add editable mode
if (GM_getValue('printEditMode', false)) {
$("div[class*='long'], div[class*='short']",cacheDetailTemp).attr('contenteditable','true');
}
if(GM_getValue('printPageBreak',false)){
if(i < currentTour.geocaches.length-1) {
cacheDetailTemp.style.pageBreakAfter = 'always';
}
}
body.appendChild(cacheDetailTemp);
body.appendChild(document.createElement('br'));
}
} else {
// map costum marker to uploadable version
var cm = currentTour.geocaches[i];
cm.index = i;
costumMarkers.push(cm);
// map costum marker to uploadable version - END -
var markerMapping = [
['GCID',$.gctour.lang('printviewMarker')],
['CACHECOUNT',(i+1)],
['TYPE',currentTour.geocaches[i].image],
['NAME',currentTour.geocaches[i].name],
['COORDINATES',new LatLon(currentTour.geocaches[i].latitude,currentTour.geocaches[i].longitude).toString()],
['CONTENT',currentTour.geocaches[i].content.replace(/\n/g, "<br />")]
];
if(minimal){
markerMapping.push(['HIDDENSTYLE',"hidden"]);
} else {
markerMapping.push(['HIDDENSTYLE',""]);
}
var cacheDetailTemp = fillTemplate(markerMapping,ownMarkerTemplate);
body.appendChild(cacheDetailTemp);
body.appendChild(document.createElement('br'));
//~ geocaches.push(currentTour.geocaches[i]);
}
// set the progress
setProgress(i,currentTour.geocaches.length,document);
}
closeOverlayRemote(document)();// close old ovleray (scraping data)
addProgressbar({caption:$.gctour.lang('makeMapWait'),_document:document,closeCallback:function(_document){return function(){GM_setValue("stopTask",true);_document.defaultView.close();};}}); // new overlay - getting maps
var cacheObject = {};
cacheObject.geocaches = geocaches;
cacheObject.costumMarkers = costumMarkers;
uploadMap(cacheObject,
function(result){
try{
var overviewMapQuery = "";
var geocacheCodes = [];
for (var i = 0; i < currentTour.geocaches.length; ++i){
var marker = currentTour.geocaches[i];
if(marker.wptcode){
overviewMapQuery += marker.wptcode;
} else {
overviewMapQuery += (marker.id)?marker.id:marker.gcid;
geocacheCodes.push((marker.id)?marker.id:marker.gcid);
}
if(i < currentTour.geocaches.length-1){
overviewMapQuery += ",";
}
}
var boo_OutlineMap = (
GM_getValue('printOutlineMap', true) &&
GM_getValue('printFrontpage', true) &&
!GM_getValue('printMinimal', false)
);
// overview map
var mapCount = (boo_OutlineMap) ? 1 : 0;
mapCount += (GM_getValue('printOutlineMapSingle', true)) ? geocacheCodes.length : 0;
if (boo_OutlineMap) {
$("div#overview_map", document).first().append( getMapElement(overviewMapQuery, document));
setProgress(1, mapCount, document);
}
// map for each geocache
if(GM_getValue('printOutlineMapSingle',true)){
for (var i = 0; i < geocacheCodes.length; ++i){
var geocacheCode = geocacheCodes[i];
var mapElement = $("div#MAP_" + geocacheCode, document).first();
if(mapElement){
mapElement.append(getMapElement(geocacheCode, document));
}
setProgress(i+1, mapCount, document);
}
}
closeOverlayRemote(document)();
} catch (e) {
addErrorDialog({caption:"Print error maps", _document:document, _exception:e,closeCallback:function(_document){return function(){GM_setValue("stopTask",true);_document.defaultView.close();};}});
}
}
);
}
};
}
// funktion ähnlich http://www.gsak.net/help/hs11980.htm
function getLast4Logs(logs, canvas_element){
var getColor = function(log4Logs){
if ((typeof (log4Logs)) === 'undefined') { return "LightGray"; }
switch (log4Logs.LogType) {
case "Found it":
return "green";
case "Didn't find it":
return "red";
case "Needs Maintenance":
return "blue";
case "Temporarily Disable Listing":
return "black";
case "Needs Archived":
return "yellow";
default:
return "LightGray";
}
};
var ctx = canvas_element.get(0).getContext('2d');
ctx.fillStyle = "black";
//~ ctx.fillRect(0,0,17,17);
ctx.clearRect(1,1,15,15);
var pos = [[2,2],[9,2],[2,9],[9,9]];
var dim = [6,6];
for (var i = 0; i < pos.length; i++) {
ctx.fillStyle = getColor(logs[i]);
ctx.fillRect (pos[i][0], pos[i][1], dim[0], dim[1]);
}
}
function updateMap(newDocument, mapId){
return function(){
var mapCrc = mapId.split('#')[0];
var map = newDocument.getElementById(mapId).getElementsByTagName('iframe')[0];
var nameInput = newDocument.getElementById('mapName'+mapId);
var gcIdInput = newDocument.getElementById('mapGcId'+mapId);
var markerInput = newDocument.getElementById('mapMarker'+mapId);
var markerNameInput = newDocument.getElementById('mapMarkerName'+mapId);
var mapURL = "http://gctour.madd.in/map/show2.php?crc="+mapCrc+"&name="+nameInput.checked+"&gcid="+gcIdInput.checked+"&marker="+markerInput.checked+"&markername="+markerNameInput.checked+"&maptype="+GM_getValue('printOutlineMapType',"Karte");
map.src = mapURL;
};
}
function updateMapSize(newDocument, mapId,factor){
return function(){
var map = newDocument.getElementById(mapId).getElementsByTagName('iframe')[0];
map.style.width = (factor * 20) +"cm";
map.style.height = (1 * 500) +"px";
};
}
function getMapType(){
return GM_getValue('printOutlineMapType','roadmap');
}
function getMapSettings(){
var settings = [];
// settings String:
// 1 - Geocache GCID
// 2 - Geocache Name
// 3 - Waypoint Hide all
// 4 - Waypoint Name
// 5 - Waypoint Lookup
// 6 - Own Waypoint show
// 7 - Own Waypoints name
// 8 - Show gc.de maps overlay
// 9 - Show Geocache Index
settings.push(GM_getValue('settings_map_geocacheid',true));
settings.push(GM_getValue('settings_map_geocachename',true));
settings.push(GM_getValue('settings_map_awpts',true));
settings.push(GM_getValue('settings_map_awpt_name',true));
settings.push(GM_getValue('settings_map_awpt_lookup',true));
settings.push(GM_getValue('settings_map_owpts',true));
settings.push(GM_getValue('settings_map_owpt_name',true));
settings.push(GM_getValue('settings_map_gcde',false));
settings.push(GM_getValue('settings_map_geocacheindex',true));
return settings.join("").replace(/true/g,"1").replace(/false/g,"0");
}
function getMapUrl(mapQuery){
var hash_value = postSync(GCTOUR_HOST+"/map/make", "ids="+mapQuery);
debug("Hash '"+hash_value+"' for this query '"+mapQuery+"'");
return GCTOUR_HOST+"/map/show/h/"+hash_value+"/"+getMapSettings()+"/"+getMapType();
}
function getMap(mapQuery){
var map_size_px,
mapId = mapQuery.replace(/,/g,""),
map_frame = document.createElement('iframe');
switch (GM_getValue('defaultMapSize', 'large')) {
case "medium":
map_size_px = 375;
break;
case "small":
map_size_px = 250;
break;
default:
map_size_px = 500;
break;
}
map_frame.className = 'cacheMap';
map_frame.id = mapId;
map_frame.style.width = "100%";
map_frame.style.height = map_size_px + 'px';
$(map_frame).css("border",'1px solid lightgray');
$(map_frame).css("box-sizing","border-box");
map_frame.src = getMapUrl(mapQuery);
return map_frame;
}
function getMapControl(mapQuery,map_frame,newDocument){
var mapId = mapQuery.replace(/,/g,""),
control_container = createElement('div'),
map_size_px;
control_container.className = 'noprint';
switch (GM_getValue('defaultMapSize', 'large')) {
case "medium":
map_size_px = 375;
break;
case "small":
map_size_px = 250;
break;
default:
map_size_px = 500;
break;
}
/*
// todo - default noch selektieren! und alten code löschen
$(control_container).append(
$('<div/>').append(
$('<div/>').text($.gctour.lang('settingsMapSize')).append(
$("<div/>").gct_slider({
min:100,
max:1000,
value:map_size_px,
document: newDocument,
slide:function(values){map_frame.style.height=values.value+"px";}
})
),
$('<div/>').append(
$("<div/>").gct_slider({
min:20,
max:100,
value:100,
document: newDocument,
slide:function(values){map_frame.style.width=values.value+"%";}
})
),
$('<div>'+$.gctour.lang('printviewRemoveMap')+'</div>')
.css('background','url("'+$.gctour.img.del+'") top left no-repeat')
.css('padding-left','18px')
.click(function(){map_frame.parentNode.style.display = "none";}),
$('<siv>Karte neu laden!</li>')
.css('background','url("'+$.gctour.img.refresh+'") top left no-repeat')
.css('padding-left','18px')
.css('clear','both')
.click(function(){map_frame.src = map_frame.src;})
)
).find("div").addShadowEffect().addOpacityEffect();*/
// send2cgeo
$(control_container).append(
$('<div>Höhe</div>')
.css('float','left')
.css('margin-right','5px'),
$("<div/>").gct_slider({
min:100,
max:1000,
value:map_size_px,
document: newDocument,
slide:function(values){map_frame.style.height=values.value+"px";}
})
.css('float','left')
.css('width','250px'),
$('<img>', {
'class': 'tourImage',
src: $.gctour.img.del,
title: $.gctour.lang('printviewRemoveMap'),
alt : $.gctour.lang('printviewRemoveMap'),
click: function(){
map_frame.parentNode.style.display = "none";
}
})
.css('float','right'),
$('<img>', {
'class': 'tourImage',
src: $.gctour.img.refresh,
title: $.gctour.lang('karteneuladen'),
alt : $.gctour.lang('makeMap'),
click: function(){
map_frame.src = map_frame.src;
}
})
.css('float','right'),
$('<img>', {
'class': 'tourImage',
src: $.gctour.img.map,
title: $.gctour.lang('printviewZoomMap'),
alt : $.gctour.lang('printviewZoomMap'),
click: function(){
GM_openInTab(getMapUrl(mapQuery));
}
})
.css('float','right'),
$('<div/>')
.css('clear','both')
).find("img.tourImage").addShadowEffect().addOpacityEffect().css('margin-left','5px');
/*
float:left;margin-right:5px
$('<div>Karte neu laden!</div>')
.css('background','url("'+$.'") top left no-repeat')
.css('padding-left','18px')
.css('clear','both')
.click(function(){map_frame.src = map_frame.src;})
.append(
,
$('<div/>').append(
$("<div/>").gct_slider({
min:20,
max:100,
value:100,
document: newDocument,
slide:function(values){map_frame.style.width=values.value+"%";}
})
)
),
$('<div>'+$.gctour.lang('printviewRemoveMap')+'</div>')
.css('background','url("'+$.gctour.img.del+'") top left no-repeat')
.css('padding-left','18px')
.click(function(){map_frame.parentNode.style.display = "none";}),
$('<div>Karte neu laden!</div>')
.css('background','url("'+$.gctour.img.refresh+'") top left no-repeat')
.css('padding-left','18px')
.css('clear','both')
.click(function(){map_frame.src = map_frame.src;})
);
/*
var factor = 1;
var inputElement = document.createElement('input');control_container.appendChild(inputElement);
inputElement.name = 'mapSize'+mapId;
inputElement.type = 'radio';
if(GM_getValue('defaultMapSize', 'large') === "large"){
inputElement.checked = 'checked';
factor = 1;
}
inputElement.addEventListener('click',function(){var factor = 1;map_frame.style.width=(1 * 20) +"cm";map_frame.style.height=(factor*500)+"px";}, false);
control_container.appendChild(document.createTextNode("large"));
inputElement = document.createElement('input');control_container.appendChild(inputElement);
inputElement.name = 'mapSize'+mapId;
inputElement.type = 'radio';
if(GM_getValue('defaultMapSize', 'large') === "medium"){
inputElement.checked = 'checked';
factor = 0.75;
}
inputElement.addEventListener('click',function(){var factor = 0.75;map_frame.style.width=(1 * 20) +"cm";map_frame.style.height=(factor*500)+"px";}, false);
control_container.appendChild(document.createTextNode("medium"));
inputElement = document.createElement('input');control_container.appendChild(inputElement);
inputElement.name = 'mapSize'+mapId;
inputElement.type = 'radio';
if(GM_getValue('defaultMapSize', 'large') === "small"){
inputElement.checked = 'checked';
factor = 0.5;
}
inputElement.addEventListener('click',function(){var factor = 0.5;map_frame.style.width=(1 * 20) +"cm";map_frame.style.height=(factor*500)+"px";}, false);
control_container.appendChild(document.createTextNode("small"));
control_container.appendChild(createElement('br'));
// delete map button
var divElement = document.createElement('div');control_container.appendChild(divElement);
divElement.style.border = '1px solid lightgray';
divElement.style.marginRight = '10px';
divElement.style.display = "inline";
divElement.style.cursor = "pointer";
divElement.addEventListener('click', function(){map_frame.parentNode.style.display = "none";}, true);
addOpacityEffects(divElement);
var deleteImage = document.createElement('img');
deleteImage.style.cursor = 'pointer';
deleteImage.src = $.gctour.img.del;
divElement.appendChild(deleteImage);
divElement.appendChild(document.createTextNode($.gctour.lang('printviewRemoveMap')));
// var refresh_link = document.getElementById(FrameID).contentDocument.location.reload(true);
control_container.appendChild(createElement('br'));
var map_link = createElement('a',{style:"font-size:80%"});
map_link.href = getMapUrl(mapQuery);
map_link.target = "_blank";
// map_link.addEventListener('click', function(){GM_openInTab(getMapUrl(mapQuery))}, true);
map_link.innerHTML = "("+$.gctour.lang('printviewZoomMap')+")";
control_container.appendChild(map_link);
*/
return control_container;
//~ var updateMapSize = function (mapfactor){
//~ return function(){
//~ map_frame.style.width = (factor * 20) +"cm";
//~ map_frame.style.height = (factor * 500) +"px";
//~ }
//~ };
//~
//~ return function(){
//~ var map = newDocument.getElementById(mapId).getElementsByTagName('iframe')[0];
//~ map.style.width = (factor * 20) +"cm";
//~ map.style.height = (factor * 500) +"px";
//~ }
//~ }
//~
//~ var size_control_div = createElement('div');
//~ size_control_div.innerHTML =
//~ '<input type="radio" name="mapSize'+mapId+'">large</input>\
//~ <input type="radio" name="mapSize'+mapId+'">medium</input>\
//~ <input type="radio" name="mapSize'+mapId+'">small</input>';
//~
//~ var size_control_inputs = $('input',size_control_div);
//~ alert(size_control_inputs.length);
//~ var factor = 1;
//~ /* large */
//~ if(GM_getValue('defaultMapSize', 'large') == "large"){size_control_inputs[0] = 'checked';factor = 1;}
//~ size_control_inputs[0].addEventListener('click',updateMapSize(1), false);
//~ /* medium */
//~ if(GM_getValue('defaultMapSize', 'large') == "medium"){size_control_inputs[1] = 'checked';factor = 0.75;}
//~ size_control_inputs[1].addEventListener('click',updateMapSize(0.75), false);
//~
//~ /* small */
//~ if(GM_getValue('defaultMapSize', 'large') == "small"){size_control_inputs[2] = 'checked';factor = 0.5;}
//~ size_control_inputs[2].addEventListener('click',updateMapSize(0.5), false);
//~
//~ map_container.appendChild(size_control_div);
//~ map_container.appendChild(map_frame);
//~
//~ return map_container;
}
(function( $ ){
var methods = {
init : function( options ) {
var settings = $.extend( {
'min' : '0',
'max' : '100',
'document': document,
'value' : 0
}, options),
scroller_element = $("<a class='ui-slider-handle ui-state-default ui-corner-all' href='#'></a>")
.appendTo( this ),
dragged = false,
slider_width = 0,
slider_offset = 0,
percentage = 0,
self = this;
// set start value
percentage = (100 * settings.value)/settings.max;
scroller_element
.css("left", (percentage)+"%")
.click(function( event ) {
event.preventDefault();
})
.hover(
function() { $( this ).addClass( "ui-state-hover" );},
function() { $( this ).removeClass( "ui-state-hover" );})
.focus(function() {
$( ".ui-slider .ui-state-focus" ).removeClass( "ui-state-focus" );
$( this ).addClass( "ui-state-focus" );
})
.blur(function() {
$( this ).removeClass( "ui-state-focus" );
})
.mousedown(function(e){
e.preventDefault();
dragged = true;
slider_width = parseInt(self.css("width"), 10);
slider_offset = parseInt(self.offset().left, 10);
scroller_element.addClass( "ui-state-active" );
methods["trigger"].apply( self, ["start", methods["calculate"].apply( self, [percentage])]);
});
this.addClass('ui-slider ui-slider-horizontal ui-widget ui-widget-content ui-corner-all')
.append(scroller_element);
$('*',settings.document).mousemove(function(e){
if(dragged){
e.preventDefault();
percentage = (100*(e.pageX-slider_offset))/(slider_width);
percentage = (percentage<0)?0:percentage;
percentage = (percentage>100)?100:percentage;
// debug("MousePos:"+e.pageX+"\tSliderWidth:"+slider_width+"\tSliderOffset:"+slider_offset+"\tMove to:"+percentage);
scroller_element.css("left", (percentage)+"%");
methods["trigger"].apply( self, ["slide", methods["calculate"].apply( self, [percentage])]);
}
});
$('*',settings.document).mouseup(function(){
if(dragged){
dragged = false;
scroller_element.removeClass( "ui-state-active" );
methods["trigger"].apply( self, ["stop", methods["calculate"].apply( self, [percentage])]);
// methods["trigger"].apply( self, {value:percentage});
}
});
this.data('gct_slider', {
target : $(this),
settings : settings
});
return this;
},
calculate : function(percentage) {
var $data = $(this).data('gct_slider'),
max = $data.settings.max,
min = $data.settings.min,
relative_value = (percentage*(max-min))/100,
value = min + relative_value;
// log("relative_value"+ relative_value+ "\tvalue:"+value);
return {percentage:percentage,value:value};
},
trigger : function(type,data){
var $data = $(this).data('gct_slider');
callback = $data.settings[type],
data = data || {};
return !($.isFunction( callback ) &&
callback.apply(this, [ data ]) === false);
}
};
$.fn.gct_slider = function( method ) {
if ( methods[method] ) {
return methods[method].apply( this, Array.prototype.slice.call( arguments, 1 ));
} else if ( typeof method === 'object' || ! method ) {
return methods.init.apply( this, arguments );
} else {
$.error( 'Method ' + method + ' does not exist on jQuery.tooltip' );
}
};
})( $ );
function getMapElement(mapQuery,newDocument) {
var map_container = createElement('div',{style:"text-align: center; margin-left: auto; margin-right: auto;"});
var map_frame = getMap(mapQuery);
map_container.appendChild(getMapControl(mapQuery,map_frame,newDocument));
map_container.appendChild(map_frame);
return map_container;
}
// source of all evil asking groundspeak
function getGeocacheFromElement(element){
var coordinates, logLink, minimal_geocache, $divCacheDetails, $lnkConversions;
var geocache = {};
/*~
geocache
.gcid
.cacheid
.guid
.name
.type
.owner
.hidden
.coordinates
.coordinatesisedit // custom edit boolean
.lat
.lon
.location
.state
.country
.bearing
.distance
.inventory
.attributes
.size
.difficulty
.terrain
.attributes
.short_description
.long_description
.hint
.images
.additional_waypoints
.find_counts
.logs
*/
// first check if really logged in
// default, Challenges + Account + Membership ,Login
logLink = $(element).find('a.SignedInProfileLink, a.CommonUsername, .LoginUsername');
if (logLink.length === 0) {
throw $.gctour.lang('notLogedIn');
}
if ( $("input#ctl00_ContentBody_uxPremiumSubmitBottom", element).length > 0) {
return "pm only";
}
minimal_geocache = getMinimalGeocacheDetails(element);
geocache.gcid = minimal_geocache.gccode;
geocache.cacheid = minimal_geocache.cacheid;
geocache.guid = minimal_geocache.guid;
geocache.name = minimal_geocache.name;
geocache.type = minimal_geocache.type.split(".")[0];
geocache.image = "http://www.geocaching.com/images/WptTypes/"+geocache.type+".gif";
geocache.sym = "Geocache";
if ( $('a#ctl00_ContentBody_hlFoundItLog', element).length >= 1 ) {
geocache.sym = "Geocache Found";
}
geocache.owner = $.trim( $('a[href*="www.geocaching.com/profile/?guid="]', element).first().text() );
if(unsafeWindow.getGCComment){
var comment = unsafeWindow.getGCComment(geocache.guid);
if(comment){
geocache.comment = comment;
}
}
var usernote = $("#cache_note", element).first();
if (usernote.length > 0){
geocache.cache_note = usernote.html();
}
// check availability
var warning_element = $("ul.OldWarning", element).first(); // contains text like
//This cache is temporarily unavailable. Read the logs below to read the status for this cache.
//This cache has been archived, but is available for viewing for archival purposes.
if(warning_element.length > 0){
geocache.archived = (warning_element.text().indexOf("archived") != -1);
geocache.available = false;
} else {
geocache.archived = false;
geocache.available = true;
}
//$divCacheDetails = $('div#cacheDetails', element).first();
//geocache.hidden = parseDate($.trim($('span', $divCacheDetails).eq(2).text().split(':').pop()));
/* (05.2012)
gc.com change DOM
ToDo: testing
*/
$divCacheDetails = $('#ctl00_ContentBody_mcd2', element).first();
geocache.hidden = parseDate($.trim($divCacheDetails.text().split(':').pop()));
/* (01.2012)
event caches =>
LogedIn => okay, Example: 01/08/2012
notLogedIn => unfortunately has an other format => Example: Wednesday, February 29, 2012
solution approach => $.datepicker.parseDate("DD, MM d, yy", date_string)
(http://docs.jquery.com/UI/Datepicker/parseDate)
*/
geocache.difficulty = $.trim( $("span#ctl00_ContentBody_uxLegendScale > img", element).first().attr("alt").split(" out of ")[0] );
geocache.terrain = $.trim( $("span#ctl00_ContentBody_Localize12 > img", element).first().attr("alt").split(" out of ")[0] );
geocache.size = $.trim( $('img[src*="/images/icons/container/"]', element).first().attr("src").split("/")[4].split(".")[0]);
geocache.coordinates = $('span#uxLatLon', element).first().text();
// hole die userDefinedCoords aus GC Javascript
// ExampleString: var userDefinedCoords = {"status":"success","data":{"isUserDefined":false,"oldLatLngDisplay":"N 52° 31.268' E 013° 21.255'"}};
// var userDefinedCoordsString = element.innerHTML.split("var userDefinedCoords = {")[1].split("};")[0];
//var userDefinedCoordsString = element.innerHTML.split("var userDefinedCoords = {") || "";
//userDefinedCoordsString = userDefinedCoordsString[1] || "";
//userDefinedCoordsString = userDefinedCoordsString.split("};") || "";
//userDefinedCoordsString = userDefinedCoordsString[0] || "";
var patt = /var userDefinedCoords = {*([\s\S]*?)}[;]+/; // suche nach "var userDefinedCoords = {" bis "};"
var r;
var userDefinedCoordsString = ((r = patt.exec( $(element).text() )) != null) ? r[1] : "";
var userDefinedCoords = jQuery.parseJSON('{' + userDefinedCoordsString + '}');
geocache.coordinatesisedit = (userDefinedCoords && userDefinedCoords.status == "success" && userDefinedCoords.data.isUserDefined == true); // false = original
$lnkConversions = $('a#ctl00_ContentBody_uxViewLargerMap', element).first().attr("href");
geocache.lat = $lnkConversions.split("lat=")[1].split("&")[0];
geocache.lon = $lnkConversions.split("lng=")[1].split("&")[0];
// if the user changed the coordinates of this geocache
if (GM_getValue('coords_' + geocache.gcid, "null") != "null") { // use it
coordinates = GM_getValue('coords_' + geocache.gcid, "null").split("#");
geocache.lat = coordinates[0];
geocache.lon = coordinates[1];
geocache.coordinates = new LatLon(geocache.lat , geocache.lon ).toString();
geocache.coordinatesisedit = true;
}
geocache.location = $("span#ctl00_ContentBody_Location", element).first().text();
try {
// get the country and (if exists) the state!
if(geocache.location.indexOf(",") < 0){ // if the index of "," < 0 then the state is not given!
geocache.state = "";
geocache.country = $.trim(geocache.location.split("In ")[1]);
} else {
geocache.state = $.trim(geocache.location.split("In ")[1].split(',')[0]);
geocache.country = $.trim(geocache.location.split("In ")[1].split(',')[1]);
}
} catch(e){ // somthing went wrong - write the whole location to country
geocache.state = "";
geocache.country = $.trim(geocache.location);
}
try{
// ToDo check distance
geocache.bearing = $('span#lblDistFromHome > img', element).first().attr("alt");
var distanceTemp = $('span#lblDistFromHome', element).first().text().split(" ");
geocache.distance = distanceTemp[0] + " " + distanceTemp[1];
} catch(e) {
// if homecoordinates are not set
geocache.bearing = "";
geocache.distance = "";
}
geocache.inventory = $('ul > li > a > img', $('div.WidgetBody', element).eq(1) );
geocache.attributes = $('div.CacheDetailNavigationWidget > div.WidgetBody > img', element);
geocache.attributes_array = [];
geocache.attributes.each(function(index, Element) {
// remove garbage from source address und split it at the "-"
var attribute_array = this.src.replace("http://www.geocaching.com/images/attributes/","").replace(".gif", "").split("-");
// iterate over every attributes defined in the global attributes array
for (var attributesDef_i = 0; attributesDef_i < attributes_array.length; attributesDef_i++){
// ... and check whether the image is equal to the definition
if(attribute_array[0] == attributes_array[attributesDef_i][1]){
// add this attribute as array with id-0, image-1, name-2 and yes/no-4
geocache.attributes_array.push([attributes_array[attributesDef_i][0],attributes_array[attributesDef_i][1],attributes_array[attributesDef_i][2], ((attribute_array[1]=="yes")?1:0)]);
}
}
});
geocache.short_description = $('span#ctl00_ContentBody_ShortDescription', element).first();
geocache.long_description = $('span#ctl00_ContentBody_LongDescription', element).first();
geocache.images = $('a[rel="lightbox"]', element);
geocache.additional_waypoints = [];
var additional_waypoints = $('table.Table > tbody > tr', element);
for(var i = 0;i < additional_waypoints.length;i = i+2){
var row1 = additional_waypoints[i];
var row2 = additional_waypoints[i+1];
var row1_tds = row1.getElementsByTagName('td');
var row2_tds = row2.getElementsByTagName('td');
coordinates = parseCoordinates(row1_tds[6].textContent);
var waypoint = {};
waypoint.symbol = row1_tds[2].childNodes[1].src;
waypoint.prefix = $.trim(row1_tds[3].textContent);
waypoint.lookup = $.trim(row1_tds[4].textContent);
waypoint.name = row1_tds[5].childNodes[1].textContent;
waypoint.coordinates = $.trim(row1_tds[6].textContent);
waypoint.latitude = coordinates._lat;
waypoint.longitude = coordinates._lon;
waypoint.note = $.trim(row2_tds[2].textContent);
// Final Location http://www.geocaching.com/images/wpttypes/sm/flag.jpg
// Parking Area http://www.geocaching.com/images/wpttypes/sm/pkg.jpg
// Question to Answer http://www.geocaching.com/images/wpttypes/sm/puzzle.jpg
// Stages of a Multicache http://www.geocaching.com/images/wpttypes/sm/stage.jpg
// Trailhead http://www.geocaching.com/images/wpttypes/sm/trailhead.jpg
// Reference Point http://www.geocaching.com/images/wpttypes/sm/waypoint.jpg
switch (waypoint.symbol) {
case "http://www.geocaching.com/images/wpttypes/sm/flag.jpg":
waypoint.symbol_groundspeak = "Final Location";
waypoint.type_groundspeak = "Waypoint|Final Location";
break;
case "http://www.geocaching.com/images/wpttypes/sm/pkg.jpg":
waypoint.symbol_groundspeak = "Parking Area";
waypoint.type_groundspeak = "Waypoint|Parking Area";
break;
case "http://www.geocaching.com/images/wpttypes/sm/puzzle.jpg":
waypoint.symbol_groundspeak = "Question to Answer";
waypoint.type_groundspeak = "Waypoint|Question to Answer";
break;
case "http://www.geocaching.com/images/wpttypes/sm/stage.jpg":
waypoint.symbol_groundspeak = "Stages of a Multicache";
waypoint.type_groundspeak = "Waypoint|Stages of a Multicache";
break;
case "http://www.geocaching.com/images/wpttypes/sm/trailhead.jpg":
waypoint.symbol_groundspeak = "Trailhead";
waypoint.type_groundspeak = "Waypoint|Trailhead";
break;
case "http://www.geocaching.com/images/wpttypes/sm/waypoint.jpg":
waypoint.symbol_groundspeak = "Reference Point";
waypoint.type_groundspeak = "Waypoint|Reference Point";
break;
default:
waypoint.symbol_groundspeak = "Unknown Type";
waypoint.type_groundspeak = "Waypoint|Unknown Type";
break;
}
geocache.additional_waypoints.push(waypoint);
}
var hints_element = $('div#div_hint', element).first();
geocache.hint = (hints_element.length > 0) ? convertROTStringWithBrackets( $.trim(hints_element.text()) ) : "";
geocache.find_counts = $('span#ctl00_ContentBody_lblFindCounts > p', element).first();
// hole den UserToken und benutze ihn um die Logs einzusammeln
var userToken = element.innerHTML.split("userToken = '")[1].split("'")[0];
var maxGPXLogs = parseInt(GM_getValue('maxGPXLogs', 10), 10);
geocache.logs = getLogs(userToken, maxGPXLogs);
log("fn getGeocacheFromElement - geocache.logs.length: " + geocache.logs.length);
return geocache;
}
function getGeocache(gcid){
var response = GM_xmlhttpRequest({
method: "GET",
url: 'http://www.geocaching.com/seek/cache_details.aspx?log=y&wp='+gcid,
synchronous: true
});
// after execution parse the result
var response_div = createElement('div');
response_div.innerHTML = response.responseText;
GM_setValue("debug_lastgcid",gcid);
GM_setValue("debug_lastcachesite",response.responseText);
return getGeocacheFromElement(response_div);
}
// return an object with this attributes: gcid, cacheid, guid, typeimage, name
function getMinimalGeocacheDetails(detailsPage){
/* gcid, cacheid, guid, typeimage, name */
var geocache_details = {};
var $obj = {}; // temp jquery container
/* GCCode Stand 07.10.2011, update 16.05.2012
* <span id="ctl00_ContentBody_CoordInfoLinkControl1_uxCoordInfoCode" class="CoordInfoCode">GC2HFRB</span>
* Fallback#1: steht im TITLE: <title>GC3JQEQ Pikaflow ...</title>
* Fallback#2: NUR WENN EINGELOGGT: <input type="submit" name="ctl00$ContentBody$btnSendToPhone" value="Send to My Phone" onclick="s2phone(&#39;GC2HFRB&#39;);return false;" id="ctl00_ContentBody_btnSendToPhone" />
*/
$obj.gcc = [
$('.CoordInfoCode', detailsPage).first().text(),
$('title', detailsPage).first().text(), // Fallback #1
$('input#ctl00_ContentBody_btnSendToPhone', detailsPage).first().attr('onclick') // Fallback #2
];
// Validierung
// example: http://jsfiddle.net/NUFGq/15/
geocache_details.gccode =
(findGCCodeFromString($obj.gcc[0])) ||
(findGCCodeFromString($obj.gcc[1])) ||
(findGCCodeFromString($obj.gcc[2])) ||
null;
if (!geocache_details.gccode) {
throw "Fatal: Error getting GCCode! (getMinimalGeocacheDetails)";
} else {
debug("getMinimalGeocacheDetails - GCCode: " + geocache_details.gccode);
$.each($obj.gcc, function(i, n){
debug ("\t" + i + ": " + findGCCodeFromString(n) + " = " + isGCCode(findGCCodeFromString(n)));
});
}
/* CacheId aus einer diesen Quellen:
* HTML REGEXP Quelle
ccid=1957539" ccid=(\d+) "View all Trackables" Link
"CacheID":1957539 \"CacheID\":(\d+) teil der vorgeladenen Logs
w=1957539" \Ww=(\d+) "Watch Listing" link
*/
try{
var cacheid_regex = /ccid=\d+|\"CacheID\":\d+|\Wws=\d+/;
var cacheid_arr = cacheid_regex.exec(detailsPage.innerHTML);
geocache_details.cacheid = cacheid_arr[0].split(/:|=/)[1];
debug("getMinimalGeocacheDetails - CacheID:" + geocache_details.cacheid);
} catch(e){
throw "Error getting 'cacheid' from " + geocache_details.gccode;
}
/* Cachename:
* <span id="ctl00_ContentBody_CacheName">3, 2, 1 ... Lift-Off</span></h2>
* <meta name="og:title" content="3, 2, 1 ... Lift-Off" property="og:title" />
*/
$obj.name = [
$('span#ctl00_ContentBody_CacheName', detailsPage).first().text(),
$('meta[name="og:title"]', detailsPage).first().attr('content') // Fallback #1
];
geocache_details.name =
($obj.name[0] && $.trim($obj.name[0])) ||
($obj.name[1] && $.trim($obj.name[1])) ||
null;
if (!geocache_details.name) {
throw "Error getting 'cacheName' from " + geocache_details.gccode;
} else {
debug(
"getMinimalGeocacheDetails - Name: " + geocache_details.name + "\n" +
"\t1: " + ( ($obj.name[0]) ? $obj.name[0] : "null" ) + "\n" +
"\t2: " + ( ($obj.name[1]) ? $obj.name[1] : "null" )
);
}
/* Hole guid
* <form name="aspnetForm" method="post" action="cache_details.aspx?guid=712fed16-77ab-48f4-a269-18cc27bb2a14" onsubmit="javascript:return WebForm_OnSubmit();" id="aspnetForm">
* <a id="ctl00_ContentBody_lnkPrintFriendly5Logs" href="cdpf.aspx?guid=712fed16-77ab-48f4-a269-18cc27bb2a14&amp;lc=5" target="_blank">5 Logs</a>&nbsp;
* <a id="ctl00_ContentBody_uxTravelBugList_uxTrackableItemsHistory" href="../track/search.aspx?wid=712fed16-77ab-48f4-a269-18cc27bb2a14">View past Trackables</a>
* <a id="ctl00_ContentBody_uxLogbookLink" href="cache_logbook.aspx?guid=712fed16-77ab-48f4-a269-18cc27bb2a14">View Logbook</a>
* lat=51.167083; lng=10.533383; guid='712fed16-77ab-48f4-a269-18cc27bb2a14';
*/
$obj.guid = [
$("form[name='aspnetForm'][action*='guid=']", detailsPage).first().attr("action"),
$("a#ctl00_ContentBody_lnkPrintFriendly5Logs[href*='guid=']", detailsPage).first().attr("href"),
$("a#ctl00_ContentBody_uxTravelBugList_uxTrackableItemsHistory[href*='wid=']", detailsPage).first().attr("href"),
$("a#ctl00_ContentBody_uxLogbookLink[href*='guid=']", detailsPage).first().attr("href")
];
//alert($("form[name='aspnetForm']", detailsPage).first().attr("action"));
geocache_details.guid =
($obj.guid[0] && $.trim($obj.guid[0].split("guid=")[1].split("&")[0])) ||
($obj.guid[1] && $.trim($obj.guid[1].split("guid=")[1].split("&")[0])) ||
($obj.guid[2] && $.trim($obj.guid[2].split("wid=")[1].split("&")[0])) ||
($obj.guid[3] && $.trim($obj.guid[3].split("guid=")[1].split("&")[0])) ||
null;
if (!geocache_details.guid) {
throw "Error getting 'guid' from " + geocache_details.gccode;
} else {
debug(
"getMinimalGeocacheDetails - Guid: " + geocache_details.guid + "\n" +
"\t1: " + ( ($obj.guid[0]) ? $obj.guid[0].split("guid=")[1].split("&")[0] : "null" ) + "\n" +
"\t2: " + ( ($obj.guid[1]) ? $obj.guid[1].split("guid=")[1].split("&")[0] : "null" ) + "\n" +
"\t3: " + ( ($obj.guid[2]) ? $obj.guid[2].split("wid=")[1].split("&")[0] : "null" ) + "\n" +
"\t4: " + ( ($obj.guid[3]) ? $obj.guid[3].split("guid=")[1].split("&")[0] : "null" )
);
}
/* Hole type
* <a href="/about/cache_types.aspx" target="_blank" title="About Cache Types"><img src="/images/WptTypes/2.gif" alt="Traditional Cache" title="Traditional Cache" /></a>
*/
$obj.type = [
$('a[title="About Cache Types"] > img', detailsPage).first().attr("src")
];
geocache_details.type =
($obj.type[0] && $.trim($obj.type[0].split("/")[3])) ||
null;
if (!geocache_details.type) {
throw "Error getting 'type' from " + geocache_details.gccode;
} else {
debug(
"getMinimalGeocacheDetails - Type: " + geocache_details.type + "\n" +
"\t1: " + ( ($obj.type[0]) ? $obj.type[0].split("/")[3] : "null" )
);
}
return geocache_details;
}
function getLogs(userToken, maxLogsCount){
maxLogsCount = $.isNumeric(maxLogsCount) ? maxLogsCount : 25; // optionaler Parameter default = 25, kann auch 0 sein
var i = 1,
numLogsPages = (maxLogsCount < 100) ? 25 : 100, // wieviel Logs je Request
logs = [],
urlTemplate = 'http://www.geocaching.com/seek/geocache.logbook?tkn='+userToken+'&idx=#PAGE#&num=#NUM#&decrypt=false',
url, n,
log_obj = {},
req = new XMLHttpRequest(),
booA, booB;
if (maxLogsCount <= 0) {
return logs;
}
do {
url = urlTemplate.replace("#PAGE#", i).replace("#NUM#", numLogsPages);
var response = GM_xmlhttpRequest({
method: "GET",
url: url,
synchronous: true
});
// after execution parse the result
log_obj = JSON.parse(response.responseText);
// füge alle ankommenden logs an das bestehende Array einfach hinten dran!
logs = logs.concat(log_obj.data);
//~ LogID 273160821
//~ CacheID 2436701
//~ LogGuid "8fd33a36-bb44-40ed-9b8b-41737e2d0c6a"
//~ Latitude null
//~ Longitude null
//~ LatLonString ""
//~ LogType "Found it"
//~ LogTypeImage "2.png"
//~ LogText "Schönes Versteck, süße ...>Lisa, Yvonne und Frank"
//~ Created "10/14/2012"
//~ Visited "10/14/2012"
//~ UserName "sweet cats"
//~ MembershipLevel "1"
//~ AccountID 6385212
//~ AccountGuid "0260fb1b-7cf1-4ef5-a3b6-6257276e3962"
//~ Email ""
//~ AvatarImage "99ff8cf2-7b7a-49a9-bb90-a38448158223.jpg"
//~ GeocacheFindCount 33
//~ GeocacheHideCount 0
//~ ChallengesCompleted 0
//~ IsEncoded false
//~ creator Object { GroupTitle="Member", GroupImageUrl="/images/icons/reg_user.gif"}
//~ GroupTitle "Member"
//~ GroupImageUrl "/images/icons/reg_user.gif"
//~ Images []
//~ debug(logs[0].UserName);
i++;
booA = (i <= log_obj.pageInfo.totalPages); // gibt es noch eine Seite danach ?
booB = (logs.length < maxLogsCount); // maximale gewünschte Anzahl Logs noch nicht erreicht ?
} while (booA && booB); // nächster Request ?
// LogArray ggf. kürzen
if (logs.length > maxLogsCount) {
n = maxLogsCount - logs.length;
logs = logs.slice(0, n);
}
return logs;
}
function getAttributeXML(attribute_a){
return " <groundspeak:attribute id='"+attribute_a[0]+"' inc='"+attribute_a[3]+"'>"+attribute_a[2]+"</groundspeak:attribute>\n";
}
function getGPXfromMarker(marker){
var gpx = '';
gpx += '<wpt xmlns="http://www.topografix.com/GPX/1/0" lat="' + marker.latitude +'" lon="' + marker.longitude +'">\n';
gpx += ' <time>' + xsdDateTime(new Date()) + '</time>\n';
gpx += ' <name>' + encodeHtml(marker.name) + '</name>\n';
gpx += ' <cmt>' + encodeHtml(marker.content) + '</cmt>\n';
gpx += ' <sym>' + marker.symbol + '</sym>\n';
gpx += '</wpt>\n';
return gpx;
}
function getWaypointsGPXFromGeocache(waypoint,geocache){
var waypointName = waypoint.prefix+geocache.gcid.replace(/GC/,'');
var gpx = '';
gpx += '<wpt xmlns="http://www.topografix.com/GPX/1/0" lat="' + waypoint.latitude +'" lon="' + waypoint.longitude +'">\n';
gpx += ' <time>' + xsdDateTime(geocache.dateHidden) + '</time>\n';
gpx += ' <name>' + encodeHtml(waypointName) + '</name>\n';
gpx += ' <cmt>' + encodeHtml(waypoint.note) + '</cmt>\n';
gpx += ' <desc>' + encodeHtml(waypoint.name) + '</desc>\n';
gpx += ' <sym>' + waypoint.symbol_groundspeak + '</sym>\n';
gpx += ' <type>' + waypoint.type_groundspeak + '</type>\n';
gpx += '</wpt>\n';
return gpx;
}
function getGPXGeoCache(gcid){
var i; // for ()
var geocache = {},
geocache_obj = getGeocache(gcid);
if (geocache_obj === "pm only") {
return geocache_obj;
}
/*
geocache.gcid
.guid
.cacheid
.name
.type
.owner
.hidden
.coordinates
.lat
.lon
.location
.state
.country
.bearing
.distance
.inventory
.size
.difficulty
.terrain
.attributes
.short_description
.long_description
.hint
.images
.additional_waypoints
.find_counts
.logs
*/
geocache.gcid = geocache_obj.gcid;
if (GM_getValue('gpxstripgc', false)) {
geocache.gcid = geocache.gcid.replace(/GC/,'');
}
geocache.guid = geocache_obj.guid;
geocache.cacheid = geocache_obj.cacheid;
geocache.archived = (geocache_obj.archived) ? "True" : "False";
geocache.available = (geocache_obj.available) ? "True" : "False";
geocache.cacheName = geocache_obj.name;
geocache.cacheOwner = geocache_obj.owner;
geocache.cacheType = geocache_obj.type;
geocache.cacheSize = geocache_obj.size;
geocache.cacheSym = geocache_obj.sym;
switch (geocache_obj.type) {
case "micro": geocache.cacheSize = "Micro"; break;
case "small": geocache.cacheSize = "Small"; break;
case "regular": geocache.cacheSize = "Regular"; break;
case "large": geocache.cacheSize = "Large"; break;
case "other": geocache.cacheSize = "Other"; break;
case "not_chosen": geocache.cacheSize = "Not chosen"; break;
case "virtual": geocache.cacheSize = "Virtual"; break;
default: geocache.cacheType = ""; break;
}
// define the cache type
// if the GPX type is Groundspeak - parse type through the wptArr from autotour:
for( i = 0; i < wptArray.length; i++){
if(wptArray[i].wptTypeId == geocache_obj.type){
geocache.cacheType = wptArray[i].name;
}
}
geocache.attributes_array = geocache_obj.attributes_array;
geocache.difficulty = geocache_obj.difficulty;
geocache.terrain = geocache_obj.terrain;
// get the summery and the description
var summary = geocache_obj.short_description,
description = geocache_obj.long_description;
if (GM_getValue('gpxhtml',true)) {
geocache.longDescription = (description.length === 1) ? description.html() : "";
geocache.shortDescription = (summary.length === 1) ? summary.html() : "";
} else {
geocache.longDescription = (description.length === 1) ? description.text() : "";
geocache.shortDescription = (summary.length === 1) ? summary.text() : "";
}
geocache.hint = geocache_obj.hint;
geocache.state = geocache_obj.state;
geocache.country = geocache_obj.country;
// hidden Date
geocache.dateHidden = geocache_obj.hidden;
geocache.logs = [];
for( i = 0; i < geocache_obj.logs.length; i++){
var logObj = {};
// from: "madd.in"
// type: "Found It", "Didn't find it", "Temporarily Disable Listing", "Write note", "Enable Listing",...
// text: "Netter Log eintrag."
// logdate: "August 18" oder "February 17, 2007"
// id: 12345679
var gc_log = geocache_obj.logs[i];
logObj.cacherName = gc_log.UserName;
logObj.type = gc_log.LogType;
// debug("Logtype: "+gc_log.LogType+ " to GPX Type:"+logObj.type);
logObj.foundDate = parseDate(gc_log.Created);
logObj.content = gc_log.LogText;
logObj.id = gc_log.LogID;
// jobs done great - lets save this
geocache.logs.push(logObj);
}
//additionalWaypoints
geocache.additionalWaypoints = geocache_obj.additional_waypoints;
geocache.latitude = geocache_obj.lat;
geocache.longitude = geocache_obj.lon;
log([
"--------------[START " + geocache.gcid + "]-------------",
"gcid: \t\t" + geocache.gcid,
"guid: \t\t" + geocache.guid,
"cacheid: \t" + geocache.cacheid,
"archived: \t" + geocache.archived,
"available: \t" + geocache.available,
"cacheName:\t" + geocache.cacheName,
"cacheSym (GPX):\t" + geocache.cacheSym,
"cacheOwner:\t" + geocache.cacheOwner,
"dateHidden:\t" + geocache.dateHidden,
"cacheType:\t" + geocache.cacheType,
"cacheSize:\t" + geocache.cacheSize,
"difficulty:\t" + geocache.difficulty,
"terrain:\t" + geocache.terrain,
//~ "latLon:\t" + geocache.latLon.innerHTML,
"latitude:\t" + geocache.latitude,
"longitude:\t" + geocache.longitude,
"state:\t\t" + geocache.state,
"country:\t" + geocache.country,
"shortDescription:\n\n" + geocache.shortDescription,
"longDescription:\n\n" + geocache.longDescription,
"hint:\t\t" + geocache.hint,
"--------------[END " + geocache.gcid + "]--------------"
].join("\n"));
return geocache;
}
function getGPX(){
var i, ii, iii; // for ()
var gpxHeader =
'<?xml version="1.0" encoding="utf-8"?>\n' +
'<gpx xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" version="1.0" creator="GCTour" xsi:schemaLocation="http://www.topografix.com/GPX/1/0 http://www.topografix.com/GPX/1/0/gpx.xsd http://www.groundspeak.com/cache/1/0/1 http://www.groundspeak.com/cache/1/0/1/cache.xsd" xmlns="http://www.topografix.com/GPX/1/0">\n' +
' <name>' +encodeHtml(currentTour.name)+'</name>\n' +
' <desc>This is an individual cache generated from Geocaching.com</desc>\n' +
' <author>GCTour v' +VERSION+'.' +BUILD+'</author>\n' +
' <email>[email protected]</email>\n' +
' <url>http://www.geocaching.com</url>\n' +
' <urlname>Geocaching - High Tech Treasure Hunting</urlname>\n' +
' <time>' + xsdDateTime(new Date()) +'</time>\n' +
' <keywords>cache, geocache</keywords>\n' +
' <bounds minlat="##MINLAT##" minlon="##MINLON##" maxlat="##MAXLAT##" maxlon="##MAXLON##" />\n' +
'##GEOCACHES##\n' +
'##WAYPOINTS##\n' +
'</gpx>';
var geocacheTemplate =
'<wpt lat="##LAT##" lon="##LON##">\n' +
' <time>##TIME##</time>\n' +
' <name>##GCID##</name>\n' +
' <desc>##CACHENAME## by ##OWNER##, ##TYPE## (##DIFFICULTY##/##TERRAIN##)</desc>\n' + //' <url>http://www.geocaching.com/seek/cache_details.aspx?wp=##GCID##</url>\n' +
' <url>http://www.geocaching.com/seek/cache_details.aspx?guid=##GUID##</url>\n' +
' <urlname>##CACHENAME##</urlname>\n' +
' <sym>##CACHESYM##</sym>\n' +
' <type>Geocache|##TYPE##</type>\n' +
' <groundspeak:cache id="##CACHEID##" available="##AVAILABLE##" archived="##ARCHIVED##" xmlns:groundspeak="http://www.groundspeak.com/cache/1/0/1">\n' +
' <groundspeak:name>##CACHENAME##</groundspeak:name>\n' +
' <groundspeak:placed_by>##OWNER##</groundspeak:placed_by>\n' +
' <groundspeak:owner>##OWNER##</groundspeak:owner>\n' +
' <groundspeak:type>##TYPE##</groundspeak:type>\n' +
' <groundspeak:container>##CONTAINER##</groundspeak:container>\n' +
' <groundspeak:attributes>\n##ATTRIBUTES## </groundspeak:attributes>\n' +
' <groundspeak:difficulty>##DIFFICULTY##</groundspeak:difficulty>\n' +
' <groundspeak:terrain>##TERRAIN##</groundspeak:terrain>\n' +
' <groundspeak:country>##COUNTRY##</groundspeak:country>\n' +
' <groundspeak:state>##STATE##</groundspeak:state>\n' +
' <groundspeak:short_description html="True">##SUMMARY##</groundspeak:short_description>\n' +
' <groundspeak:long_description html="True">##DESCRIPTION##</groundspeak:long_description>\n' +
' <groundspeak:encoded_hints>##HINT##</groundspeak:encoded_hints>\n' +
' <groundspeak:logs>\n##LOGS## </groundspeak:logs>\n' +
' </groundspeak:cache>\n' +
'</wpt>';
var geocacheLogTemplate =
' <groundspeak:log id="##LOGID##">\n' +
' <groundspeak:date>##TIME##</groundspeak:date>\n' +
' <groundspeak:type>##LOGTYPE##</groundspeak:type>\n' +
' <groundspeak:finder>##CACHERNAME##</groundspeak:finder>\n' +
' <groundspeak:text encoded="False">##LOGTEXT##</groundspeak:text>\n' +
' </groundspeak:log>\n';
var gcStrArray = [],
wptStrArray = [],
minLat, minLon,
maxLat, maxLon;
for ( i = 0; i < currentTour.geocaches.length; i++){
// iff the cancelbutton is presssed
if(GM_getValue("stopTask",false)){
GM_setValue("stopTask",false);
return "canceled"; // then return!
}
var costumMarker = (typeof(currentTour.geocaches[i].latitude) != "undefined");
if(!costumMarker){
var geocache = getGPXGeoCache(currentTour.geocaches[i].id);
if(geocache !== "pm only"){
debug("GS GPX: geocache.dateHidden:'"+geocache.dateHidden+"' -> xsd:'"+xsdDateTime(geocache.dateHidden)+"'");
var logs = geocache.logs;
var logsStringArray = [];
var attributeLog, attributeLogtext;
// create log with attributes!
if (GM_getValue('gpxattributestolog', false)) {
attributeLogtext = $.map(geocache.attributes_array, function(row, i){
return row[2] + ": "+ ((row[3] === 1)?"yes":"no");
}).join("\n");
attributeLog = geocacheLogTemplate;
attributeLog = attributeLog.replace(/##LOGID##/g,geocache.cacheid)
.replace(/##TIME##/g,xsdDateTime(new Date()))
.replace(/##CACHERNAME##/g,"GCTour")
.replace(/##LOGTYPE##/g,"Write note")
.replace(/##LOGTEXT##/g,attributeLogtext);
logsStringArray.push(attributeLog);
}
// just max 200 logs in the gpx
for ( ii = 0; (ii < logs.length && ii < 200); ii++){
var geocacheLogMapping = [
['LOGID', logs[ii].id], // Issue3
['TIME', xsdDateTime(logs[ii].foundDate)],
['CACHERNAME', encodeHtml(logs[ii].cacherName)],
['LOGTYPE', logs[ii].type],
['LOGTEXT', encodeHtml($("<div/>").html(logs[ii].content.br2space()).text().trimAll())]
];
var cacheWaypointLog = geocacheLogTemplate;
for ( iii = 0 ; iii<geocacheLogMapping.length ; iii++){
cacheWaypointLog = cacheWaypointLog.replace(new RegExp("##"+geocacheLogMapping[iii][0]+"##","g"),geocacheLogMapping[iii][1]);
}
logsStringArray.push(cacheWaypointLog);
}
var attributesString = "";
for ( ii = 0; (ii < geocache.attributes_array.length); ii++){
attributesString += getAttributeXML(geocache.attributes_array[ii]);
}
var geocacheMapping = [
['LAT', geocache.latitude],
['LON', geocache.longitude],
['TIME', xsdDateTime(geocache.dateHidden)],
['GCID', geocache.gcid],
['CACHEID', geocache.cacheid],
['GUID', geocache.guid],
['AVAILABLE', geocache.available],
['ARCHIVED', geocache.archived],
['CACHENAME', encodeHtml(geocache.cacheName)],
['CACHESYM', geocache.cacheSym],
['OWNER', encodeHtml(geocache.cacheOwner)],
['STATE', encodeHtml(geocache.state)],
['COUNTRY', encodeHtml(geocache.country)],
['TYPE', geocache.cacheType],
['CONTAINER', geocache.cacheSize],
['ATTRIBUTES', attributesString],
['DIFFICULTY', geocache.difficulty],
['TERRAIN', geocache.terrain],
['SUMMARY', encodeHtml(geocache.shortDescription)],
['DESCRIPTION', encodeHtml(geocache.longDescription)],
['HINT', encodeHtml(geocache.hint)],
['LOGS', logsStringArray.join("")]
];
if (!maxLat){
maxLat = geocache.latitude;
minLat = geocache.latitude;
maxLon = geocache.longitude;
minLon = geocache.longitude;
}
maxLat = (maxLat < geocache.latitude) ? geocache.latitude : maxLat;
maxLon = (maxLon < geocache.longitude) ? geocache.longitude : maxLon;
minLon = (minLon > geocache.longitude) ? geocache.longitude : minLon;
minLat = (minLat > geocache.latitude) ? geocache.latitude : minLat;
var cacheWaypoint = geocacheTemplate;
for( ii = 0 ; ii < geocacheMapping.length ; ii++){
cacheWaypoint = cacheWaypoint.replace(new RegExp("##"+geocacheMapping[ii][0]+"##","g"),geocacheMapping[ii][1]);
}
gcStrArray.push(cacheWaypoint);
if(GM_getValue('gpxwpts',true)){
for( iii = 0;iii<geocache.additionalWaypoints.length;iii++){
// vielleicht sollte man die ??? Wegpunkte in die Nähe des Geocaches legen => Man hätte sie auf dem Gerät!
if(geocache.additionalWaypoints[iii].coordinates != "???"){
wptStrArray.push(getWaypointsGPXFromGeocache(geocache.additionalWaypoints[iii],geocache));
}
}
}
} // pm only check
} else { // costum marker check
wptStrArray.push(getGPXfromMarker(currentTour.geocaches[i]));
//~ var dom = parseXml(getGPXfromMarker(currentTour.geocaches[i]),"text/xml");
//~ var waypoint = dom.getElementsByTagName('wpt')[0];
//~ gpxElement.appendChild(waypoint);
}
setProgress(i,currentTour.geocaches.length,document);
} // itertion end
//~ var str = new XMLSerializer().serializeToString(gpxDom);
var str = gpxHeader;
str = str.replace(new RegExp("##GEOCACHES##","g"), gcStrArray.join("\n"))
.replace(new RegExp("##WAYPOINTS##","g"), wptStrArray.join("\n"))
.replace(new RegExp("##MINLAT##","g"), minLat)
.replace(new RegExp("##MINLON##","g"), minLon)
.replace(new RegExp("##MAXLAT##","g"), maxLat)
.replace(new RegExp("##MAXLON##","g"), maxLon);
//~ getKäse();
return str;
}
function setLanguage(l){
return function(){
GM_setValue('language',l);
window.location.reload();
};
}
function setGPXSchema(value){
return function(){
GM_setValue('gpxschema',value);
};
}
function toggleBoolValue(valueName, defaultValue){
return function(){
GM_setValue(valueName, !GM_getValue(valueName, defaultValue));
};
}
function setPrintFontSize(fontSize){
return function(){
GM_setValue('printFontSize',fontSize);
};
}
function setPrintMapType(mapType){
return function(){
GM_setValue('printOutlineMapType',mapType);
};
}
function setPrintMapSize(mapSize){
return function(){
GM_setValue('defaultMapSize',mapSize);
};
}
function Settings(){
setting_groups = [
['language',this.getLanguage()],
['printview',this.getPrint()],
['settings_map',this.getMaps()],
['settingsGPX',this.getGPX()]
//['settingsSendToGPS',this.getLanguage()],
//['settingsDownladGPX',this.getLanguage(),
//['settingsUploadTour',this.getLanguage()]
];
}
Settings.prototype.show = function(){
var overlayArray = getListOverlay({caption:$.gctour.lang('settings_caption')});
var listUl = overlayArray[0];
this.details = overlayArray[1];
for(var header_i = 0; header_i < setting_groups.length;header_i++){
var header = setting_groups[header_i][0];
var contentFunction = setting_groups[header_i][1];
var headerLi = createElement('li');append(headerLi,listUl);
var settingsLink;
settingsLink = createElement('a',{style:"cursor:pointer;font-size:12px;color:#003399"});
settingsLink.setAttribute("setting", header_i);
settingsLink.innerHTML = $.gctour.lang(header);
//settingsLink.addEventListener('click',this.update(content,this.details,settingsLink,this.activeLink),false);
settingsLink.addEventListener('click',this.update,true);
settingsLink.setAttribute('contentFunction', contentFunction);
settingsLink.setAttribute('header', header);
append(settingsLink,headerLi);
}
this.details.innerHTML = "<h2 align='center'>"+$.gctour.lang('settings_caption')+"</h2>";
};
Settings.prototype.getGPX = function(){
var div = createElement('div'),
maxLogs_span = createElement('div',{style:"border-bottom: 1px solid;lightgray;margin-bottom:10px;padding-bottom:3px;"}),
maxLogs_caption = createElement('span'),
maxLogs = createElement('input',{type:"text",size: 2,value:2,style:"margin: 5px 0 0 10px;"});
maxLogs_caption.innerHTML = "<b>"+$.gctour.lang('settings.gpx.maxLogCount')+"</b><br/>";
append(maxLogs_caption, maxLogs_span);
maxLogs.addEventListener('click', function(){
GM_setValue('maxGPXLogs', maxLogs.value);
}, false);
maxLogs.addEventListener('keyup',
function(){
var check,
anz = maxLogs.value, //get characters
integersOnly = new RegExp(/^\d+$/);
check = integersOnly.test(anz);
if(!check) { // highlight if something is wrong
maxLogs.style.backgroundColor = '#ff7f7f';
} else {
maxLogs.style.backgroundColor = '#ffffff';
GM_setValue('maxGPXLogs',anz);
}
}, false);
maxLogs.value = GM_getValue('maxGPXLogs', 10);
append(maxLogs, maxLogs_span);
append(this.getCheckbox('settingsGPXHtml', 'gpxhtml',true),div);
append(this.getCheckbox('settingsGPXWpts', 'gpxwpts',true),div);
append(this.getCheckbox('settingsGPXAttributestoLog', 'gpxattributestolog',false),div);
append(maxLogs_span,div);
append(this.getCheckbox('settingsGPXStripGC', 'gpxstripgc',false),div);
return div;
};
Settings.prototype.getLanguage = function(){
var div = createElement('div'),
language_arr = [],
language_obj = {};
$.each( $.gctour.i18n, function( l, o ) {
language_obj = {};
language_obj.value = l;
language_obj.caption = ((o.name) || "language");
language_arr.push(language_obj);
});
// alphabetic order
// Quelle: http://www.onemoretake.com/2009/02/25/sorting-elements-with-jquery/
language_arr.sort(function(a, b) {
var compA = a.caption.toUpperCase();
var compB = b.caption.toUpperCase();
return (compA < compB) ? -1 : (compA > compB) ? 1 : 0;
});
//languages
var lang_div = createElement('div',{style:"border-bottom: 1px solid;lightgray;margin-bottom:10px;"});append(lang_div,div);
var lang_caption = createElement('span');append(lang_caption,lang_div);
lang_caption.innerHTML = "<b>"+$.gctour.lang('language')+"</b><br/>";
append(this.getSelectbox(language_arr,'language',$.gctour.defaultLang,setLanguage),lang_caption);
return div;
};
Settings.prototype.getMaps = function(){
var div = createElement('div');
// maptype
var mapt_div = createElement('div',{style:"border-bottom: 1px solid;lightgray;margin-bottom:10px;"});append(mapt_div,div);
var mapt_caption = createElement('span');append(mapt_caption,mapt_div);
mapt_caption.innerHTML = "<b>"+$.gctour.lang('settingsMapType')+"</b><br/>";
var typeArray = $.gctour.lang('mapTypes');
append(this.getSelectbox(typeArray,'printOutlineMapType','roadmap',setPrintMapType),mapt_caption);
//map size
var mapsi_div = createElement('div',{style:"border-bottom: 1px solid;lightgray;margin-bottom:10px;"});append(mapsi_div,div);
var mapsi_caption = createElement('span');append(mapsi_caption,mapsi_div);
mapsi_caption.innerHTML = "<b>"+$.gctour.lang('settingsMapSize')+"</b><br/>";
var sizeArray = ['large', 'medium', 'small'];
append(this.getSelectbox(sizeArray,'defaultMapSize','large',setPrintMapSize),mapsi_caption);
append(this.getCheckbox('settings_map_geocacheid', 'settings_map_geocacheid',true),div);
append(this.getCheckbox('settings_map_geocachename', 'settings_map_geocachename',true),div);
append(this.getCheckbox('settings_map_geocacheindex', 'settings_map_geocacheindex',true),div);
append(this.getCheckbox('settings_map_awpts', 'settings_map_awpts',true),div);
append(this.getCheckbox('settings_map_awpt_name', 'settings_map_awpt_name',true),div);
append(this.getCheckbox('settings_map_awpt_lookup', 'settings_map_awpt_lookup',true),div);
append(this.getCheckbox('settings_map_owpts', 'settings_map_owpts',true),div);
append(this.getCheckbox('settings_map_owpt_name', 'settings_map_owpt_name',true),div);
append(this.getCheckbox('settings_map_gcde', 'settings_map_gcde',false),div);
return div;
};
Settings.prototype.getPrint = function(){
var div = createElement('div');
append(this.getCheckbox('settingsPrintMinimal', 'printMinimal',false),div);
// number of logs
var log_div = createElement('div',{style:"border-bottom: 1px solid;lightgray;margin-bottom:10px;"});
var log_caption = createElement('span');
append(log_caption,log_div);
log_caption.innerHTML = "<b>"+$.gctour.lang('settingsLogCount')+"</b><br/>";
var log_button_div = createElement('div',{style:"margin-left:10px"});
var exportRadioNone = document.createElement('input');
var exportRadioNoneText = document.createElement('font');
exportRadioNone.type = 'radio';
exportRadioNone.name = 'logcount';
exportRadioNoneText.innerHTML = $.gctour.lang('settingsLogCountNone');
exportRadioNone.addEventListener('click', function(){GM_setValue('maxPrintLogs',0);},false);
var exportRadioAll = document.createElement('input');
var exportRadioAllText = document.createElement('font');
exportRadioAll.type = 'radio';
exportRadioAll.name = 'logcount';
exportRadioAllText.innerHTML = $.gctour.lang('settingsLogCountAll');
exportRadioAll.addEventListener('click', function(){GM_setValue('maxPrintLogs',-1);},false);
var exportRadioCount = document.createElement('input');
var exportRadioCountText = document.createElement('font');
exportRadioCount.type = 'radio';
exportRadioCount.name = 'logcount';
exportRadioCountText.innerHTML = $.gctour.lang('settingsLogCountShow');
var exportText = document.createElement('input');
exportText.type = 'text';
exportText.size = 1;
exportText.style.verticalAlign = 'center';
exportText.addEventListener('click', function(){exportRadioCount.checked = 'checked';GM_setValue('maxPrintLogs',exportText.value);},false);
exportText.addEventListener('keyup',
function(){
var check = true;
var value = exportText.value; //get characters
for(var i=0;i < value.length; ++i) {
var new_key = value.charAt(i); //cycle through characters
if ( ((new_key < "0") || (new_key > "9")) && (new_key != "")) {
//if(i!= 0 && new_key == "-"){
check = false;
break;
//}
}
}
if(!check) { // highlight if something is wrong
exportText.style.backgroundColor = '#ff7f7f';
} else {
exportText.style.backgroundColor = '#ffffff';
GM_setValue('maxPrintLogs',exportText.value);
}
}, false);
if(GM_getValue('maxPrintLogs', 3) === 0) {
exportRadioNone.checked = 'checked';
} else if ( GM_getValue('maxPrintLogs', 3) <= -1) {
exportRadioAll.checked = 'checked';
} else {
exportText.value = GM_getValue('maxPrintLogs', 3);
exportRadioCount.checked = 'checked';
}
log_button_div.appendChild(exportRadioNone);
log_button_div.appendChild(exportRadioNoneText);
log_button_div.appendChild(exportRadioAll);
log_button_div.appendChild(exportRadioAllText);
log_button_div.appendChild(exportRadioCount);
log_button_div.appendChild(exportText);
log_button_div.appendChild(exportRadioCountText);
append(log_button_div,log_caption);
append(log_div,div);
//fontsize
var font_div = createElement('div',{style:"border-bottom: 1px solid;lightgray;margin-bottom:10px;"});
var font_caption = createElement('span');
append(font_caption,font_div);
font_caption.innerHTML = "<b>"+$.gctour.lang('settingsFontSize')+"</b><br/>";
var sizeArray = ["xx-small", "x-small", "small", "medium", "large", "x-large", "xx-large"];
append(this.getSelectbox(sizeArray,'printFontSize','x-small',setPrintFontSize),font_caption);
append(font_div,div);
append(this.getCheckbox('settingsDecryptHints', 'decryptPrintHints',true),div);
append(this.getCheckbox('settingsEditDescription', 'printEditMode',false),div);
append(this.getCheckbox('settingsShowSpoiler', 'printSpoilerImages',true),div);
append(this.getCheckbox('settingsAdditionalWaypoints', 'printAdditionalWaypoints',true),div);
append(this.getCheckbox('settingsLoggedVisits', 'printLoggedVisits',false),div);
append(this.getCheckbox('settingsPageBreak', 'printPageBreak',false),div);
append(this.getCheckbox('settingsPageBreakAfterMap', 'printPageBreakAfterMap',true),div);
append(this.getCheckbox('settingsFrontPage', 'printFrontpage',true),div);
append(this.getCheckbox('settingsOutlineMap', 'printOutlineMap',true),div);
append(this.getCheckbox('settingsOutlineMapSinge', 'printOutlineMapSingle',true),div);
// default map
return div;
};
Settings.prototype.getHeader = function(header){
var div = createElement('div');
div.innerHTML = "<h2 align='center'>"+header+"</h2>";
return div;
};
Settings.prototype.getCheckbox = function(caption_lang, gmValue, dValue, isShort){
var cb_span = createElement('div',{style:"border-bottom: 1px solid;lightgray;margin-bottom:10px;padding-bottom:3px;"});
var cb = createElement('input',{type:'checkbox',style:'float:right'});append(cb,cb_span);
cb.checked = GM_getValue(gmValue,dValue);
cb.addEventListener('click',toggleBoolValue(gmValue,dValue), false);
var cb_caption = createElement('span');
append(cb_caption,cb_span);
cb_caption.innerHTML = "<b>"+$.gctour.lang(caption_lang)+"</b>";
if (!isShort) {
cb_caption.innerHTML += "<br/><div style='margin-left:10px'>"+$.gctour.lang(caption_lang+'Desc')+"</div>";
}
return cb_span;
};
Settings.prototype.getSelectbox = function(value_array, gmValue, dValue, click_function){
var select = document.createElement("select");
select.style.width = "90%";
select.style.margin = "0 5%";
select.style.marginBottom = "5px";
for(var array_i = 0; array_i<value_array.length; array_i++){
var option = document.createElement("option");select.appendChild(option);
var value = (typeof value_array[array_i] == "object")?value_array[array_i].value:value_array[array_i];
var caption = (typeof value_array[array_i] == "object")?value_array[array_i].caption:value_array[array_i];
option.value = value;
option.innerHTML = caption;
if (GM_getValue(gmValue,dValue) == value) {
option.selected = 'selected';
}
option.addEventListener('click', click_function(value), false);
}
return select;
};
Settings.prototype.activelink = "";
Settings.prototype.update = function(e) {
var $linkElement = $(e.target);
var $details = $('#dialogDetails');
// remove last active menu entry
$(Settings.prototype.activelink).removeClass("activeTour");
// set the current entry to active
$linkElement.parent().addClass("activeTour");
Settings.prototype.activelink = $linkElement.parent();
$details.html("");
// search for the right group
$.each( setting_groups, function(i,v) {
if (v[0] == $linkElement.attr('header')) {
// call the function for it
$details.append(v[1]).scrollTop(0);
return false;
}
});
};
// autoTour gui
function updateAutoTourMap(lat,lon){
//make the container visible
$('#autoTourContainer').show();
var radiusOrg = $.trim($("input#markerRadius").val());
if (isNaN(radiusOrg) || radiusOrg == "") {// please break if radius is no number
return;
}
var meterMiles = $("select#markerRadiusUnit").prop("selectedIndex");
// 0: meter, 1: miles
var radiusMiles = parseFloat(radiusOrg) * ((meterMiles == 1) ? 1 : 0.621371);
if (radiusMiles == "") {
return;
}
var staticGMap = $('div#staticGMap');
staticGMap.html("");
// create new static map with changed coordinates
var SM = new StaticMap(staticGMap, {
'lat': lat,
'lon': lon,
radius: radiusMiles,
width: 570
});
var url = "http://www.geocaching.com/seek/nearest.aspx?lat=" + lat + "&lng=" + lon + "&dist=" + radiusMiles;
log("url: " + url);
$('b#markerCoordsPreview').empty().append(
$("<a>",{
href: url,
title: url,
text: new LatLon(lat,lon).toString()
})
.click(function(){
window.open(this.href);
return false;
})
);
$('b#markerRadiusPreview').html(radiusOrg + " " + ((meterMiles == 1) ? "mi" : "km"));
$("b#markerCoordsPreview, b#markerRadiusPreview")
.css("background-color", "#FFE000")
.animate({"background-color": "transparent"}, 2000);
// get how many caches are in this area
loadingTime1 = new Date();
GM_xmlhttpRequest({
method: 'GET',
url: url,
onload: function(responseDetails) {
var dummyDiv = $(responseDetails.responseText),
color,
pagesSpan = $("td.PageBuilderWidget", dummyDiv).first();
if (pagesSpan.length > 0) {
var cacheCount = $("b", pagesSpan).first().text(),
pageCount = $("b", pagesSpan).last().text();
color = "#FFE000";
var miliseconds = new Date() - loadingTime1;
var seconds = Math.floor((miliseconds * parseFloat(pageCount) ) / 1000);
seconds = seconds + parseFloat(pageCount) * 2;
var secondsMod = seconds % 60;
var minutes = (seconds - secondsMod) / 60;
$("b#markerCountPreview").html(cacheCount);
$("b#markerDurationMin").html(minutes);
$("b#markerDurationSec").html(secondsMod);
} else {
$("b#markerCountPreview, b#markerDurationMin, b#markerDurationSec").html("0");
color = "#FF0000";
}
$("b#markerCountPreview")
.css("background-color", color)
.animate({"background-color": "transparent"}, 2000);
}
});
// last, save the values
$('input#coordsDivLat').val(lat);
$('input#coordsDivLon').val(lon);
$('input#coordsDivRadius').val(radiusMiles);
$('b#markerCountPreview, b#markerDurationMin, b#markerDurationSec').html("<img src='http://madd.in/ajax-loader3.gif'>");
// enable the startQuery button
$('button#startQuery').removeAttr('disabled').css("opacity", 1);
}
function startAutoTour() {
var i,
typeFilter = {},
sizeFilter = {},
difficultyFilter = {},
terrainFilter = {},
specialFilter = {},
ele = $("#autoTourContainer"),
lat, lon, radius, url;
ele.find("input[name='type']").each(function(index) {
typeFilter[$(this).val()] = $(this).is(':checked');
});
ele.find("input[name='size']").each(function(index) {
sizeFilter[$(this).val()] = $(this).is(':checked');
});
ele.find("input[name='Difficulty']").each(function(index) {
difficultyFilter[$(this).val()] = $(this).is(':checked');
});
ele.find("input[name='Terrain']").each(function(index) {
terrainFilter[$(this).val()] = $(this).is(':checked');
});
ele.find("input[name='special']").each(function(index) {
specialFilter[$(this).val()] = $(this).is(':checked');
});
ele.find("select[id^='special_']").each(function(index) {
var p = $(this).attr('id').replace("special_", "");
specialFilter[p] = $(this).val();
});
specialFilter['minFavorites'] = ele.find("input[id='special_favorites']").val();
lat = ele.find("input#coordsDivLat").val();
lon = ele.find("input#coordsDivLon").val();
radius = ele.find("input#coordsDivRadius").val();
url = "http://www.geocaching.com/seek/nearest.aspx?lat=" + lat + "&lon=" + lon + "&dist=" + radius;
if (specialFilter["I haven't found "]) {
url += "&f=1";
}
specialFilter["minFavorites"] = specialFilter["minFavorites"] || 0;
GM_setValue('tq_url', url);
GM_setValue('tq_typeFilter', JSON.stringify(typeFilter));
GM_setValue('tq_sizeFilter', JSON.stringify(sizeFilter));
GM_setValue('tq_dFilter', JSON.stringify(difficultyFilter));
GM_setValue('tq_tFilter', JSON.stringify(terrainFilter));
GM_setValue('tq_specialFilter', JSON.stringify(specialFilter));
GM_setValue('tq_StartUrl', document.location.href);
debug("fn startAutoTour GM_setValue: " +
"\n\tq_url:" + url +
"\n\tq_typeFilter:" + JSON.stringify(typeFilter) +
"\n\tq_sizeFilter:" + JSON.stringify(sizeFilter) +
"\n\tq_dFilter:" + JSON.stringify(difficultyFilter) +
"\n\tq_tFilter:" + JSON.stringify(terrainFilter) +
"\n\tq_specialFilter:" + JSON.stringify(specialFilter) +
"\n\tq_StartUrl:" + document.location.href
);
document.location.href = url;
}
function getMarkerCoord() {
var markerCoords = $("input#markerCoords").val();
var coords = parseCoordinates(markerCoords, true);
if (coords) {
updateAutoTourMap(coords._lat, coords._lon);
} else { // Sehr seltener Fall wenn auch die google geolocate API versagt.
alert("'" + markerCoords + "' is not an address!");
}
}
function getSpecialFilter(){
var $div, $checkbox, $selectbox, $favorites, opt, attributs,
select_specials = $.gctour.lang('autoTour.filter.special.pm'),
checkbox_specials = {
'I haven\'t found ' : $.gctour.lang('autoTour.filter.special.notfound'),
'is Active' : $.gctour.lang('autoTour.filter.special.isActive')
},
tq_filter = JSON.parse(GM_getValue('tq_specialFilter', '{}'));
// Begin, f�r Umstellung des Filters
// => Kann bei �bern�chster Version wieder entfernt werden
if (tq_filter["is not a PM cache"]) {
tq_filter["pm"] = "not";
}
// End
$div = $('<div>')
.html("<b>" + $.gctour.lang('autoTour.filter.special.caption') + "</b><br/>")
.css({
"text-align": "left",
"padding-left": "10px",
"padding-right": "10px",
"float": "left",
"background-color": "#ffe"
});
//begin PM
$selectbox = $('<select/>', {id: "special_pm"})
.css({
"margin": "0 0 6px 0",
"width": "160px"
});
$.each(select_specials, function(key, value) {
opt = $('<option value="' + key + '">' + value + '</option>');
if (tq_filter["pm"] == key) {
opt.prop('selected', true);
}
$selectbox.append(opt);
});
$div.append(
$selectbox,
$('<br>')
);
//end PM
$.each(checkbox_specials, function(key, value) {
attributs = {
type: 'checkbox',
name: "special",
id: "special" + key,
value: key,
checked: tq_filter[key] ? 'checked' : false
};
$checkbox = $('<span>')
.css({
"margin": "2px",
"vertical-align": "middle"
})
.append(
$('<input/>', attributs).css("margin", '0 4px 0 0'),
$('<label>')
.attr("for", "special" + key)
.text(value)
);
$div.append(
$checkbox,
$('<br>')
);
});
$favorites = $('<input>',{
type: 'text',
id: 'special_favorites',
value: tq_filter['minFavorites']
}).css({
'margin': '4px 0 0 4px',
'width': '30px'
});
$div.append(
$('<span>').text($.gctour.lang('autoTour.filter.special.minFavorites')),
$favorites,
$('<br>')
);
return $div;
}
function getDtFiler(boxName){
var $div, $checkbox, attributs, tq_filter, title;
if (boxName == 'Difficulty') {
tq_filter = JSON.parse(GM_getValue('tq_dFilter', '{}'));
title = $.gctour.lang('autoTour.filter.difficulty');
} else { // terrain
tq_filter = JSON.parse(GM_getValue('tq_tFilter', '{}'));
title = $.gctour.lang('autoTour.filter.terrain');
}
$div = $('<div>')
.html("<b>" + title + "</b><br/>")
.css({
"text-align": "left",
"padding-left": "10px",
"padding-right": "10px",
"float": "left",
"background-color": "#ffe"
});
for( var i = 1; i <= 5; i = i + 0.5 ){
attributs = {
type: 'checkbox',
name: boxName,
id: boxName + "" + i,
value: i,
checked: tq_filter[""+i] ? 'checked' : false
};
$checkbox = $('<span>')
.css({
"margin": "2px",
"vertical-align": "middle"
})
.append(
$('<input/>', attributs).css("margin", '0 2px 0 0'),
$('<label>').attr("for", boxName + "" + i)
.append(
$('<img>').attr("src", "http://www.geocaching.com/images/stars/stars" + (""+i).replace(/\./g, "_") + ".gif")
)
);
$div.append(
$checkbox,
$('<br>')
);
}
return $div;
}
function getSizeFilter(){
var $div, $checkbox, attributs,
tq_filter = JSON.parse(GM_getValue('tq_sizeFilter', '{}'));
$div = $('<div>')
.html("<b>" + $.gctour.lang('autoTour.filter.size') + "</b><br/>")
.css({
"text-align": "left",
"padding-left": "10px",
"padding-right": "10px",
"float": "left",
"background-color": "#ffe"
});
$.each(sizesArray, function(index, size) {
attributs = {
type: 'checkbox',
name: "size",
id: "size" + size.sizeTypeId,
value: size.sizeTypeId,
checked: tq_filter[size.sizeTypeId] ? 'checked' : false
};
$checkbox = $('<span>')
.css({
"margin": "2px",
"vertical-align": "middle"
})
.append(
$('<input/>', attributs).css("margin", '0 2px 0 0'),
$('<label>').attr("for", "size" + size.sizeTypeId)
.append(
$('<img>').attr("src", 'http://www.geocaching.com/images/icons/container/' + size.sizeTypeId + '.gif')
)
);
$div.append(
$checkbox,
$('<br>')
);
});
return $div;
}
function getTypeFilter(){
var $div, $checkbox, attributs, boo,
tq_filter = JSON.parse(GM_getValue('tq_typeFilter', '{}'));
$div = $('<div>')
.html("<b>" + $.gctour.lang('autoTour.filter.type') + "</b><br/>")
.css({
"text-align": "left",
"padding-left": "10px",
"padding-right": "10px",
"float": "left",
"background-color": "#ffe"
});
$.each(wptArray, function(index, wpt) {
attributs = {
type: 'checkbox',
name: "type",
id: "type" + wpt.wptTypeId,
value: wpt.wptTypeId,
checked: tq_filter[wpt.wptTypeId] ? 'checked' : false
};
boo = ((index + 1) % 2 === 0); // letzter in seiner Spalte ?
$checkbox = $('<span>')
.css("padding-left", boo ? "10px" : "0px" )
.append(
$('<input/>', attributs).css("margin", '0 2px 0 0'),
$('<label>').attr("for", "type" + wpt.wptTypeId)
.append(
$('<img>').attr("src", 'http://www.geocaching.com/images/WptTypes/sm/' + wpt.wptTypeId + '.gif')
)
);
$div.append(
$checkbox,
(boo ? $('<br>') : "")
);
});
return $div;
}
function getLocateMeButton() {
var button = $("<button>", {
css: {
"margin-left": 10,
"font-size": 12
},
html: "<img id='locateImage' src='" + $.gctour.img.locateMe + "'><span style='vertical-align:top;margin-left:3px;font-weight:bold'>" + $.gctour.lang('findMe') + "</span>"
})
.click(function() {
if (navigator.geolocation) {
$('locateImage').attr("src","http://madd.in/ajax-loader3.gif");
navigator.geolocation.getCurrentPosition(
function(position){
$('locateImage').attr("src", $.gctour.img.locateMe);
var latitude = position.coords.latitude;
var longitude = position.coords.longitude;
$("input#markerCoords").val(latitude + ' ' + longitude);
$("input#markerRadius").val(2);
getMarkerCoord();
},
function(error){
$('locateImage').attr("src", $.gctour.img.locateMe);
log('Unable to get current location: ' + error);
}, { timeout:10000 }
);
} else {
alert("Firefox 3.5? Please update to use this!");
}
});
return button;
}
function getCoordinatesTab() {
var coordsDiv = $("<div>", {
id: "coordsDiv",
css: {
"clear": "both",
"align": "left"
}
});
var findMeButton = getLocateMeButton();
findMeButton.css("cssFloat", "right");
coordsDiv.append(findMeButton);
var divEbene = createElement('div', {className: 'ebene'});
divEbene.innerHTML = '<b>'+$.gctour.lang('autoTour.center')+'</b>&nbsp;&nbsp;&nbsp;&nbsp;'+
'<input type="text" id="markerCoords" style="width:350px;"><br/>'+
'<small>'+$.gctour.lang('autoTour.help')+'</small>';
coordsDiv.append(divEbene);
divEbene = createElement('div', {className: 'ebene'});
divEbene.innerHTML = '<b>' +
$.gctour.lang('autoTour.radius') +
'</b>&nbsp;&nbsp;&nbsp;&nbsp;' +
'<input type="text" id="markerRadius" maxlength="4" value="2" style="width:40px;margin-right:5px">' +
'<select id="markerRadiusUnit">' +
'<option value="km" selected="selected">' + $.gctour.lang('units.km') + '</option>' +
'<option value="sm">' + $.gctour.lang('units.mi') + '</option>' +
'</select>';
coordsDiv.append(divEbene);
divEbene = createElement('div');
divEbene.setAttribute('class','dialogFooter');
var useButton = createElement('input',{type:"button",value:$.gctour.lang('autoTour.refresh'),style:"background-image:url("+$.gctour.img.autoTour+");margin-top:-24px;"});append(useButton,divEbene);
useButton.addEventListener('click',getMarkerCoord ,false);
coordsDiv.append(divEbene);
return coordsDiv;
}
function getMapPreviewTab(){
var coordsDiv = createElement('div');
coordsDiv.align = "left";
coordsDiv.style.clear = "both";
var cordsInputLat = createElement('input', {type: 'hidden', id: "coordsDivLat"});
coordsDiv.appendChild(cordsInputLat);
var cordsInputLon = createElement('input', {type: 'hidden', id: "coordsDivLon"});
coordsDiv.appendChild(cordsInputLon);
var cordsInputRadius = createElement('input', {type: 'hidden', id: "coordsDivRadius"});
coordsDiv.appendChild(cordsInputRadius);
var coordsLabel = createElement('div');append(coordsLabel, coordsDiv);
coordsLabel.innerHTML = $.gctour.lang('markerCoordinate')+": <b id='markerCoordsPreview'>???</b>&nbsp;&nbsp;&nbsp;"+$.gctour.lang('autoTour.radius')+": <b id='markerRadiusPreview'>???km</b>";
// previewMap
var staticGMap = createElement('div');
staticGMap.id = 'staticGMap';
//~ staticGMap.style.border = '2px solid gray';
//~ staticGMap.style.backgroundImage = "url("+$.gctour.img.preview+")";
//~ staticGMap.style.backgroundPosition = "center";
//~ staticGMap.style.backgroundRepeat = "no-repeat";
//~
//~ staticGMap.style.height = '200px';
//~ staticGMap.style.width = '400px';
//~ staticGMap.style.backgroundRepeat = 'no-repeat';
coordsDiv.appendChild(staticGMap);
var cacheCountLabel = createElement('div');append(cacheCountLabel, coordsDiv);
cacheCountLabel.innerHTML = $.gctour.lang('autoTour.cacheCounts')+" <b id='markerCountPreview'>???</b>";
var tourDurationLabel = createElement('div');append(tourDurationLabel, coordsDiv);
tourDurationLabel.innerHTML = $.gctour.lang('autoTour.duration') + " <b id='markerDurationMin'>???</b> min <b id='markerDurationSec'>???</b> sec";
return coordsDiv;
}
function getAutoTourSubmit(){
var $submit = $("<div>").append(
$("<button>",{
id: "startQuery",
css: {
"margin": "15px 0 0 15px",
"opacity": "0.4"
},
"disabled": "disabled",
html: "<img src ='" + $.gctour.img.startAutoTour + "'>"
})
.on('click', startAutoTour)
);
return $submit;
}
// waypoint projecting
function CalcPrjWP(lat,lon, dist, angle){
var B1 = parseFloat(lat);
var L1 = parseFloat(lon);
var Dist = parseFloat(dist);
var Angle = parseFloat(angle);
var a, b, c, g, q, B2, L2;
while (Angle > 360) {
Angle = Angle - 360;
}
while (Angle < 0) {
Angle = Angle + 360;
}
//var c = Dist / 6371.0; // KM
c = Dist / 3958.75587; // miles
if (B1 >= 0) {
a = (90 - B1) * Math.PI / 180;
} else {
a = B1 * Math.PI / 180;
}
q = (360 - Angle) * Math.PI / 180;
b = Math.acos(Math.cos(q) * Math.sin(a) * Math.sin(c) + Math.cos(a) * Math.cos(c));
B2 = 90 - (b * 180 / Math.PI);
if (B2 > 90) {
B2 = B2 - 180; //Suedhalbkugel
}
if ((a + b) === 0) {
g = 0; //Nenner unendlich
} else {
g = Math.acos( (Math.cos(c) - Math.cos(a) * Math.cos(b)) / (Math.sin(a) * Math.sin(b)) );
}
if (Angle <= 180) {
g = (-1) * g;
}
L2 = (L1 - g * 180 / Math.PI);
return [Math.round(B2 * 100000) / 100000,Math.round(L2 * 100000) / 100000];
}
function showAutoTourDialog(center, radius) {
//if (!isLogedIn()) { return; }
var overLay = getOverlay({
caption: $.gctour.lang('autoTour.title'),
minimized: true
});
$(overLay).append(
getCoordinatesTab(),
$("<div>", {
id: "autoTourContainer",
css: {
"display": "none",
"clear": "both",
"border-top": "2px dashed #B2D4F3",
"margin-top": 12
}
}).append(
getMapPreviewTab(),
$('<div>').append(
getTypeFilter(),
getSizeFilter(),
getDtFiler('Difficulty'),
getDtFiler('Terrain'),
getSpecialFilter()
),
getAutoTourSubmit()
)
);
if (center && radius) {
$("input#markerCoords").val(center.lat.toFixed(5) + ' ' + center.lng.toFixed(5));
$("input#markerRadius").val(radius);
getMarkerCoord();
} else {
$("input#markerRadius").val(2);
$('input#markerCoords')
.val($('span#uxLatLon').text()) // /seek/cache_details.aspx oder /geocache/
.focus()
.select();
}
}
function update(force) {
var ver_i, chg_i; // for
var updateDate = new Date(GM_getValue('updateDate'));
if (!updateDate || updateDate == "Invalid Date") {
updateDate = new Date();
GM_setValue('updateDate', updateDate.toString());
}
var currentDate = new Date();
// if the last updateDate is more than 86 400 000 msec (1 day) ago - check for updates
if ((currentDate.getTime() - updateDate.getTime() > 86400000) || (force === true)) {
debug("GCTour checked of update");
//~ if (true) { // ATTENTION!!
// set the new updateDate
GM_setValue('updateDate', currentDate.toString());
var update_request = {'script':SCRIPTID,'version':VERSION,'build':BUILD};
post(GCTOUR_HOST+'/update', 'update='+JSON.stringify(update_request),
function(text){
// alert(text);
var update_obj = JSON.parse(text);
log("update check: returns "+text);
if(update_obj.message === "no updates"){
log("update check: version "+VERSION+" build:"+BUILD+" is up to date");
if (force === true) {
alert($.gctour.lang('updateCurrently'));
}
return;
}
var overlayBody = getOverlay({caption:$.gctour.lang('dlg.newVersion.caption'),minimized:true});
var versions_string = "";
for(ver_i = 0 ; ver_i<update_obj.changes.length; ver_i++){
var version_obj = update_obj.changes[ver_i];
versions_string += "<div style='margin-top: 0.75em;'><strong>v"+version_obj.version+"."+version_obj.build+"</strong></div>";
versions_string += "<ul>";
for(chg_i = 0 ; chg_i<version_obj.changes.length; chg_i++){
versions_string += "<li>";
versions_string += version_obj.changes[chg_i];
versions_string += "</li>";
}
versions_string += "</ul>";
}
var updateMapping = [
['VERSION_OLD',VERSION+"."+BUILD],
['VERSION_NEW',update_obj.version+"."+update_obj.build],
['VERSION_HISTORY',versions_string]
];
//{"update":"http:\/\/userscripts.org\/scripts\/source\/36273.user.js","build":12345,"script":"gctour","changes":[{"build":12345,"changes":["1.98 test1","1.98 test4","1.98 test6"],"version":1.98},{"build":12343,"changes":["1.97 test1","1.97test2","1.97 test3"],"version":1.97}],"version":1.98}
var confirmString = $.gctour.lang('updateDialog');
var update_dom = fillTemplate(updateMapping,confirmString);
var footer = update_dom.getElementsByTagName('div')[update_dom.getElementsByTagName('div').length-1];
// if install is pressed set the document.location to the url given by the update object
var install_button = document.createElement('input');
install_button.type = "button";
install_button.value = $.gctour.lang('install');
install_button.style.backgroundImage = "url("+$.gctour.img.userscript+")";
install_button.addEventListener('click', function() {
setTimeout(closeOverlay, 500);
document.location = update_obj.update;
}, true);
var close_button = document.createElement('input');
close_button.type = "button";
close_button.value = $.gctour.lang('cancel');
close_button.style.backgroundImage = "url("+$.gctour.img.closebutton+")";
close_button.addEventListener('click', closeOverlay, false);
footer.appendChild(close_button);
footer.appendChild(install_button);
overlayBody.appendChild(update_dom);
}
);
}
}
function parseUpdateXMLResponse(xmlString) {
var i, j; // for
var updateNode;
var xmlDoc = (new DOMParser()).parseFromString(xmlString, "application/xml");
var string = '';
var scriptElements = xmlDoc.getElementsByTagName('script');
for(i = 0;i< scriptElements.length;i++) {
if (scriptElements[i].getAttribute('id') === SCRIPTID) {
var versions = scriptElements[i].getElementsByTagName('version');
var currentVersion = 0;
var currentVersionIndex;
for(j = 0;j< versions.length;j++) {
if (versions[j].getAttribute('number') > currentVersion) {
currentVersion = versions[j].getAttribute('number');
currentVersionIndex = j;
}
}
if (currentVersion > VERSION) {
updateNode = versions[currentVersionIndex];
}
}
}
if (updateNode) {
var confirmString = 'There is a new version of GcTour.\n\t'+ VERSION +' -> '+ updateNode.getAttribute('number') +'\nChanges:\n';
var changes = updateNode.getElementsByTagName('change');
for(j = 0;j< changes.length;j++) {
confirmString += '\t+ '+ changes[j].textContent +'\n';
}
confirmString += '\nDo you want to update?';
if (confirm(confirmString)) {
GM_openInTab('http://gc.madd.in/gm/update.php?scriptId='+SCRIPTID+'&fromVersion='+VERSION+'&toVersion='+updateNode.getAttribute('number'));
}
}
}
// usefull snippet to escape HTML
/* String.prototype.escapeHTML = function() {
return this.replace(/&/g,'&amp;').replace(/</g,'&lt;').replace(/>/g,'&gt;');
}
*/
// setting hashcode to all strings
/*
String.prototype.hashCode = function(){
var hash = 0;
if (this.length === 0) { return code; }
for (i = 0; i < this.length; i++) {
character = this.charCodeAt(i);
hash = 31 * hash + character;
hash = hash & hash; // Convert to 32bit integer
}
return hash;
};
*/
// ToDo: ohne Verwendung ???
String.prototype.hashCode = function() {
for(var ret = 0, i = 0, len = this.length; i < len; i++) {
ret = (31 * ret + this.charCodeAt(i)) << 0;
}
return ret;
};
// Funktion, die in einem String die Wildcard {0},{1},{2}... mit den Paramtern von String.format ersetzt!
String.prototype.format = function() {
var s = this;
for (var i = 0; i < arguments.length; i++) {
var reg = new RegExp("\\{" + i + "\\}", "gm");
s = s.replace(reg, arguments[i]);
}
return s;
}
String.prototype.endsWith = function (suffix) {
return (this.substr(this.length - suffix.length) === suffix);
}
String.prototype.startsWith = function(prefix) {
return (this.substr(0, prefix.length) === prefix);
}
// Convert HTML breaks to spaces
String.prototype.br2space = function() {
return this.replace(/<br\s*\/?>/mg," ");
};
// Return a new string without leading and trailing whitespace
// Double spaces whithin the string are removed as well
String.prototype.trimAll = function() {
return this.replace(/^\s+|(\s+(?!\S))/mg,"");
};
(function () {
// test for gecko-version >= 1.9.2 (firefox >= 3.6)
// http://docs.jquery.com/Browser_compatibility#About_Browser_Compatibility
// http://de.wikipedia.org/wiki/Firefox#Wichtige_Versionen (Gecko Version)
if ($.browser.mozilla) {
var arrV = $.browser.version.split('.'),
majorN = parseInt(((arrV[0]) ? arrV[0] : 0), 10),
minorN = parseInt(((arrV[1]) ? arrV[1] : 0), 10),
buildN = parseInt(((arrV[2]) ? arrV[2] : 0), 10);
if (!( (majorN >= 2) || // >= FF 4
(majorN === 1 && minorN === 9 && buildN === 2) // = FF 3.6.xx
)) {
alert("Sorry, but you are running 'Firefox " + $.browser.version +
"' which is not supported anymore.\nPlease update to 'Firefox 3.6' or above to use GCTour!");
}
//else { alert("okay: " + $.browser.version); }
}
if (isOpera) {
// wait until document is loaded and init the core components (first tour, current tour)
window.addEventListener('DOMContentLoaded', function(){
initCore();
init();
}, true);
} else {
// init the core components (first tour, current tour)
initCore();
init();
}
//Opera has an autoupdate function
if (!isOpera) {
// check for updates
update();
}
})();
// ... { = begin of GCTour-Script
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment