Skip to content

Instantly share code, notes, and snippets.

@ramirezhr
Forked from DieBatzen/gctour.user.js
Created March 3, 2018 20:54
Show Gist options
  • Save ramirezhr/64057ee078f06827a0cd9a3e855250ae to your computer and use it in GitHub Desktop.
Save ramirezhr/64057ee078f06827a0cd9a3e855250ae to your computer and use it in GitHub Desktop.
GCTour
// ==UserScript==
// @name GC Tour
// @namespace https://gist.github.com/DieBatzen/5814dc7368c1034470c8/
// @version 4.7
// @description Cachetour planning 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 https://gctour.geocaching.cx/map/show*
// @exclude /^https?://www\.geocaching\.com/(login|jobs|promotions|blog)/
// @updateURL https://gist.github.com/DieBatzen/5814dc7368c1034470c8/raw/gctour.version.js
// @downloadURL https://gist.github.com/DieBatzen/5814dc7368c1034470c8/raw/gctour.user.js
// @supportURL https://geoclub.de/forum/viewtopic.php?f=117&t=78798&start=9999
// @grant GM_getValue
// @grant GM_setValue
// @grant GM_deleteValue
// @grant GM_log
// @grant GM_addStyle
// @grant GM_xmlhttpRequest
// @grant GM_openInTab
// @grant GM_listValues
// @grant unsafeWindow
// @icon https://gctour.geocaching.cx/i/icon.png
// @require https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js
// @require https://ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/jquery-ui.min.js
// @require https://raw.githubusercontent.com/eligrey/FileSaver.js/1.3.4/FileSaver.min.js
// @connect gctour.geocaching.cx
// @connect geocaching.com
// @connect gist.github.com
// @connect gist.githubusercontent.com
// @connect maps.googleapis.com
// @connect *
// ==/UserScript==
/*****************************************************************************
* Copyright (C) 2008 - 2014 Martin Georgi, 2015 - 2018 Die Batzen
*
* 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 General Public License for more details.
*
* To obtain a copy of the GNU General Public License, please see
* <https://www.gnu.org/licenses>
*****************************************************************************/
(function () { // begin of immediately-invoked function expression --> own "GCTour namespace"
/* globals */
let
VERSION = GM_info.script.version, // will be checked once a day
SCRIPTID = 'gctour',
DEBUG_MODE = false,
GCTOUR_HOST = 'https://gctour.geocaching.cx/',
HTTP = window.location.protocol, // http or https
GS_HOST = HTTP + '//www.geocaching.com/',
GS_WPT_IMAGE_PATH = 'images/wpttypes/sm/',
// set $ to jQuery local (Greasemonkey)
$ = window.jQuery,
// are jQuery and UI loaded
IS_JQUERY = (
(typeof $ !== "undefined") && (typeof $ === "function") &&
(typeof $.fn === "object") && (typeof $.ui === "object")),
IS_FF = (IS_JQUERY && $.browser.mozilla) ? true : false,
IS_CHROME = (IS_JQUERY && $.browser.chrome) ? true : false,
IS_OPERA = (IS_JQUERY && $.browser.opera) ? true : false,
IS_GREASEMONKEY = (typeof GM_info.scriptHandler === "undefined") ? true : false,
TOURS,
CURRENT_TOUR,
USERNAME,
ROT13_ARRAY,
TIMEOUT,
STICKY = GM_getValue('sticky', false),
PROGRESS_BAR = {"progress" : 0, "total" : 0},
FAVSCORE = true,
AUTOTOUR_NEW = false, // interesting filter parameters are PM only :(
//AUTOTOUR_NEW = isPremiumUser() ? true : false,
WPT_ARRAY = [{
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 : "453",
hash : "69eb8535-b718-4b35-ae3c-a856a55b0874",
name : "Mega-Event Cache"
}, {
wptTypeId : "7005",
hash : "",
name : "Giga-Event Cache"
}, {
wptTypeId : "3653",
hash : "3ea6533d-bb52-42fe-b2d2-79a3424d4728",
name : "Lost and Found 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"}
],
SIZES_ARRAY = [{
sizeTypeId : "micro",
name : "Micro",
newSearchId : 2
}, {
sizeTypeId : "small",
name : "Small",
newSearchId : 8
}, {
sizeTypeId : "regular",
name : "Regular",
newSearchId : 3
}, {
sizeTypeId : "large",
name : "Large",
newSearchId : 4
}, {
sizeTypeId : "other",
name : "Other",
newSearchId : 6
}, {
sizeTypeId : "not_chosen", // not supported in new Groundspeak search
name : "Not chosen"
}, {
sizeTypeId : "virtual",
name : "Virtual",
newSearchId : 5
}
],
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', 'dangerousanimals', 'Dangerous Animals'],
['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'],
['46', 'rv', 'Truck Driver/RV'],
['47', 'field_puzzle', 'Field Puzzle'],
['48', 'UV', 'UV Light Required'],
['49', 'snowshoes', 'Snowshoes'],
['50', 'skiis', 'Cross Country Skis'],
['51', 's-tool', 'Special Tool Required'], // meanwhile image is 's-tool', but the minus would cause problems...
['52', 'nightcache', 'Night Cache'],
['53', 'parkngrab', 'Park and Grab'],
['54', 'abandonedbuilding', 'Abandoned structure'],
['55', 'hike_short', 'Short hike (less than 1km)'],
['56', 'hike_med', 'Medium hike (1km-10km)'],
['57', 'hike_long', 'Long hike (+10km)'],
['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'],
['67', 'geotour', 'GeoTour']
];
/*
// TEST Anfang
// test3
jQuery(function ($) {
alert("3. jQuery: " + $.fn.jquery);
});
// test2
if (typeof unsafeWindow.jQuery !== "undefined") {
unsafeWindow.jQuery(function ($) {
alert("2. unsafeWindow.jQuery: " + $.fn.jquery);
});
} else {
alert("2. unsafeWindow.jQuery not available");
}
// test1
alert("1. $: " + $.fn.jquery);
// TEST ENDE
*/
/* greasemonkey settings and functions */
// debug output functions
function toLog(typ, msg) {
if (DEBUG_MODE) {
msg = 'GCTour: ' + msg;
//var console = unsafeWindow.console; //firebug console - http://getfirebug.com/wiki/index.php/Console_API
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) {
GM_setValue(name, JSON.stringify(value));
//return (GM_setValue(name, JSON.stringify(value)));
}
function loadValue(name, defaultValue) {
//debug("loadValue: '" + name + "', with default '" + defaultValue + "' (typeof " + (typeof 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 = " + IS_JQUERY;
if (IS_JQUERY) {
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 : "");
// debug(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',
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('general.close'),
show : true, // true, false, 'blind', 'drop', 'scale'
hide : true,
height : 'auto',
title : 'GCTour Info',
dialogClass : 'gct gct_dialog',
open : addJqUiTheme(GM_getValue('theme', 'smoothness')),
close : function (event, ui) {
$("head link#gct-ui-theme-link").remove();
$(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);
}
});
});
};
})();
/* images */
$.gctour.img = {
addToTour : 'data:image/png;base64,iVBORw0KGgoAAAANS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waj8gjaZkcLp9QJOkhGHgACM2EQzJCv9EiaQSKBEQGAiHT9Y5IGFKBpCAB2uJ3gNQgOUgfeEQkCyR7EmN0gk4PJAl8iQyLQiQHjnKRkyWEhiQCfiQbmiQVJAMkFyQGJBSjCAAHISMAHRAWmptgTE28vUdBADs%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',
downArrow : 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAOCAMAAADKSsaaAAAAAXNSR0IArs4c6QAAAKhQTFRFEnMAFXUAIncAHXoDHnoHIHsAInwGI30AKH4TK4AAM4UGMYYLO4oQQ44VRI4XSZAbUZYhVpcnWpooYZ0wXZ45Yp4wW587ZJ4wXqBCZ6A0ZqA4YaJFaqI2baI4ZaRHZ6RFbaQ%2BbqQ8c6pOe65UgLJZf7JggbRmhLVlhLVpiLdqjbluj7tzlcB%2FlsGBl8GCncSHoMWJoMeJpMiMqMqPp8uPqcuQrM2Tr86VayLUTgAAAAF0Uk5TAEDm2GYAAAABYktHRACIBR1IAAAACXBIWXMAAAsRAAALEQF%2FZF%2BRAAAAB3RJTUUH2ggZCiMw9%2FcEJgAAAFZJREFUCNdjYGAQEBKVUWQAAX5jM3NZMIvXSMtMEsziMdA0FQbSbNwi%2Bu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7Gbkk5a0iIiiCon8f6ZnYJyInM1nLtVUVwpul6TCW4CZXxH/6KSbra8shRv275U4JBWWCwVOSFQ4ODTqUqQUd+wxNOgGMhZKdu18MLYQnFrYd7jhfOsRboCbSMrgPlSUFwMQuE4qBzPATCQk1NcU3715Eigtq6vlADPBLWgWZAZV47ENUVBNKEw3bM+ADMSSKmCCSAO4Dm7AtMA0iBIDBCEtZdLyX2bAAJgODjicAqA7HEQAJxgAB2Rmvn0/XeLzuAS3G0AsKhZXlTgEKMDMbAjwzv6Ifw+zAo+Hc6QSmfVw6Mmj5/Fvw0LbiYOri3/cTh4JJ00TgXktIfo67nefbW95PRllHElRWVoJ9t4ZbD16AICDiAA8fPwGgFFUXVReUVVb6dkheIsQXM6sBtfm5gITIxPNhxr8/Te2Ajad1/sionqhs62wtBrAxNMXY/6Rxrqyxvrd9jYA0DZOXe3vGfv8QaWmjr6LXbfyXBe28bKv6/S1gaji8lVUIZXKc3Neyqb9ym3T7R2+1503/wcT3Lkk5CgrKAAAAABJRU5ErkJggg==',
loader2 : 'data:image/gif;base64,R0lGODlh0AANAKUAAP///wAAAL6+vqamppycnLi4uLKyssjIyNjY2MTExNTU1Nzc3ODg4OTk5LCwsLy8vOjo6Ozs7MrKyvLy8vT09M7Ozvb29sbGxtDQ0O7u7tbW1sLCwqqqqvj4+KCgoJaWlv///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////yH/C05FVFNDQVBFMi4wAwEAAAAh+QQJCgAfACwAAAAA0AANAAAG/sCPYEAoGo/IpHLJbDqf0Kh0Sq1anwOBsGBwGB5gQWHA8Zq92Y16PSyf0Y+EfL5xd++ONF1Oxt/1e3Z+gHSCZ4Rzhn9xe3Vvi40bfX4GiHyKlYyBj3BiYQVDAl8SFRgKCp6pAhugGq4IsAgbX2xqrbGxCbS1t7iyu2y9uLq1tg++sMTFwrnAtci/xazHyMq81L7WwdjDzqu9GKQIRAYJCgsMDRALBQek7xIXD+oQ9fXs7vDx8/b2DJr6+PVb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AAALZSURBVBgZBcFLiFVlAADg7zzuPLzjzDjOMINMitIie5gF+UAkIZSgRQuXLZIWrY021dYIggJdJURElJsoqlWRYA9GshGFCNQeOjoTk6bjeOd5zzn/f07flzRNA459ObcHJ3cM9+1fq2prVa2qa+uh7mAZ9xCxiAV8iu9zgDqEvU9ODOx//dkxALBa1kNrZT202I2TZcVyEd28t+Lb66uHcTwHqEMYH+xJwNyDqJUk8oQsp7eV2tqbytJUK+OpyX5bhtojH07Pv58CxKoabOeEmuUy0al4UNDp0umysM5/KxG8eWbW/u1tj4+2xnKAWFUjG3tSqwWr3ShNEzmyjDQjk8gSaiRxyYUbiy7PduZzgFiW40P9mc56sFY00rSRpaQxkaVkGlmGJnNnqXDq7N9LOJYDhLLcNj7Y0uk2AjRkMZE2iGQaeZOqG2IrCmXY/s1rB+6nALEstk0M9VotG0lKliRSpEjw+YUjPjq3RxkKoSjEsoiQwvMnvusXQ09vK1VGUg1qjVrUqDWKUJoc3emVj3dbWeuEUJZLkEMoyrF2u0+aUEPD19OHNXVQ1kEZgy2bHrZzYq/l7qr766/m3VC0ub+SQyyLDXm7R56SpYlYJ0JdOvzYy2JTi3VUa8x35jwxecBKue7S7E+dXW+nI/nB42dGcWLPI1vdXmrcvBO1++iGUmxqtxb+UtVBqCtVrCwVy3Y/dNBKtZb+OjO1kMeyfA4vXLo6Y3E9t1I0qtjo6goxGB/cKtRRbGr/dmaNDEy4PHfe+etTd8vgSB6r6ukXD+3qf+ulfQDg6OnCJ7+8p6xL3VDaMfqofTuOuHhryrk/fl4tokPz7zRX8lhVM7fvdXx29qrhgX7Dg32G271OHv3dxg09entSvXnqmXcHJGm/6Ru/ad89dmrm9AdXIK9D+GLq4rXJqYvXtmEzNmMTNmGor6fV6utr6YxWfvjzR0P/vDGTh7GvAP4H2uh1wse2x/0AAAAASUVORK5CYII%3D',
add_comment : GS_HOST + 'images/stockholm/16x16/add_comment.gif',
attribute_blank : GS_HOST + 'images/attributes/attribute-blank.gif',
bearing : GS_HOST + 'images/icons/compass/###BEARING###.gif',
cache_size : GS_HOST + 'images/icons/container/###SIZE###.gif',
coord_update : GS_HOST + 'images/icons/coord_update.gif',
fav : GS_HOST + 'images/icons/icon_fav.png',
stars_d : GS_HOST + 'images/stars/stars###DIFFICULTY###.gif',
stars_t : GS_HOST + 'images/stars/stars###TERRAIN###.gif',
tb_coin : GS_HOST + GS_WPT_IMAGE_PATH + 'tb_coin.gif',
wpt_type : GS_HOST + GS_WPT_IMAGE_PATH + '###TYPE###.gif',
zoom_in : GS_HOST + 'images/zoom_in.png',
zoom_out : GS_HOST + 'images/zoom_out.png',
sad : HTTP + '//forums.geocaching.com/GC/public/style_emoticons/default/sad.gif'
// not used
//closedHand: 'data:image/x-icon;base64,AAACAAEAICACAAcABQAwAQAAFgAAACgAAAAgAAAAQAAAAAEAAQAAAAAAAAEAAAAAAAAAAAAAAgAAAAAAAAAAAAAA%2F%2F%2F%2FAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD8AAAA%2FAAAAfwAAAP%2BAAAH%2FgAAB%2F8AAAH%2FAAAB%2FwAAA%2F0AAANsAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FgH%2F%2F%2F4B%2F%2F%2F8Af%2F%2F%2BAD%2F%2F%2FAA%2F%2F%2FwAH%2F%2F%2BAB%2F%2F%2FwAf%2F%2F4AH%2F%2F%2BAD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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',
//preview: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQoAAAB4CAYAAAAKVry3AAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAKbAAACmwB9fwntgAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAACAASURBVHic7L15jKRnft%2F3%2FT3P895v3X0fczSHQ84MzyV3V1RE7W68sODE3iQOZq1AkJHDIATIGyQIEgQI4plBBERBpChZO3KWsOFAtuCEYzgRvJEcaANRkiWvY2kpc3nskHP23V131Xu%2Fz5E%2Fqqs5wz14zCx3FqkP8KKqp4vset%2B369u%2F%2B0fGGMyYMWPGD4L9qN%2FAjBkzHn5mQjFjxowPZCYUM2bM%2BEBmQjFjxowPRPyo38BHgYju%2BfL7ve7y5csAgEuXLhkiwixgO2PG%2FUE%2FLh%2BiK1euULPZpDfeeIPeeadPQJuCIECv18NoNDp6VRXVahXN0y2shqERQmBhYUEDMJcuXfrxONEZMx5CHmqhICK88sorFMcx7e3tidFoZG1ubvLt7Q6XUgrNBIujlJIkgVIKnm%2BjWqmiWQtMELg6rFdks1otHMc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AASUVORK5CYII%3D',
};
/* translations */
$.gctour.i18n.de = {
'name': 'Deutsch',
'general': {
'save': 'Speichern',
'copy': 'Kopie',
'cancel': 'Abbrechen',
'close': 'Schließen',
'edit': 'bearbeiten',
'rename': 'umbenennen',
'remove': 'entfernen',
'load': 'laden',
'install': 'Installieren',
'findMe': 'Finde mich!',
'exampleCoords': 'z.B. N49° 26.082 E7° 46.587 oder 49.434701 7.776446',
'notLoggedIn': 'Sie müssen sich auf einer Seite von geocaching.com befinden und dort angemeldet sein.',
'pleaseWait': 'Bitte warten - Daten werden geladen...'
},
'container': {
'toolbar': {
'newList': 'Neue Tour erstellen',
'openTour': 'Eine Tour laden',
'downloadTour': {
'caption': 'Tour runterladen',
'webcodeDownloadHelp': 'Bitte gib hier den Webcode an, den du von deinem Freund bekommen hast und drücke dann auf "Tour runterladen".',
'webcodeerror': 'Der angegebene Webcode existiert leider nicht!',
'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.'
},
'showSettings': 'Einstellungen anzeigen',
'saveSettings': 'Touren und Einstellungen sichern'
},
'tourHeader': {
'sendToGps': 'an GPSr senden',
'downloadGpx': 'GPX downloaden',
'saveAsBookmarklist': {
'title': 'als Bookmarkliste speichern (PMO)',
'caption': 'Tour als Bookmarkliste speichern',
'success': 'Tour als Bookmarkliste gespeichert',
'duplicate': 'Die Bookmarkliste dieser Tour wurde bereits angelegt'
},
'makeMap': {
'caption': 'auf Karte anzeigen',
'wait': 'Verfügbarkeit der Karte wird getestet.'
},
'upload': {
'caption': 'Tour hochladen',
'tourUploaded1': '<br>Die Tour wurde erfolgreich hochgeladen! Der Webcode lautet:<br><b>',
'tourUploaded2': '</b><br><br>Die Onlineabfrage kann unter <a href="' + GCTOUR_HOST + 'tour" target="_blank">' + GCTOUR_HOST + 'tour</a> geschehen.<br>Wichtig: Bitte Webcode notieren um die Tour wieder aufzurufen!!',
'tourUploadPMO': ' PM Only Cache(s) wurden nicht hochgeladen (leider kein Zugriff als Basis-Mitglied)'
},
'addOwnWaypoint': 'eigenen Wegpunkt hinzufügen'
},
'cacheList': {
'logYourVisit': 'logge deinen Besuch',
'moveToList': 'in andere Tour verschieben',
'removeFromList': 'aus Tour entfernen'
}
},
'settings': {
'caption': 'Einstellungen',
'language': {
'header': 'Sprache',
'select': 'Sprache wählen'
},
'printview': {
'header': 'Druckansicht',
'printMinimal': 'Minimierte Druckansicht',
'printMinimalDesc': 'Beinhaltet nur noch Hint und Spoiler zu jedem Geocache.',
'logCount': 'Anzahl der Logs in Druckansicht',
'logCounts': ['keine', 'alle', 'anzeigen'],
'fontSize': 'Schriftgr&ouml;&szlig;e',
'decryptHints': 'Hints entschlüsseln',
'decryptHintsDesc': 'Die Hinweise werden schon mittels Rot13 auf der Druckansicht entschlüsselt.',
'editDescription': 'Beschreibung editierbar',
'editDescriptionDesc': 'Die Beschreibung lässt sich komplett nach eigenem Belieben anpassen.',
'showSpoiler': 'Spoiler Bilder anzeigen',
'showSpoilerDesc': 'Es werden die Spoiler mitgedruckt.',
'additionalWaypoints': 'Eigene Wegpunkte anzeigen',
'additionalWaypointsDesc': 'In der Druckansicht findet sich eine Tabelle mit allen "eigenen Wegpunkten".',
'additionalWaypoints2': 'Eigene Wegpunkte auf Titelseite einsortieren',
'additionalWaypoints2Desc': 'Eigene Wegpunkte werden auf der Titelseite in die Cache-Tabelle einsortiert. Ansonsten wird eine eigene Tabelle angelegt.',
'loggedVisits': 'Log-Counter anzeigen',
'loggedVisitsDesc': 'Eine Übersicht wie oft der Geocache schon gefunden wurde.',
'pageBreak': 'Seitenumbruch nach Geocache',
'pageBreakDesc': 'Es wird nach jedem Geocache eine neue Seite angefangen. Sieht man erst beim Ausdrucken.',
'pageBreakAfterMap': 'Seitenumbruch nach Übersichtskarte',
'pageBreakAfterMapDesc': 'Es wird ein Seitenumbruch nach der Übersichtseite gemacht, um das Deckblatt abzuheben.',
'frontPage': 'Titelseite',
'frontPageDesc': 'Es wird eine Titelseite erzeugt mit allen Geocaches, Index und Platz für Notizen.',
'outlineMap': 'Übersichtskarte für alle Caches',
'outlineMapDesc': 'Auf der Titelseite wird eine Karte mit allen Geocaches in der Tour angezeigt.',
'outlineMapSingle': 'Übersichtskarte für jeden Cache',
'outlineMapSingleDesc': 'Unter jedem Geocache erscheint eine Karte mit seinen "Additional Waypoints".',
'showCacheDetails': 'Cache-Listings und eigene Wegpunkte drucken',
'showCacheDetailsDesc': 'Alle Geocache-Listings und eigene Wegpunkte der Tour werden mitgedruckt (wenn deaktiviert, wird nur die Titelseite gedruckt).'
},
'map': {
'header': 'Karte',
'type': 'Standard Kartentyp',
'types': {
'Google Karte': 'roadmap',
'Google Satellit': 'satellite',
'Google Hybrid': 'hybrid',
'Google Gelände': 'terrain',
'Topo Deutschland': 'oda',
'OSM Mapnik': 'mapnik',
'OSM DE': 'osmde',
'OSM Fahrrad': 'osmaC',
'OSM ÖPNV': 'osmaP'
},
'size': 'Standard Kartengröße',
'geocacheid': 'Geocache Code anzeigen',
'geocacheidDesc': 'Es wird immer der GCCode (z.B. GC0815) mit auf der Karte angezeigt.',
'geocachename': 'Geocache Namen anzeigen',
'geocachenameDesc': 'Der Name eines Geocache wird zusätzlich mit eingeblendet.',
'geocacheindex': 'Geocache Index anzeigen',
'geocacheindexDesc': 'Die Postion innerhalb der Tour wird mit angezeigt.',
'awpts': 'Additional Waypoints anzeigen',
'awptsDesc': 'Wenn aktiviert, dann werden die "Additional Waypoints" eines Geocaches mit angezeigt.',
'awpt_name': 'Additional Waypoints Namen einblenden',
'awpt_nameDesc': 'Der Name eines "Additional Waypoints" wird mit angezeigt.',
'awpt_lookup': 'Additional Waypoints Lookup einblenden',
'awpt_lookupDesc': 'Der Lookupcode eines "Additional Waypoints" wird mit angezeigt.',
'owpts': 'Eigene Wegpunkte einblenden',
'owptsDesc': 'Wenn du "Eigene Wegpunkte" mit in deiner Tour hast, so werden diese auch mit auf der Karte angezeigt.',
'owpt_name': 'Namen eigener Wegpunkte anzeigen',
'owpt_nameDesc': 'Zusätzlich kann man sich noch den Namen zu jedem Wegpunkt anzeigen lassen.'
},
'gpx': {
'html': 'Beschreibung mit HTML',
'htmlDesc': '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.',
'wpts': 'Additional-Waypoints exportieren',
'wptsDesc': 'Additional-Waypoints werden als extra Wegpunkt mit in die GPX exportiert. Damit hat man jeden Parkplatz direkt auf dem Gerät.',
'attributesToLog': 'Cache-Attribute als erster Logeintrag',
'attributesToLogDesc': 'Cache Attribute werden zusätzlich als erster Log eingetragen.',
'stripGC': 'Entferne "GC" in GC-Code',
'stripGCDesc': '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!',
'maxLogCount': 'Max. Anzahl der Logs',
'prefixFavScore': 'Zeige den Prozentwert der Favoritenpunkte vor dem Cachenamen',
'prefixFavScoreDesc': 'Im Geocaching-Menü des GPSr wird vor dem Cachenamen der Prozentwert der Favoritenpunkte angezeigt (z.B. "8%GC10000 - A New Beginning"). Damit lässt sich leicht erkennen, wie ein Cache bewertet wurde.'
},
'gps': {
'header': 'An GPSr senden',
'selectSend2GPS': 'Methode wählen'
},
'theme': {
'select': 'Theme wählen'
},
'exportimport': {
'export': 'Export der GCTour-Einstellungen (inklusive aller Touren)',
'import': 'Import der GCTour-Einstellungen (inklusive aller Touren)'
}
},
'autoTour': {
'wait': 'Bitte warten - autoTour wird erzeugt!',
'radius': 'Radius',
'center': 'Mittelpunkt',
'help': 'Koordinaten oder Adresse: <i>N52° 30.757 E13° 19.309</i> oder <i>Berlin Ernst-Reuter-Platz</i>',
'refresh': 'Berechne eine autoTour mit diesen Werten!',
'cacheCounts': 'Geschätzte Anzahl <i>aller</i> Caches in dieser Region:',
'duration': 'Geschätzte Dauer der Erzeugung dieser autoTour:',
'filter': {
'type': 'Typ',
'size': 'Größe',
'difficulty': 'Schwierigkeit',
'terrain': 'Gelände',
'special': {
'caption': 'Spezial',
'pm': {
'not': 'Ist kein PM Cache',
'ignore': 'Ist PM oder kein PM Cache',
'only': 'Ist PM Cache'
},
'notfound': 'Nicht gefunden',
'isActive': 'Aktiv',
'minFavorites': 'Mindestzahl Favoriten'
}
}
},
'dlg': {
'newVersion': {
'caption': 'Neue Version verfügbar',
'content': 'Es gibt eine neue Version von GCTour.\nZum update gehen? \n\n', //ohne Anwendung
'changelog': 'Neue GCTour-Version ' + VERSION + ' installiert. Übersicht der Änderungen: '
},
'error': {
'content': '<img src="' + $.gctour.img.sad + '">&nbsp;&nbsp;Leider 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/>'
}
},
'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'
},
'send2cgeo': {
'title': 'an c:geo senden',
'noWP': 'ohne eigene Wegpunkte',
'usage': '<li>c:geo auf dem Mobilgerät starten und in eine Cacheliste wechseln</li>' +
'<li><i>Menü → Importieren → Importiere von send2cgeo</i></li>' +
'<li>Die Tour (ohne eigene Wegpunkte) wird automatisch in die ausgewählte Liste geladen</li>' +
'<li>c:geo wartet noch 3 Minuten, um weitere Caches herunterzuladen</li>',
'overview': 'Übersicht',
'setup': {
'header': 'Setup',
'registerBrowser': 'Hier klicken um den Browser für Send2cgeo zu registrieren',
'desc1': '<li>c:geo auf dem Androidgerät starten, dann <i>Menu → Einstellungen → Dienste → Send to c:geo</i></li>' +
'<li><i>Registrierung anfordern</i> wählen, es öffnet sich ein Fenster mit einer fünfstelligen PIN</li>',
'desc2': 'PIN hier eingeben:',
'desc3': 'PIN senden und damit Gerät hinzufügen'
},
'register': 'Browser noch nicht für Send2cgeo registriert - bitte zum "Setup" Tab wechseln und den Browser registrieren.',
'senderror': 'Ein Fehler ist aufgetreten, bitte später noch einmal versuchen.'
},
'marker': {
'coord': 'Koordinaten',
'content': 'Inhalt',
'contentHint': 'wird in Druckansicht angezeigt',
'type': 'Typ'
},
'update': {
'dialog': '<div><p>Es ist eine neue Version von <a target="_blank" href="https://gist.github.com/DieBatzen/5814dc7368c1034470c8"><b>GCTour</b></a> verf&uuml;gbar.</p><p>Du verwendest Version <b>###VERSION_OLD###</b>, die aktuellste Version ist <b>###VERSION_NEW###</b>.</p><div class="dialogFooter"></div>',
'upToDate': 'GCTour ' + VERSION + ' ist aktuell!'
},
'printview': {
'found': 'Fund',
'note': 'Notiz',
'marker': 'Eigene Wegpunkte',
'removeMap': 'Karte entfernen',
'zoomMap': 'Diese Karte in einem neuem Tab öffnen.',
'dontPrintHint': '<b>Hinweis:</b><br/>Elemente in einem solchen Kasten werden <u>nicht</u> mit gedruckt!',
'reloadMap': 'Karte neu laden',
'print': 'Druck starten',
'mapHeight': 'Höhe'
},
'cache': {
'addToTour': ' Zur Tour hinzufügen',
'directPrint': ' Drucke diesen Geocache',
'moveCoords': ' Verschiebe die Koordinaten',
'movedCoords': 'Die Koordinaten zu diesem Geocache wurden verschoben!',
'moveCoordsHelp': '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 Mysteries.',
'deleteCoords': 'Koordinaten löschen',
'originalCoords': 'Originale Koordinaten',
'newCoords': 'Neue Koordinaten',
'addToCurrentTour': 'zur <b>aktuellen</b> Tour hinzufügen',
'addToNewTour': 'zu <b>neuer</b> Tour hinzufügen',
'shown': '<b>Angezeigte</b> Caches:',
'marked': '<b>Markierte</b> Caches:'
},
'tour': {
'newDialog': 'Bitte gib einen Namen für die neue Tour ein ...',
'copy': 'Tour kopieren',
'remove': 'diese Tour löschen',
'removeDialog': 'Soll die Tour wirklich gelöscht werden?',
'empty': 'Die Tour ist leer.'
}
};
$.gctour.i18n.en = {
'name': 'English',
'general': {
'save': 'Save',
'copy': 'Copy',
'cancel': 'Cancel',
'close': 'Close',
'edit': 'Edit',
'rename': 'Rename',
'remove': 'Remove',
'load': 'load',
'install': 'Install',
'findMe': 'Find me!',
'exampleCoords': 'e.g. N49° 26.082 E7° 46.587 or 49.434701 7.776446',
'notLoggedIn': 'You must be on a geocaching.com page and logged in there.',
'pleaseWait': 'Please wait - loading data ...'
},
'container': {
'toolbar': {
'newList': 'New tour',
'openTour': 'Load a tour',
'downloadTour': {
'caption': 'Download Tour',
'webcodeDownloadHelp': 'Please enter here the webcode you receive from your friend and click on "Download tour".',
'webcodeerror': 'The choosen webcode does not exist!',
'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.'
},
'showSettings': 'Show settings',
'saveSettings': 'Backup tours and settings',
'homepage': 'GCTour Home'
},
'tourHeader': {
'sendToGps': 'Send to GPSr',
'downloadGpx': 'Download GPX',
'saveAsBookmarklist': {
'title': 'Save as bookmark list (PMO)',
'caption': 'Save tour as bookmark list',
'success': 'Tour saved as bookmark list',
'duplicate': 'A bookmark list for this tour already exists'
},
'makeMap': {
'caption': 'View on map',
'wait': 'Testing availablity of this map'
},
'upload': {
'caption': 'Upload Tour',
'tourUploaded1': '<br>Uploading tour was successful! Webcode:<br><b>',
'tourUploaded2': '</b><br><br>You can view the tour at <a href="' + GCTOUR_HOST + 'tour" target="_blank">' + GCTOUR_HOST + 'tour</a>.<br>Important: Please note webcode in order to retrieve the tour!!',
'tourUploadPMO': ' PM Only Cache(s) not uploaded (unfortunately no access as Base Member)'
},
'addOwnWaypoint': 'Add own waypoint'
},
'cacheList': {
'logYourVisit': 'Log your visit',
'moveToList': 'Move to another tour',
'removeFromList': 'Remove from tour'
}
},
'settings': {
'caption': 'Settings',
'language': {
'header': 'Language',
'select': 'Select language'
},
'printview': {
'header': 'Printview',
'printMinimal': 'Minimal printview',
'printMinimalDesc': 'This contains only the hint and spoiler of a geocache.',
'logCount': 'Number of logs in printview',
'logCounts': ['none', 'all', 'show'],
'fontSize': 'Font size',
'fontSizes': ['xx-small', 'x-small', 'small', 'medium', 'large', 'x-large', 'xx-large'],
'decryptHints': 'Decrypt hints',
'decryptHintsDesc': 'Hints will be already decrypted in the printout.',
'editDescription': 'Description editable',
'editDescriptionDesc': 'The description can be edited in the way you want it.',
'showSpoiler': 'Display spoiler',
'showSpoilerDesc': 'Spoiler images will be on the printout.',
'additionalWaypoints': 'Show additional waypoints',
'additionalWaypointsDesc': 'The printview will contain a table with all "Additional waypoints" from a geocache.',
'additionalWaypoints2': 'Add own waypoints to cache table',
'additionalWaypoints2Desc': 'Own waypoints will be added to the cache table on front page. Otherwise an extra table will be added.',
'loggedVisits': 'Show log counter',
'loggedVisitsDesc': 'This will show the "Find counts" overview.',
'pageBreak': 'Page break after cache',
'pageBreakDesc': 'After each geocache there will be a page break. Visiable after printing.',
'pageBreakAfterMap': 'Page break after map',
'pageBreakAfterMapDesc': 'It will be a page break after the overview to separate it from the geocaches.',
'frontPage': 'Front page',
'frontPageDesc': 'An overview will be generated containing the complete list of geocaches including index and space to take notes. ',
'outlineMap': 'Outline map for all caches',
'outlineMapDesc': 'The overview will contain a map with all geocaches.',
'outlineMapSingle': 'Outline map for every cache',
'outlineMapSingleDesc': 'After each geocache a map containing the geocache and its "Additional waypoints" will be shown.',
'showCacheDetails': 'Print cache listings and own waypoints',
'showCacheDetailsDesc': 'All geocache listings and own waypoints will be printed (if not set just the front page will be printed).'
},
'map': {
'header': 'Map',
'type': 'Default map type',
'types': {
'Google Map': 'roadmap',
'Google Satellite': 'satellite',
'Google Hybrid': 'hybrid',
'Google Terrain': 'terrain',
'Topo Germany': 'oda',
'OSM Mapnik': 'mapnik',
'OSM German style': 'osmde',
'OSM Cycle': 'osmaC',
'OSM Public Transport': 'osmaP'
},
'size': 'Default map size',
'sizes': ['large', 'medium', 'small'],
'geocacheid': 'Show geocache id',
'geocacheidDesc': 'The GCCode (eg. GC0815) will be shown on the map.',
'geocacheindex': 'Show geocache index',
'geocacheindexDesc': 'The position of each waypoint in the current tour will be shown on the map.',
'geocachename': 'Show geocache name',
'geocachenameDesc': 'The name of an geocache will be shown on the map.',
'awpts': 'Display addtional waypoints',
'awptsDesc': 'If enabled, additional waypoints will be shown on the map.',
'awpt_name': 'Show name of the additional waypoints',
'awpt_nameDesc': 'The name of the additional waypoints will be shown on the map.',
'awpt_lookup': 'Show lookup code of additional waypoints',
'awpt_lookupDesc': 'The lookup code of the additional waypoints will be shown on the map.',
'owpts': 'Display own waypoints',
'owptsDesc': 'Own waypoints in the current tour will be shown on the map.',
'owpt_name': 'Show name of own waypoints',
'owpt_nameDesc': 'Display the name of your own waypoints'
},
'gpx': {
'header': 'GPX',
'html': 'Description with HTML',
'htmlDesc': 'Some programs/GPSr have problems to show geocaches when their description is HTML formatted. If you only see scrabbled descriptions then please disable this option.',
'wpts': 'Export additional waypoints',
'wptsDesc': 'Additional waypoints will be exported as extra waypoint to the GPX. You will see every parking place on your unit.',
'attributesToLog': 'Create log with cache attributes',
'attributesToLogDesc': 'Cache attributes are also included as a first log.',
'stripGC': 'Strip "GC" in GC-Code',
'stripGCDesc': 'Older GPSr still have problems with waypoints having names longer than 8 characters. Please use this option if you own such an unit.',
'maxLogCount': 'max number of logs',
'prefixFavScore': 'Show favorite score in front of cache name',
'prefixFavScoreDesc': 'When in Geocaching menu of GPSr, the favorite score is shown in front of the cache name (e.g. "8%GC10000 - A New Beginning"). Thereby it\'s easy to see how a cache has been rated.'
},
'gps': {
'header': 'Send to GPSr',
'selectSend2GPS': 'Select method'
},
'theme': {
'header': 'Themes',
'select': 'Select Theme'
},
'exportimport': {
'header': 'Export/Import',
'export': 'Export of GCTour settings (including all tours)',
'import': 'Import of GCTour settings (including all tours)'
}
},
'autoTour': {
'title': 'autoTour',
'wait': 'Please wait - generating autoTour!',
'radius': 'Radius',
'center': 'Center',
'help': 'Coordinates or address: <i>N51° 30.348 W0° 04.509</i> or <i>London Tower Bridge</i>',
'refresh': 'Calculate an autoTour with these values!',
'cacheCounts': 'Estimated <i>total number</i> of caches in this region:',
'duration': 'Estimated time to generate this 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': {
'newVersion': {
'caption': 'New version available',
'content': 'There is a new version of GCTour.\nDo you want to update? \n\n',
'changelog': 'New GCTour version ' + VERSION + ' installed. Overview of changes: '
},
'error': {
'content': '<img src="' + $.gctour.img.sad + '">&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/><br/>'
}
},
'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'
},
'send2cgeo': {
'title': 'Send to c:geo',
'noWP': 'no own waypoints',
'usage': '<li>Start c:geo on your device and go to a list of saved caches</li>' +
'<li>Select Menu → Import → Import from send2cgeo</li>' +
'<li>The tour (without own waypoints) will automatically be downloaded from geocaching.com to the list of saved caches</li>' +
'<li>c:geo will continue to wait for more caches to be downloaded for 3 minutes</li>',
'overview': 'Overview',
'setup': {
'header': 'Setup',
'registerBrowser': 'Click to register this browser for Send2cgeo',
'desc1': '<li>Run c:geo on your android device and select <i>Menu → Settings → Services → Send to c:geo</i></li>' +
'<li>Select <i>Request Registration</i>, you will get an info window showing a five digit PIN</li>',
'desc2': 'Enter PIN here:',
'desc3': 'Send PIN and add device'
},
'register': 'Browser is not registered for Send2cgeo yet - please switch to "Setup" tab and register your browser.',
'senderror': 'An error occurred, please try again later.'
},
'marker': {
'coord': 'Coordinates',
'content': 'Content',
'contentHint': 'will be shown in printview',
'type': 'Type'
},
'update': {
'dialog': '<div><p>There is a new version of <a target="_blank" href="https://gist.github.com/DieBatzen/5814dc7368c1034470c8"><b>GCTour</b></a> available for installation.</p><p>You currently have installed version <b>###VERSION_OLD###</b>, the latest version is <b>###VERSION_NEW###</b>.</p><div class="dialogFooter"></div>',
'upToDate': 'GCTour ' + VERSION + ' is up to date!'
},
'printview': {
'found': 'Found',
'note': 'Note',
'marker': 'Own waypoints',
'removeMap': 'Remove map',
'zoomMap': 'Open this map in a new tab.',
'dontPrintHint': '<b>Information:</b><br/>Elements in such a box will <u>not</u> be printed!',
'reloadMap': 'Reload map',
'print': 'Start printing',
'mapHeight': 'Height'
},
'cache': {
'addToTour': ' Add to tour',
'directPrint': ' Print this geocache',
'moveCoords': ' Move the coordinates',
'movedCoords': 'The coordinates to this geocaches are moved.',
'moveCoordsHelp': 'You have the possibility to change the original coordinates of this geocache. These will then be used in printview and also in the GPX file. This is quiet handy if you solve a mystery.',
'deleteCoords': 'Delete coordinates',
'originalCoords': 'Original coordinates',
'newCoords': 'New coordinates',
'addToCurrentTour': 'to <b>current</b> tour',
'addToNewTour': 'to <b>new</b> tour',
'shown': 'Add <b>shown</b> geocaches:',
'marked': 'Add <b>marked</b> geocaches:'
},
'tour': {
'newDialog': 'Please enter a name for the new tour ...',
'copy': 'Copy tour',
'remove': 'Delete this tour',
'removeDialog': 'Are you sure to delete this tour?',
'empty': 'The tour is empty.'
}
};
$.gctour.i18n.fr = {
'name': 'Français',
'general': {
'save': 'Enregistrer',
'copy': 'Dupliquer',
'cancel': 'Abandonner',
'close': 'Fermer',
'edit': 'Editer',
'rename': 'Renommer',
'load': 'charger',
'install': 'Installer',
'findMe': 'Localisez-moi!',
'exampleCoords': 'p. ex. N49° 26.082 E7° 46.587 ou 49.434701 7.776446',
'notLoggedIn': 'Vous devez être connecté à geocaching.com, merci de vous connecter.',
'pleaseWait': 'Veuillez patienter...'
},
'container': {
'toolbar': {
'newList': 'Nouveau tour',
'openTour': 'Ouvrir un Tour',
'downloadTour': {
'caption': 'Télécharger un Tour',
'webcodeDownloadHelp': 'Entrer ici le webcode que vous avez reçu et cliquer sur "Télécharger le Tour".',
'webcodeerror': 'Le webcode saisi est inexistant!',
'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.'
},
'showSettings': 'Configurer'
},
'tourHeader': {
'sendToGps': 'Transférer vers le GPSr',
'downloadGpx': 'Télécharger le GPX',
'makeMap': {
'caption': 'Voir sur la carte',
'wait': 'Vérification de la disponibilité et création de la carte... '
},
'upload': {
'caption': 'Soumettre un Tour',
'tourUploaded1': '<br>Le Tour a été correctement transféré! Webcode:<br><b>',
'tourUploaded2': '</b><br><br>Vous pouvez visualiser ce Tour sur <a href="' + GCTOUR_HOST + 'tour" target="_blank">' + GCTOUR_HOST + 'tour</a>.<br>Important: Notez bien le webcode pour une utilisation ultérieure!!'
},
'addOwnWaypoint': 'Ajouter un Waypoint personnel'
},
'cacheList': {
'logYourVisit': 'Loguer votre visite',
'removeFromList': 'Supprimer du tour'
}
},
'settings': {
'caption': 'Configuration',
'language': {
'header': 'Langue',
'select': 'Choisir langue'
},
'printview': {
'header': 'Version imprimable',
'printMinimal': 'Version imprimable minimaliste',
'printMinimalDesc': 'Ne contient que l\'indice et le spoiler de la cache.',
'logCount': 'Nombre de logs à inclure dans la version imprimable',
'logCounts': ['aucun', 'tous', 'afficher'],
'fontSize': 'Taille des caractères',
'decryptHints': 'Decryptage des hints',
'decryptHintsDesc': 'Les indices seront décryptés dans la version imprimable.',
'editDescription': 'Description éditable',
'editDescriptionDesc': 'La description est éditable comme bon vous semble.',
'showSpoiler': 'Affichage des spoilers',
'showSpoilerDesc': 'Les images Spoiler seront visibles dans la version imprimables.',
'additionalWaypoints': 'Affichage des Waypoints additionnels',
'additionalWaypointsDesc': 'La version imprimable contiendra un tableau avec tous les "Waypoints additionnels" de la cache.',
'loggedVisits': 'Affichage du nombre de logs',
'loggedVisitsDesc': 'Affiche un récapitulatif des "Trouvé(s)".',
'pageBreak': 'Saut de page entre les caches',
'pageBreakDesc': 'Il y aura un saut de page après chaque cache. Visible seulement à l\'impression.',
'pageBreakAfterMap': 'Saut de page après la carte',
'pageBreakAfterMapDesc': 'Il y aura un saut de page après la vue globale du Tour pour la séparer des pages de caches qui suivent.',
'frontPage': 'Page d\'accueil',
'frontPageDesc': 'Une vue d\'ensemble sera générée et incluera un index avec des cases dédiées à la prise de notes.',
'outlineMap': 'Vue d\'ensemble de toutes les caches du Tour',
'outlineMapDesc': 'La vue d\'ensemble incluera une carte avec toutes les caches.',
'outlineMapSingle': 'Vue d\'ensemble pour chaque cache',
'outlineMapSingleDesc': 'Après chaque cache, une carte indiquant l\'emplacement de la cache et de ses Waypoints additionnels sera affichée.'
},
'map': {
'header': 'Carte',
'type': 'Type de carte par défaut',
'size': 'Taille de carte par défaut',
'geocacheid': 'Afficher l\'Id de la cache sur la carte',
'geocacheidDesc': 'Les codes GC (eg. GC1S5ZE) seront affichés sur la carte.',
'geocacheindex': 'Afficher les Waypoints des caches sur la vue générale',
'geocacheindexDesc': 'Les Waypoints seront affichés sur la carte.',
'geocachename': 'Afficher le nom des caches sur la vue générale',
'geocachenameDesc': 'Les noms des caches seront affichés sur la carte.',
'awpts': 'Afficher les Waypoints',
'awptsDesc': 'Si cette option est cochée les Waypoints associées aux caches seront affichés sur la carte.',
'awpt_name': 'Afficher les noms des Waypoints additionnels',
'awpt_nameDesc': 'Les noms des Waypoints additionnels seront affichés sur la carte.',
'awpt_lookup': 'Afficher les codes lookup des Waypoints additionnels',
'awpt_lookupDesc': 'Les codes lookup des Waypoints seront affichés sur la carte.',
'owpts': 'Afficher les Waypoints personnels',
'owptsDesc': 'Les Waypoints personnels seront visibles sur la carte.',
'owpt_name': 'Afficher le nom des Waypoints personnels',
'owpt_nameDesc': 'Affiche le nom des Waypoints personnels sur la carte'
},
'gpx': {
'html': 'Description des caches au format HTML',
'htmlDesc': '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.',
'wpts': 'Exporter les Waypoints additionnels',
'wptsDesc': 'Les Waypoints additionnels seront exportés vers votres GPS. Les parkings conseillés seront visibles sur votre GPS.',
'attributesToLog': 'Créer connecter avec les attributs du cache',
'attributesToLogDesc': 'Attributs de mise en cache sont également enregistrés comme un premier signe.',
'stripGC': 'Tronquer le préfixe "GC" dans le GC-Code',
'stripGCDesc': '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.',
'maxLogCount': 'nombre maximum de journaux'
},
'gps': {
'header': 'Envoyer vers le GPSr',
'selectSend2GPS': 'Choisir méthode'
},
'theme': {
'select': 'Choisir Theme'
}
},
'autoTour': {
'wait': 'Veuillez patienter pendant la génération automatique du Tour ...',
'radius': 'Rayon',
'center': 'Centre',
'help': 'Coordonnées ou adresse: <i>N48° 51.478 E2° 17.670</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'
}
}
},
'dlg': {
'newVersion': {
'caption': 'Nouvelle version disponible',
'content': 'Une nouvelle version de GCTour est disponible.\n Voulez-vous mettre à jour? \n\n'
},
'error': {
'content': '<img src="' + $.gctour.img.sad + '">&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/>'
}
},
'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'
},
'send2cgeo': {
'title': 'Transférer vers le c:geo'
},
'marker': {
'coord': 'Coordonnées',
'content': 'Description',
'contentHint': 'sera visble dans la version imprimable'
},
'update': {
'dialog': '<div><p>Une nouvelle version de <a target="_blank" href="https://gist.github.com/DieBatzen/5814dc7368c1034470c8"><b>GCTour</b></a> est disponible.</p><p>Version installée: <b>###VERSION_OLD###</b>, version la plus récente disponible: <b>###VERSION_NEW###</b>.</p><div class="dialogFooter"></div>',
'upToDate': 'GCTour ' + VERSION + ' est à jour!'
},
'printview': {
'found': 'Trouvée',
'note': 'Note',
'marker': 'Waypoint personnel',
'removeMap': 'Supprimer la carte',
'zoomMap': 'Ouvrir la carte dans un nouvel onglet.',
'dontPrintHint': '<b>Information:</b><br/>Les éléménts ayant cette apparence ne seront <u>pas</u> imprimés!',
'print': 'Lancez l\'impression'
},
'cache': {
'addToTour': ' Ajouter au tour',
'directPrint': ' Imprimer cette cache',
'moveCoords': ' Ajuster les coordonnées',
'movedCoords': 'Les coordonnées de cette cache ont été ajustées.',
'moveCoordsHelp': '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.',
'deleteCoords': 'Supprimer les coordonnées',
'originalCoords': 'Coordonnées initiales',
'newCoords': 'Nouvelles coordonnées',
'addToCurrentTour': 'au tour <b>actuel</b>',
'addToNewTour': 'à un <b>nouveau</b> tour',
'shown': 'Ajouter les caches <b>affichées</b>:'
},
'tour': {
'newDialog': 'Veuillez saisir un nom pour ce nouveau tour ...',
'copy': 'Dupliquer le tour',
'remove': 'Supprimer ce tour',
'removeDialog': 'Etes-vous sûrs de vouloir supprimer ce tour?',
'empty': 'Le tour est vide.'
}
};
$.gctour.i18n.nl = {
'name': 'Nederlands',
'general': {
'save': 'Bewaren',
'copy': 'Kopiëren',
'cancel': 'Annuleren',
'close': 'Sluiten',
'edit': 'Bewerken',
'rename': 'Hernoem',
'load': 'laden',
'install': 'Installeren',
'findMe': 'Vind me!',
'exampleCoords': 'bv. N49° 26.082 E7° 46.587 of 49.434701 7.776446',
'notLoggedIn': 'U dient ingelogd te zijn, gelieve in te loggen.',
'pleaseWait': 'Even geduld - gegevens worden geladen ...'
},
'container': {
'toolbar': {
'newList': 'Nieuwe toer',
'openTour': 'Een toer laden',
'downloadTour': {
'caption': 'Toer downloaden',
'webcodeDownloadHelp': 'Gelieve de ontvangen webcode in te vullen en klik op "Toer downloaden".',
'webcodeerror': 'De gekozen webcode bestaat niet!',
'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.'
},
'showSettings': 'Instellingen tonen'
},
'tourHeader': {
'sendToGps': 'Naar GPSr versturen',
'downloadGpx': 'GPX downloaden',
'makeMap': {
'caption': 'Bekijk op de kaart',
'wait': 'Beschikbaarheid kaart wordt getest'
},
'upload': {
'caption': 'Toer uploaden',
'tourUploaded1': '<br>Uploaden toer was succesvol! Webcode:<br><b>',
'tourUploaded2': '</b><br><br>Je kan de toer bekijken op <a href="' + GCTOUR_HOST + 'tour" target="_blank">' + GCTOUR_HOST + 'tour</a>.<br>Belangrijk gelieve de webcode te noteren om deze later op te kunnen opvragen!!',
},
'addOwnWaypoint': 'Eigen waypoint toevoegen'
},
'cacheList': {
'logYourVisit': 'Log je bezoek',
'removeFromList': 'Van toer verwijderen'
}
},
'settings': {
'caption': 'Instellingen',
'language': {
'header': 'Taal',
'select': 'Taal kiezen'
},
'printview': {
'header': 'Afdrukweergave',
'printMinimal': 'Minimale afdrukweergave',
'printMinimalDesc': 'Dit bevat enkel de hint en spoiler van een geocache.',
'logCount': 'Aantal logs in afdrukweergave',
'logCounts': ['geen', 'alle', 'tonen'],
'fontSize': 'Fontgrootte',
'decryptHints': 'Decodeer hints',
'decryptHintsDesc': 'Hints worden gedecodeerd bij het afdrukken.',
'editDescription': 'Beschrijving wijzigbaar',
'editDescriptionDesc': 'De beschrijving van de geocache kan aangepast worden.',
'showSpoiler': 'Spoiler tonen',
'showSpoilerDesc': 'Spoilers worden afgedrukt.',
'additionalWaypoints': 'Additional waypoints tonen',
'additionalWaypointsDesc': 'De afdrukweergave zal een tabel met de "additional waypoints" van een geocache bevatten.',
'loggedVisits': 'Log teller tonen',
'loggedVisitsDesc': 'Dit toont een "Find Counts" overzicht.',
'pageBreak': 'Pagina einde achter cache',
'pageBreakDesc': 'Bij het afdrukken komt achter elke geocache een nieuwe pagina.',
'pageBreakAfterMap': 'Pagina einde achter kaart',
'pageBreakAfterMapDesc': 'Er komt een nieuwe pagina tussen het overzicht en de geocaches.',
'frontPage': 'Frontpagina',
'frontPageDesc': 'Een overzicht wordt gemaakt met de volledige lijst van de geocaches met een index en plaats voor notities.',
'outlineMap': 'Kaart maken voor alle geocaches',
'outlineMapDesc': 'Het overzicht zal een kaart met alle geocaches bevatten.',
'outlineMapSingle': 'Kaart maken voor elke cache afzonderlijk',
'outlineMapSingleDesc': 'Na iedere geocache komt een kaart met de geocache en de additional waypoints.'
},
'map': {
'header': 'Kaart',
'type': 'Standaard kaarttype',
'size': 'Standaard kaartgrootte',
'geocacheid': 'Toon geocache id',
'geocacheidDesc': 'De GCCode (eg. GC2NTTG) wordt getoond op de kaart.',
'geocacheindex': 'Toon geocache index',
'geocacheindexDesc': 'De volgorde binnen de toer wordt getoond op de kaart.',
'geocachename': 'Toon geocache naam',
'geocachenameDesc': 'De naam van de geocache wordt getoond op de kaart.',
'awpts': 'Toon additional waypoints',
'awptsDesc': 'Additional waypoints worden getoond op de kaart.',
'awpt_name': 'Toon naam additional waypoints',
'awpt_nameDesc': 'De naam van het additional waypoint wordt getoond op de kaart.',
'awpt_lookup': 'Toon lookup code additional waypoints',
'awpt_lookupDesc': 'De lookup code van het additional waypoints wordt getoond op de kaart.',
'owpts': 'Toon eigen waypoints',
'owptsDesc': 'Eigen waypoints worden getoond op de kaart.',
'owpt_name': 'Toon naam eigen waypoints',
'owpt_nameDesc': 'De naam van het eigen waypoint wordt getoond op de kaart.'
},
'gpx': {
'html': 'Beschrijving met HTML',
'htmlDesc': 'Sommige programma\'s en GPS toestellen hebben problemen met geocache beschrijvingen in HTML. Indien dit het geval is, kan je best deze optie afzetten.',
'wpts': 'Exporteer additional waypoints',
'wptsDesc': 'Additional waypoints worden geëxporteerd als extra waypoint naar GPX. Alle paarkeerplaatsen zullen zichtbaar zijn op je toestel.',
'attributesToLog': 'Maken te loggen met cache attributen',
'attributesToLogDesc': 'Cache attributen worden ook geregistreerd als een eerste teken.',
'stripGC': '"GC" in GC-Code verwijderen',
'stripGCDesc': 'Oudere GPS toestellen kunnen problemen hebben met waypoints waarvan de naam langer is dan 8 tekens. Gebruik deze optie indien dit het geval is.',
'maxLogCount': 'Max aantal logs'
},
'gps': {
'header': 'Naar GPSr versturen',
'selectSend2GPS': 'Methode kiezen'
},
'theme': {
'select': 'Theme kiezen'
}
},
'autoTour': {
'wait': 'Even geduld – autoTour wordt aangemaakt!',
'radius': 'Radius',
'center': 'Middelpunt',
'help': 'Coördinaten of adres: <i>N52° 22.472 E4° 53.879</i> of <i>Amsterdam</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'
}
}
},
'dlg': {
'newVersion': {
'caption': 'Nieuwe versie beschikbaar',
'content': 'Er is een nieuwe versie van GCTour beschikbaar.\nWil je upgraden? \n\n'
},
'error': {
'content': '<img src="' + $.gctour.img.sad + '">&nbsp;&nbsp;Spijtig 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/>'
}
},
'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'
},
'send2cgeo': {
'title': 'Naar c:geo versturen'
},
'marker': {
'coord': 'Coördinaten',
'content': 'Inhoud',
'contentHint': 'zal getoond worden in afdrukweergave'
},
'update': {
'dialog': '<div><p>Er is een nieuwe versie van <a target="_blank" href="https://gist.github.com/DieBatzen/5814dc7368c1034470c8"><b>GCTour</b></a> beschikbaar voor installatie.</p><p>Versie <b>###VERSION_OLD###</b> is momenteel geïnstalleerd, de recentste versie is <b>###VERSION_NEW###</b>.</p><div class="dialogFooter"></div>',
'upToDate': 'GCTour ' + VERSION + ' is op dit moment!'
},
'printview': {
'found': 'Gevonden',
'note': 'Note',
'marker': 'Eigen waypoint',
'removeMap': 'Kaart verwijderen',
'zoomMap': 'Open deze kaart in een nieuwe tab.',
'dontPrintHint': '<b>Ter info:</b><br/>Gegevens in dit kader worden <u>niet</u> afgedrukt!',
'print': 'Begin met afdrukken'
},
'cache': {
'addToTour': ' Aan toer toevoegen',
'directPrint': ' Deze geocache afdrukken',
'moveCoords': ' Verplaats de coördinaten',
'movedCoords': 'De coördinaten voor deze geocache zijn verplaatst.',
'moveCoordsHelp': '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.',
'deleteCoords': 'Verwijderen coördinaten',
'originalCoords': 'Originele coördinaten',
'newCoords': 'Nieuwe coördinaten',
'addToCurrentTour': 'aan <b>huidige</b> toer',
'addToNewTour': 'aan <b>nieuwe</b> toer',
'shown': '<b>Getoonde</b> geocaches toevoegen:'
},
'tour': {
'newDialog': 'Gelieve de naam van de nieuwe toer in te vullen ...',
'copy': 'Toer kopiëren',
'remove': 'Deze toer wissen',
'removeDialog': 'Weet je zeker dat je deze toer wil verwijderen?',
'empty': 'De toer is leeg.'
}
};
$.gctour.i18n.pt = {
'name': 'Português',
'general': {
'save': 'Guardar',
'copy': 'Copiar',
'cancel': 'Cancelar',
'close': 'Fechar',
'edit': 'Editar',
'rename': 'Renomear',
'load': 'carregar',
'install': 'Instalar',
'findMe': 'Encontra-me!',
'exampleCoords': 'p.ex. N49° 26.082 E7° 46.587 ou 49.434701 7.776446',
'notLoggedIn': 'Você precisa estar logado, faça o login.',
'pleaseWait': 'Por favor aguarde - a carregar conte&#250;do ...'
},
'container': {
'toolbar': {
'newList': 'Nova Rota',
'openTour': 'Carregar uma Rota',
'downloadTour': {
'caption': 'Transferir Rota',
'webcodeDownloadHelp': 'Por favor introduza aqui o código que recebeu e clique em "Transferir Rota".',
'webcodeerror': 'O C&#243;digo escolhido n&#227;o existe!',
'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.'
},
'showSettings': 'Mostrar Configurações'
},
'tourHeader': {
'sendToGps': 'Enviar para o GPSr',
'downloadGpx': 'Transferir GPX',
'makeMap': {
'caption': 'Visualizar no mapa',
'wait': 'A testar disponibilidade deste mapa'
},
'upload': {
'caption': 'Enviar rota',
'tourUploaded1': '<br>Rota enviada com sucesso! C&#243;digo:<br><b>',
'tourUploaded2': '</b><br><br>Pode ver a rota em <a href="' + GCTOUR_HOST + 'tour" target="_blank">' + GCTOUR_HOST + 'tour</a>.<br>Importante: Por favor anote o c&#243;digo para retirar a rota!!',
},
'addOwnWaypoint': 'Adicionar o seu Waypoint'
},
'cacheList': {
'logYourVisit': 'Registe a sua visita',
'removeFromList': 'Remover da lista'
}
},
'settings': {
'caption': 'Configurações',
'language': {
'header': 'Idioma',
'select': 'Escolha idioma'
},
'printview': {
'header': 'Modo de impressão',
'printMinimal': 'Modo de Impress&#227;o m&#237;nimo',
'printMinimalDesc': 'Cont&#233;m apenas a dica e o spoiler da geocache.',
'logCount': 'N&#250;mero de logs no modo de impress&#227;o',
'logCounts': ['nenhum', 'tudo', 'mostrar'],
'fontSize': 'Tamanho da letra',
'decryptHints': 'Decifrar dicas',
'decryptHintsDesc': 'As dicas v&#227;o estar decifradas no modo de impress&#227;o.',
'editDescription': 'Descri&#231;&#227;o edit&#225;vel',
'editDescriptionDesc': 'A descri&#231;&#227;o pode ser editada da forma como quiser.',
'showSpoiler': 'Mostrar spoiler',
'showSpoilerDesc': 'Imagens de spoiler v&#227;o estar no modo de impress&#227;o.',
'additionalWaypoints': 'Mostrar Waypoints Adicionais',
'additionalWaypointsDesc': 'O modo de impress&#227;o vai conter uma tabela com todos os "Waypoints Adicionais" de uma geocache.',
'loggedVisits': 'Mostrar contador de log',
'loggedVisitsDesc': 'Vai mostrar um resumo do "Contador de Visitas".',
'pageBreak': 'Espa&#231;o na pagina depois da cache',
'pageBreakDesc': 'Depois de cada geocache vai existir uma espa&#231;amento. Vis&#237;vel depois da impress&#227;o.',
'pageBreakAfterMap': 'Espa&#231;o na p&#225;gina depois do mapa',
'pageBreakAfterMapDesc': 'Vai existir um espa&#231;amento depois do resumo para separar as geocaches.',
'frontPage': 'Primeira p&#225;gina',
'frontPageDesc': '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.',
'outlineMap': 'Mapa com todas as caches',
'outlineMapDesc': 'O resumo vai conter um mapa com todas as geocaches.',
'outlineMapSingle': 'Mapa para todas as caches',
'outlineMapSingleDesc': 'Depois de cada geocache est&#225; um mapa contendo a geocache e os seus "Waypoints Adicionais".'
},
'map': {
'header': 'Mapa',
'type': 'Tipo de Mapa padr&#227;o',
'size': 'Tamanho de Mapa padr&#227;o',
'geocacheid': 'Mostrar id da Geocache',
'geocacheidDesc': 'O c&#243;digo GCCode (eg. GC0815) estar&#225; visivel no mapa.',
'geocacheindex': 'Mostrar ind&#237;ce da Geocache',
'geocacheindexDesc': 'A posi&#231;&#227;o de cada waypoint estar&#225; vis&#237;vel na rota seleccionada.',
'geocachename': 'Mostrar nome da Geocache',
'geocachenameDesc': 'O nome da geocache estar&#225; visivel.',
'awpts': 'Mostrar Waypoints Adicionais',
'awptsDesc': 'Se seleccionada, os Waypoints-Adicionais v&#227;o estar vis&#237;veis.',
'awpt_name': 'Mostrar o nome dos Waypoints Adicionais',
'awpt_nameDesc': 'O nome dos Waypoints-Adicionais v&#227;o estar no mapa.',
'awpt_lookup': 'Mostrar c&#243;digo dos Waypoints Adicionais',
'awpt_lookupDesc': 'Os c&#243;digos dos Waypoints-Adicionais v&#227;o estar vis&#237;veis.',
'owpts': 'Mostrar os nossos waypoints',
'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.',
'owpt_name': 'Mostrar o nome dos nossos waypoints',
'owpt_nameDesc': 'Mostrar o nome dos seus Waypoints'
},
'gpx': {
'html': 'Descri&#231;&#227;o com HTML',
'htmlDesc': '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.',
'wpts': 'Exportar waypoints adicionais',
'wptsDesc': 'Os waypoints-adicionais v&#227;o ser exportados como waypoint extra no GPX. Ir&#225; ver cada lugar de estacionamento na sua unidade.',
'attributesToLog': 'Criar login com atributos de cache',
'attributesToLogDesc': 'Atributos de cache também são registrados como um primeiro sinal.',
'stripGC': 'Remover "GC" no GC-Code',
'stripGCDesc': 'GPSr antigos tem problemas com os waypoints com nome maior que 8 caracteres. Use esta op&#231;&#227;o se tem uma unidade destas.',
'maxLogCount': 'Número máximo de logs'
},
'gps': {
'header': 'Enviar para o GPSr',
'selectSend2GPS': 'Escolha método'
},
'theme': {
'select': 'Escolha Theme'
}
},
'autoTour': {
'title': 'autoRota',
'wait': 'Por favor aguarde - criando a autoRota!',
'radius': 'Raio',
'center': 'Centro',
'help': 'Coordenadas ou Endere&#231;o: <i>N38° 42.465 W9° 08.196</i> ou <i>Lisboa</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'
}
}
},
'dlg': {
'newVersion': {
'caption': 'Nova versão dispon&#xED;vel',
'content': 'Existe uma nova vers&#227;o de GCTour.\nDeseja actualizar? \n\n'
},
'error': {
'content': '<img src="' + $.gctour.img.sad + '">&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/>'
}
},
'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'
},
'send2cgeo': {
'title': 'Enviar para o c:geo'
},
'marker': {
'coord': 'Coordenadas',
'content': 'Conte&#250;do',
'contentHint': 'estar&#225; visivel no modo de impress&#227;o',
'type': 'Tipo'
},
'update': {
'dialog': '<div><p>Existe uma nova vers&#227;o de <a target="_blank" href="https://gist.github.com/DieBatzen/5814dc7368c1034470c8"><b>GCTour</b></a> dispon&#237;vel para instalar.</p><p>Tem a versão <b>###VERSION_OLD###</b> instalada, a &#250;ltima versão &#233; <b>###VERSION_NEW###</b>.</p><div class="dialogFooter"></div>',
'upToDate': 'GCTour ' + VERSION + ' está atualmente!'
},
'printview': {
'found': 'Encontrada',
'note': 'Nota',
'marker': 'Waypoint pr&#243;prio',
'removeMap': 'Remover mapa',
'zoomMap': 'Abrir este mapa num novo separador.',
'dontPrintHint': '<b>Informa&#231;&#227;o:</b><br />Elementos na caixa <u>n&#227;o</u> v&#227;o ser impressos!',
'print': 'Iniciar a impressão'
},
'cache': {
'addToTour': ' Adicionar à rota',
'directPrint': ' Imprimir esta Geocache',
'moveCoords': ' Mover as coordenadas',
'movedCoords': 'As coordenadas desta geocache foram mudadas.',
'moveCoordsHelp': '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.',
'deleteCoords': 'Coordenadas para deletar',
'originalCoords': 'Coordenadas Originais',
'newCoords': 'Novas Coordenadas',
'addToCurrentTour': 'para a rota <b>seleccionada</b>',
'addToNewTour': 'para uma <b>nova</b> rota',
'shown': 'Adicionar Geocaches <b>vis&#237;veis</b>:'
},
'tour': {
'newDialog': 'Introduza um nome para a nova rota ...',
'copy': 'Copiar rota',
'remove': 'Apagar esta rota',
'removeDialog': 'Deseja mesmo remover esta rota?',
'empty': 'A lista est&#225; vazia.'
}
};
// init translations
(function () {
/*$.each($.gctour.i18n, function (l, o) {
console.table(o);
});*/
/*
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;
// try to get current and default translation
cur_trans = i18n[cur] || false;
def_trans = i18n[def] || false;
arr = str.split('.');
for (i = 0; i < arr.length; i++) {
cur_trans = cur_trans ? cur_trans[arr[i]] : undefined;
def_trans = def_trans ? def_trans[arr[i]] : undefined;
}
// use default language as fallback
trans = (cur_trans !== undefined) ? cur_trans :
(def_trans !== undefined) ? def_trans :
((DEBUG_MODE === true) ? "MISSING TRANSLATION" : "");
/*
// 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 default 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;
};
})();
/* styles: CSS Container, run before init() */
function initStyle() {
// adding styles:
GM_addStyle(("" +
"/* 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;" +
" vertical-align: top;" +
"}" +
"" +
"#gctourContainer {" +
" background-color: #fff;" +
" overflow: hidden;" +
" left: -210px;" +
" padding: 0 !important;" +
" position: fixed !important;" +
" top: 15px !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;" +
"}" +
"" +
".dialogBody button {" +
" background: none no-repeat scroll 4px center #eeeeee;" +
" border: 1px outset #666666" +
"}" +
"" +
".dialogBody button:hover {" +
" background-color: #f9f9f9;" +
"}" +
"" +
".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;" +
" border-radius: 5px;" +
" 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;" +
" border-radius:5px;" +
" 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: 100% !important;" +
" font-family: Arial !important;" +
"}" +
".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;" +
" border-radius: 0 5px 5px 0;" +
" width:424px;" +
" position: absolute;" +
" right: 10px;" +
"}" +
"" +
".dialogList {" +
" margin:0;" +
" padding:0;" +
"}" +
".dialogList li {" +
" font-size:10px;" +
" padding:3px;" +
" clear:both;" +
" list-style-type: none;" +
"}" +
"" +
".activeTour, .gct_sortable-placeholder {" +
" border: 1px solid #C0CEE3;" +
" -moz-border-radius: 5px 0 0 5px;" +
" border-radius: 5px 0 0 5px;" +
" background-color: #eff4f9;" +
" padding: 1px;" +
"}" +
".gct_sortable-placeholder {" +
" background-color: rgba(0, 0, 0, 0.03);" +
" height: 3em;" +
"}" +
"" +
"#dialogListContainer {" +
" height:374px;" +
" overflow:auto;" +
" width:146px;" +
" position: absolute;" +
" left: 10px;" +
"}" +
"" +
"#dialogListContainer a{" +
" text-decoration:underline;" +
"}" +
"" +
".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('" + $.gctour.img.bg + "');" +
" 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; */" +
"}" +
"" +
".gct .ui-widget-content a {" +
" color: #00447c;" + // blue color
" text-decoration: underline;" + // underline text
"}" +
"" +
".ui-button-text-only .ui-button-text {" +
" padding: .2em .6em;" +
"}" +
"" +
"input.ui-button {" +
" padding: .2em .6em;" +
"}" +
"" +
".ui-dialog .ui-dialog-buttonpane {" +
" margin-top: 0;" +
"}" +
"" +
"/* Handling of Groundspeak's stylesheets: different sites use different stylesheets */" +
"" +
".gctour-input-checkbox {" +
" position: relative !important;" +
" opacity: 1 !important;" +
" width: 14px !important;" +
" height: 14px !important;" +
"}" +
"" +
".gctour-input-text {" +
" padding: unset !important;" +
" font-size: 1em !important;" +
" font-family: inherit !important;" +
" border: 1px solid #ccc !important;" +
" border-radius: 3px !important;" +
"}" +
"" +
".gctour-label {" +
" display: unset !important;" +
"}" +
"" +
".gctour-small {" +
" font-size: 0.6875rem !important;" +
"}" +
"")
.replace("##gctourLogo##", $.gctour.img.gctourLogo)
.replace("##dialogMaskImage##", $.gctour.img.dialogMask)
.replace("##tabBgImage##", $.gctour.img.tabBg));
}
/* utilities */
// Read all 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:separate;"});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 fillTemplate(mapping, template) {
var j,
dummy;
for (j = 0; j < mapping.length; j++) {
template = template.replaceAll("###" + mapping[j][0] + "###", 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" ? ROT13_ARRAY[A] : A);
}
function convertROT13String(C) {
var A = 0,
B = C.length,
D = "";
if (!ROT13_ARRAY) {
ROT13_ARRAY = 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 (!ROT13_ARRAY) {
ROT13_ARRAY = 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 their HTML tag
function escapeHTML(htmlString) {
return (!htmlString) ? "" : htmlString.replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;');
}
// strip all ASCII control codes (range 0-31) from a string, except LF and CR
function stripASCIIcodes(s) {
return s.split('').filter(function(x) {
var n = x.charCodeAt(0);
return n==10 || n==13 || n>31; // keep LF and CR
}).join('');
}
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';
}
// GET, POST, PUT, DELETE
function promiseRequest(method, url, headers, data) {
log(["---PROMISEREQUEST---",
"\tmethod: " + method,
"\turl: " + url,
"\theaders: " + JSON.stringify(headers),
"\tdata (URI-decoded): " + decodeURI(data),
"---PROMISEREQUEST---"
].join("\n"));
// return a promise
return new Promise(function (resolve, reject) {
GM_xmlhttpRequest({
method : method,
url : url,
headers : headers,
data : data,
onload : function (result) {
if (result.status >= 200 && result.status < 300) { // ok
responseInfo(result);
resolve(result);
} else { // error
responseInfo(result);
reject(' error: ' + result.status + ', message: ' + result.statusText);
}
},
onerror : function (result) { // network error
responseInfo(result);
reject(' error: ' + result.status + ', message: ' + result.statusText);
}
});
});
}
// 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;
}
async function getDateFormat(force) {
var myUrl = GS_HOST + 'account/settings/preferences',
response_div,
date_format;
// update locally stored date format, but only if necessary
if (force || !GM_getValue('date_format')) {
// get GS preferences
var response = await promiseRequest('GET', myUrl);
// get date format
response_div = createElement('div');
response_div.innerHTML = response.responseText;
date_format = $('select#SelectedDateFormat option:selected', response_div).val();
if (date_format !== "undefined") {
// store date format locally
GM_setValue('date_format', date_format);
debug("fn getDateFormat - GM_setValue: 'date_format' = " + date_format);
} else {
error("fn getDateFormat - select#SelectedDateFormat is undefined");
}
}
return GM_getValue('date_format');
}
function dateFormatConversion(format) {
return format.replace(/yy/g,'y').replace(/M/g,'m').replace(/mmm/,'M');
/* GS dateformat to jqui datepicker dateformat:
https://www.geocaching.com/account/settings/preferences#SelectedDateFormat
http://api.jqueryui.com/datepicker/#utility-parseDate
GS --> jqui: d-->d,dd-->dd,M-->m,MM-->mm,MMM-->M,yy-->y,yyyy-->yy
"d. M. yyyy" : "d. m. yy", 3. 1. 2017
"d.M.yyyy" : "d.m.yy", 3.1.2017
"d.MM.yyyy" : "d.mm.yy", 3.01.2017
"d/M/yy" : "d/m/y", 3/1/17
"d/M/yyyy" : "d/m/yy", 3/1/2017
"d/MM/yyyy" : "d/mm/yy", 3/01/2017
"dd MMM yy" : "dd M y", 03 Jan 17
"dd.MM.yy" : "dd.mm.y", 03.01.17
"dd.MM.yyyy" : "dd.mm.yy", 03.01.2017
"dd.MM.yyyy." : "dd.mm.yy.", 03.01.2017.
"dd.MMM.yyyy" : "dd.M.yy", 03.Jan.2017
"dd/MM/yy" : "dd/mm/y", 03/01/17
"dd/MM/yyyy" : "dd/mm/yy", 03/01/2017
"dd/MMM/yyyy" : "dd/M/yy", 03/Jan/2017
"dd-MM-yy" : "dd-mm-y", 03-01-17
"dd-MM-yyyy" : "dd-mm-yy", 03-01-2017
"d-M-yyyy" : "d-m-yy", 3-1-2017
"M/d/yyyy" : "m/d/yy", 1/3/2017
"MM/dd/yyyy" : "mm/dd/yy", 01/03/2017
"MMM/dd/yyyy" : "M/dd/yy", Jan/03/2017
"yyyy.MM.dd." : "yy.mm.dd.", 2017.01.03.
"yyyy/MM/dd" : "yy/mm/dd", 2017/01/03
"yyyy-MM-dd" : "yy-mm-dd" 2017-01-03 */
}
async function parseDate(date_string) {
var gs_date_format = await getDateFormat(),
jqui_date_format = dateFormatConversion(gs_date_format),
date,
debugStr = "date to parse: '" + date_string + "'\nGS format: '" + gs_date_format + "'\njqui format: '" + jqui_date_format;
try {
date = $.datepicker.parseDate(jqui_date_format, date_string);
debug(debugStr + "'\nParsed date: '" + date + "'");
} catch (e) {
getDateFormat(true); // force internal update of GS date format
var err = 'Date format mismatch in fn parseDate - "' + e + '"<br>&nbsp;&nbsp;date format: ' + gs_date_format + '<br>&nbsp;&nbsp;date to parse: ' + date_string;
if (gs_date_format === 'undefined') { // most probably third-party cookies are not accepted by Firefox
err += '<br><br><u>Bitte Firefox-Einstellungen prüfen: Cookies von Drittanbietern müssen akzeptiert werden.</u>';
err += '<br><u>Please check Firefox settings: third-party cookies need to be accepted.</u>';
}
throw err;
}
return date;
}
async function formatDate(date) {
var gs_date_format = await getDateFormat(),
jqui_date_format = dateFormatConversion(gs_date_format);
try {
var date_string = $.datepicker.formatDate(jqui_date_format, date);
debug("date to format: '" + date + "'\nGS format: '" + gs_date_format + "'\njqui format: '" + jqui_date_format + "'\nDatestring: '" + date_string + "'");
} catch(e) {
throw 'Date format mismatch in fn formatDate - "' + e + '"<br>&nbsp;&nbsp;date to format: ' + date + '<br>&nbsp;&nbsp;GS format: ' + gs_date_format;
}
return date_string;
}
/* geo utilities*/
/** 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;
};
/**
* 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
*/
async 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) {
// sende einen request an die geocoding api von google - Doc: http://code.google.com/apis/maps/documentation/javascript/services.html#GeocodingRequests
var response = await promiseRequest('GET', "https://maps.googleapis.com/maps/api/geocode/json?address=" + coord_string);
var geocoding_obj = JSON.parse(response.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 (01.2017)
// 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 (01.2017)
// 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] || "");
};
/*
2017-02-27: correct old paths to own waypoint icons (may still be present in stored tours);
run only once and for all
(temporary correction, can be deleted at a later point in time)
*/
function correctOldOwnWaypointIconsPath() {
if (GM_getValue('correctOldOwnWaypointIconsPath')) { // already corrected
return;
}
debug('correctOldOwnWaypointIconsPath()');
var allTours = GM_getValue('tours', ''), // JSON string
oldPath = 'http://www.madd.in/geocaching/gm/gctourextension/map/icons/neu/',
newPath = GCTOUR_HOST + 'i/';
allTours = allTours.replaceAll(oldPath,newPath,true);
GM_setValue('tours',allTours);
GM_setValue('correctOldOwnWaypointIconsPath','true');
}
/* initialize */
// init core variables
function initCore() {
debug("initCore()");
// setting up the language
$.gctour.currentLang = GM_getValue('language', $.gctour.defaultLang);
// temporary correction of own waypoint icon paths
correctOldOwnWaypointIconsPath();
// getting all tours
TOURS = loadValue('tours', []);
// go get the current tour from the tour list
var currentTourId = GM_getValue('currentTour', -1);
CURRENT_TOUR = getTourById(currentTourId);
// oh - there is no current tour!? create one!
if (!CURRENT_TOUR) {
CURRENT_TOUR = {};
CURRENT_TOUR.id = getNewTourId();
CURRENT_TOUR.name = "Tour " + CURRENT_TOUR.id;
CURRENT_TOUR.geocaches = [];
TOURS.push(CURRENT_TOUR);
log("found no currentTour! Creating new one: " + CURRENT_TOUR.id + " ; " + CURRENT_TOUR.name);
saveCurrentTour();
}
}
function init() {
debug("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);
// process "add to GCTour" link from GCTOUR_HOST
if (document.URL.search("webcode") >= 0) {
document.title = "GCTour";
document.getElementsByTagName('body')[0].innerHTML = "<div align='center'><a href='" + GS_HOST + "'><img border='0' src='" + $.gctour.img.gctourLogo + "'/></a></div>";
downloadTour(document.URL.split("webcode/")[1]);
return;
}
// start special 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 window 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')) {
// in autoTour, call of "unsafeWindow.__doPostBack(action,'')" in "old search page" gives
// the following error message - but only when using Tampermonkey in Firefox:
// "TypeError: access to strict mode caller function is censored"
// reason and workaround: https://mnaoumov.wordpress.com/2016/02/12/wtf-microsoftajax-js-vs-use-strict-vs-firefox-vs-ie/
if (!unsafeWindow.event) {
unsafeWindow.event = {};
}
// if the cancel button is pressed
if (GM_getValue("stopTask", false)) {
GM_deleteValue('tq_url');
GM_deleteValue('tq_caches');
GM_setValue('stopTask', false);
document.location.href = GM_getValue('tq_StartUrl', GS_HOST);
return; // then return!
}
var tq_url = GM_getValue('tq_url');
// remove protocols when comparing URLs
// (autoTour didn't work from map called with http, now it does)
if (tq_url.replace(/^https?\:\/\//i, "") == document.location.href.replace(/^https?\:\/\//i, "")) {
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 = getEntriesFromOldSearchpage(),
addBool;
if (pagesSpan.length <= 0) {
alert("no caches here :-(");
GM_deleteValue('tq_url');
GM_deleteValue('tq_caches');
document.location.href = GM_getValue('tq_StartUrl', GS_HOST);
return;
}
setProgress(
parseFloat(pagesSpanBolds.eq(1).text()) - 1,
parseFloat(pagesSpanBolds.eq(2).text()),
document);
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 type, size and D/T values
addBool = tq_typeFilter[entry.type] &&
tq_sizeFilter[entry.size] &&
tq_dFilter[entry.difficulty] &&
tq_tFilter[entry.terrain];
if (tq_specialFilter['is Active']) {
log("Check if " + entry.name + " is active:\n" +
"available: " + entry.available);
addBool = addBool && (entry.available); // only add if active!
}
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;
}
}
// 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
// if all parameters match - add the cache
if (addBool) {
// 8.gif --> https://www.geocaching.com/images/wpttypes/sm/8.gif
entry.image = GS_HOST + GS_WPT_IMAGE_PATH + entry.image;
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', GS_HOST);
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
setTimeout(function () {
unsafeWindow.__doPostBack(action,'');
}, waitingTime);
} else {
CURRENT_TOUR = {};
CURRENT_TOUR.id = getNewTourId();
CURRENT_TOUR.name = "autoTour " + CURRENT_TOUR.id;
CURRENT_TOUR.geocaches = tq_caches;
TOURS.push(CURRENT_TOUR);
log("autoTour done - create new Tour: " + CURRENT_TOUR.id + " ; " + CURRENT_TOUR.name);
saveCurrentTour();
document.location.href = GM_getValue('tq_StartUrl', GS_HOST);
}
} else {
GM_deleteValue('tq_url');
GM_deleteValue('tq_caches');
}
}
// maps - map/default.aspx
if (document.URL.search("\/map\/") >= 0) {
var $header = $("ul#uxLoginStatus_divSignedIn"); // new header layout (Aug 2017)
if ($header.length === 0) {
$header = $("div:first", "header:first"); // old header layout
}
// autoTour button
$("<div>", {
//"class" : "header",
"css" : {
//'width' : 100,
//'height' : 30,
//'margin-top' : 10,
'overflow' : "hidden",
'border-radius' : 5,
'background-color' : "#FFF",
'border' : "2px 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,
"width" : "70px"
})
})
.hover(
function () {
$(this).css({
'backgroundColor' : 'orange'
});
},
function () {
$(this).css({
//'backgroundColor' : '#B2D4F3'
'backgroundColor' : '#FFF'
});
})
}).prependTo($header);
// add to tour in cache pop-up
// 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('cache.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/mapicons/']:visible:first").attr("src") ||
$("#gmCacheInfo img[src*='"+GS_WPT_IMAGE_PATH+"']:visible:first").attr("src");
var cacheTypeImage = imageUrl.split('/').pop();
debug("map add2tour: gccode:'" + gccode + "' name:'" + name + "' image:'" + cacheTypeImage + "' guid:'" + guid + "'");
addGeocache(gccode, guid, name, cacheTypeImage)();
saveCurrentTourRefreshGUI();
}, 0);
};
// workaround for Violentmonkey in Firefox if "exportFunction" does not exist
// (see https://github.com/violentmonkey/violentmonkey/issues/168#issuecomment-321573665)
// nonetheless, this doesn't work for Chrome/Violentmonkey
if (typeof exportFunction !== 'function') {
exportFunction = function(func, scope, options) {
if (options && options.defineAs) {
scope[options.defineAs] = func;
}
return func;
};
}
exportFunction(add2tour, unsafeWindow, {
defineAs : "add2tour"
});
}
// add buttons to bookmark list
if (document.URL.search("\/bookmarks\/(view.aspx|bulk.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('cache.addToTour'),
"title" : $.gctour.lang('cache.addToTour'),
"src" : $.gctour.img.addToTour,
"css" : {
"cursor" : "pointer",
"margin" : "0 0 0 15px"
}
})
.bind('click', {
entry : entry
}, function (e) {
addGeocache(e.data.entry.id, e.data.entry.guid, e.data.entry.name, e.data.entry.image)();
saveCurrentTourRefreshGUI();
})
.appendTo(bookmarkLine[bookmarkLine.length - 1]); // add buttons to last column
}
// 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").html().split('<a')[0].trim() : "";
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))) {
addGeocache(entry.id, entry.guid, entry.name, entry.image)();
}
});
saveCurrentTourRefreshGUI();
}
};
// buttons to add all caches in list to current and new tour
$("<div>", {
"css" : {
"margin" : '10px 0 10px 0'
},
html : $.gctour.lang('cache.shown')
})
.append(
// button to add all caches in list to current tour
$("<button>", {
"css" : {
"margin-left" : 10,
"cursor" : "pointer",
"background-color" : "#EEE"
},
"html" : "<img src='" + $.gctour.img.addToTour + "'/>&nbsp;" + $.gctour.lang('cache.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-left" : 10,
"cursor" : "pointer",
"background-color" : "#EEE"
},
"html" : "<img src='" + $.gctour.img.newTour + "'/>&nbsp;+&nbsp;<img src='" + $.gctour.img.addToTour + "'/>&nbsp;" + $.gctour.lang('cache.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('cache.marked')
})
.append(
// button to add all checked caches in list to current tour
$("<button>", {
"css" : {
"margin-left" : 10,
"cursor" : "pointer",
"background-color" : "#EEE"
},
"html" : "<img src='" + $.gctour.img.addToTour + "'/>&nbsp;" + $.gctour.lang('cache.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,
"cursor" : "pointer",
"background-color" : "#EEE"
},
"html" : "<img src='" + $.gctour.img.newTour + "'/>&nbsp;+&nbsp;<img src='" + $.gctour.img.addToTour + "'/>&nbsp;" + $.gctour.lang('cache.addToNewTour')
})
.bind('click', {
bLs : bookmarkLines,
checkedOnly : true,
newTour : true
}, function (e) {
e.preventDefault();
addEntryFromBookmark(e);
}))
.insertBefore("input#ctl00_ContentBody_ListInfo_btnDownload");
}
// add buttons to nearest list
if (document.URL.search("\/seek\/nearest.aspx") >= 0) {
var entry_i,
entry;
var entries = getEntriesFromOldSearchpage();
// helper function
var addEntryFromSearchpage = function (e) {
var i,
entry,
entries;
var ck = e.data.checkedOnly || false;
var nt = e.data.newTour || false;
entries = getEntriesFromOldSearchpage();
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
addGeocache(entry.id, entry.guid, entry.name, entry.image)();
}
}
saveCurrentTourRefreshGUI();
}
};
for (entry_i = 0; entry_i < entries.length; entry_i++) {
entry = entries[entry_i];
$("<img>", {
"alt" : $.gctour.lang('cache.addToTour'),
"title" : $.gctour.lang('cache.addToTour'),
"src" : $.gctour.img.addToTour,
"css" : {
"cursor" : "pointer",
"margin" : "0 5px 0 0"
}
})
.bind('click', {
entry : entry
}, function (e) {
addGeocache(e.data.entry.id, e.data.entry.guid, e.data.entry.name, e.data.entry.image)();
saveCurrentTourRefreshGUI();
})
.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('cache.shown')
})
.append(
// button to add show caches in list to current tour
$("<button>", {
"css" : {
"margin-left" : 10,
"cursor" : "pointer",
"background-color" : "#EEE"
},
"html" : "<img src='" + $.gctour.img.addToTour + "'/>&nbsp;" + $.gctour.lang('cache.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,
"cursor" : "pointer",
"background-color" : "#EEE"
},
"html" : "<img src='" + $.gctour.img.newTour + "'/>&nbsp;+&nbsp;<img src='" + $.gctour.img.addToTour + "'/>&nbsp;" + $.gctour.lang('cache.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,
"cursor" : "pointer",
"background-color" : "#EEE"
},
"html" : "Test 'getEntriesFromSearchPage'!"
})
.bind('click', function (e) {
getEntriesFromOldSearchpage();
})
.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('cache.marked')
})
.append(
// button to add all checked caches in list to current tour
$("<button>", {
"css" : {
"margin-left" : 10,
"cursor" : "pointer",
"background-color" : "#EEE"
},
"html" : "<img src='" + $.gctour.img.addToTour + "'/>&nbsp;" + $.gctour.lang('cache.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,
"cursor" : "pointer",
"background-color" : "#EEE"
},
"html" : "<img src='" + $.gctour.img.newTour + "'/>&nbsp;+&nbsp;<img src='" + $.gctour.img.addToTour + "'/>&nbsp;" + $.gctour.lang('cache.addToNewTour')
})
.bind('click', {
checkedOnly : true,
newTour : true
}, function (e) {
e.preventDefault();
addEntryFromSearchpage(e);
}))
.insertAfter($('table.SearchResultsTable:first').next('table'));
}
// don't display the list on the sendtogpx page
if (document.URL.search("sendtogps.aspx") <= 0) {
initComponents();
// add buttons to the cache details page
if (document.URL.search(GS_HOST + "geocache\/GC") >= 0 || document.URL.search("cache_details.aspx") >= 0) {
initButton();
}
setTimeout(function () { // wichtig da die MAP Seite verzögert gestartet wird
// get proper user name
USERNAME = $('span.cache-count').prev().text();
}, 0);
}
// ensure that the correct Groundspeak date format will be used (user setting in Groundspeak profile)
// - can only be changed by users here: https://www.geocaching.com/account/settings/preferences
// - if the site is called, simply update the locally stored date format
if (document.URL.search("\/account\/settings\/preferences") >= 0) {
getDateFormat(true);
}
}
/* init gui */
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>";
// 1) add to tour button
var newButton = createElement('input', {
type : "button",
value : $.gctour.lang('cache.addToTour'),
style : "float:left;background-image:url(" + $.gctour.img.addToTour + ")"
});
append(newButton, gcTourFieldset);
newButton.setAttribute('onclick', 'return false;');
// 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', function() {
addGeocache(cacheId, guidId, cacheName, cacheTypeImage)();
saveCurrentTourRefreshGUI();
}, false);
// 2) direct print button
newButton = createElement('input', {
type : "button",
value : $.gctour.lang('cache.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 = GS_HOST + GS_WPT_IMAGE_PATH + cacheTypeImage;
var temp_tour = {};
temp_tour.name = entry.name;
temp_tour.geocaches = [entry];
printPageFunction(temp_tour);
}, false);
append(newButton, gcTourFieldset);
// 3) change coordinates button
newButton = createElement('input', {
type : "button",
value : $.gctour.lang('cache.moveCoords'),
style : "float:left;background-image:url(" + $.gctour.img.coord_update + ")"
});
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 " + CURRENT_TOUR.geocaches[oldPos].name + "(=" + 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
CURRENT_TOUR.geocaches.splice(insertPos, 0, CURRENT_TOUR.geocaches[oldPos]);
CURRENT_TOUR.geocaches.splice(removePos, 1);
// ... and save the new tour object
setTimeout(function () { // hack to prevent "access violation" from Greasemonkey
saveCurrentTour();
}, 0);
move(ui.item.attr('id'), 0); // force numbering update
return;
}
})
.disableSelection()
});
var webcodelink = GCTOUR_HOST + 'tour/' + $.trim(CURRENT_TOUR.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">' + CURRENT_TOUR.name + '</u>&nbsp;<span style="font-size:66%" id="cachecount">(' + CURRENT_TOUR.geocaches.length + ')</span>' +
'<span id="webcode" style="display:' + ((!CURRENT_TOUR.webcode) ? "none" : "inline") + ';"><br/>' +
'Webcode:&nbsp;&nbsp;<b><a href="' + webcodelink + '" title="' + $.gctour.lang('container.tourHeader.makeMap.caption') + '" target="_blank">' + CURRENT_TOUR.webcode + '</a></b>&nbsp;</span><br/>'
});
$tourHeader.append(
// rename
$('<img>', {
'class' : 'tourImage',
src : $.gctour.img.edit,
title : $.gctour.lang('general.rename'),
alt : $.gctour.lang('general.rename'),
click : function () {
var newTourName = prompt($.gctour.lang('tour.newDialog'), CURRENT_TOUR.name);
if (!newTourName) {
return;
}
CURRENT_TOUR.name = newTourName;
saveCurrentTour();
updateTour();
}
}),
// print
$('<img>', {
'class' : 'tourImage',
src : $.gctour.img.printer,
title : $.gctour.lang('settings.printview.header'),
alt : $.gctour.lang('settings.printview.header'),
click : function () {
printPageFunction(CURRENT_TOUR);
}
}),
// sendToGPS
$('<img>', {
'class' : 'tourImage',
src : $.gctour.img.sendGPS,
title : $.gctour.lang('container.tourHeader.sendToGps'),
alt : $.gctour.lang('container.tourHeader.sendToGps'),
click : function () {
if (GM_getValue('sendToGPS', 'old') == 'new') {
send2Garmin();
} else {
openSend2GpsDialog();
}
}
}),
// downloadGPX
$('<img>', {
'class' : 'tourImage',
src : $.gctour.img.downloadGPX,
title : $.gctour.lang('container.tourHeader.downloadGpx'),
alt : $.gctour.lang('container.tourHeader.downloadGpx'),
click : function () {
downloadGPXFunction();
}
}),
// send2cgeo
$('<img>', {
'class' : 'tourImage',
src : $.gctour.img.send2cgeo,
title : $.gctour.lang('send2cgeo.title'),
alt : $.gctour.lang('send2cgeo.title'),
'style' : (DEBUG_MODE) ? '' : 'display:none;',
click : function () {
openGcTour2cgeoDialog();
}
}),
// saveAsBookmarklist (PMO)
$('<img>', {
'class' : 'tourImage',
src : $.gctour.img.saveAsBookmarklist,
title : $.gctour.lang('container.tourHeader.saveAsBookmarklist.title'),
alt : $.gctour.lang('container.tourHeader.saveAsBookmarklist.title'),
'style' : (isPremiumUser()) ? '' : 'display:none;',
click : function () {
saveAsBookmarklist();
}
}),
// makeMap
$('<img>', {
'class' : 'tourImage',
src : $.gctour.img.map,
title : $.gctour.lang('container.tourHeader.makeMap.caption'),
alt : $.gctour.lang('container.tourHeader.makeMap.caption'),
click : function () {
makeMapFunction();
}
}),
// uploadTour
$('<img>', {
'class' : 'tourImage',
src : $.gctour.img.upload,
title : $.gctour.lang('container.tourHeader.upload.caption'),
alt : $.gctour.lang('container.tourHeader.upload.caption'),
click : function () {
uploadTourFunction(CURRENT_TOUR.id);
}
}),
// addWaypoint
$('<img>', {
'class' : 'tourImage',
src : $.gctour.img.plus,
title : $.gctour.lang('container.tourHeader.addOwnWaypoint'),
alt : $.gctour.lang('container.tourHeader.addOwnWaypoint'),
click : function () {
showNewMarkerDialog();
}
}),
// deleteTour
$('<img>', {
id : 'gctourDeleteButton',
'class' : 'tourImage',
src : $.gctour.img.del,
title : $.gctour.lang('tour.remove'),
alt : $.gctour.lang('tour.remove'),
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('container.toolbar.newList'),
alt : $.gctour.lang('container.toolbar.newList'),
click : function () {
newTourFunction()();
}
}),
// toggleTourListButton
$('<img>', {
'class' : 'tourImage',
src : $.gctour.img.openTour,
title : $.gctour.lang('container.toolbar.openTour'),
alt : $.gctour.lang('container.toolbar.openTour'),
click : function () {
openTourDialog();
}
}),
// downloadButton
$('<img>', {
'class' : 'tourImage',
src : $.gctour.img.download,
title : $.gctour.lang('container.toolbar.downloadTour.caption'),
alt : $.gctour.lang('container.toolbar.downloadTour.caption'),
click : function () {
downloadTourDialog();
}
}),
// 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('container.toolbar.showSettings'),
alt : $.gctour.lang('container.toolbar.showSettings'),
click : function () {
openSettingsDialog();
}
}),
// GCTour Home
$('<img>', {
'class' : 'tourImage',
src : $.gctour.img.globe,
title : $.gctour.lang('container.toolbar.homepage'),
alt : $.gctour.lang('container.toolbar.homepage'),
style : "float: right; margin-right: 11px;",
click : function () {
GM_openInTab(GCTOUR_HOST, false);
}
}),
// save settings info
$('<img>', {
'class' : 'tourImage',
src : $.gctour.img.info,
title : $.gctour.lang('container.toolbar.saveSettings'),
alt : $.gctour.lang('container.toolbar.saveSettings'),
style : "float: right;",
click : function() {
openSettingsDialog();
$("#tabs").tabs({ active: 6 });
}
})
);
// Greasemonkey info
if (IS_GREASEMONKEY) {
$toolbar.append(
$('<img>', {
'class' : 'tourImage',
src : $.gctour.img.danger,
title : 'Greasemonkey Info',
alt : 'Greasemonkey Info',
style : "float: right;",
click : function() {
gmNotice();
}
})
);
}
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 0px 0px;'/><small style='font-size: 75%;color:gray'>v " + VERSION + "</small>" +
"<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');
}
});
$("#gctourContainer").append(
$header,
$toolbar,
$tourHeader,
$geocacheList
);
// if available, add link to bookmark list
if (CURRENT_TOUR.bml) {
let bml = new Bookmarklist(CURRENT_TOUR.bml);
bml.addLink();
};
/*
if(DEBUG_MODE) {
var $footer = $('<div>', {
id : "gctour_footer",
"css" : {
position : "absolute",
bottom : -10,
"font-size" : "75%",
width : "100%",
height : "30"
},
"html" :
$("<div>", {
"css" : {
'width' : '100%'
}
}).append(
$("<div>", {
"css" : {
'float' : 'right',
'margin-right' : 5
},
"html" : "Debug mode"
}))
});
$("#gctourContainer").append($footer);
}
*/
// populate the current list on load
for (var i = 0; i < CURRENT_TOUR.geocaches.length; i++) {
addToCacheList(CURRENT_TOUR.geocaches[i], false);
}
if (CURRENT_TOUR.geocaches.length <= 0) {
var table = document.getElementById('cacheList');
table.innerHTML = $.gctour.lang('tour.empty');
}
// finally: set new heights and layout!
setTimeout(function () { // ensure that everything is loaded before resizing
handleResize();
}, 500);
}
/* init gui utilities*/
function getEntryFromBookmarkTd(bmLine) {
/*
own bookmark list - Tabellenstruktur
1. checkbox
2. Richtung und Entfernung
3. Found
4. GC Code
5. Cache Name
6. "extra Feld"
other bookmark list - Tabellenstruktur
1. checkbox
2. Richtung und Entfernung
3. GC Code
4. Cache Name
5. "extra Feld"
*/
var entry = {},
colID = 2, // if this column is GC Code then other bookmark list
nameSpan = $("span", bmLine.eq(colID)).eq(0);
if ($.trim(bmLine.eq(colID).text()).length == 0) {
colID++; // own bookmark list
}
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("/")[4]; // index changed from 6 to 4
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;
}
// get entries from old search page: https://www.geocaching.com/seek/nearest.aspx
function getEntriesFromOldSearchpage() {
// 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;
// use waypoint type column as reference for other columns (GCLH may add an additional column for fav score)
if (entryTds.find(".SearchResultsWptType").closest("td")[0] == entryTds.eq(4)[0]) {
var tdWpttype = 4;
}
else if (entryTds.find(".SearchResultsWptType").closest("td")[0] == entryTds.eq(5)[0]) {
var tdWpttype = 5;
}
// RegEx gc-id
entryTds.eq(tdWpttype + 1).find("span").eq(1).text().search(/\|\s*GC(\S{2,9})\s*\|/);
entry.id = "GC" + RegExp.$1;
lnk = entryTds.eq(tdWpttype + 1).find("a.lnk:first");
entry.name = $.trim(lnk.text());
entry.available = (lnk.css('text-decoration') !== "line-through");
entry.image = entryTds.eq(tdWpttype).find("img:first").attr("src").toLowerCase().replace(/wpttypes\//, "wpttypes/sm/");
// remove image path
entry.image = entry.image.split('/').pop();
entry.type = entry.image.split('.')[0];
// type Korrektur
entry.type = (entry.type == "earthcache") ? 137 : entry.type;
entry.pm_only = (entryTds.eq(tdWpttype + 2).find("img[src$='premium_only.png']").length > 0);
dt = $.trim(entryTds.find('span.small').closest('td.AlignCenter').find('span.small').text());
entry.difficulty = dt.split("/")[0];
entry.terrain = dt.split("/")[1];
entry.size = $.trim(entryTds.find('img[src*="/images/icons/container/"]:first').attr("src").split("/")[4].split(".")[0]);
entry.addBtnPosition = entryTds.find('.IconButton:first').closest('td');
entry.checked = entryTds.eq(0).find("input:checkbox:first").is(':checked');
entry.favorites = entryTds.eq(2).find("span[id$='FavoritesValue']").text();
/*
debug(
"getEntriesFromOldSearchpage cache row: " + "\n" +
"\tid:\t\t" + entry.id + "\n" +
"\tname:\t\t" + entry.name + "\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;
}
/* gui functions */
function isLoggedIn() {
if (USERNAME) {
return true;
} else {
$('<div>' + $.gctour.lang('general.notLoggedIn') + '</div>').dialog($.gctour.dialog.info());
return false;
}
}
function isNotEmptyList() {
if (CURRENT_TOUR.geocaches.length > 0) {
return true;
} else {
$('<div>' + $.gctour.lang('tour.empty') + '</div>').dialog($.gctour.dialog.info());
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(geocache.tourname, geocache.name),
icon : 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(geocache.tourname, geocache.name),
icon : geocache.image,
style : "yellow"
});
} else {
$.gctour.notification.add({
title : "ERROR",
text : "Event '" + event + "' is not supported!",
style : "red"
});
}
return;
}
function handleResize(e) {
// Change the height of the container and Cache List
var container = $(window).height() - 30,
header = $("#gctourContainer #gctour_header").height(), // 40
toolbar = $("#gctourContainer #gctour_toolbar").height(), // 20;
tourheader = $("#gctourContainer #gctour_tourHeader").height(),
//footer = $("#gctourContainer #gctour_footer").height(), // 14;
cachelist = container - (header + toolbar + tourheader /*+ footer*/);
// 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(CURRENT_TOUR.geocaches.length);
// update tourName
$("#tourName").html(CURRENT_TOUR.name);
// update webcode
var $webcode = $("#webcode");
if (CURRENT_TOUR.webcode) {
$webcode
.find("a:first")
.attr('href', GCTOUR_HOST + 'tour/' + $.trim(CURRENT_TOUR.webcode))
.text(CURRENT_TOUR.webcode)
.end()
.show();
} else {
$webcode.hide();
}
// update bookmark list
$('span#gct_bml').remove();
if (CURRENT_TOUR.bml) {
let bml = new Bookmarklist(CURRENT_TOUR.bml);
bml.addLink();
};
cacheList = $('#cacheList');
cacheList.html("");
// populate the current list on load
for (i = 0; i < CURRENT_TOUR.geocaches.length; i++) {
addToCacheList(CURRENT_TOUR.geocaches[i], false);
}
if (CURRENT_TOUR.geocaches.length <= 0) {
cacheList.html($.gctour.lang('tour.empty'));
}
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 : "0.5"
})
.bind({
mouseenter : function () {
$(this).stop().animate({
opacity : '1'
}, 200);
},
mouseleave : function () {
$(this).stop().animate({
opacity : '0.5'
}, 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';
}
async function getMapGeocache(gcid) {
try {
var mapCache,
additional_waypoints,
waypoint_i,
geocache = await getGeocache(gcid, 0);
if (geocache === "pm only") {
return;
}
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
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;
} catch(e) {
throw "fn getMapGeocache - " + e;
}
}
function getMapMarker(markerId) {
var position = getPositionOfId(markerId),
marker = CURRENT_TOUR.geocaches[position];
marker.index = position;
return marker;
}
function uploadMap(markerObj) {
let jsonMap = JSON.stringify(markerObj).replace(/&/g, " and "); // IMPORTANT! prevents critical errors in webapplication
let headers = {'Content-type' : 'application/x-www-form-urlencoded'};
promiseRequest('POST', GCTOUR_HOST + 'map/save', headers, encodeURI("map=" + jsonMap));
}
async function makeMapFunction() {
try {
if (!isNotEmptyList() || !isLoggedIn()) {
return;
}
var gcIds = [],
wptIds = [],
allIds = [],
i;
// cache and custom marker IDs
for (i = 0; i < CURRENT_TOUR.geocaches.length; ++i) {
var marker = CURRENT_TOUR.geocaches[i];
if (marker.id) {
gcIds.push(marker.id);
allIds.push(marker.id);
} else if (marker.wptcode) {
wptIds.push(marker.wptcode);
allIds.push(marker.wptcode);
}
}
// add the overlay while loading
addProgressbar({
caption : $.gctour.lang('container.tourHeader.makeMap.wait'),
_document : document,
closeCallback : function (_document) {
return function () {
if (confirm($.gctour.lang('general.cancel') + "?") == true) {
window.location.reload();
}
};
}
});
// for progress bar update
PROGRESS_BAR.progress = 0;
PROGRESS_BAR.total = gcIds.length + wptIds.length;
// fetch all caches in parallel, not one by one
var promises = [];
for (i = 0; i < gcIds.length; i++) {
promises.push(getMapGeocache(gcIds[i]));
}
FAVSCORE = false; // fav score not needed for map preview
var cache_objects = await Promise.all(promises);
FAVSCORE = true;
// store map specific cache information in array
var geocaches = [];
for (i = 0; i < gcIds.length; i++) {
geocaches.push(cache_objects[i]);
}
// store custom markers in array
var costumMarkers = [];
for (i = 0; i < wptIds.length; i++) {
costumMarkers.push(getMapMarker(wptIds[i]));
updateProgressBar();
}
// store caches and custom markers in object
var cacheObject = {};
cacheObject.geocaches = geocaches;
cacheObject.costumMarkers = costumMarkers;
// upload map content to server
uploadMap(cacheObject);
// open map content from server in new tab (request hash value according to tour content)
var mapUrl = await getMapUrl(allIds.join(","));
setTimeout( function () { // ensure that GCTour server finished all tasks before opening map page
GM_openInTab(mapUrl + '#gui', false);
},1000);
closeOverlay();
} catch(e) {
addErrorDialog({
caption : "makeMapFunction error",
_exception : e
});
}
}
async function upload(tour) {
try {
if (!tour.password) {
tour.password = "not yet implemented";
}
var jsonTour = JSON.stringify(tour).replace(/&/g, " and "); // IMPORTANT! prevents critical errors in web application
var headers = {'Content-type' : 'application/x-www-form-urlencoded'};
var response = await promiseRequest('POST', GCTOUR_HOST + 'tour/save', headers, encodeURI("tour=" + jsonTour));
var tourServer = JSON.parse(response.responseText);
// after an error you get this result, e.g.
// {"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
// save password and webcode to tour
CURRENT_TOUR.password = tour.password;
CURRENT_TOUR.webcode = tourServer.webcode;
// save and update tour
saveTour(CURRENT_TOUR);
updateTour();
closeOverlay();
var str = $.gctour.lang('container.tourHeader.upload.tourUploaded1') + CURRENT_TOUR.webcode;
// Basic Members cannot upload PMO caches
var nPMOcaches = CURRENT_TOUR.geocaches.length - (tour.geocaches.length + tour.costumMarkers.length);
if (nPMOcaches > 0) {
var pmoc = [];
for (var i=0; i<CURRENT_TOUR.geocaches.length; i++) {
var gc = $.grep(tourServer.geocaches, function (obj,ind) { return (obj.id == CURRENT_TOUR.geocaches[i].id) });
if (gc.length === 0) { // cache is PMO
pmoc.push((i+1)+':'+CURRENT_TOUR.geocaches[i].id);
}
}
var pmo = nPMOcaches + $.gctour.lang('container.tourHeader.upload.tourUploadPMO') + ':<br>' + pmoc.join();
str += '</b><br><br><small><i>' + pmo + '</i></small>';
}
str += $.gctour.lang('container.tourHeader.upload.tourUploaded2');
$('<div>' + str + '</div>').dialog($.gctour.dialog.info());
}
} catch(e) {
throw 'fn upload - ' + e;
}
}
async function uploadTourFunction(id) {
try {
if (!isNotEmptyList() || !isLoggedIn()) {
return;
}
var i,
tour,
geocaches,
cache_i,
costumMarker,
geocache,
mapCache,
waypoint_i,
codeString,
costumMarkers;
i = TOURS.map(function (tour) {
return tour.id
}).indexOf(id);
if (i == -1) {
throw ('uploadTourFunction(), line ' + new Error().lineNumber + ' - tour for index "' + id + '" not found');
}
tour = TOURS[i]; // tour object to upload
var nCaches = tour.geocaches.length;
// deep copy of tour to upload (otherwise tour changes unintentionally before saving the updated status)
CURRENT_TOUR = JSON.parse(JSON.stringify(TOURS[i]));
// add the overlay while loading
GM_setValue("stopTask", false);
addProgressbar({
_document : document,
closeCallback : function (_document) {
return function () {
if (confirm($.gctour.lang('general.cancel') + "?") == true) {
window.location.reload();
}
};
}
});
// for progress bar update
PROGRESS_BAR.progress = 0;
PROGRESS_BAR.total = nCaches;
//create the overview map
geocaches = [];
costumMarkers = [];
// fetch all caches in parallel, not one by one
var promises = [];
for (i = 0; i < nCaches; i++) {
costumMarker = (typeof(tour.geocaches[i].latitude) != "undefined");
if (costumMarker) {
promises.push(tour.geocaches[i]);
updateProgressBar();
} else {
promises.push(getMapGeocache(tour.geocaches[i].id));
}
}
FAVSCORE = false; // fav score not needed for tour upload
var cache_objects = await Promise.all(promises);
FAVSCORE = true;
var ind = 0; // in case that PMO caches are skipped for Basic Members
for (i = 0; i < nCaches; ++i) {
costumMarker = (typeof(tour.geocaches[i].latitude) != "undefined");
if (!costumMarker) {
mapCache = cache_objects[i];
if (mapCache) { // otherwise cache is PMO and user is Basic Member
geocaches.push(mapCache);
ind++;
}
} else {
var cm = cache_objects[i];
cm.index = ind;
ind++;
costumMarkers.push(cm);
}
}
// separate own waypoints and caches for tour upload
tour.costumMarkers = costumMarkers;
tour.geocaches = geocaches;
await upload(tour);
} catch (e) {
closeOverlay();
addErrorDialog({
caption : "uploadTourFunction error",
_exception : e
});
}
}
function isPremiumUser() {
try {
if(window.eval('typeof serverParameters') !== "undefined") {
return (window.eval('serverParameters["user:info"].userType') == 'Premium') ? true : false;
} else if(window.eval('typeof ListResources') !== "undefined") { // maps page
return (window.eval('ListResources.isPremium') == 'True') ? true : false;
}
} catch(e) {
throw 'fn isPremiumUser - ' + e;
}
}
function switchToMyLists() {
(document.URL.search("account/lists") >= 0) ? window.location.reload() : GM_openInTab(GS_HOST + 'account/lists', false);
}
// prototype for bookmark lists
function Bookmarklist(id, auth) {
this._id = id;
this._auth = auth;
}
Bookmarklist.prototype.getToken = async function() {
let url = GS_HOST + 'account/oauth/token';
let response = await promiseRequest("GET", url);
response = JSON.parse(response.responseText);
this._auth = response.token_type + ' ' + response.access_token;
}
Bookmarklist.prototype.create = async function() {
let list = {};
list.name = ('GCTour - ' + CURRENT_TOUR.name).replace(/%/g,'_'); // '%' in cache name causes error
list.description = 'GCTour';
let d = new Date();
list.lastUpdateUtc = d.toJSON();
list.count = 0;
list.type = {
"code": "bm"
};
list.isShared = true;
list.isPublic = false;
list.isNotify = false;
let url = GS_HOST + 'api/proxy/web/v1/lists';
let headers = {
'Authorization': this._auth,
'Content-Type': 'application/json'
};
let response = await promiseRequest("POST", url, headers, JSON.stringify(list));
let obj = JSON.parse(response.responseText);
// list id
this._id = obj.referenceCode;
}
Bookmarklist.prototype.delete = function() {
let url = GS_HOST + 'api/proxy/web/v1/lists/' + this._id;
let headers = {
'Authorization': this._auth
};
promiseRequest("DELETE", url, headers);
}
Bookmarklist.prototype.addGeocaches = async function() {
let cacheArray = [];
let geocaches = CURRENT_TOUR.geocaches;
let nCaches = Math.min(geocaches.length,1000); // max. 1000 caches per bookmark list
for (let i = 0; i < nCaches; i++) {
let cache = {};
cache.name = geocaches[i].name;
cache.id = geocaches[i].id;
cache.rownumber = i;
cache.referenceCode = geocaches[i].id;
cache.listItem = {};
cache.listItem.name = geocaches[i].name;
cache.listItem.description = "";
cacheArray.push(cache);
}
let url = GS_HOST + 'api/proxy/web/v1/lists/' + this._id + '/geocaches';
let headers = {
'Authorization': this._auth,
'Content-Type': 'application/json;charset=utf-8'
};
await promiseRequest("PUT", url, headers, JSON.stringify(cacheArray));
}
Bookmarklist.prototype.addLink = function () {
// add link to tour header
$('span#webcode').after('<span id="gct_bml"><br>Bookmark: <b><a href="https://coord.info/' + this._id + '" target="_blank">' + this._id + '</a></b></span>');
// delete bookmark list and link to bookmark list on click
let deleteImage = document.createElement('img');
deleteImage.alt = $.gctour.lang('general.remove');
deleteImage.title = $.gctour.lang('general.remove');
deleteImage.style.cursor = 'pointer';
deleteImage.style.width = '14px';
deleteImage.style.verticalAlign = 'text-bottom',
deleteImage.style.marginLeft = '5px',
deleteImage.src = $.gctour.img.del;
deleteImage.addEventListener('click', async function() {
await deleteBookmarklist(CURRENT_TOUR.bml, CURRENT_TOUR.id);
$('span#gct_bml').remove(); // delete link to bookmark list from tour header
}, true);
addOpacityEffects(deleteImage);
$('span#gct_bml').append(deleteImage);
}
async function saveAsBookmarklist() {
// tour is empty or user not logged in
if (!isNotEmptyList() || !isLoggedIn()) {
return;
}
// a bookmark list for this tour already exists
if (CURRENT_TOUR.bml) {
$('<div>'+$.gctour.lang('container.tourHeader.saveAsBookmarklist.duplicate')+'</div>').dialog($.gctour.dialog.info(),{title: ''});
return;
}
// tour contains own waypoints only
if ($.grep(CURRENT_TOUR.geocaches, function(e){ return e.id; }).length === 0) { // number of caches
log('nothing to add to a bookmark list - tour contains own waypoints only');
return;
}
try {
// new lists page is only available for Premium member (Groundspeak decision)
if (!isPremiumUser()) {
switchToMyLists();
return;
}
addProgressbar({
caption: $.gctour.lang('container.tourHeader.saveAsBookmarklist.caption'),
closeCallback: function() {
return function() {
closeOverlayRemote(document)();
};
}
});
let bml = new Bookmarklist();
// request token
await bml.getToken();
// create empty bookmark list
await bml.create();
// add caches from tour to bookmark list
await bml.addGeocaches();
closeOverlay();
// add link to bookmark list
bml.addLink();
// save BM link in tour
CURRENT_TOUR.bml = bml._id;
saveCurrentTour();
// show info dialog
/*$('<div>'+$.gctour.lang('container.tourHeader.saveAsBookmarklist.success')+':<br><a href="'+GS_HOST+'account/lists" target="_blank">'+GS_HOST+'account/lists</a><br><a href="https://coord.info/'+bml._id+'" target="_blank">https://coord.info/'+bml._id+'</a></div>').dialog($.gctour.dialog.info(),{title: ''});
$(".ui-button span").text($.gctour.lang('general.close'));*/
} catch (e) {
addErrorDialog({
caption : "saveAsBookmarklist error",
_exception : e
});
}
}
async function deleteBookmarklist(bml_id, tour_id) {
// delete bookmark list
let bml = new Bookmarklist(bml_id);
await bml.getToken();
bml.delete();
// delete bookmark list id from tour
delete CURRENT_TOUR.bml;
saveCurrentTour();
}
function openGarminExpress(url) {
// if installed then open, otherwise return false
try {
var $iframe = $("<iframe />");
$iframe.css({
"display": "none"
});
$iframe.appendTo("body");
$iframe[0].contentWindow.location.href = url;
return true;
} catch (e) {
return false;
}
}
async function send2Garmin() {
if (!isNotEmptyList() || !isLoggedIn()) {
return;
}
try {
// new lists page and send to Garmin feature are only available for Premium member (Groundspeak decision)
if (!isPremiumUser()) {
switchToMyLists();
return;
}
addProgressbar();
let bml = new Bookmarklist();
// request token
await bml.getToken();
// create empty bookmark list temporarily
await bml.create();
// add caches from tour to bookmark list
await bml.addGeocaches();
// call Garmin Express locally
let url = GS_HOST + 'api/proxy/web/v1/garminexpress/list/' + bml._id;
let headers = {
'Authorization' : bml._auth
};
let response = await promiseRequest("POST", url, headers);
let hash = JSON.parse(response.responseText);
url = 'garminexpress://manifestupdate/?manifesturl=https://api.groundspeak.com/web/v1/garminexpress/public/manifest/' + hash;
if (!openGarminExpress(url)) { // if Garmin Express is not available show info dialog
let info =
'<div style="text-align:center;">' +
'<p style="text-align:left;">Groundspeak message:</p>' +
' <b><i>Garmin Express not detected</b>' +
' <p>Make sure you have the latest version of Garmin Express installed.</p>' +
' <p><a href="http://software.garmin.com/en-US/express.html" target="_blank">Get Garmin Express</a></p></i>' +
'</div>';
$(info).dialog($.gctour.dialog.info(),{title: ''});
$(".ui-button span").text($.gctour.lang('general.close'));
}
// delete bookmark list
bml.delete();
closeOverlay();
} catch (e) {
addErrorDialog({
caption : "Send to Garmin error",
_exception : e
});
}
}
async function sendToGPS() {
try {
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('uxGPSProviderTabs').getElementsByTagName('li')[2];
if (garmin_tab.getElementsByTagName('a')[0].className.toLowerCase().indexOf('selected') === -1) {
window.eval("__doPostBack('uxGPSProviderTabs', '2')");
return;
}
// hint to new Garmin Express functionality
$('#uxGPSProviderTabs').removeClass("Tabs").html('<p><i style="font-weight: initial;"><small><u>New method available:</u> Open GCTour settings menu, navigate to "Send to GPSr" tab and select method "New (Garmin Express)" (<a href="http://forums.groundspeak.com/GC/index.php?showtopic=343784&st=0&p=5647070&#entry5647070" target="_new">more details</a>).</small></i></p>');
// remove PM nag screen for basic members
$('#premiumUpsellMessage').remove();
// change obsolete Garmin communicator links to signed mozilla communicator add-on
$(document).ready(function() {
$('#uxSendToGps a[href^="http://www.garmin.com/products/communicator"]').each(function() {
this.href = "https://addons.mozilla.org/de/firefox/addon/garmin-communicator/";
})
})
// Beginning in Firefox 52, support for Garmin Communicator Plugin in Firefox has ended
$(document).ready(function() {
if ($('.pluginElement > #statusText').text().indexOf('Garmin Communicator Plugin NOT detected') != -1) {
var unsupported = "";
if (IS_FF) {
unsupported = "Beginning in Firefox version 52 (your version: " + $.browser.version + "), support for NPAPI plugins (especially Garmin Communicator Plugin) in Firefox has ended (<a href='https://support.mozilla.org/t5/Problems-with-add-ons-plugins-or/Why-do-Java-Silverlight-Adobe-Acrobat-and-other-plugins-no/ta-p/31069' target='_new'>more details</a>).<br>However, Firefox ESR (Extended Support Release) version will continue to support these plugins until early 2018 (<a href='https://support.mozilla.org/t5/Problems-with-add-ons-plugins-or/Why-do-Java-Silverlight-Adobe-Acrobat-and-other-plugins-no/ta-p/31069' target='_new'>more details</a>).";
} else { // Chrome
unsupported = "Chrome does not support NPAPI plugins (especially Garmin Communicator Plugin) anymore.";
}
var note = "<small><i><u>NOTE:</u> " + unsupported + "</i></small>";
$('.pluginElement>#statusText').html(note);
}
})
dataStringElement = document.getElementById('dataString');
dataStringElement.value = $.gctour.lang('general.pleaseWait');
dataStringElement.value = await getGPX();
tourName = CURRENT_TOUR.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,
_document : parent.document
});
}
}
function openSend2GpsDialog() {
if (!isNotEmptyList() || !isLoggedIn()) {
return;
}
var overlay = getOverlay({
caption : "Send to GPS",
minimized : true
});
overlay.innerHTML = "<iframe src='" + GS_HOST + "seek/sendtogps.aspx?guid=3f26d17b-5fde-40c7-bbfb-3539964d0d31&tour=1' width='450px' height='350' scrolling='no' marginheight='0' marginwidth='0' frameborder='0'><p>Your browser does not support iframes.</p></iframe>";
// Groundspeak pages "/seek/nearest.aspx*" hide contents of iframes --> Send to GPS would not work
$("iframe").css("display","block");
}
function openSettingsDialog() {
if (DEBUG_MODE && console && console.time) {
console.time('show settings menu');
}
var settings = new Settings_jqUI();
settings.show();
if (DEBUG_MODE && console && console.time) {
console.timeEnd('show settings menu');
}
}
function populateTours() {
var tourIt,
tour,
$tourListLi,
$tourLink,
$webImage,
$deleteButton;
var $tourList = $('#dialogListContainer');
$tourList.html("");
var $tourListUl = $('<ul>', {
"class" : "dialogList",
"id" : "sortable"
});
$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)();
});
if (tour.webcode) {
$webImage = $('<img>', {
src : $.gctour.img.globe,
"css" : {
"float": "left",
"margin-right" : 3
}
});
$tourLink.prepend($webImage);
}
if (tour.id == CURRENT_TOUR.id) {
$tourLink.css({
'font-weight' : 'bolder'
});
} else {
$deleteButton = $('<img>', {
title : $.gctour.lang('tour.remove'),
src : $.gctour.img.del,
"css" : {
"cursor" : 'pointer',
"float" : 'right'
}
})
.bind('click', {
tour : tour
}, function (e) {
deleteTour(e.data.tour.id)();
});
$tourLink.append($deleteButton);
}
$tourListLi.prepend($tourLink);
}
// sorting tours by drag and drop
$tourListUl.sortable({
axis : "y",
cursor: "move",
helper: "clone", // prevent to fire click events
items: "> li",
placeholder : "gct_sortable-placeholder",
revert: true,
start : function (e, ui) {
// save old position
$(this).data('old-pos', ui.item.index());
},
update: function(e, ui) {
var oldPos = $(this).data('old-pos');
var newPos = ui.item.index();
debug("Drag n Drop in progress:\n" +
"\tMove tour " + TOURS[oldPos].name + " (id: " + ui.item.attr('id') + ") from '" + oldPos + "' to '" + newPos + "'");
// positions to insert/remove
var insertPos = (oldPos > newPos) ? newPos : newPos + 1;
var removePos = (oldPos < newPos) ? oldPos : oldPos + 1;
// insert tour to new position, then remove tour from old position
TOURS.splice(insertPos, 0, TOURS[oldPos]);
TOURS.splice(removePos, 1);
// save tour with new order
saveValue('tours', TOURS);
},
stop : function (e, ui) {
// remove old position
$(this).removeData('old-pos');
}
});
}
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('container.tourHeader.makeMap.caption') + "' target='_blank'>" + tour.webcode + "</a></i>";
}
cacheList.innerHTML += "</u><br/>";
var copyButton = document.createElement('img');
copyButton.title = $.gctour.lang('tour.copy');
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('general.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('tour.remove');
deleteButton.src = $.gctour.img.del;
deleteButton.style.cursor = 'pointer';
deleteButton.style.marginRight = '5px';
deleteButton.style.cssFloat = 'right';
deleteButton.addEventListener('click', deleteTour(tour.id), false);
var renameButton = document.createElement('img');
renameButton.src = $.gctour.img.edit;
renameButton.title = $.gctour.lang('general.rename');
renameButton.alt = $.gctour.lang('general.rename');
renameButton.style.cursor = 'pointer';
renameButton.style.marginRight = '5px';
renameButton.style.cssFloat = 'right';
renameButton.addEventListener('click',
function () {
var newTourName = prompt($.gctour.lang('tour.newDialog'), tour.name);
if (!newTourName) {
return;
}
tour.name = newTourName;
saveTour(tour, true);
populateTours();
showCacheList(tour)();
}, false);
if (tour.id != CURRENT_TOUR.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 style="font-size: 90%;">' + ((geocache.id !== undefined) ? '('+geocache.id+')' : '') + "</small>";
}
append(cacheListUl, cacheList);
// make loadButton available
var loadButton = document.getElementById('loadButton');
loadButton.value = '"' + tour.name + '"';
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 moveEntryToOtherTour(entryId,tourId) {
// get entry from current tour
var pos = getPositionOfId(entryId);
var entry = CURRENT_TOUR.geocaches[pos];
// get other tour
var otherTour = getTourById(tourId);
// check if element is already in other tour
var isInTour = false;
$.each(otherTour.geocaches, function (i, obj) {
if (obj.id == entryId || obj.wptcode == entryId) {
isInTour = true;
return false; // break each
}
});
if (isInTour) {
showGeocacheNotification({
id : (entry.id || entry.name),
name : entry.name,
image : entry.image,
tourname : otherTour.name
}, {
type : "contains"
});
return;
}
debug("moving '" + entryId + "' to '"+ otherTour.name + "'");
// add entry to other tour
otherTour.geocaches.push(entry);
// save modified other tour without changing current tour
saveTour(otherTour, true);
// delete entry from current tour and update
deleteElement(entryId)();
showGeocacheNotification({
id : (entry.id || entry.name),
name : entry.name,
image : entry.image,
tourname : otherTour.name
}, {
type : "success"
});
}
function openTourDialog(entryId) {
var overLay = getOverlay({
caption : (entryId === undefined) ? $.gctour.lang('container.toolbar.openTour') : $.gctour.lang('container.cacheList.moveToList')
});
// make dialog draggable
$('#dialogBody').draggable({
cancel: '#dialogListContainer,#dialogDetails,input',
// cursor: "move", // does not work
start: function (e, ui) {
$(this).css('cursor', 'move');
},
stop: function (e, ui) {
$(this).css('cursor', 'default');
}
});
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('general.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('general.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
if (entryId === undefined) {
loadTour(id)();
} else {
moveEntryToOtherTour(entryId,id);
}
closeOverlay();
}, false);
// load currentTour
showCacheList(CURRENT_TOUR)();
loadButton.setAttribute("disabled", "disabled");
}
async function downloadTour(webcode, _url) {
try {
var url,
onlineTour;
// add the overlay while loading
addProgressbar();
url = GCTOUR_HOST + 'tour/' + $.trim(webcode) + '/json';
if (typeof _url !== "undefined") { // url to old server
url = _url;
}
var response = await promiseRequest('GET', url),
booResponse = (response.status === 200), // only status 200
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;
}
var responseObject = JSON.parse(response.responseText);
if (responseObject.type == "error" && responseObject.message == "no tour") {
// if webcode was not found on new server, try old server
if (response.finalUrl.indexOf(GCTOUR_HOST) >= 0) {
downloadTour(webcode, 'http://gctour.madd.in/tour/' + $.trim(webcode) + '/json');
closeOverlay();
return false;
}
// neither on new nor on old server
$('<div>' + $.gctour.lang('container.toolbar.downloadTour.webcodeerror') + '</div>').dialog($.gctour.dialog.info());
} else if (responseObject.type == "oldtour") {
onlineTour = JSON.parse(responseObject.message);
onlineTour.id = getNewTourId();
TOURS.push(onlineTour);
saveCurrentTour();
log("Download of an old online tour successful: " + onlineTour.id + " ; " + onlineTour.name);
closeOverlay();
alert("tour '" + onlineTour.name + "'\n" + $.gctour.lang('container.toolbar.downloadTour.webcodesuccess') + "\n" + $.gctour.lang('container.toolbar.downloadTour.webcodeOld'));
loadTour(onlineTour.id)();
} else {
onlineTour = responseObject;
onlineTour.id = getNewTourId();
TOURS.push(onlineTour);
saveCurrentTour();
closeOverlay();
var str = "<br>Tour <u>" + onlineTour.name + "</u> " + $.gctour.lang('container.toolbar.downloadTour.webcodesuccess');
$('<div>' + str + '</div>').dialog($.gctour.dialog.info());
loadTour(onlineTour.id)();
}
} catch (e) {
addErrorDialog({
caption : "Download tour error",
_exception : e
});
}
}
function downloadTourDialog() {
var overlay = getOverlay({
caption : $.gctour.lang('container.toolbar.downloadTour.caption'),
minimized : true
});
var divEbene = createElement('div');
append(divEbene, overlay);
divEbene.innerHTML = '<b>Webcode:</b>&nbsp;&nbsp;&nbsp;&nbsp;<input type="text" id="webcodeInput" class="gctour-input-text" style="width:300px;"><br/>' + $.gctour.lang('container.toolbar.downloadTour.webcodeDownloadHelp');
divEbene = createElement('div');
append(divEbene, overlay);
divEbene.setAttribute('class', 'dialogFooter');
var downloadButton = createElement('input', {
type : "button",
value : $.gctour.lang('container.toolbar.downloadTour.caption'),
style : "background-image:url(" + $.gctour.img.download + ")"
});
append(downloadButton, divEbene);
downloadButton.addEventListener('click', function () {
var webcode = $.trim($('#webcodeInput').val());
if (webcode == "") {
return;
}
downloadTour(webcode);
}, false);
}
/* BETA begin GCTour send2cgeo */
// TODO: move style definition to function "initStyle()"
GM_addStyle("" +
"#gctour_send2cgeo_progressbar {" +
" margin: 2px 0;" +
"}" +
"" +
".hide {" +
" display: none;" +
"}" +
".ui-progressbar {" +
" position: relative;" +
" width: 60%;" +
"}" +
"" +
".ui-progressbar-value {" +
"}" +
".progress-label {" +
" position: absolute;" +
" width: 100%;" +
" text-align: center;" +
" top: 4px;" +
" font-weight: bold;" +
"}" +
"ol li {" +
" padding: 2px;" +
"}" +
"ul {" +
" list-style-type: disc;" +
"}" +
"ul, ol {" +
" padding-left: 1.5em;" +
" margin-bottom: 0.5em;" +
" margin-left: 1.5em;" +
"}" +
"");
function send2cgeo() {
var cacheIDs = [],
caches = CURRENT_TOUR.geocaches,
cacheIDsCount = 0, // number of caches
group = 1, // number of IDs to submit simultaneously
url = "https://send2.cgeo.org/add.html",
$pBar = $("#gctour_send2cgeo_progressbar"),
$btn = $("#btnSend2cgeo"),
txtReg = "Register first!", // response from Send2cgeo if browser is not registered
txtSuc = "Success!", // response from Send2cgeo if submission was successful
// cache IDs
cacheIDs = $.map(caches, function (n, i) {
return ((n.id !== undefined) ? n.id : null);
});
cacheIDsCount = cacheIDs.length;
// set progress bar options
$pBar
.progressbar("option", {
"value" : 0,
"max" : cacheIDsCount
})
.removeClass("hide")
.css({ // necessary for pages in new design (search, dashboard,...), otherwise the progress bar doesn't show up
opacity : "",
display : "",
position : "",
height : "",
width : "",
top : "",
left : "",
fontSize: ""
});
// disable Send2cgeo button
$btn.button("disable");
// send cacheIDs recursively
async function sendRequests(fromPos) {
group = cacheIDsCount; // instead one by one, send all cacheIDs by one call
var toPos = fromPos + group,
param = "",
res = "",
boo = true;
toPos = (toPos > cacheIDsCount) ? cacheIDsCount : toPos;
// cacheIDs to send
param = cacheIDs.slice(fromPos, toPos).join(",");
// submit and wait for response
res = await promiseRequest('GET', url + "?cache=" + param); // https://send2.cgeo.org/add.html?cache=GC123,GC345
res = res.responseText;
$pBar.progressbar("option", "value", toPos);
if (res.indexOf(txtReg) !== -1) { // browser not registered
boo = false;
$('<div>' + $.gctour.lang('send2cgeo.register') + '</div>').dialog();
$pBar.addClass("hide");
$btn.button("enable");
} else if (res.indexOf(txtSuc) === -1) { // response not ok (cache probably could not be added to the queue)
boo = false;
$('<div>' + $.gctour.lang('send2cgeo.senderror') + '</div>').dialog();
$pBar.addClass("hide");
$btn.button("enable");
}
fromPos = toPos;
if (cacheIDsCount > fromPos && boo) {
sendRequests(fromPos);
}
};
// start recursion by sending first cacheID
if (cacheIDsCount > 0) {
sendRequests(0);
}
}
var openGcTour2cgeoDialog = function () {
if (!DEBUG_MODE) {
return;
}
if (!isNotEmptyList() || !isLoggedIn()) {
return;
}
var cacheIDsCount = $.grep(CURRENT_TOUR.geocaches, function (n, i) {
return (n.id !== undefined);
}).length,
waypointCount = CURRENT_TOUR.geocaches.length - cacheIDsCount,
noWP = (waypointCount > 0 ? ' (' + $.gctour.lang('send2cgeo.noWP') + ')' : ''),
btnText = $.gctour.lang('send2cgeo.title') + noWP,
send =
'<div id="dlgsendtocgeo">' +
'<br>' +
'<ol>' +
'<li>' +
'<div><button id="btnSend2cgeo">' + btnText + '</button></div>' +
'<div id="gctour_send2cgeo_progressbar" class="hide">' + // hide progress bar
'<div class="progress-label"></div>' +
'</div>'+
'</li>' +
$.gctour.lang('send2cgeo.usage') +
'</ol>' +
'</div>',
setup =
'<div>' +
'<strong>' + $.gctour.lang('send2cgeo.setup.header') + '</strong>' +
'<ol>' +
'<li><a href="https://send2.cgeo.org/api/browser.html" target="_blank" title="https://send2.cgeo.org/api/browser.html">' + $.gctour.lang('send2cgeo.setup.registerBrowser') + '</a></li>' +
$.gctour.lang('send2cgeo.setup.desc1') +
'<li>' +
'<form name="device" action="https://send2.cgeo.org/pin.html" target="_blank" method="post">' +
'<label for="pin" class="gctour-label">' + $.gctour.lang('send2cgeo.setup.desc2') + '</label> ' +
'<input name="pin" type="text" placeholder="12345" maxlength="5" class="gctour-input-text" style="width: 5em; text-align: center;"/>' +
'<input name="button" type="submit" value="' + $.gctour.lang('send2cgeo.setup.desc3') + '" class="ui-button" style="margin-left: 10px;"/>' +
'</form>' +
'</li>' +
'</ol>' +
'</div>' +
'<br>' +
'<hr>' +
'<div>' +
'<strong>Send2cgeo</strong>' +
'<ul>' +
'<li><a target="_blank" href="https://send2.cgeo.org/home.html">' + $.gctour.lang('send2cgeo.overview') + '</a></li>' +
'<li><a target="_blank" href="http://www.cgeo.org/faq.html#send2cgeo">FAQ</a></li>' +
'</ul>' +
'</div>',
// dialog tabs structure
$tabs = $(
'<div id="tabs">' +
' <ul>' +
' <li><a href="#tabs-1">Send</a></li>' +
' <li><a href="#tabs-2">Setup</a></li>' +
' </ul>' +
' <div id="tabs-1">' + send + '</div>' +
' <div id="tabs-2">' + setup + '</div>' +
'</div>'
);
$tabs.on("dialogcreate", function () {
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: CURRENT_TOUR.geocaches.length,
change: function() {
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 () {
send2cgeo();
});
});
// tabs menu
$tabs.dialog($.gctour.dialog.info(), {
title: $.gctour.lang('send2cgeo.title'),
width: '75%',
maxHeight: $(window).height() - 20,
resizable: false,
dialogClass: 'gct_dialog',
buttons: [{
text: $.gctour.lang('general.close'),
icons: {
primary: "ui-icon-closethick"
},
click: function () {
$(this).dialog("close");
}
}]
});
// different font size on new search page necessary
if (document.URL.search("\/play\/search") >= 0) {
var $elem = $("div.ui-widget");
$elem.attr('style', $elem.attr('style') + ';font-size: 0.8em !important');
}
$("div#tabs").tabs({
heightStyle: "content"
});
};
/* BETA end GcTour send2cgeo */
/* overlays */
/* usage:
var options = {
caption: "Test Beschriftung",
color: 'red',
_document: document,
minimized: true,
closeCallback : function(_document){alert('oioio');}
}
getOverlay(options);
*/
function getOverlay(options) {
var bodyNew,
verLay,
overlayMarker,
title,
closeDiv,
closeButton,
caption,
localDocument,
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)();
var 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 closeOverlayRemote(theDocument) {
return function () {
$(theDocument)
.find("#dialogMask").remove().end()
.find("#dialogBody").remove().end()
.find("#progressOverlay").remove();
};
}
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('general.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";
options.caption = options.caption || 'Error';
//log the exception:
log_exception(options._exception);
var overlay = getOverlay(options);
$(overlay).append(
$('<div/>')
.css('border', '1px dashed red')
.css('clear', 'both')
.css('margin', '3px').css('padding', '5px')
.html('<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('general.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();
}
})
)).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('general.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('general.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(" + $.gctour.img.loader2 + ")";
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>");
}
function updateProgressBar() {
//setProgress(Math.round(PROGRESS_BAR.progress/PROGRESS_BAR.total*100),100, document); // percentage
setProgress(PROGRESS_BAR.progress, PROGRESS_BAR.total, document);
PROGRESS_BAR.progress += 1;
}
/* gui notifications */
$.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.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();
$.gctour.notification.test = function () {
if (DEBUG_MODE) {
var dummyNote = [{
title: "test 1",
icon: GS_HOST + GS_WPT_IMAGE_PATH + "2.gif",
text: "test notification",
style: "yellow"
}, {
title: "test 2",
icon: GS_HOST + GS_WPT_IMAGE_PATH + "3.gif",
text: "test notification, longer text",
style: "red"
}, {
title: "test 3",
icon: GS_HOST + GS_WPT_IMAGE_PATH + "4.gif",
text: "test notification, longer text, even longer text",
style: "blue"
}, {
title: "test 4",
icon: GS_HOST + GS_WPT_IMAGE_PATH + "5.gif",
text: "test notification"
}
],
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_uxLoginStatus_hlHeaderAvatar').hover(function () {
clearInterval(dummyNoteInterval);
dummyNoteZaehler = 0;
dummyNoteInterval = window.setInterval(foo, 500);
});
}
}
//$.gctour.notification.test();
/* own-marker */
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,
markerName,
markerCoords,
markerContent,
markerType,
markerTypeSym,
latitude,
longitude,
markerPosition,
markerPositionDelta,
entry,
latArray,
lonArray,
latOrigin,
lonOrigin;
overlayMarker = getOverlay({
caption : '<b>' + $.gctour.lang('printview.marker') + '</b>',
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';
nameInput.className = "gctour-input-text";
nameInput.style.width = '450px';
tr = document.createElement('tr');
anTable.appendChild(tr);
td = document.createElement('td');
tr.appendChild(td);
td.textContent = $.gctour.lang('marker.coord');
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.className = "gctour-input-text";
cordsInput.style.width = '450px';
cordsInput.style.marginRight = '5px';
cordsInput['placeholder'] = 'N49° 26.082 E7° 46.587';
var wptcodeInput = document.createElement('input');
td.appendChild(wptcodeInput);
wptcodeInput.type = "hidden";
wptcodeInput.id = 'wptcodeInput';
exampleCoords = document.createElement('div');
exampleCoords.innerHTML = '<div style="font-size:xx-small"><i>' + $.gctour.lang('general.exampleCoords') + '</i></div>';
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 async function () {
var coords = await 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('marker.content') + '<br/><div style="font-size:xx-small">(' + $.gctour.lang('marker.contentHint') + ')</div>';
td = document.createElement('td');
tr.appendChild(td);
contentTextarea = document.createElement('textarea');
td.appendChild(contentTextarea);
contentTextarea.style.width = '450px';
contentTextarea.style['border'] = '1px solid #ccc';
contentTextarea.style['border-radius'] = '3px';
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('marker.type');
td = document.createElement('td');
tr.appendChild(td);
markerTypeTable = createElement('table', {
style : "width:auto;"
});
td.appendChild(markerTypeTable);
markerTypeTable.id = 'markerType';
var typeArray = [
[GCTOUR_HOST + 'i/RedFlag.png', 'Red Flag'],
[GCTOUR_HOST + 'i/BlueFlag.png', 'Blue Flag'],
[GCTOUR_HOST + 'i/GreenFlag.png', 'Green Flag'],
[GCTOUR_HOST + 'i/Geocache.png', 'Geocache'],
[GCTOUR_HOST + 'i/GeocacheFound.png', 'Geocache Found'],
[GCTOUR_HOST + 'i/Information.png', 'Information'],
[GCTOUR_HOST + 'i/Park.png', 'Park'],
[GCTOUR_HOST + 'i/ParkingArea.png', 'Parking'],
[GCTOUR_HOST + 'i/SkullAndBones.png', 'Skull And Crossbones']
];
// if 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('general.cancel'),
style : "background-image:url(" + $.gctour.img.closebutton + ")"
});
append(cancel, buttonsDiv);
cancel.addEventListener('click', closeOverlay, false);
submit = createElement('input', {
type : "button",
value : $.gctour.lang('general.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 = getPositionOfId(marker.wptcode);
markerPositionDelta = markerPosition - CURRENT_TOUR.geocaches.length + 1;
deleteElement((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.wptcode, markerPositionDelta);
closeOverlay();
}, false);
// now set all previous values IF 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();
}
/* change coordinates */
// 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 = 0; i <= 360; i = i + 15) {
var waypoint = CalcPrjWP(this._options.lat, this._options.lon, this._options.radius, i);
pathString += waypoint[0] + "," + waypoint[1];
if (i != 360) {
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');
this.show();
} else {
var markerString = "markers=";
if (this._options.geocache_type) {
// do not change icon to https here, otherwise geocache marker will not be displayed
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;
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 = $.gctour.img.zoom_in;
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 = $.gctour.img.zoom_out;
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;'><small>" + coordinates +
"&nbsp;&nbsp;-&nbsp;&nbsp;changed by GCTour<a style='cursor:pointer'></a></small>" +
"</div><small>(" + coordinates_org + ")</small>");
showLink = coordinates_ele.find('a:first');
showLink.bind('click', async function () {
var overlay = getOverlay({
caption : $.gctour.lang('settings.map.header'),
minimized : true
});
var origCoordinates = await parseCoordinates(coordinates_org);
var newCoordinates = await 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
});
});
}
}
async 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('cache.moveCoords'),
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('cache.moveCoordsHelp');
tr = document.createElement('tr');
anTable.appendChild(tr);
td = document.createElement('td');
tr.appendChild(td);
td.style.width = '20%';
td.textContent = $.gctour.lang('cache.originalCoords');
// get original coordinates
var coordinates = $('#uxLatLon').text();
try {
// if coordinates were already changed by GCTour, extract original coordinates
coordinates = coordinates.split("(")[1].split(")")[0];
} catch (e) {
// no previous changes by GCTour
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 = await 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.className = "gctour-input-text";
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('cache.newCoords');
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.className = "gctour-input-text";
cordsInput.style.width = '350px';
cordsInput.style.marginRight = '5px';
var checkMarkerCoord = function (input) {
return async function () {
var coords = await 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 = '<div style="font-size:x-small"><i>' + $.gctour.lang('general.exampleCoords') + '</i></div>';
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('general.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('cache.deleteCoords'),
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('general.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 = await 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);
}
}
/* tour functions */
function getTourById(id) {
for (var i = 0; i < TOURS.length; i++) {
if (TOURS[i].id == id) {
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 isGcIdInTable(gcId) {
for (var i = 0; i < CURRENT_TOUR.geocaches.length; i++) {
if (CURRENT_TOUR.geocaches[i].id == gcId) {
return true;
}
}
return false;
}
function getPositionOfId(theId) {
var id = -1;
$.each(CURRENT_TOUR.geocaches, function (i, obj) {
if (obj.id == theId || obj.wptcode == theId) {
id = i;
return false; // break each
}
});
return id;
}
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);
}
}
function saveCurrentTour() {
saveTour(CURRENT_TOUR);
}
// move a cache to a given position in the list
function move(id, positionDelta) {
var i;
// locate the selected cache in the list
var position = getPositionOfId(id);
// return if we are at the end or at top of the list!
if ((position === 0 && positionDelta < 0) || (position == CURRENT_TOUR.geocaches.length - 1 && positionDelta > 0)) {
return;
}
// save clicked cache
var geoCache = CURRENT_TOUR.geocaches[position];
// remove it from the current geocaches
CURRENT_TOUR.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(CURRENT_TOUR.geocaches[i]);
}
// then the selected
tempCaches.push(geoCache);
// and now the rest
for (i = position + positionDelta; i < CURRENT_TOUR.geocaches.length; i++) {
tempCaches.push(CURRENT_TOUR.geocaches[i]);
}
// ... and make it persistent
CURRENT_TOUR.geocaches = tempCaches;
saveCurrentTour();
updateTourNumbering();
}
function moveUp(id) {
return function () {
move(id, -1);
};
}
function moveDown(id) {
return function () {
move(id, 1);
};
}
function moveTop(id) {
return function () {
var position = getPositionOfId(id);
move(id, -position);
};
}
function moveBottom(id) {
return function () {
var position = getPositionOfId(id);
move(id, CURRENT_TOUR.geocaches.length - position - 1);
};
}
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 updateTourNumbering() {
$('ul#cacheList div.counter').each(function(i) {
$(this).text(i+1);
});
}
function saveCurrentTourRefreshGUI() {
saveCurrentTour();
updateTourNumbering();
updateCacheCount(CURRENT_TOUR.geocaches.length);
}
function addToCacheList(theEntry, effects) {
var costumMarker = (typeof(theEntry.latitude) !== "undefined");
// if this is a custom 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 type
entryLi.style.listStyleImage = "url('" + theEntry.image + "')";
// make the gcid link
var nameCite = createElement('span', {
style : "vertical-align:top"
});
if (!costumMarker) {
var coordinates = GM_getValue('coords_' + theId, "null"); // changed by GCTour
if (coordinates != "null") {
var moveCoords = createElement('img', {
src : $.gctour.img.coord_update,
height : "12",
style : "float:right;margin-right:5px;margin-top:2px",
alt : $.gctour.lang('cache.movedCoords'),
title : $.gctour.lang('cache.movedCoords')
});
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 = '_blank';
linkElement.textContent = theId;
nameCite.appendChild(linkElement);
} else {
nameCite.innerHTML += theEntry.name;
nameCite.style.textDecoration = "underline";
}
// the log/edit, move and 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('container.cacheList.logYourVisit');
logVisitImage.title = $.gctour.lang('container.cacheList.logYourVisit');
logVisitImage.style.cursor = 'pointer';
logVisitImage.src = $.gctour.img.add_comment;
logVisitImage.addEventListener('click', function () {
GM_openInTab(GS_HOST + 'seek/log.aspx?wp=' + theId, false);
}, true);
addOpacityEffects(logVisitImage);
functionButtonsDiv.appendChild(logVisitImage);
} else {
var editMarkerButton = document.createElement('img');
editMarkerButton.alt = $.gctour.lang('general.edit');
editMarkerButton.title = $.gctour.lang('general.edit');
editMarkerButton.style.cursor = 'pointer';
editMarkerButton.src = $.gctour.img.edit;
editMarkerButton.addEventListener('click', function () {
showNewMarkerDialog(theEntry);
}, false);
addOpacityEffects(editMarkerButton);
functionButtonsDiv.appendChild(editMarkerButton);
}
// button to move an element to a different tour
var moveImage = document.createElement('img');
moveImage.alt = $.gctour.lang('container.cacheList.moveToList');
moveImage.title = $.gctour.lang('container.cacheList.moveToList');
moveImage.style.cursor = 'pointer';
moveImage.style.marginLeft = '1px';
moveImage.style.marginRight = '1px';
moveImage.src = $.gctour.img.move;
moveImage.addEventListener('click', function() {
openTourDialog(theId);
});
addOpacityEffects(moveImage);
functionButtonsDiv.appendChild(moveImage);
// button to remove an element from a tour
var deleteImage = document.createElement('img');
deleteImage.alt = $.gctour.lang('container.cacheList.removeFromList');
deleteImage.title = $.gctour.lang('container.cacheList.removeFromList');
deleteImage.style.cursor = 'pointer';
deleteImage.src = $.gctour.img.del;
deleteImage.addEventListener('click', deleteElement(theId), true);
addOpacityEffects(deleteImage);
functionButtonsDiv.appendChild(deleteImage);
entryLi.appendChild(functionButtonsDiv);
entryLi.appendChild(nameCite);
var nameDiv = document.createElement('div');
nameDiv.style.clear = 'left';
nameDiv.style.position = 'relative';
nameDiv.style.zIndex = 2;
// truncate single words that are too long
nameDiv.style.overflow = 'hidden';
nameDiv.style.textOverflow = 'ellipsis';
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 = (getPositionOfId(theEntry.id || theEntry.wptcode) + 1);
entryLi.appendChild(counterDiv);
$('#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 addToCurrentTour(entry) {
var currentTourId = GM_getValue('currentTour', -1);
CURRENT_TOUR = getTourById(currentTourId);
CURRENT_TOUR.geocaches.push(entry);
log("saving " + entry.id + " to " + CURRENT_TOUR.name);
}
function addCustomMarker(name, lat, lon, content, typeImage, typeSymbol, wptcode) {
if (CURRENT_TOUR.geocaches.length === 0) {
$('ul#cacheList').html('');
}
// customMarker:
// name -> the cachename parking area
// image -> the typeimage https://gctour.geocaching.cx/i/ParkingArea.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 custom marker: " + entry.name + " lat:" + entry.latitude + " lon:" + entry.longitude + " Type:" + entry.symbol + " content:" + entry.content);
// add the newbie
addToCacheList(entry, true);
addToCurrentTour(entry);
return entry;
}
function addGeocache(theId, theGuId, theName, theTypeImage) {
return function (event) {
if (CURRENT_TOUR.geocaches.length === 0) {
$('ul#cacheList').html('');
}
if (!isGcIdInTable(theId)) {
// entry:
// id -> the gc.com id GC00815
// guid -> the guid 6e974919-2b47-46e2-8661-3fc62a5a9650
// name -> the cachename Echo the tomcat
// image -> the typeimage 2.gif
var entry = {};
entry.id = theId;
entry.name = theName;
entry.guid = theGuId;
entry.image = GS_HOST + GS_WPT_IMAGE_PATH + theTypeImage;
// add the newbie
addToCacheList(entry, true);
addToCurrentTour(entry);
showGeocacheNotification({
id : theId,
name : theName,
image : GS_HOST + GS_WPT_IMAGE_PATH + theTypeImage,
tourname : CURRENT_TOUR.name
}, {
type : "success"
});
} else {
showGeocacheNotification({
id : theId,
name : theName,
image : GS_HOST + GS_WPT_IMAGE_PATH + theTypeImage,
tourname : CURRENT_TOUR.name
}, {
type : "contains"
});
}
};
}
function deleteElement(theId) {
return function () {
let delay = 500;
// effect
$("#" + theId)
.fadeOut(delay, function () {
$(this).remove();
});
// locate the element to delete
for (var i = 0; i < CURRENT_TOUR.geocaches.length; i++) {
if (CURRENT_TOUR.geocaches[i].id == theId || CURRENT_TOUR.geocaches[i].wptcode == theId) {
// array in js are dumb - where is removeAt ??
CURRENT_TOUR.geocaches.splice(i, 1);
log("removing '" + theId + "' from '" + CURRENT_TOUR.name + "'");
break;
}
}
saveCurrentTour();
// update the cache count
updateCacheCount(CURRENT_TOUR.geocaches.length);
// update numbering
setTimeout(function() {
updateTourNumbering();
}, delay);
// if tour is empty display hint
if (CURRENT_TOUR.geocaches.length === 0) {
$('#cacheList').html($.gctour.lang('tour.empty'));
}
};
}
function removeElements(descriptionElement, id, tagName) { // currently not used
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 = GS_HOST;
} else {
updateTour();
}
};
}
function newTourFunction(preset) {
return function () {
var newTour = {};
newTour.id = getNewTourId();
var tourName = (preset) ? preset : "Tour " + newTour.id;
newTour.name = prompt($.gctour.lang('tour.newDialog'), tourName);
newTour.geocaches = [];
if (!newTour.name) {
return false;
}
TOURS.push(newTour);
log("Creating new tour: " + newTour.id + " ; " + newTour.name);
saveTour(newTour);
updateTour();
return true;
};
}
function deleteTour(id, force) {
return function () {
if (force || confirm($.gctour.lang('tour.removeDialog'))) {
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(CURRENT_TOUR)();
$('#loadButton').attr("disabled", "disabled");
}
$("#tour" + id).remove();
if (TOURS[i].bml) {
deleteBookmarklist(TOURS[i].bml,TOURS[i].id);
}
TOURS.splice(i, 1);
saveCurrentTour();
break;
}
}
}
};
}
function deleteCurrentTour() {
if (confirm($.gctour.lang('tour.removeDialog'))) {
var tableId;
for (tableId = 0; tableId < TOURS.length; tableId++) {
if (TOURS[tableId].id == CURRENT_TOUR.id) {
break;
}
}
var nextTourId = TOURS[(tableId + 1) % TOURS.length].id;
var currentTourId = CURRENT_TOUR.id;
loadTour(nextTourId)();
deleteTour(currentTourId, true)();
}
}
/* printpage functions */
async function printPageFunction(tour) {
if (!isNotEmptyList() || !isLoggedIn()) {
return;
}
var i,
waypoint_i,
tr,
td,
nCaches = tour.geocaches.length,
minimal = GM_getValue('printMinimal', false);
var cacheDetailTemplate =
'<div class="cacheDetail ###HIDDENSTYLE###" id="###GUID###">' +
' <div class="geocache_count ###HIDDENSTYLE###"><span>###CACHECOUNT###</span></div>' +
' <div class="geocache_id">###GCID###</div>' +
' <div>' +
' <img src="' + $.gctour.img.wpt_type + '">' +
' <span style="font-weight: bold;">###CACHENAME###</span>' +
' <span style="margin-right: 3px;"> (###OWNER### - ###HIDDEN###)</span>' +
' </div>' +
' <div class="details">' +
' <span><img src="' + $.gctour.img.coord_update + '" heigth="12px" class="###COORDINATESISEDIT###"/> ###COORDINATES###</span>' +
' <span><img src="' + $.gctour.img.bearing + '"/>###DISTANCE###&nbsp;</span>' +
' <span>D:<img src="' + $.gctour.img.stars_d + '"/></span>' +
' <span>T:<img src="' + $.gctour.img.stars_t + '"/></span>' +
' <span>S:<img src="' + $.gctour.img.cache_size + '"/></span>' +
' </div>' +
' <div>' +
' <span>###ATTRIBUTES###</span>' +
' <span><img alt="Inventory" style="padding-left: 10px;" src="' + $.gctour.img.tb_coin + '"/>Inventory:</span>' +
' <span>###INVENTORY###</span>' +
' <span><img src="' + $.gctour.img.fav + '" style="padding-left: 10px;"/>Favorites: ###FAV### ###FAVSCORE###</span>' +
' </div>' +
' <div class="content">' +
' <div class="short ###HIDDENSTYLE###">###SHORT_DESCRIPTION###</div>' +
' <div class="long ###HIDDENSTYLE###">###LONG_DESCRIPTION###</div>' +
' <div>###GCCOMMENT###</div>' +
' <div class="removable">###CACHENOTE###</div>' +
' <div contenteditable="true"><b><u>Hint:</u></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 ###HIDDENSTYLE###">' +
' <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>';
// show/hide cache and own marker details (but only if title page is present and minimal printview is not set; otherwise print preview is completely empty)
if (GM_getValue('showCacheDetails', true)===false && GM_getValue('printFrontpage', true) && !minimal) {
cacheDetailTemplate = cacheDetailTemplate.replace("###HIDDENSTYLE###", "hidden");
ownMarkerTemplate = ownMarkerTemplate.replace("###HIDDENSTYLE###", "hidden");
} else {
cacheDetailTemplate = cacheDetailTemplate.replace("###HIDDENSTYLE###", "");
ownMarkerTemplate = ownMarkerTemplate.replace("###HIDDENSTYLE###", "");
}
// clear content
$('html').html(""); // result: <html><head></head><body></body></html>
// title of print preview page
$('html').append('<title>' + $.gctour.lang('settings.printview.header') + '</title>');
var bodyTag = document.getElementsByTagName('body')[0];
bodyTag.style.background = 'none';
bodyTag.style.backgroundColor = "white";
bodyTag.innerHTML = '';
// add styles to body tag
$('head').remove(); // presence of head tag causes problems when printing in Firefox --> add styles to body tag
var jqCss = $('<link/>').attr("href", GS_HOST + "css/jqueryui1104/jqUI").attr("rel", "stylesheet").appendTo($(bodyTag));
var style = document.createElement('style');
style.type = 'text/css';
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}' +
'.map{clear:both} .logs{clear:both} .hidden{display:none} .highlight{background-color:pink}' +
'.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;}' +
'sup {vertical-align:baseline;font-size:77%;position:relative;top:-5px;}' +
'.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}';
// limit the font size of the cache table to "small"; for bigger sizes the table most likely gets too wide
var fs = GM_getValue("printFontSize", "x-small");
if ((fs != "xx-small") && (fs != "x-small") && (fs != "small")) {
fs = "small";
}
style.innerHTML += 'div#printTitle>table * {font-size:' + fs + ';}' +
'fieldset.noprint * {font-size:' + fs + ';}';
bodyTag.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%}';
bodyTag.appendChild(style);
var body = document.createElement('div');
$(body).width("648px");
$(body).css("margin", "30px auto");
bodyTag.appendChild(body);
addProgressbar({
_document : document,
closeCallback : function (_document) {
return function () {
if (confirm($.gctour.lang('general.cancel') + "?") == true) {
window.location.reload();
}
};
}
});
// for progress bar update
PROGRESS_BAR.progress = 0;
PROGRESS_BAR.total = nCaches;
var printInfo = document.createElement('div');
printInfo.className = 'noprint';
printInfo.innerHTML = $.gctour.lang('printview.dontPrintHint');
body.appendChild(printInfo);
$("<fieldset/>", {
'class' : 'noprint'
})
.css('right', '50px')
.css('position', 'fixed')
.append(
$("<legend/>").html($.gctour.lang('settings.printview.header'))
.css('background', "url(\"" + $.gctour.img.gctourLogoSmall + "\") no-repeat scroll 0 0 transparent")
.css('padding-left', '20px'),
$("<input/>").attr("type", "input").attr("value", $.gctour.lang('printview.print')).css("background-image", "url(" + $.gctour.img.printer + ")").click(function () {
self.print()
}),
$("<input/>").attr("type", "input").attr("value", $.gctour.lang('general.close')).css("background-image", "url(" + $.gctour.img.closebutton + ")").click(function () {
window.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>" + tour.name + "</h1>"
});
$(body).append(title);
var coverTable = document.createElement('table');
coverTable.style.width = "100%";
coverTable.style.border = '1px solid lightgray';
coverTable.innerHTML =
'<thead><tr> ' +
' <th colspan="2" style="border-bottom:1px solid lightgray;"><b>Geocache</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 colspan="2" style="border-bottom:1px solid lightgray;" align="center"><b>Fav</b>&nbsp;</th> ' +
' <th style="border-bottom:1px solid lightgray;"><b>' + $.gctour.lang('marker.coord') + '</b></th> ' +
' <th style="border-bottom:1px solid lightgray;"><b>' + $.gctour.lang('printview.found') + '</b></th> ' +
' <th style="border-bottom:1px solid lightgray;">&nbsp;&nbsp;<b>' + $.gctour.lang('printview.note') + '</b></th> ' +
'</tr><thead>';
var tbody = createElement('tbody');
append(tbody, coverTable);
// table of caches
var isCostumMarker = false,
id,
coords;
for (i = 0; i < nCaches; ++i) {
var costumMarker = (typeof(tour.geocaches[i].latitude) != "undefined");
if (costumMarker) {
id = "WP";
coords = "'coords_WP" + (i + 1) + "'>" + new LatLon(tour.geocaches[i].latitude, tour.geocaches[i].longitude).toString();
} else {
id = tour.geocaches[i].id;
coords = "'coords_" + tour.geocaches[i].id + "'>";
}
if (GM_getValue('addCustomMarkerToCacheTable', true) === true) {
costumMarker = false; // add custom marker to cache table
}
if (!costumMarker) {
tr = createElement('tr');
tbody.appendChild(tr);
// numbering
td = createElement('td');
tr.appendChild(td);
td.innerHTML = "<b style='margin:0 6px'>" + (i + 1) + "</b>";
// image
td = createElement('td', {
style : "border-bottom:1px solid lightgray;"
});
tr.appendChild(td);
td.innerHTML = "<img src='" + tour.geocaches[i].image + "'>";
// name
td = createElement('td', {
style : "text-align:left;border-bottom:1px solid lightgray;white-space:nowrap;"
});
tr.appendChild(td);
td.innerHTML = "<a style='color:#000000;text-decoration: none' target='_blank' href='http://coord.info/" + tour.geocaches[i].id + "'>" + tour.geocaches[i].name + "</a>";
// id
td = createElement('td', {
style : "text-align:left;border-bottom:1px solid lightgray;border-right:1px dashed lightgray;"
});
tr.appendChild(td);
td.innerHTML = "<span style='margin:0 2px'>" + id + "</span>";
// difficulty
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_" + tour.geocaches[i].id + "'></span>";
// terrain
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_" + tour.geocaches[i].id + "'></span>";
// size
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_" + tour.geocaches[i].id + "'></span>";
// last 4 logs
td = createElement('td', {
style : "border-bottom:1px solid lightgray;white-space:nowrap;"
});
tr.appendChild(td);
td.innerHTML = "<canvas id='l4l_" + tour.geocaches[i].id + "' width='17' height='17' style='margin-left: 2px;position: relative;top: 2px;'/>";
// favorite points
td = createElement('td', {
style : "text-align:left;border-bottom:1px solid lightgray;border-left:1px dashed lightgray;"
});
tr.appendChild(td);
td.innerHTML = "<span id='fp_" + tour.geocaches[i].id + "'></span>";
// favorite score
td = createElement('td', {
style : "text-align:right;border-bottom:1px solid lightgray;border-right:1px dashed lightgray;"
});
tr.appendChild(td);
td.innerHTML = "<span id='fs_" + tour.geocaches[i].id + "'></span>";
// coords
td = createElement('td', {
style : "border-bottom:1px solid lightgray;white-space:nowrap;"
});
tr.appendChild(td);
td.innerHTML = "<span style='margin:0 2px' id=" + coords + "</span>";
// found checkbox
td = createElement('td');
tr.appendChild(td);
td.style.verticalAlign = "middle";
td.innerHTML = "<div style='margin-left:auto;margin-right:auto;width:10px;height:10px;border:1px solid lightgray;'>&nbsp;</div>";
// note
td = createElement('td', {
style : "border-bottom:1px solid lightgray;"
});
tr.appendChild(td);
td.style.verticalAlign = "middle";
td.style.width = "100%";
td.innerHTML = "&nbsp;";
} else {
if (GM_getValue('addCustomMarkerToCacheTable', false) === false) { // custom marker in separate table
isCostumMarker = costumMarker;
continue;
}
}
}
// table of custom marker
if (isCostumMarker) {
tbody.innerHTML +=
'<tr> ' +
' <td colspan="11" style="border-bottom:1px solid lightgray;"><b>' + $.gctour.lang('printview.marker') + '</b></td> ' +
'</tr>';
for (i = 0; i < nCaches; ++i) {
var costumMarker = (typeof(tour.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='" + tour.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 = tour.geocaches[i].name;
td.innerHTML += " - " + new LatLon(tour.geocaches[i].latitude, tour.geocaches[i].longitude).toString();
}
}
}
$(title).append($(coverTable));
var overview_map = createElement('div', {
id : "overview_map"
});
$(title).append($(overview_map));
}
var geocaches = [];
var costumMarkers = [];
var maxPrintLogs = parseInt(GM_getValue('maxPrintLogs', 3), 10);
// fetch all caches in parallel, not one by one
var promises = [];
for (i = 0; i < nCaches; i++) {
costumMarker = (typeof(tour.geocaches[i].latitude) != "undefined");
if (costumMarker) {
promises.push(tour.geocaches[i]);
updateProgressBar();
} else {
// retrieve at least 4 logs (if available) in order to display Last4Logs status, independent of maxPrintLogs parameter
promises.push(getGeocache(tour.geocaches[i].id, Math.max(4,maxPrintLogs)));
}
}
try {
var cache_objects = await Promise.all(promises);
for (i = 0; i < cache_objects.length; ++i) {
var costumMarker = (typeof(tour.geocaches[i].latitude) != "undefined");
if (!costumMarker) {
var geocache = cache_objects[i];
if (geocache == "pm only") {
var pmOnlyDiv = createElement('div');
pmOnlyDiv.setAttribute('class', 'cacheDetail');
pmOnlyDiv.innerHTML = "<b><img src='" + tour.geocaches[i].image + "'>" + tour.geocaches[i].name + " (" + tour.geocaches[i].id + ") is PM ONLY!</b>";
body.appendChild(pmOnlyDiv);
body.appendChild(document.createElement('br'));
$(document).find("span#coords_" + tour.geocaches[i].id)
.html("PM ONLY");
} else {
//logs
var logs_div = createElement('div');
var logs = geocache.logs;
// if maxprintlogs <= -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 : GS_HOST + 'images/logtypes/' + logs[log_i].LogTypeImage
});
log_div.appendChild(log_type_img);
log_div.innerHTML += " " + logs[log_i].Visited + " - " + 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 = "";
for (var waypoints_i = 0; waypoints_i < geocache.additional_waypoints.length; waypoints_i++) {
if (waypoints_i % 2 === 0) {
content += "<tr>";
}
content += "<td style='width:50%;'>";
content += "<img src='" + geocache.additional_waypoints[waypoints_i].symbol + "'>&nbsp;";
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 += "</td>";
if (waypoints_i % 2 === 1 || waypoints_i === geocache.additional_waypoints.length-1) {
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:separate;border-spacing:2px;width:100%"
});
append(image_table, dummy_images);
var content = "";
for (var images_i = 0; images_i < geocache.images.length; images_i++) {
if (images_i % 2 === 0) {
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>";
if (images_i % 2 === 1 || images_i === geocache.images.length-1) {
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";
if (attribute.src != $.gctour.img.attribute_blank) {
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;
// add 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);
// export from GCComment script
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;
}
// cache note from Groundspeak
var cache_note = "";
if (geocache.cache_note) {
cache_note = "<b><u>Cache Note:</u></b><br/>";
cache_note += '<span style="word-wrap:break-word;">' + geocache.cache_note + '</span>';
}
if (GM_getValue('printFrontpage', true) && !minimal) {
$(document)
// setting real coordinates on front page
.find("span#coords_" + geocache.gcid)
.html(geocache.coordinates)
.css({
'border-bottom' : (geocache.coordinatesisedit === true ? '2px solid gray' : 'none')
})
.end()
// setting D, T, size and favorite points on front page
.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()
.find("span#fp_" + geocache.gcid).html(geocache.fav).end()
.find("span#fs_" + geocache.gcid).html(geocache.favScore).end();
// set the last 4 logs icon:
getLast4Logs(geocache.logs, $("canvas#l4l_" + geocache.gcid, document));
}
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', await 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_count : ""],
['LOGS', logs_div.innerHTML],
['FAV', geocache.fav ? geocache.fav : 'none'],
['FAVSCORE', geocache.favScore],
['HIDDENSTYLE', minimal ? 'hidden' : '']
];
var cacheDetailTemp = fillTemplate(geocacheMapping, cacheDetailTemplate);
// class "removable" elements and removable images in cache description
$(".removable, div.short img, div.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 cache description
$("div.short a, div.long a", cacheDetailTemp).removeAttr("href");
// add edit mode
if (GM_getValue('printEditMode', true)) {
$("div.short, div.long", cacheDetailTemp).attr('contenteditable', 'true');
}
if (GM_getValue('printPageBreak', false)) {
if (i < nCaches - 1) {
cacheDetailTemp.style.pageBreakAfter = 'always';
}
}
body.appendChild(cacheDetailTemp);
body.appendChild(document.createElement('br'));
}
} else {
// map custom marker to uploadable version
var cm = cache_objects[i];
cm.index = i;
costumMarkers.push(cm);
var markerMapping = [
['GCID', $.gctour.lang('printview.marker')],
['CACHECOUNT', (i + 1)],
['TYPE', tour.geocaches[i].image],
['NAME', tour.geocaches[i].name],
['COORDINATES', new LatLon(tour.geocaches[i].latitude, tour.geocaches[i].longitude).toString()],
['CONTENT', tour.geocaches[i].content.replace(/\n/g, "<br />")],
['HIDDENSTYLE', minimal ? 'hidden' : '']
];
var cacheDetailTemp = fillTemplate(markerMapping, ownMarkerTemplate);
body.appendChild(cacheDetailTemp);
body.appendChild(document.createElement('br'));
}
}
closeOverlayRemote(document)(); // close old overlay (scraping data)
// maps
addProgressbar({
caption : $.gctour.lang('container.tourHeader.makeMap.wait'),
_document : document,
closeCallback : function (_document) {
return function () {
if (confirm($.gctour.lang('general.cancel') + "?") == true) {
window.location.reload();
}
};
}
});
// upload map content to server
var cacheObject = {};
cacheObject.geocaches = geocaches;
cacheObject.costumMarkers = costumMarkers;
uploadMap(cacheObject);
// show maps
try {
var overviewMapQuery = "";
var geocacheCodes = [];
for (var i = 0; i < nCaches; ++i) {
var marker = tour.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 < nCaches - 1) {
overviewMapQuery += ",";
}
}
// overview map
var printOverviewMap = (
GM_getValue('printOutlineMap', true) &&
GM_getValue('printFrontpage', true) &&
!minimal);
var mapCount = (printOverviewMap) ? 1 : 0;
mapCount += (GM_getValue('printOutlineMapSingle', false)) ? geocacheCodes.length : 0;
if (printOverviewMap) {
$("div#overview_map", document).first().append(await getMapElement(overviewMapQuery, document));
setProgress(0, mapCount, document);
}
// map for each geocache
var printMapForEachCache = (
GM_getValue('showCacheDetails', true) &&
GM_getValue('printOutlineMapSingle', false));
if (printMapForEachCache) {
for (var i = 0; i < geocacheCodes.length; ++i) {
var geocacheCode = geocacheCodes[i];
var mapElement = $("div#MAP_" + geocacheCode, document).first();
if (mapElement) {
mapElement.append(await getMapElement(geocacheCode, document));
}
setProgress(i + 1, mapCount, document);
}
}
closeOverlayRemote(document)();
} catch (e) {
throw "Show maps error - " + e;
}
}
catch(e) {
addErrorDialog({
caption : "printPageFunction error",
_document : document,
_exception : e
});
}
// scale listing images to fit print preview
$('div.short img, div.long img').removeAttr('width').removeAttr('height').removeAttr('style').css({'max-width':'100%','max-height':'100%','object-fit':'contain'});
}
// 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]);
}
}
/* printpage maps */
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(false); // gc.de maps does not exist anymore: do not skip here, but set to false!
settings.push(GM_getValue('settings_map_geocacheindex', true));
return settings.join("").replace(/true/g, "1").replace(/false/g, "0");
}
async function getMapUrl(mapQuery) {
try {
var headers = {'Content-type' : 'application/x-www-form-urlencoded'},
response = await promiseRequest('POST', GCTOUR_HOST + "map/make", headers, encodeURI("ids=" + mapQuery)),
hash_value = response.responseText;
debug("Hash '" + hash_value + "' for this query '" + mapQuery + "'");
return GCTOUR_HOST + "map/show/h/" + hash_value + "/" + getMapSettings() + "/" + getMapType();
} catch(e) {
throw 'fn getMapUrl - ' + e;
}
}
async 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 = await getMapUrl(mapQuery);
return map_frame;
}
async 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 "small":
map_size_px = 250;
break;
case "medium":
map_size_px = 375;
break;
default:
map_size_px = 500;
break;
}
$(control_container).append(
$('<div>'+$.gctour.lang('printview.mapHeight')+'</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('printview.removeMap'),
alt : $.gctour.lang('printview.removeMap'),
click : function () {
map_frame.parentNode.style.display = "none";
}
})
.css('float', 'right'),
$('<img>', {
'class' : 'tourImage',
src : $.gctour.img.refresh,
title : $.gctour.lang('printview.reloadMap'),
alt : $.gctour.lang('printview.reloadMap'),
click : function () {
map_frame.src = map_frame.src;
}
})
.css('float', 'right'),
$('<img>', {
'class' : 'tourImage',
src : $.gctour.img.map,
title : $.gctour.lang('printview.zoomMap'),
alt : $.gctour.lang('printview.zoomMap'),
click : async function () {
GM_openInTab(await getMapUrl(mapQuery), false);
}
})
.css('float', 'right'),
$('<div/>')
.css('clear', 'both')).find("img.tourImage").addShadowEffect().addOpacityEffect().css('margin-left', '5px');
return control_container;
}
// add gct_slider method to jquery (e.g. height slider in print preview)
(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');
}
};
})($);
async function getMapElement(mapQuery, newDocument) {
var map_container = createElement('div', {
style : "text-align: center; margin-left: auto; margin-right: auto;"
});
var map_frame = await getMap(mapQuery);
map_container.appendChild(await getMapControl(mapQuery, map_frame, newDocument));
map_container.appendChild(map_frame);
return map_container;
}
/* cache scraper */
// source of all evil asking groundspeak
async function getGeocacheFromElement(element, maxLogsCount) {
var coordinates,
logLink,
minimal_geocache,
$divCacheDetails,
$lnkConversions;
var geocache = {};
/*
geocache
.gcid
.cacheid
.guid
.name
.type
.image
.sym
.owner
.comment (optional)
.cache_note (optional)
.archived
.available
.hidden
.difficulty
.terrain
.size
.coordinates
.coordinatesisedit (custom edit boolean)
.lat
.lon
.location
.state
.country
.bearing
.distance
.$inventory
.$attributes
.$short_description
.$long_description
.images
.additional_waypoints
.hint
.find_count
.logs
.fav
.favScore
*/
if ($("a#ctl00_hlBecomePremium", 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 = GS_HOST + "images/wpttypes/" + geocache.type + ".gif";
geocache.sym = "Geocache";
if (($('a#ctl00_ContentBody_hlFoundItLog', element).length >= 1) || ($('strong#ctl00_ContentBody_GeoNav_logText', element).length >= 1)) {
geocache.sym = "Geocache Found";
}
geocache.owner = $.trim($('a[href*="' + GS_HOST + '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 = $('#ctl00_ContentBody_mcd2', element).first();
geocache.hidden = await parseDate($.trim($divCacheDetails.text().split(':').pop()));
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 moved the coordinates of this geocache by GCTour
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) { // something 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 = $('span#ctl00_ContentBody_uxTravelBugList_uxInventoryLabel', element).parent().parent().find('img');
geocache.$attributes = $('div#ctl00_ContentBody_detailWidget > div.WidgetBody > img', element);
geocache.attributes_array = [];
geocache.$attributes.each(function (index, Element) {
// remove garbage from source address and split at "-"
// (special care for "Special Tool Required" since the image name is "s-tool")
var attribute_array = this.src.replace(GS_HOST + "images/attributes/", "").replace(".gif", "").replace("-y", "_y").replace("-n", "_n").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');
var waypoint = {};
waypoint.symbol = row1_tds[1].childNodes[1].src;
waypoint.prefix = $.trim(row1_tds[2].textContent);
waypoint.lookup = $.trim(row1_tds[3].textContent);
waypoint.name = row1_tds[4].childNodes[1].textContent;
//waypoint.url = row1_tds[4].childNodes[1].href.split('&')[0]; // just in case...
waypoint.coordinates = $.trim(row1_tds[5].textContent);
coordinates = await parseCoordinates(row1_tds[5].textContent);
waypoint.latitude = coordinates._lat;
waypoint.longitude = coordinates._lon;
waypoint.note = $.trim(row2_tds[2].innerHTML); // HTML in waypoint description
// waypoint.note = $.trim(row2_tds[2].textContent); // pure text only, no line breaks etc
// Final Location https://www.geocaching.com/images/WptTypes/sm/flag.jpg
// Parking Area https://www.geocaching.com/images/WptTypes/sm/pkg.jpg
// Question to Answer https://www.geocaching.com/images/WptTypes/sm/puzzle.jpg
// Stages of a Multicache https://www.geocaching.com/images/WptTypes/sm/stage.jpg
// Trailhead https://www.geocaching.com/images/WptTypes/sm/trailhead.jpg
// Reference Point https://www.geocaching.com/images/WptTypes/sm/waypoint.jpg
var sym = waypoint.symbol.toLowerCase().split(GS_HOST + GS_WPT_IMAGE_PATH)[1];
switch (sym) {
case "flag.jpg":
waypoint.symbol_groundspeak = "Final Location";
waypoint.type_groundspeak = "Waypoint|Final Location";
break;
case "pkg.jpg":
waypoint.symbol_groundspeak = "Parking Area";
waypoint.type_groundspeak = "Waypoint|Parking Area";
break;
case "puzzle.jpg":
waypoint.symbol_groundspeak = "Question to Answer";
waypoint.type_groundspeak = "Waypoint|Question to Answer";
break;
case "stage.jpg":
waypoint.symbol_groundspeak = "Stages of a Multicache";
waypoint.type_groundspeak = "Waypoint|Stages of a Multicache";
break;
case "trailhead.jpg":
waypoint.symbol_groundspeak = "Trailhead";
waypoint.type_groundspeak = "Waypoint|Trailhead";
break;
case "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())) : "";
// numbers of finds, DNFs, notes etc.
geocache.find_count = $('span#ctl00_ContentBody_lblFindCounts > p.LogTotals', element).html();
// total number of logged visits
var nLoggedVisits = Number($('div.InformationWidget.Clear > h3', element).text().trim().split(' ')[0].replace(',',''));
// UserToken for favorite score and fetching logs
var userToken = element.innerHTML.split("userToken = '")[1].split("'")[0];
// favorite points
geocache.fav = $('span.favorite-value', element).text().trim();
// fetch logs and favorite score in parallel
var promises = [];
promises.push( getLogs(userToken, maxLogsCount, nLoggedVisits, element) );
// fav score only if favorite points are necessary and available (e.g. not for events)
if (FAVSCORE && geocache.fav) {
promises.push( promiseRequest('POST', GS_HOST + 'datastore/favorites.svc/score?u=' + userToken) );
}
try {
var response = await Promise.all(promises);
geocache.logs = response[0];
// favorite points available; check for a string "between" 0 and 100, thereby exclude that content is a web page
if (response.length==2 && response[1].responseText.length<4) {
var favScore = response[1].responseText;
if (favScore>100) {
favScore = '(100%)';
} else if (favScore<1) {
favScore = '(<1%)';
} else {
favScore = '('+favScore+'%)';
}
geocache.favScore = favScore;
} else {
geocache.favScore = '';
}
//debug('getGeocacheFromElement -\n' + JSON.stringify(geocache));
return geocache;
}
catch(e) {
throw "fn getGeocacheFromElement - " + e;
}
}
async function getGeocache(gcid, maxLogsCount) {
try {
var response = await promiseRequest('GET', GS_HOST + 'seek/cache_details.aspx?log=y&wp=' + gcid);
// after execution parse the result
var response_div = createElement('div');
response_div.innerHTML = response.responseText;
updateProgressBar();
return await getGeocacheFromElement(response_div, maxLogsCount);
} catch(e) {
throw "fn getGeocache - " + e;
}
}
/* cache scraper utilities */
// return an object with these attributes: gccode, cacheid, name, guid, type
function getMinimalGeocacheDetails(detailsPage) {
/* gccode, cacheid, name, guid, type */
var geocache_details = {};
var $obj = {}; // temp jquery container
/* GCCode
* <span id="ctl00_ContentBody_CoordInfoLinkControl1_uxCoordInfoCode" class="CoordInfoCode">GC2HFRB</span>
* <title>GC2HFRB 3, 2, 1 ... Lift-Off (Traditional Cache) in Thüringen, Germany created by Astronaut Hoffi1986</title>
*/
$obj.gcc = [
$('.CoordInfoCode', detailsPage).first().text(),
$('title', detailsPage).first().text()
];
geocache_details.gccode =
(findGCCodeFromString($obj.gcc[0])) ||
(findGCCodeFromString($obj.gcc[1])) ||
null;
if (!geocache_details.gccode) {
throw "fn getMinimalGeocacheDetails - Fatal error getting GCCode!";
} else {
debug(
"getMinimalGeocacheDetails - GCCode: " + geocache_details.gccode + "\n" +
"\t1: " + findGCCodeFromString($obj.gcc[0]) + " = " + isGCCode(findGCCodeFromString($obj.gcc[0]))+ "\n" +
"\t2: " + findGCCodeFromString($obj.gcc[1]) + " = " + isGCCode(findGCCodeFromString($obj.gcc[1])));
}
/* CacheId:
* 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+|\Ww=\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 "fn getMinimalGeocacheDetails - 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 "fn getMinimalGeocacheDetails - 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 method="post" action="/geocache/GC2HFRB_3-2-1-lift-off?guid=712fed16-77ab-48f4-a269-18cc27bb2a14" 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[id='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")
];
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 "fn getMinimalGeocacheDetails - 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 target="_blank" title="About Cache Types" rel="noopener noreferrer"><img src="/images/WptTypes/3.gif" alt="Multi-cache" title="Multi-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;
}
async function getLogs(userToken, maxLogsCount, nLoggedVisits, element) {
//~ 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/25/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 []
try {
maxLogsCount = $.isNumeric(maxLogsCount) ? maxLogsCount : 0;
nLoggedVisits = $.isNumeric(nLoggedVisits) ? nLoggedVisits : 0;
if (maxLogsCount == 0 || nLoggedVisits == 0) { // no logs
return [];
}
var nLogs = Math.min(maxLogsCount,nLoggedVisits), // number of required logs
logs = [],
fetch = true;
// up to 25 logs are already inside fetched listing, no need to fetch again
if (nLogs < 26) {
try {
var initalLogs = '{"' + element.innerHTML.split('initalLogs = {"')[1].split('};')[0] + '}';
logs = JSON.parse(initalLogs).data;
fetch = false;
} catch(e) { // if something went wrong give it a 2nd try and fetch the logs
error(e);
}
}
// fetch logs
if (fetch) {
var i,
// max possible number of logs by a single request: 100
nMax = 100,
nLogsByRequest = Math.min(nLogs,nMax),
// number of pages to be fetched
nPages = Math.ceil(nLogs/nLogsByRequest),
// idx: page index, num: number of logs by page (max:100)
// num=100,nLogs=200: --> idx=[1,2]: [1,100],[101,200]
// num=50, nLogs=200: --> idx=[1,2,3,4] [1,50],[51,100],[101,150],[151,200]
urlTemplate = GS_HOST + 'seek/geocache.logbook?tkn=' + userToken + '&idx=#PAGE#&num=' + nLogsByRequest + '&decrypt=false',
url,
log_obj = {},
log_objects,
promises = [];
// fetch all logs in parallel
for (i=1; i<=nPages; i++) {
url = urlTemplate.replace("#PAGE#", i);
promises.push(promiseRequest('GET', url));
}
log_objects = await Promise.all(promises);
for (i=0; i<log_objects.length; i++) {
// parse the result
log_obj = JSON.parse(log_objects[i].responseText);
// append new logs
logs = logs.concat(log_obj.data);
}
}
// truncate log array if necessary
if (logs.length > nLogs) {
logs = logs.slice(0, nLogs-logs.length);
}
return logs;
} catch(e) {
throw 'fn getLogs - ' + e;
}
}
/* gpx geocache */
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 lat="' + marker.latitude + '" lon="' + marker.longitude + '">\n';
gpx += ' <time>' + xsdDateTime(new Date()) + '</time>\n';
gpx += ' <name>' + escapeHTML(marker.name) + '</name>\n';
gpx += ' <cmt>' + escapeHTML(marker.content) + '</cmt>\n';
gpx += ' <sym>' + marker.symbol + '</sym>\n';
gpx += ' </wpt>';
return gpx;
}
function getWaypointsGPXFromGeocache(waypoint, geocache) {
var waypointName = waypoint.prefix + geocache.gcid.replace(/GC/, '');
var gpx = '';
gpx += ' <wpt lat="' + waypoint.latitude + '" lon="' + waypoint.longitude + '">\n';
gpx += ' <time>' + xsdDateTime(geocache.dateHidden) + '</time>\n';
gpx += ' <name>' + escapeHTML(waypointName) + '</name>\n';
gpx += ' <cmt>' + escapeHTML(waypoint.note) + '</cmt>\n';
gpx += ' <desc>' + escapeHTML(waypoint.name) + '</desc>\n';
gpx += ' <sym>' + waypoint.symbol_groundspeak + '</sym>\n';
gpx += ' <type>' + waypoint.type_groundspeak + '</type>\n';
gpx += ' </wpt>';
return gpx;
}
async function getGPXGeoCache(gcid) {
/*
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_count
.logs
.favscore
*/
try {
var i, // for ()
geocache = {},
maxGPXLogs = parseInt(GM_getValue('maxGPXLogs', 10), 10),
geocache_obj = await getGeocache(gcid, maxGPXLogs);
if (geocache_obj === "pm only") { // basic member and pm only cache
return geocache_obj;
}
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.cacheSym = geocache_obj.sym;
switch (geocache_obj.size) {
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.cacheSize = "";
break;
}
for (i = 0; i < WPT_ARRAY.length; i++) {
if (WPT_ARRAY[i].wptTypeId == geocache_obj.type) {
geocache.cacheType = WPT_ARRAY[i].name;
}
}
geocache.attributes_array = geocache_obj.attributes_array;
geocache.difficulty = geocache_obj.difficulty;
geocache.terrain = geocache_obj.terrain;
var summary = geocache_obj.$short_description,
description = geocache_obj.$long_description;
if (GM_getValue('gpxhtml', true)) {
geocache.shortDescription = (summary.length === 1) ? summary.html() : "";
geocache.longDescription = (description.length === 1) ? description.html() : "";
} else {
geocache.shortDescription = (summary.length === 1) ? summary.text() : "";
geocache.longDescription = (description.length === 1) ? description.text() : "";
}
geocache.hint = geocache_obj.hint;
geocache.state = geocache_obj.state;
geocache.country = geocache_obj.country;
geocache.dateHidden = geocache_obj.hidden;
// logs
geocache.logs = [];
for (i = 0; i < geocache_obj.logs.length; i++) {
var logObj = {};
// cacherName: "user"
// type: "Found It", "Didn't find it", "Temporarily Disable Listing", "Write note", "Enable Listing",...
// foundDate: "August 18" oder "February 17, 2007"
// id: 12345679
// content: "Netter Log eintrag."
var gc_log = geocache_obj.logs[i];
logObj.cacherName = gc_log.UserName;
logObj.type = gc_log.LogType;
logObj.foundDate = await parseDate(gc_log.Visited);
logObj.id = gc_log.LogID;
// handling of HTML code in logs (since GS change to Markdown logs), e.g.
// <p> One, two &amp; three</p>
// in a log becomes
// &lt;p&gt; One, two &amp;amp; three&lt;/p&gt;
// to parse
var textarea = document.createElement("textarea");
// gc_log.LogText = &lt;p&gt; One, two &amp;amp; three&lt;/p&gt;
// unescaped = <p> One, two &amp; three</p>
var unescaped = $('<textarea>').html(gc_log.LogText).val(); // unescape HTML
// logObj.content = One, two & three
logObj.content = $(unescaped).text(); // no HTML in logs
geocache.logs.push(logObj);
}
geocache.additionalWaypoints = geocache_obj.additional_waypoints;
geocache.latitude = geocache_obj.lat;
geocache.longitude = geocache_obj.lon;
geocache.favScore = geocache_obj.favScore;
return geocache;
} catch(e) {
throw 'fn getGPXGeoCache - ' + e;
}
}
async function getGPX() {
try {
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>' + escapeHTML(CURRENT_TOUR.name) + '</name>\n' +
// do not change <desc> content, otherwise GSAK does not handle additional cache waypoints as child waypoints during GPX import
' <desc>This is an individual cache generated from Geocaching.com</desc>\n' +
' <author>GCTour ' + VERSION + '</author>\n' +
' <url>' + GS_HOST + '</url>\n' +
' <urlname>Geocaching - High Tech Treasure Hunting</urlname>\n' +
' <time>' + (new Date()).toISOString() + '</time>\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://coord.info/##GCID##</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##\n </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>';
var gcStrArray = [],
wptStrArray = [],
minLat,
minLon,
maxLat,
maxLon,
nCaches = CURRENT_TOUR.geocaches.length;
// for progress bar update
PROGRESS_BAR.progress = 0;
PROGRESS_BAR.total = nCaches;
// fetch all caches in parallel, not one by one
var promises = [];
for (i = 0; i < nCaches; i++) {
var costumMarker = (typeof(CURRENT_TOUR.geocaches[i].latitude) != "undefined");
if (costumMarker) {
wptStrArray.push(getGPXfromMarker(CURRENT_TOUR.geocaches[i]));
updateProgressBar();
} else {
promises.push(getGPXGeoCache(CURRENT_TOUR.geocaches[i].id));
}
}
// fav score only needed if prefix option in GPX settings is active
if (!GM_getValue('gpxprefixfavscore', false)) {
FAVSCORE = false;
}
var cache_objects = await Promise.all(promises);
FAVSCORE = true;
for (i = 0; i < cache_objects.length; i++) {
// if the cancel button is pressed...
if (GM_getValue("stopTask", false)) {
GM_setValue("stopTask", false);
return "canceled"; // ...then return!
}
var geocache = cache_objects[i];
if (geocache !== "pm only") {
var logs = geocache.logs,
logsStringArray = [],
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
.replace('##LOGID##', geocache.cacheid)
.replace('##TIME##', xsdDateTime(new Date()))
.replace('##CACHERNAME##', "GCTour")
.replace('##LOGTYPE##', "Write note")
.replace('##LOGTEXT##', attributeLogtext);
logsStringArray.push(attributeLog);
}
// for removing all emoji codes in logs
var emoji_ranges = [
'\ud83c[\udf00-\udfff]', // U+1F300 to U+1F3FF
'\ud83d[\udc00-\ude4f]', // U+1F400 to U+1F64F
'\ud83d[\ude80-\udeff]' // U+1F680 to U+1F6FF
];
for (ii = 0; ii < logs.length; ii++) {
var geocacheLogMapping = [
['LOGID', logs[ii].id],
['TIME', xsdDateTime(logs[ii].foundDate)],
['CACHERNAME', escapeHTML(logs[ii].cacherName)],
['LOGTYPE', logs[ii].type],
// remove ASCII control codes and escape HTML entities
['LOGTEXT', escapeHTML(stripASCIIcodes(logs[ii].content))]
// for removing all emoji codes in logs
//['LOGTEXT', escapeHTML( stripASCIIcodes(logs[ii].content).replaceAll(emoji_ranges.join('|'),'') )]
];
var cacheWaypointLog = geocacheLogTemplate;
for (iii = 0; iii < geocacheLogMapping.length; iii++) {
cacheWaypointLog = cacheWaypointLog.replaceAll("##" + geocacheLogMapping[iii][0] + "##", 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', escapeHTML(geocache.cacheName)],
['CACHESYM', geocache.cacheSym],
['OWNER', escapeHTML(geocache.cacheOwner)],
['STATE', escapeHTML(geocache.state)],
['COUNTRY', escapeHTML(geocache.country)],
['TYPE', geocache.cacheType],
['CONTAINER', geocache.cacheSize],
['ATTRIBUTES', attributesString],
['DIFFICULTY', geocache.difficulty],
['TERRAIN', geocache.terrain],
['SUMMARY', escapeHTML(stripASCIIcodes(geocache.shortDescription))],
['DESCRIPTION', escapeHTML(stripASCIIcodes(geocache.longDescription))],
['HINT', escapeHTML(geocache.hint)],
['LOGS', logsStringArray.join("\n")]
];
// add favorite score in front of cache name (visible only in Geocaching menu of GPSr)
if (GM_getValue('gpxprefixfavscore', false)) {
// e.g. favscore = (<1%) --> remove "(", ")" and escape "<" to "&lt;"
var favScore = geocache.favScore ? geocache.favScore.replace(/[()]/g,'').replace(/</g,'&lt;') : '';
geocacheMapping.push(['FAVSCORE', favScore]);
geocacheTemplate = geocacheTemplate.replace('<groundspeak:name>##CACHENAME##</groundspeak:name>','<groundspeak:name>##FAVSCORE####CACHENAME##<\/groundspeak:name>');
}
// bounds for caches
minLat = (!minLat) ? geocache.latitude : Math.min(geocache.latitude, minLat);
maxLat = (!maxLat) ? geocache.latitude : Math.max(geocache.latitude, maxLat);
minLon = (!minLon) ? geocache.longitude : Math.min(geocache.longitude, minLon);
maxLon = (!maxLon) ? geocache.longitude : Math.max(geocache.longitude, maxLon);
var cacheWaypoint = geocacheTemplate;
for (ii = 0; ii < geocacheMapping.length; ii++) {
cacheWaypoint = cacheWaypoint.replaceAll('##' + geocacheMapping[ii][0] + '##', geocacheMapping[ii][1]);
}
gcStrArray.push(cacheWaypoint);
if (GM_getValue('gpxwpts', true)) {
for (iii = 0; iii < geocache.additionalWaypoints.length; iii++) {
if (geocache.additionalWaypoints[iii].coordinates != "???") {
wptStrArray.push(getWaypointsGPXFromGeocache(geocache.additionalWaypoints[iii], geocache));
}
}
}
}
else { // pm only: not available for basic members
str = 'pm only cache "' + CURRENT_TOUR.geocaches[i].name + '" will be skipped';
$('<div>' + str + '</div>').dialog($.gctour.dialog.info());
}
} // iteration end
// bounds for cache waypoints + custom waypoints
var lat, lon;
for (i = 0; i < wptStrArray.length; ++i) {
lat = wptStrArray[i].split('lat="')[1].split('"')[0];
lon = wptStrArray[i].split('lon="')[1].split('"')[0];
minLat = (!minLat) ? lat : Math.min(lat, minLat);
maxLat = (!maxLat) ? lat : Math.max(lat, maxLat);
minLon = (!minLon) ? lon : Math.min(lon, minLon);
maxLon = (!maxLon) ? lon : Math.max(lon, maxLon);
}
var str = gpxHeader
.replaceAll('##GEOCACHES##', gcStrArray.join("\n"))
.replaceAll('##WAYPOINTS##', wptStrArray.join("\n"))
.replaceAll('##MINLAT##', minLat)
.replaceAll('##MINLON##', minLon)
.replaceAll('##MAXLAT##', maxLat)
.replaceAll('##MAXLON##', maxLon);
return str;
} catch (e) {
throw 'fn getGPX - ' + e;
}
}
async function downloadGPXFunction() {
try {
if (!isNotEmptyList() || !isLoggedIn()) {
return;
}
var tourName,
currentDate,
currentDateString,
gpxString,
filename,
blob;
// add progressbar while loading
GM_setValue("stopTask", false);
addProgressbar({
closeCallback: function () {
return function () {
if (confirm($.gctour.lang('general.cancel') + "?") == true) {
//GM_setValue("stopTask", true);
window.location.reload();
}
};
}
});
tourName = CURRENT_TOUR.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();
filename = 'GCTour.' + tourName + '.' + currentDateString + '.gpx';
gpxString = await getGPX();
// if the cancel button is pressed the gpxString just contains canceled
if (gpxString == "canceled") {
closeOverlay();
return;
}
// open save file dialog
var file = new File([gpxString], filename, {
type: "application/gpx;charset=utf-8"
});
saveAs(file);
// all done - remove the overlay
closeOverlay();
} catch (e) {
addErrorDialog({
caption: "downloadGPXFunction error",
_exception: e
});
}
}
/* setting utilities */
function setLanguage(l) {
return function () {
GM_setValue('language', l);
window.location.reload();
};
}
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);
};
}
/* settings jqUI prototype: properties and methods */
function Settings_jqUI() {
// checkbox settings
this.settings_printview_cb = [
['settings.printview.printMinimal', 'printMinimal', false],
['settings.printview.decryptHints', 'decryptPrintHints', true],
['settings.printview.editDescription', 'printEditMode', true],
['settings.printview.showSpoiler', 'printSpoilerImages', true],
['settings.printview.additionalWaypoints', 'printAdditionalWaypoints', true],
['settings.printview.additionalWaypoints2', 'addCustomMarkerToCacheTable', true],
['settings.printview.loggedVisits', 'printLoggedVisits', false],
['settings.printview.pageBreak', 'printPageBreak', false],
['settings.printview.pageBreakAfterMap', 'printPageBreakAfterMap', true],
['settings.printview.frontPage', 'printFrontpage', true],
['settings.printview.outlineMap', 'printOutlineMap', true],
['settings.printview.outlineMapSingle', 'printOutlineMapSingle', false],
['settings.printview.showCacheDetails', 'showCacheDetails', true]
];
this.settings_map_cb = [
['settings.map.geocacheid', 'settings_map_geocacheid', true],
['settings.map.geocachename', 'settings_map_geocachename', true],
['settings.map.geocacheindex', 'settings_map_geocacheindex', true],
['settings.map.awpts', 'settings_map_awpts', true],
['settings.map.awpt_name', 'settings_map_awpt_name', true],
['settings.map.awpt_lookup', 'settings_map_awpt_lookup', true],
['settings.map.owpts', 'settings_map_owpts', true],
['settings.map.owpt_name', 'settings_map_owpt_name', true]
];
this.settings_gpx_cb = [
['settings.gpx.html', 'gpxhtml', true],
['settings.gpx.wpts', 'gpxwpts', true],
['settings.gpx.attributesToLog', 'gpxattributestolog', false],
['settings.gpx.stripGC', 'gpxstripgc', false],
['settings.gpx.prefixFavScore', 'gpxprefixfavscore', false]
];
// menu structure
this.tabs =
'<div id="tabs">' +
' <ul>' +
' <li><a href="#tabs-1">' + $.gctour.lang('settings.language.header') + '</a></li>' +
' <li><a href="#tabs-2">' + $.gctour.lang('settings.printview.header') + '</a></li>' +
' <li><a href="#tabs-3">' + $.gctour.lang('settings.map.header') + '</a></li>' +
' <li><a href="#tabs-4">' + $.gctour.lang('settings.gpx.header') + '</a></li>' +
' <li><a href="#tabs-5">' + $.gctour.lang('settings.gps.header') + '</a></li>' +
' <li><a href="#tabs-6">' + $.gctour.lang('settings.theme.header') + '</a></li>' +
' <li><a href="#tabs-7">' + $.gctour.lang('settings.exportimport.header') + '</a></li>' +
' </ul>' +
' <div id="tabs-1">' + this.getLanguage() + '</div>' +
' <div id="tabs-2">' + this.getPrintview() + '</div>' +
' <div id="tabs-3">' + this.getMap() + '</div>' +
' <div id="tabs-4">' + this.getGpx() + '</div>' +
' <div id="tabs-5">' + this.getSendToGPS() + '</div>' +
' <div id="tabs-6">' + this.getThemes() + '</div>' +
' <div id="tabs-7">' + this.getExportImport() + '</div>' +
'</div>';
}
Settings_jqUI.prototype.getLanguage = function () {
var language =
'<div id="lang">' +
' <label for="selLang" class="gctour-label ui-widget-header ui-corner-all" style="padding: .1em .5em;">' + $.gctour.lang('settings.language.select') + '</label>' +
' <select name="selLang" id="selLang" class="ui-widget ui-corner-all">';
$.each($.gctour.i18n, function (l, o) {
language += ' <option value="' + l + '">' + o.name + '</option>';
});
language +=
' </select>' +
'</div>';
return language;
};
Settings_jqUI.prototype.getPrintview = function () {
var printview =
this.cbLayout(this.settings_printview_cb[0][0]) +
'<div style="border-bottom:1px solid;padding-bottom:10px;padding-top:10px">' +
' <b>' + $.gctour.lang('settings.printview.logCount') + '</b><br>' +
' <div id="settingsLogCount">' +
' <input type="radio" name="radio-1" id="radio-1" value="0">' +
' <label for="radio-1" class="ui-button ui-widget-header ui-corner-all" style="margin: 2px; padding: .1em .5em;">' + $.gctour.lang('settings.printview.logCounts')[0] + '</label><br>' +
' <input type="radio" name="radio-1" id="radio-2" value="3">' +
' <input type="text" style="width: 2em;" class="gctour-input-text" maxlength="3">' +
' <label for="radio-2" class="ui-button ui-widget-header ui-corner-all" style="margin: 2px; padding: .1em .5em;">' + $.gctour.lang('settings.printview.logCounts')[2] + '</label><br>' +
' </div>' +
'</div>' +
'<div id="selectmenu" style="border-bottom:1px solid;padding-bottom:10px;padding-top:10px">' +
' <b>' + $.gctour.lang('settings.printview.fontSize') + '</b><br>' +
' <select name="settingsFontSize" id="settingsFontSize" class="ui-widget ui-corner-all">';
$.each($.gctour.lang('settings.printview.fontSizes'), function (i, val) {
printview += ' <option value="' + val + '">' + val + '</option>';
});
printview +=
' </select>' +
'</div>';
var i;
for (i = 1; i < this.settings_printview_cb.length; i++) { // checkboxes
printview += this.cbLayout(this.settings_printview_cb[i][0]);
}
return printview;
};
Settings_jqUI.prototype.getMap = function () {
var map =
'<div style="border-bottom:1px solid;padding-bottom:10px;padding-top:10px">' +
' <b>' + $.gctour.lang('settings.map.type') + '</b><br>' +
' <select name="settingsMapType" id="settingsMapType" class="ui-widget ui-corner-all">';
$.each($.gctour.lang('settings.map.types'), function (key,val) {
map += ' <option value="' + val + '">' + key + '</option>';
});
map +=
' </select>' +
'</div>' +
'<div style="border-bottom:1px solid;padding-bottom:10px;padding-top:10px">' +
' <b>' + $.gctour.lang('settings.map.size') + '</b><br>' +
' <select name="settingsMapSize" id="settingsMapSize" class="ui-widget ui-corner-all">';
$.each($.gctour.lang('settings.map.sizes'), function (i,val) {
map += ' <option value="' + val + '">' + val + '</option>';
});
map +=
' </select>' +
'</div>';
var i;
for (i = 0; i < this.settings_map_cb.length; i++) { // checkboxes
map += this.cbLayout(this.settings_map_cb[i][0]);
}
return map;
};
Settings_jqUI.prototype.getGpx = function () {
var gpx = '';
var i;
for (i = 0; i < this.settings_gpx_cb.length - 2; i++) { // checkboxes
gpx += this.cbLayout(this.settings_gpx_cb[i][0]);
}
gpx +=
'<div id="maxLogCount" style="border-bottom:1px solid;padding-bottom:10px;padding-top:10px">' +
' <b>' + $.gctour.lang('settings.gpx.maxLogCount') + '</b><br>' +
' <input type="text" style="width: 2em;" class="gctour-input-text" maxlength="3">' +
'</div>';
gpx += this.cbLayout(this.settings_gpx_cb[this.settings_gpx_cb.length - 2][0]);
gpx += this.cbLayout(this.settings_gpx_cb[this.settings_gpx_cb.length - 1][0]);
return gpx;
};
Settings_jqUI.prototype.getSendToGPS = function () {
var send2gps = '';
send2gps +=
'<div style="border-bottom:1px solid;padding-bottom:10px;padding-top:10px">' +
' <label for="sendToGPS" class="gctour-label ui-widget-header ui-corner-all" style="padding: .1em .5em;">' + $.gctour.lang('settings.gps.selectSend2GPS') + '</label>' +
' <select name="sendToGPS" id="sendToGPS" class="ui-widget ui-corner-all">' +
' <option value="old">Old (Browser Plugin)</option>' +
' <option value="new">New (Garmin Express)</option>' +
' </select>' +
'</div>';
return send2gps;
};
Settings_jqUI.prototype.getThemes = function () {
var themes =
'<div id="ThemeSwitcher">' +
' <label for="selTheme" class="gctour-label ui-widget-header ui-corner-all" style="padding: .1em .5em;">' + $.gctour.lang('settings.theme.select') + '</label>' +
' <select id="selTheme" name="selTheme" class="ui-widget ui-corner-all">';
var themeArray = ["black-tie", "blitzer", "cupertino", "dark-hive", "dot-luv", "eggplant",
"excite-bike", "flick", "hot-sneaks", "humanity", "le-frog", "mint-choc", "overcast",
"pepper-grinder", "redmond", "smoothness", "south-street", "start", "sunny", "swanky-purse",
"trontastic", "ui-darkness", "ui-lightness", "vader"];
$.each(themeArray, function (i, theme) {
themes += ' <option value="' + theme + '">' + theme + '</option>';
});
themes +=
' </select>' +
'</div>';
return themes;
};
Settings_jqUI.prototype.getExportImport = function () {
var exp_imp =
'<div style="border-bottom:1px solid;padding-bottom:10px;padding-top:10px">' +
'<b>' + $.gctour.lang('settings.exportimport.export') + '</b><br>' +
'<button id="ExportButton">Export</button>' +
'</div>' +
'<div style="border-bottom:1px solid;padding-bottom:10px;padding-top:10px">' +
'<b>' + $.gctour.lang('settings.exportimport.import') + '</b><br>' +
'<input id="ImportButton" type="file" accept=".json" style="display:none;">' +
'<button onclick="document.getElementById(\'ImportButton\').click();">Import</button>' +
'</div>';
return exp_imp;
};
Settings_jqUI.prototype.show = function () {
// jQuery UI new settings menu
$(this.tabs).dialog($.gctour.dialog.info(), {
title : $.gctour.lang('settings.caption'),
width : '75%',
maxHeight : $(window).height() - 20,
resizable : false,
dialogClass : 'gct_dialog',
buttons : [{
text : $.gctour.lang('general.close'),
icons : {
primary : "ui-icon-closethick"
},
click : function () {
$(this).dialog("close");
}
}
]
});
// different font size on new search page necessary
if (document.URL.search("\/play\/search") >= 0) {
var $elem = $("div.ui-widget");
$elem.attr('style', $elem.attr('style') + ';' + 'font-size: 0.8em !important');
}
// tabs menu
$("div#tabs").tabs({
heightStyle : "content"
});
// pre-selections
this.getCurrentSettings();
// import/export settings
$("button").button();
$('#ImportButton').on("change", importGCTourSettings);
$('#ExportButton').on("click", exportGCTourSettings);
};
// pre-selection of current settings
Settings_jqUI.prototype.getCurrentSettings = function () {
var thiz = this;
// language
$("select#selLang").change(function (e) {
GM_setValue('language', $(this).val());
window.location.reload();
}).children("[value=" + GM_getValue('language', $.gctour.defaultLang) + "]").prop("selected", true);
// printview
var $radio = $('div#settingsLogCount input[type="radio"]'),
$text = $('div#settingsLogCount input[type="text"]'),
nLogs = GM_getValue('maxPrintLogs', 3);
if (nLogs === 0) { // no logs
$radio.eq(0).prop("checked", true);
} else { // fixed number of logs
$radio.eq(1).prop("checked", true);
$text.prop("value", nLogs);
}
$radio.eq(0).click(function (e) {
GM_setValue('maxPrintLogs', 0);
});
$radio.eq(1).click(function (e) {
GM_setValue('maxPrintLogs', $text.prop("value"));
});
$text.click(function (e) {
$radio.eq(1).prop("checked", true);
});
$text.keyup(function (e) {
thiz.checkInput($(this), 'maxPrintLogs');
});
$("select#settingsFontSize").change(function (e) {
GM_setValue('printFontSize', $(this).val());
}).children("[value=" + GM_getValue('printFontSize', 'x-small') + "]").prop("selected", true);
// maps
$("select#settingsMapType").change(function (e) {
GM_setValue('printOutlineMapType', $(this).val());
}).children("[value=" + GM_getValue('printOutlineMapType', 'roadmap') + "]").prop("selected", true);
$("select#settingsMapSize").change(function (e) {
GM_setValue('defaultMapSize', $(this).val());
}).children("[value=" + GM_getValue('defaultMapSize', 'large') + "]").prop("selected", true);
// GPSr
$("select#sendToGPS").change(function (e) {
GM_setValue('sendToGPS', $(this).val());
}).children("[value=" + GM_getValue('sendToGPS', 'old') + "]").prop("selected", true);
// gpx
var $text1 = $('div#maxLogCount input[type="text"]');
$text1.prop("value", GM_getValue('maxGPXLogs', 10));
$text1.keyup(function (e) {
thiz.checkInput($(this), 'maxGPXLogs');
});
// themes
$("select#selTheme").change(function (e) {
addJqUiTheme($(this).val());
GM_setValue('theme', $(this).val());
}).children("[value=" + GM_getValue('theme', 'smoothness') + "]").prop("selected", true);
// checkboxes
var settings_array = this.settings_printview_cb.concat(this.settings_map_cb).concat(this.settings_gpx_cb);
var thiz = this;
$("input.gct-ui-checkbox").each(function (i) {
var item = settings_array[i];
thiz.createCheckBox($(this), item[0], item[1], item[2]);
// pre-selection
if (GM_getValue(item[1], item[2])) { // is checked
$(this).prop('checked', true)
.button("option", {
icons : {
primary : "ui-icon-check"
}
}).button("refresh");
}
});
$("input.gct-ui-checkbox+label").css({
'float' : 'right',
'border-radius' : '3px',
'width' : '1em',
'height' : '1em',
'vertical-align' : 'middle'
});
};
// create checkboxes in jQuery UI style
Settings_jqUI.prototype.createCheckBox = function (elem, id, gmValue, dValue) {
elem.attr({
"id" : id
})
.prop({
"type" : "checkbox",
"checked" : false
})
.after($("<label>").attr({
for : id
}))
.button({
text : false
})
.click(function () {
var isChecked = GM_getValue(gmValue, dValue);
GM_setValue(gmValue, !isChecked); // toggle value
$(this).button("option", {
icons : {
primary : !isChecked ? "ui-icon-check" : ""
}
})
});
};
// layout template for checkboxes
Settings_jqUI.prototype.cbLayout = function (setting) {
return '<div style="border-bottom:1px solid;padding-bottom:10px;padding-top:10px">' +
' <input class="gct-ui-checkbox">' +
' <b>' + $.gctour.lang(setting) + '</b><br>' +
$.gctour.lang(setting + "Desc") +
'</div>'
};
// check for int values in input fields
Settings_jqUI.prototype.checkInput = function (elem, ident) {
var value = elem.prop("value"),
intOnly = new RegExp(/^\d+$/);
if (intOnly.test(value)) {
elem.css("backgroundColor", '');
GM_setValue(ident, value);
} else {
elem.css("backgroundColor", '#ff7f7f');
}
};
// adding a jQuery UI theme to the end of document's head section
function addJqUiTheme(theme) {
var thmURL = "https://ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/themes/" + theme + "/jquery-ui.css",
thmLink = $("<link>", {
id : "gct-ui-theme-link",
href : thmURL,
rel : "stylesheet",
type : "text/css"
});
$("head link#gct-ui-theme-link").remove(); // remove other theme(s) first
$("head").append(thmLink);
}
// export GCTour settings (including all tours)
function exportGCTourSettings() {
let settings = {};
for (let val of GM_listValues()) {
settings[val] = GM_getValue(val);
}
let file = new File([JSON.stringify(settings)], 'GCTour_Settings.json', {
type: "text/plain;charset=utf-8"
});
saveAs(file);
}
// import GCTour settings (including all tours)
function importGCTourSettings(evt) {
// check for the various File API support
if (window.File && window.FileReader && window.FileList && window.Blob) {
// Great success! All the File APIs are supported.
} else {
alert('Sorry, the File APIs are not fully supported in your browser. Please update your browser.');
return;
}
let f = evt.target.files[0],
reader = new FileReader();
// closure to capture the file information
reader.onload = (function (theFile) {
return function (e) {
// here comes the file content!
let content = e.target.result;
try {
let parsed = JSON.parse(content);
$.each(parsed, function(key, value) {
if (parsed[key]) {
GM_setValue(key, value);
}
});
if (console && console.table) { console.table(parsed); }
window.location.reload();
} catch (e) {
alert('File content not valid:\n' + e);
}
};
})(f);
reader.readAsText(f, "UTF-8");
}
/* autoTour */
// autoTour gui
async 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 kmMiles = $("select#markerRadiusUnit").prop("selectedIndex");
// 0: km, 1: miles
var radiusMiles = parseFloat(radiusOrg) * ((kmMiles == 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 = GS_HOST + "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 + " " + ((kmMiles == 1) ? "mi" : "km"));
$("b#markerCoordsPreview, b#markerRadiusPreview")
.css("background-color", "#FFE000")
.animate({
"background-color" : "transparent"
}, 2000);
// get how many caches are in this area
$('b#markerCountPreview, b#markerDurationMin, b#markerDurationSec').html("<img src='" + $.gctour.img.loader3 + "'>");
var loadingTime1 = new Date();
var response = await promiseRequest('GET', url);
var dummyDiv = $(response.responseText),
color,
pagesSpan = $("td.PageBuilderWidget", dummyDiv).first();
if (pagesSpan.length > 0) {
var cacheCount = $("b", pagesSpan).first().text(),
pageCount = $("b", pagesSpan).last().text();
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);
color = (cacheCount<500) ? "#FFE000" : "#FF0000";
} 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);
// enable the startQuery button
$('button#startQuery').removeAttr('disabled').css({
"opacity" : 1,
"cursor" : "pointer"
});
}
async function updateAutoTourMapNewSearch(lat, lon) {
// make the container visible
$('#autoTourContainer').show();
var radiusOrg = $.trim($("input#markerRadius").val());
if (isNaN(radiusOrg) || radiusOrg == "") { // break if radius is no number
return;
}
var kmMiles = $("select#markerRadiusUnit").prop("selectedIndex");
// 0: km, 1: miles
var radiusMiles = parseFloat(radiusOrg) * ((kmMiles == 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 = GS_HOST + 'play/search/@'+lat+','+lon+'?origin='+lat+','+lon+'&radius='+radiusMiles+'mi';
$('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 + " " + ((kmMiles == 1) ? "mi" : "km"));
$("b#markerCoordsPreview, b#markerRadiusPreview")
.css("background-color", "#FFE000")
.animate({
"background-color" : "transparent"
}, 2000);
// get how many caches are in this area
$('b#markerCountPreview, b#markerDurationMin, b#markerDurationSec').html("<img src='" + $.gctour.img.loader3 + "'>");
var loadingTime1 = new Date();
var response = await promiseRequest('GET', url);
var color;
var cacheCount = $('.controls-header',response.responseText).text().split(' ')[0].replace(/\D/g,'');
if (cacheCount > 0) {
var miliseconds = new Date() - loadingTime1;
var seconds = Math.floor((miliseconds * 3) / 1000);
var secondsMod = seconds % 60;
var minutes = (seconds - secondsMod) / 60;
$("b#markerCountPreview").html(cacheCount);
$("b#markerDurationMin").html(minutes);
$("b#markerDurationSec").html(secondsMod);
color = (cacheCount<500) ? "#FFE000" : "#FF0000";
} else {
$("b#markerCountPreview, b#markerDurationMin, b#markerDurationSec").html("0");
color = "#FF0000";
}
$("b#markerCountPreview")
.css("background-color", color)
.animate({
"background-color" : "transparent"
}, 5000);
// last, save the values
$('input#coordsDivLat').val(lat);
$('input#coordsDivLon').val(lon);
$('input#coordsDivRadius').val(radiusMiles);
// enable the startQuery button
$('button#startQuery').removeAttr('disabled').css({
"opacity" : 1,
"cursor" : "pointer"
});
}
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 = GS_HOST + "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;
}
async function startAutoTourNewSearch() {
var i,
typeFilter = {},
sizeFilter = {},
difficultyFilter = {},
terrainFilter = {},
specialFilter = {},
ele = $("#autoTourContainer"),
lat,
lon,
radius,
url,
index;
// get current filter settings
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();
// store current filter settings for re-use
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));
// map objects to arrays
typeFilter = $.map(typeFilter, function(value, key) {
return (value ? key : null);
});
sizeFilter = $.map(sizeFilter, function(value, key) {
index = SIZES_ARRAY.findIndex(obj => obj.sizeTypeId==key);
return (value && key !== 'not_chosen' ? SIZES_ARRAY[index].newSearchId : null); // ignore size 'not_chosen' (contained in 'other')
});
difficultyFilter = $.map(difficultyFilter, function(value, key) {
return (value ? key : null);
});
terrainFilter = $.map(terrainFilter, function(value, key) {
return (value ? key : null);
});
lat = ele.find("input#coordsDivLat").val();
lon = ele.find("input#coordsDivLon").val();
radius = ele.find("input#coordsDivRadius").val(); // miles
radius = Math.round(radius*1.609344*1000)/1000; // km
var isPMO = isPremiumUser();
var url_args = '';
url_args += '?origin=' + lat + ',' + lon + '&radius=' + radius + 'km';
url_args += typeFilter.length==12 ? '' : '&types=' + typeFilter.join(',');
if (isPMO) { // except type filtering all filter options are for PM only :(
url_args += sizeFilter.length==6 ? '' : '&sizes=' + sizeFilter.join(',');
// for difficulty and terrain only a single value or a range (2-3.5) are possible
url_args += difficultyFilter.length==9 ? '' : '&d=' + Math.min(...difficultyFilter) + '-' + Math.max(...difficultyFilter);
url_args += terrainFilter.length==9 ? '' : '&t=' + Math.min(...terrainFilter) + '-' + Math.max(...terrainFilter);
if (specialFilter["I haven't found "] === true) {
url_args += '&f=2';
}
if (specialFilter["is Active"] === true) {
url_args += '&e=1';
}
if (specialFilter["pm"] === 'only') {
url_args += '&p=1';
}
else if (specialFilter["pm"] === 'not') {
url_args += '&p=2';
}
if ($.isNumeric(specialFilter["minFavorites"]) && Number(specialFilter["minFavorites"]) > 0) {
url_args += '&fav=' + Number(specialFilter["minFavorites"]);
}
}
addProgressbar({
caption : $.gctour.lang('autoTour.wait'),
closeCallback : function () {
return function () {
closeOverlayRemote(document)();
};
}
});
// number of hits
var url_nHits = GS_HOST + 'play/search/@' + lat + ',' + lon + url_args;
var response = await promiseRequest('GET', url_nHits);
var nHits = $('.controls-header',response.responseText).text().split(' ')[0];
nHits = nHits.replace(/\D/g,''); // if nHits >=1000, e.g. 1,234 or 1.234 hits
// fetch hits (500 max.)
url = GS_HOST + 'play/search/more-results' + url_args + '&selectAll=false&startIndex=';
var nCalls = Math.ceil(nHits/50);
nCalls = Math.min(nCalls,10); // max. 500 caches = max. 10 calls
var promises = [];
var startIndex;
var url_fetchHits;
for (i=0; i<nCalls; i++) {
startIndex = i*50;
url_fetchHits = url + startIndex;
promises.push(promiseRequest('GET', url_fetchHits));
}
response = await Promise.all(promises);
difficultyFilter = difficultyFilter.map(Number);
terrainFilter = terrainFilter.map(Number);
var caches = [];
for (var i=0; i<response.length; i++) {
var parsedResponse = JSON.parse(response[i].responseText);
var $HtmlString = $(parsedResponse.HtmlString);
// find all <tr> in HtmlString (just in case):
//$('<div/>').append(parsedResponse.HtmlString).find('tr');
var $name = $HtmlString.find('.cache-name');
var $type_gccode = $HtmlString.find('.cache-details');
var $type_image = $HtmlString.find('.cache-type-img');
var $diff = $HtmlString.find('[data-column="Difficulty"]');
var $terr = $HtmlString.find('[data-column="Terrain"]');
var nCaches = $name.length;
for (var j=0; j<nCaches; j++) {
// if D/T of cache is not covered by filter then ignore this cache (filter not available for BM)
// (necessary since the new search accepts either single values or ranges)
if (isPMO &&
(difficultyFilter.indexOf(Number($($diff[j]).text().trim())) === -1 ||
terrainFilter.indexOf(Number($($terr[j]).text().trim())) === -1)) {
continue;
}
var cache = {};
cache.name = $($name[j]).text();
cache.id = $($type_gccode[j]).text().split('|')[1].trim();
cache.image = $($type_image[j]).html().split('icon-')[1].split('-')[0].split('"')[0];
cache.image = GS_HOST + GS_WPT_IMAGE_PATH + cache.image + '.gif';
caches.push(cache);
}
}
CURRENT_TOUR = {};
CURRENT_TOUR.id = getNewTourId();
CURRENT_TOUR.name = "autoTour " + CURRENT_TOUR.id;
CURRENT_TOUR.geocaches = caches;
TOURS.push(CURRENT_TOUR);
log("autoTour done - create new Tour: " + CURRENT_TOUR.id + " ; " + CURRENT_TOUR.name);
saveCurrentTour();
updateTour();
closeOverlay();
debug("fn startAutoTourNewSearch: " +
"\n\turl hits: " + url_nHits +
"\n\turl lazy load: " + url + 0 +
"\n\ttypeFilter: " + typeFilter.join(',') +
"\n\tsizeFilter: " + sizeFilter.join(',') +
"\n\tdFilter: " + difficultyFilter.join(',') +
"\n\ttFilter: " + terrainFilter.join(',') +
"\n\tspecialFilter: " + JSON.stringify(specialFilter) +
"\n\tnHits: " + nHits
);
}
async function getMarkerCoord() {
var markerCoords = $("input#markerCoords").val();
var coords = await parseCoordinates(markerCoords, true);
if (coords) {
if (AUTOTOUR_NEW) {
await updateAutoTourMapNewSearch(coords._lat, coords._lon);
} else {
await updateAutoTourMap(coords._lat, coords._lon);
}
} else { // Sehr seltener Fall wenn auch die google geolocate API versagt.
alert("'" + markerCoords + "' is not an address!");
}
}
function addCheckUncheckAllLinks($div) {
var checkboxes = $div.find('input[type=checkbox]'),
$all_none = $('<span>')
.append(
$('<a style="cursor:pointer;">').html('<i>' + $.gctour.lang('settings.printview.logCounts')[1] + '</i>').click(function () {
checkboxes.prop('checked', true);
}))
.append(' / ')
.append(
$('<a style="cursor:pointer;">').html('<i>' + $.gctour.lang('settings.printview.logCounts')[0] + '</i>').click(function () {
checkboxes.prop('checked', false);
}))
.append($('<br>'));
$all_none.insertBefore($div.find('span:first'));
$div.find('a')
.css({
'color' : '#00447c',
'text-decoration' : 'underline'
})
.hover(function () {
$(this).css("color", "#6c8e10");
}, function () {
$(this).css("color", "#00447c");
});
}
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')
},
initial = '{"I haven\'t found ":false,"is Active":false,"pm":"ignore","minFavorites":"0"}',
tq_filter = JSON.parse(GM_getValue('tq_specialFilter', initial));
// Beginn 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" : "150px"
});
$.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",
class : "gctour-input-checkbox",
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,
"class" : "gctour-label"
})
.text(value));
$div.append(
$checkbox,
$('<br>'));
});
$favorites = $('<input>', {
type : 'text',
id : 'special_favorites',
class : 'gctour-input-text',
value : tq_filter['minFavorites']
}).css({
'margin' : '4px 0 0 4px',
'width' : '40px'
});
$div.append(
$('<span>').text($.gctour.lang('autoTour.filter.special.minFavorites')),
$favorites,
$('<br>'));
return $div;
}
function getDtFiler(boxName) {
var $div,
$checkbox,
attributs,
tq_filter,
initial = '{"1":true,"2":true,"3":true,"4":true,"5":true,"1.5":true,"2.5":true,"3.5":true,"4.5":true}',
title;
if (boxName == 'Difficulty') {
tq_filter = JSON.parse(GM_getValue('tq_dFilter', initial));
title = $.gctour.lang('autoTour.filter.difficulty');
} else { // terrain
tq_filter = JSON.parse(GM_getValue('tq_tFilter', initial));
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,
class : "gctour-input-checkbox",
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,
"class" : "gctour-label"
})
.append(
$('<img>').attr("src", GS_HOST + "images/stars/stars" + ("" + i).replace(/\./g, "_") + ".gif").css({
"vertical-align" : "unset"
})));
$div.append(
$checkbox,
$('<br>'));
}
addCheckUncheckAllLinks($div);
return $div;
}
function getSizeFilter() {
var $div,
$checkbox,
attributs,
initial = '{"micro":true,"small":true,"regular":true,"large":true,"other":true,"not_chosen":true,"virtual":true}',
tq_filter = JSON.parse(GM_getValue('tq_sizeFilter', initial));
$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(SIZES_ARRAY, function (index, size) {
attributs = {
type : 'checkbox',
name : "size",
class : "gctour-input-checkbox",
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,
"class" : "gctour-label"
})
.append(
$('<img>').attr("src", GS_HOST + 'images/icons/container/' + size.sizeTypeId + '.gif').css({
"vertical-align" : "unset"
})));
$div.append(
$checkbox,
$('<br>'));
});
addCheckUncheckAllLinks($div);
return $div;
}
function getTypeFilter() {
var $div,
$checkbox,
attributs,
boo,
initial = '{"2":true,"3":true,"4":true,"5":true,"6":true,"8":true,"11":true,"13":true,"1858":true,"137":true,"453":true,"7005":true}',
tq_filter = JSON.parse(GM_getValue('tq_typeFilter', initial));
$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"
});
var wptArray_autoTour = WPT_ARRAY.slice(0, -1); // omit Lost and Found Events (last entry)
$.each(wptArray_autoTour, function (index, wpt) {
attributs = {
type : 'checkbox',
name : "type",
class : "gctour-input-checkbox",
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,
"class" : "gctour-label"
})
.append(
$('<img>').attr("src", GS_HOST + GS_WPT_IMAGE_PATH + wpt.wptTypeId + '.gif').css({
"vertical-align" : "unset"
})));
$div.append(
$checkbox,
(boo ? $('<br>') : ""));
});
addCheckUncheckAllLinks($div);
return $div;
}
function getLocateMeButton() {
var button = $("<button>", {
css : {
"margin-left" : 10,
"font-size" : 12,
"cursor" : "pointer"
},
html : "<img id='locateImage' src='" + $.gctour.img.locateMe + "'><span style='vertical-align:top;margin-left:3px;'>" + $.gctour.lang('general.findMe') + "</span>"
})
.click(function () {
if (navigator.geolocation) {
$('locateImage').attr("src", $.gctour.img.loader3);
navigator.geolocation.getCurrentPosition(
function (position) {
$('locateImage').attr("src", $.gctour.img.locateMe);
var latitude = position.coords.latitude;
var longitude = position.coords.longitude;
$("input#markerCoords").val(new LatLon(latitude, longitude).toString());
$("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'
});
var placeholder = 'N49° 26.082 E7° 46.587';
divEbene.innerHTML = '<b>' + $.gctour.lang('autoTour.center') + '</b>&nbsp;&nbsp;&nbsp;&nbsp;' +
'<input type="text" id="markerCoords" class="gctour-input-text" style="width:350px;" placeholder="' + placeholder + '"><br/>' +
'<small class="gctour-small">' + $.gctour.lang('autoTour.help') + '</small>';
coordsDiv.append(divEbene);
$("body").css("line-height", "1.5");
divEbene = createElement('div', {
className : 'ebene'
});
divEbene.innerHTML = '<b>' +
$.gctour.lang('autoTour.radius') +
'</b>&nbsp;&nbsp;&nbsp;&nbsp;' +
'<input type="text" id="markerRadius" class="gctour-input-text" 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('marker.coord') + ": <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', (AUTOTOUR_NEW ? startAutoTourNewSearch : startAutoTour) ));
return $submit;
}
async function showAutoTourDialog(center, radius) {
var overLay = getOverlay({
caption : '<b>' + $.gctour.lang('autoTour.title') + '</b>',
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(new LatLon(center.lat, center.lng).toString());
$("input#markerRadius").val(radius);
} else {
$("input#markerRadius").val(2);
// on cache page get center point from cache coordinates, else from profile settings
var latlon;
if (!(latlon = $('span#uxLatLon').text()))
latlon = await getHoomeCoords();
$('input#markerCoords')
.val(latlon)
.focus()
.select();
}
getMarkerCoord();
}
// waypoint projection, earth approx. as sphere (now working in northern and southern hemisphere)
function CalcPrjWP(lat, lon, dist, angle) {
var lat1 = parseFloat(lat), // degree
lon1 = parseFloat(lon), // degree
Dist = parseFloat(dist), // miles
Angle = parseFloat(angle), // degree
d,
R,
mile,
lat2,
lon2;
while (Angle > 360) {
Angle = Angle - 360;
}
while (Angle < 0) {
Angle = Angle + 360;
}
// calculations in rad
lat1 = lat1 / 180 * Math.PI;
lon1 = lon1 / 180 * Math.PI;
Angle = Angle / 180 * Math.PI;
R = 6371.0; // mean earth radius in km
mile = 1.609344;
d = Dist * mile / R; // distance in km
lat2 = Math.asin(Math.sin(lat1) * Math.cos(d) + Math.cos(lat1) * Math.sin(d) * Math.cos(-Angle));
if (Math.cos(lat1) == 0) {
lon2 = lon1;
} else {
lon2 = (lon1 - Math.asin(Math.sin(-Angle) * Math.sin(d) / Math.cos(lat1)) + Math.PI) % (2 * Math.PI) - Math.PI;
}
// results in deg
lat2 = lat2 / Math.PI * 180;
lon2 = lon2 / Math.PI * 180;
return [Math.round(lat2 * 100000) / 100000, Math.round(lon2 * 100000) / 100000];
}
// get home coordinates from profile settings
async function getHoomeCoords() {
var myUrl = GS_HOST + 'account/settings/homelocation',
response_div;
// get home coords
var response = await promiseRequest('GET', myUrl);
response_div = createElement('div');
response_div.innerHTML = response.responseText;
//var homeCoords = $('input#Query', response_div).val();
// first get script content, then extract coords (GS change, Aug 2017: coords wrapped in script)
var script_cont = $('script#tplSearchCoords', response_div).html();
var homeCoords = $('input#Query', script_cont).val();
return homeCoords;
}
// Changelog
function changelog() {
let div = '<div id="gct_changelog" style="width:100vw;background-color:#e0b70a;vertical-align:middle;text-align:center;display:table-cell;font-size:0.8rem;">'
+ $.gctour.lang('dlg.newVersion.changelog')
+ '<a href="https://gist.github.com/DieBatzen/5814dc7368c1034470c8/raw/gctour.zChangelog.txt" target="_blank">Changelog</a>'
+ '<img id="gct_close_changelog" title="' + $.gctour.lang('general.close') + '" style="cursor: pointer;float: right;margin-right: 10px;margin-top: 5px;" src="' + $.gctour.img.closebutton + '">'
+ '</div>';
$('body').prepend(div);
$('nav#gcNavigation').attr('style', 'position:static !important;font-size: 0.8rem;');
$('img#gct_close_changelog').click(function () {
$('div#gct_changelog').remove();
});
}
// installation counter and Changelog (idea from GC little helper II: https://github.com/2Abendsegler/GClh)
function instCount() {
let ver = GM_getValue("version","0");
if (ver < VERSION) { // script has been updated
GM_setValue("version",VERSION);
// show Changelog hint
changelog();
// counter
$(document.body).append('<div id="gct_counter1"><img src="https://www.worldflagcounter.com/dVE" style="visibility:hidden;"></div>');
$("#gct_counter1").remove();
$(document.body).append('<div id="gct_counter2"><img src="https://s05.flagcounter.com/count2/4f5t/bg_FFFFFF/txt_000000/border_CCCCCC/columns_4/maxflags_100/viewers_0/labels_0/pageviews_1/flags_0/percent_0/" style="visibility:hidden;"></div>');
$("#gct_counter2").remove();
}
}
// update notifier for Gist repository
async function update(force) {
var updateURL = GM_info.scriptMetaStr.split('updateURL')[1].split('// @')[0].trim();
var downloadURL = GM_info.scriptMetaStr.split('downloadURL')[1].split('// @')[0].trim();
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 update check is more than 86 400 000 msec (1 day) ago - check for updates
if ((currentDate.getTime() - updateDate.getTime() > 86400000) || (force === true)) {
instCount();
// set the new updateDate
GM_setValue('updateDate', currentDate.toString());
var response = await promiseRequest('GET', updateURL);
var text = response.responseText;
var ver_gist = text.split("version")[1].split("//")[0].trim();
if (VERSION >= ver_gist) { // no update available
log("update check: version " + VERSION + " is up to date");
if (force === true) {
alert($.gctour.lang('update.upToDate'));
}
return;
}
var overlayBody = getOverlay({
caption : $.gctour.lang('dlg.newVersion.caption'),
minimized : true
});
var updateMapping = [
['VERSION_OLD', VERSION],
['VERSION_NEW', ver_gist]
];
var confirmString = $.gctour.lang('update.dialog');
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 update url
var install_button = document.createElement('input');
install_button.type = "button";
install_button.value = $.gctour.lang('general.install');
install_button.style.backgroundImage = "url(" + $.gctour.img.userscript + ")";
install_button.addEventListener('click', function () {
setTimeout(closeOverlay, 500);
document.location = downloadURL;
}, true);
var close_button = document.createElement('input');
close_button.type = "button";
close_button.value = $.gctour.lang('general.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);
}
}
/* helper */
// 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;
}
// 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 within the string are removed as well
String.prototype.trimAll = function () {
return this.replace(/^\s+|(\s+(?!\S))/mg, "");
}
// replace all occurrences of str1 by str2 inside a string; optionally ignore case
// (http://dumpsite.com/forum/index.php?topic=4.msg29#msg29)
String.prototype.replaceAll = function(str1, str2, ignoreCase) {
return this.replace(new RegExp(str1.replace(/([\/\,\!\\\^\$\{\}\[\]\(\)\.\*\+\?\|\<\>\-\&])/g,"\\$&"),(ignoreCase?"gi":"g")),(typeof(str2)=="string")?str2.replace(/\$/g,"$$$$"):str2);
};
function gmNotice() {
let str_DE =
'<span>' +
'Ab Firefox Version 57, die Mitte November 2017 ansteht, wird GCTour mit Greasemonkey nicht mehr funktionieren. Den Grund dafür kann man hier nachlesen: ' +
'<a href="http://www.greasespot.net/2017/09/greasemonkey-4-announcement.html" target="_blank">Link.</a><br><br>' +
'Einfache Lösung: in Firefox eine andere Erweiterung für Userskripte verwenden, z.B. <a href="https://addons.mozilla.org/en-US/firefox/addon/tampermonkey/" target="_blank">Tampermonkey</a>. ' +
'Damit läuft GCTour weiterhin einwandfrei.<br>' +
'<ol><li>Zuerst alle GCTour-Einstellungen, inklusive aller Touren sichern (NEU): "Einstellungen - Export/Import - Export"' +
'<li>Greasemonkey deinstallieren oder deaktivieren ("about:addons")' +
'<li>Tampermonkey installieren: <a href="https://addons.mozilla.org/en-US/firefox/addon/tampermonkey/" target="_blank">Tampermonkey</a>' +
'<li>GCTour neu installieren: <a href="https://gctour.geocaching.cx/files/gctour.user.js" target="_blank">GCTour</a>' +
'<li>Alle GCTour-Einstellungen, inklusive aller Touren wiederherstellen (NEU): "Einstellungen - Export/Import - Import"' +
'</ol>' +
'</span>';
let str_EN =
'<span>' +
'As of Firefox version 57 in mid-November 2017, GCTour will no longer work with Greasemonkey. The reason for this can be read here: ' +
'<a href="http://www.greasespot.net/2017/09/greasemonkey-4-announcement.html" target="_blank">Link.</a><br><br>' +
'Simple solution: in Firefox use another extension for user scripts, for example <a href="https://addons.mozilla.org/en-US/firefox/addon/tampermonkey/" target="_blank">Tampermonkey</a>. ' +
'Thus GCTour continues to run flawlessly.<br>' +
'<ol><li>First save all GCTour settings, including all tours (NEW): "Settings - Export/Import - Export".' +
'<li>Uninstall or deactivate Greasemonkey ("about:addons")' +
'<li>Install Tampermonkey: <a href="https://addons.mozilla.org/en-US/firefox/addon/tampermonkey/" target="_blank">Tampermonkey</a>' +
'<li>Reinstall GCTour: <a href="https://gctour.geocaching.cx/files/gctour.user.js" target="_blank">GCTour</a>' +
'<li>Restore all GCTour settings, including all tours (NEW): "Settings - Export/Import - Import"' +
'</ol>' +
'</span>';
let str = str_DE + '<hr>' + str_EN;
$('<div>'+str+'</div>').dialog($.gctour.dialog.info(),{title: 'Hinweis / Notice',width: '75%',maxHeight: $(window).height() - 50});
$(".ui-button span").text($.gctour.lang('general.close'));
}
/* start */
// main
// don't run on frames or iframes, except on "send to GPS" page
if (window.top !== window.self && window.location.href.indexOf("/seek/sendtogps.aspx") <= 0) {
return;
}
// load time
if (DEBUG_MODE && console && console.time) {
console.time('GCTour load time');
}
/*
// check if async/await is available
var ver = Number($.browser.version.split('.')[0]);
if ((IS_FF && ver<52) || (IS_CHROME && ver<55)) {
$('<div>Um GCTour zu verwenden, bitte auf die neuste Browser-Version aktualisieren.<br><br>In order to use GCTour please update to the most recent browser version.</div>').dialog($.gctour.dialog.info(),{title: 'Hinweis / Hint'});
$(".ui-button span").text($.gctour.lang('general.close'));
}
*/
// still necessary to check for Opera???
if (IS_OPERA) {
// 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) and check for script update
initCore();
init();
// load time
if (DEBUG_MODE && console && console.timeEnd) {
console.timeEnd('GCTour load time');
}
update();
// clear outdated data from GCTour database (temporary, to be removed in later versions)
var toBeDeleted = ['debug_lastcachesite','debug_lastgcid','gpxschema','hideCacheDetails','progress','settings_map_gcde','uploadMap','date_format_update'];
$.each(toBeDeleted, function(key,val) {
if (GM_getValue(val)) { GM_deleteValue(val); }
});
}
if (IS_GREASEMONKEY && GM_getValue('gm_notice','null') === 'null') { // not set
GM_setValue('gm_notice',false);
gmNotice();
};
})(); // end of of immediately-invoked function expression
// ==UserScript==
// @version 4.7
// ==/UserScript==
4.7
- NEW: tours can now be saved as bookmark list (https://www.geocaching.com/account/lists) from the GCTour main window
- by that, all apps that support bookmark lists (e.g. Groundspeak app, Geocaching4Locus) can transfer tours directly as lists
- links to bookmark lists (and thus tours) can be shared among users
- lists feature is sadly PMO (Groundspeak decision)
- NEW: after script update a notification and link to the Changelog is shown at the top of each page once
- CHANGE: Changelog removed from script; now available in Gist repository
- CHANGE: GPX download: fav score now only gets downloaded if really necessary (i.e. if the prefix option in GPX settings is active)
- CHANGE: printPreview
- listing waypoints now aligned properly in table of cache listing
- print preview could have been completely empty if caches and own waypoints were suppressed at the same time - not anymore
- now it's ensured that images and cache notes always fit in preview page
- in print settings, improved explanation for option to suppress caches and own waypoints
- MISC: some code refactoring
4.6.4
- FIX: GPX download stopped working due to changes in required external script "FileSaver.min.js" (only newer GCTour installations are affected)
4.6.3
- CHANGE: results from old search (seek/nearest.aspx) are now handled more robust - preparation for future changes (credits to 2Abendsegler)
- FIX: GPX: waypoint types were not correct anymore due to a change by GS (wpttypes is now WptTypes)
- MISC: some small code changes
4.6.2
- CHANGE: unneeded login-check removed
- FIX: if third-party cookies are not accepted by Firefox, GCTour does not work as expected
--> the error message now gives the user a hint
4.6.1
- FIX: a Groundspeak update changed the table structure of additional waypoints in listings slightly
--> GPX download and print didn't work anymore
4.6
- NEW: export/import of settings and tours in tab Preferences - Export/Import
- UPDATED: save settings info now redirects to export/import section in preferences
- FIX: autoTour: did not work properly for Tampermonkey in Firefox
- MISC: GCTour will not work anymore for the combination Firefox >= 57 and Greasemonkey >= 4
(http://www.greasespot.net/2017/09/greasemonkey-4-announcement.html)
- if you continue to run earlier versions of Firefox ensure that Greasemonkey version is less than 4.0
- however, GCTour is working flawlessly in Tampermonkey for both, Firefox and Chrome
- GCTour 4.6 shows a notice once
- new exclamation mark icon in GCTour main window to open notice again, only visible when running Greasemonkey
- GCTour icon changed to exclamation mark, only visible when running Greasemonkey
4.5.2
- FIX: autoTour: GS changed the header layout back ... now both, new and old layout should work
4.5.1
- FIX: autoTour: GS changed the way how home coordinates are stored in the user profile. Therefore autoTour didn't work any more as expected on sites other than the map site.
- FIX: autoTour: on maps page the autoTour button was missing (cause: GS changed the header of all pages)
4.5
- NEW: caches and own waypoints can now be moved to another tour
- NEW: GPX: option to show the favorite score in front of the cache name (when in Geocaching menu of GPSr)
- UPDATE: new tabs opened by GCTour will now be opened in foreground (FF+Chrome)
- FIX: tour upload: PMO caches were deleted from tour when user is basic member; now they stay in tour (still don't get uploaded) and user gets notification
- FIX: sometimes GCTour main window not resized correctly
- FIX: GPX: ASCII control codes in short and long description could result in invalid GPX files; they are now removed from descriptions
- FIX: GPX and printview: log dates now show visited date (before: created date):
a log can be created today but the cache has been visited 2 weeks ago
- FIX: GPX: in header, time is now correct UTC time (before: UTC was stated but local time was used)
4.4.1
- FIX: exception "Permission denied to access property Symbol.toPrimitive" (reason: simultaneous calls of loadValue/saveValue; credits to 2Abendsegler for figuring out)
4.4
- NEW: GCTour now supports Chrome
- UPDATED: new async/await feature replaces all spawn/function generator functions; now we really can write asynchronous code as it were synchronous!
- UPDATED: enhanced error handling
- FIX: printview: favorite scores were not displayed completely
4.3.1
- FIX: after bulk deleting caches from a bookmark list the add to tour buttons were missing (credits to 2Abendsegler for the fix)
- FIX: cancel of a tour upload did not always close the progress bar (especially if something went wrong)
4.3
- NEW: sending a tour to GPS receiver is now possible in 2 ways (can be configured in GCTour settings):
1) using Garmin Communicator Plugin (old)
2) using Garmin Express (new)
- FIX: GPX: attribute "Special Tool Required" was missing
4.2
- NEW: tours can now be sorted by drag and drop
- NEW: tour list window can now be moved
- UPDATED: improved handling for cache logs: fetching in parallel and fetching only if more than 25 logs are requested
- UPDATED: GPX: "new Blob([gpxString]" replaced by "new File([gpxString]"
- UPDATED: Send2GPS: Beginning in Firefox version 52, support for Garmin Communicator Plugin in Firefox has ended
- FIX: in stored tours, own waypoint icons could still point to madd.in's original GCTour web page;
meanwhile the pages are no longer accessible and therefore the icons were not shown any more
- MISC: some code polishing
4.1.4
- FIX: GPX: HTML code in cache logs (leftover from GS change to Markdown logs) caused an error
4.1.3
- FIX: GPX: GSAK did not handle additional cache waypoints as child waypoints during import of GPX files
- FIX: GPX: dollar sign in cache descriptions could cause ill formatted GPX files
4.1.2
- FIX: preview tour on map: changed cache coordinates were not always updated in map preview
- FIX: GPX: ASCII control codes in logs resulted in invalid GPX files; they are now removed from logs
4.1.1
- FIX: Map: adding caches from the map to a tour didn't work any more due to the new cache icons
4.1
- NEW: printview: favorite points available as both, absolute and relative value
- NEW: printview settings: option to enable/disable printing for all cache listings and own waypoints
- FIX: sendToGPS: GS layout change
4.0.2
- FIXED: tour upload: did not work due to changes in 4.0.1
4.0.1
- FIXED: printview: did not work for tours with (approx.) more than 40 caches
4.0
- NEW: printview: favorite points available
- NEW: most data now fetched in parallel (as opposed to one by one) --> much faster
print preview, GPX download, send to GPS, upload tour, map preview
- FIXED: printview: prevent cache table getting too wide for large font sizes
- MISC: exchanged positions of GCTour Home and Save Settings Info buttons
3.2
- FIXED: Main menu: GCTour settings now work on new search page
- FIXED: Main menu: immediate numbering update when deleting a cache from a tour
- FIXED: info dialogs were not displayed properly on map and new search page (stylesheet was missing)
- FIXED: GPX: German umlauts, 'ß' and '-' now allowed in file names
- FIXED: autoTour: now works on new search page
- NEW: autoTour: check/uncheck all switch for filters
- NEW: Main menu: new info button on how to backup the complete GCTour settings, all tours and moved coordinates
- NEW: Main settings menu: layout change to jQuery UI dialog
- NEW: Main settings menu: theme roller (individual layout for all dialogs)
3.1
- FIXED: autoTour: map preview with circle now works on southern hemisphere, too
- FIXED: Main menu: immediate numbering update when adding new cache(s)
- FIXED: GPX: coord.info links reset to http from https
- FIXED: GPX: "<sym>Geocache Found</sym>" for Geocaches already found (thanks to Vasek)
- FIXED: printview: closing the progress bar now opens a confirmation dialog to cancel the print process
- UPDATED: autoTour: all filters are now enabled on first use
- UPDATED: Upload/Download Tour: new confirmation dialogs
- NEW: autoTour: filter option for Giga events
- NEW: GPX: new attribute "Geotour"
3.0.1
- FIXED: icons of own waypoints not displayed on downloaded tour
- FIXED: when editing own waypoints they lost their position inside the tour
- FIXED: when sorting a tour by drag and drop numbering did not update automatically
- NEW: check and notification for Chrome browser which is currently not supported
3.0
- FIXED: in printview, description formatting (line breaks etc) is preserved for additional cache waypoints
- FIXED: pm only caches for non-pm member are now detected properly
- FIXED: missing translations for "reload map" in printview
- UPDATED: switch of external Web server (preservation of main GCTour functionality); credits to Mark
- UPDATED: size of GCTour main window increased slightly
- UPDATED: update of get/post methods
- NEW: in printview, own waypoints can be added to cache table as opposed to a separate table (user option in main printview menu)
- MISC: new main version
- MISC: some code review
2.3.14271, revision 9
- FIXED: GPX file download was broken (missing file on external Web server); now independent of an external Web server
- NEW: update notifier for Gist repository; update check once a day
- MISC: some code review
2.3.14271, revision 8
- FIXED: display of last 4 logs in print preview is now independent of max. number of logs
- MISC: option "all" in Settings - Printview - Number of logs... disabled (didn't work anyway)
- MISC: some code review
2.3.14271, revision 7
- FIXED: autoTour didn't work from map when called from http (as opposed to https)
- NEW: automatic updates from Gist repository (probably checked once a week)
- MISC: improved code readability by applying a code beautifier
2.3.14271, revision 6
- FIXED: print issue in Firefox
- FIXED: number of logs in print preview was dependent of max. number of logs in GPX files
- NEW: GCTour now supports unpublished listings
- NEW: revision number in GPX files
2.3.14271, revision 5
- FIXED: adding caches to tour from bookmark and search lists: single, marked, all
- FIXED: completion of autoTour re-design part: German translations in dialog were missing
- FIXED: on GS public profile page boxes with owned caches/trackables were shown at the bottom of the page
- FIXED: route menu from "show caches on map" page removed (not working as expected)
- UPDATED: most links now use https instead of http
- UPDATED: improved visibility of buttons for adding all or marked caches from search/bookmark lists
- UPDATED: autoTour dialog now shows a center point on all pages (cache coordinates on cache pages and home coordinates from GS profile settings else)
- NEW: GitHub link to GCTour footer added
- NEW: revision to GCTour identifier added
- NEW: changelog for revisions added
2.3.14271, revision 4
- FIXED: GS layout changes
2.3.14271, revision 3
- FIXED: GS layout changes
- FIXED: send to GPS
- FIXED: change coordinates didn't work due to a conflict with script "Geocaching.com + Project-GC 1.4.9"
- FIXED: now all GS date formats work
2.3.14271, revision 2
- FIXED: GS layout changes
2.3.14271, revision 1
- MISC: initial import to https://gist.github.com/DieBatzen/5814dc7368c1034470c8
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"
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
2.3.14198
- FIXED: Printview is now working again
2.3.13263
- FIXED: gc.com update
2.3.13241
- NEW: Notifications with proper localisations and look
- FIXED: Issue 50 (Send to GPS always sends GC14PCD)
2.3.13239
- FIXED: Issue 45, 47 and 49
2.3.13018
- FIXED: Tour upload is working again
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
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
2.2.12059
- FIXED: autoTour menu button
- NEW: maps show now details if you click on a marker
2.2.12058
- FIXED: new geocaching.com maps are now supported again
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
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
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)
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
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
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)
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
2.0.11280
- FIXED: silent update changes from gc.com
2.0.11239
- FIXED: GPX bug
2.0.11206
- FIXED: GPX bug after gc.com update
- FIXED: Printview after gc.com update
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
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
1.97.11033
- FIXED: gccom layout change.
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
1.97.10356
- FIXED: GCTour is now working after gc.com update #2
1.97.10313
- FIXED: GCTour is now working after gc.com update
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/
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
1.95
- gc.com layout fixes
- repair the "add selected caches"-to-tour button
1.94
- hints are now in the printout again
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
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
1.91
- Fast GPX-File bugfix! Type of caches is now correctly set!
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
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
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
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
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)
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
1.4
- fixing bug, that premiummembers dont have coordinates in the printview
- adding logcounter to printview
1.3
- adding buttons to the search tables
- progress is now displayed in the print view and GPS Export
- adding language support
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
1.1
- extended printview - it is now possible export logs and remove images/logs
- update function is now working ...
1.0
- initial release
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment