lib2 cleanup

This commit is contained in:
following
2013-07-14 23:51:18 +02:00
parent ba345a49be
commit efea87abf9
7 changed files with 4 additions and 6212 deletions

View File

@@ -1,45 +0,0 @@
function load(lat, lon, id, url, garminKey, language)
{
var sFindDevicesButtonText = "Search device";
var sSuccessMessage = "Geocache saved successfully";
var nLat = lat;
var nLon = lon;
if (language == "DE")
{
sFindDevicesButtonText = "Geraet suchen";
sSuccessMessage = "Geocache wurde uebertragen";
}
var display = new Garmin.DeviceDisplay("garminDisplay",
{
pathKeyPairsArray: [url, garminKey],
showStatusElement: true, //basic feedback provided
unlockOnPageLoad: false, //delays unlocking to avoid authorization prompt until action
hideIfBrowserNotSupported: true,
showStatusElement: true, //provide minimal feedback
autoFindDevices: true, //it will search for devices upon action
findDevicesButtonText: sFindDevicesButtonText, //allows you to customize the action text
showCancelFindDevicesButton: true, //no need to cancel small data transfers
autoSelectFirstDevice: true, //pick the first device if several are found
autoReadData: false, //don't automatically read the tracks/etc
autoWriteData: true, //automatically write the data once devices found
showReadDataElement: false,
/*This is where the waypoint object is created and the necessary GPX is created.
* The plugin speaks GPX, but you (the developer) may not so simply use the
* Waypoint data structure to produce the GPX.
*/
getWriteData: function()
{
var waypoint = new Garmin.WayPoint(nLat, nLon, null, id);
var factory = new Garmin.GpsDataFactory();
var gpx = factory.produceGpxString(null, [waypoint]);
return gpx;
},
afterFinishWriteToDevice: function()
{
alert(sSuccessMessage);
}
});
}

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,4 @@
DO NOT DELETE any of the images in this directory, even after completely
discarding lib1. Some images are linked in cache descriptions, on OC.de
or on other sites which refer to OC.de listings.

View File

@@ -1,510 +0,0 @@
body
{
margin:0 0 0 0;
background-color:#eeeeee;
font-size:large;
font-family:verdana,arial,helvetica,helv,sans-serif;
}
img
{
border:0;
}
a
{
color:black;
text-decoration:underline;
}
a:hover
{
color:blue;
}
table
{
border-collapse:collapse;
}
input
{
border:1px solid black;
background-color:white;
color:black;
padding:1px;
font-size:11px;
}
#dwj
{
line-height:1.2em;
font-size:small;
font-family:Verdana,Arial,Helvetica,sans-serif;
margin-right:5px;
}
ul.menunew
{
padding-left: 0;
margin-left: 0;
text-decoration: none;
display: inline;
}
li.menunew
{
display:inline;
padding-left:0px;
padding-right:8px;
}
li.menunew-borderleft
{
display:inline;
padding-left:8px;
padding-right:8px;
border-left:1px black solid;
}
#menu
{
width:130px;
background-color:#F8F8F8;
}
#naviBox
{
position:relative;
font-family:sans-serif;
font-size:small;
border:1px solid #333333;
margin-right:4px;
margin-top:2px;
}
#naviBox a, .submenuItem a
{
color:black;
text-decoration:none;
}
#naviBox a:hover, .submenuItem a:hover
{
color:blue;
text-decoration:underline;
}
#breadcrumb
{
color:#505050;
font-size:x-small;
font-family:sans-serif;
border-bottom:1px solid #AAAAAA;
text-align:left;
margin-top:0.5ex;
margin-bottom:1ex;
line-height:3ex;
text-indent:1ex;
}
#footBox
{
border-top:thin solid silver;
text-align:left; /* Seiteninhalt wieder links ausrichten */
margin: 0 auto; /* standardkonforme horizontale Zentrierung */
font-family:verdana,arial,helvetica,helv,sans-serif;
font-size:x-small;
padding:1ex 1ex 1ex 1ex;
margin-top:1ex;
text-align:center;
}
#loginbox
{
font-family:sans-serif;
background-color:#E8DDE4;
border:1px solid black;
padding:10px 5px 10px 5px;
text-align:right;
font-size:small;
vertical-align:middle;
margin-right:2px;
}
#sessionWarn
{
font-family:sans-serif;
background-color:#E8DDE4;
border:1px solid black;
padding:10px 5px 10px 5px;
text-align:right;
font-size:small;
vertical-align:middle;
margin-right:2px;
display:none;
}
#sessionTimout
{
display:inline;
}
#infoBox
{
width:160px;
font-family:sans-serif;
border:1px solid black;
background:#DDDDDD;
padding-bottom:15px;
padding-top:15px;
text-align:center;
font-size:small;
}
.textboxes
{
border:1px solid black;
background-color:white;
padding:0px;
font-size:9px;
height:14px;
}
.checkbox
{
border:0;
}
.loginsubmit
{
background-color:white;
border:1px solid black;
padding:0px;
font-size:x-small;
}
/* left menu */
.submenu
{
width:155px;
border:1px solid #666666;
padding-left:5px;
font-family:sans-serif;
font-size:small;
margin-bottom:20px;
}
.submenuHead
{
height:9px;
}
.submenuFoot
{
height:9px;
}
.submenuItem
{
margin-top:3px;
margin-bottom:3px;
}
.submenuLevel1
{
}
.submenuLevel2
{
margin-left:13px;
}
.submenuLevel3
{
margin-left:26px;
}
.quicklinks
{
font-family:sans-serif;
font-size:small;
padding-left:1ex;
padding-right:1ex;
text-align:left;
width:165px;
border-left:1px solid #666666;
border-right:1px solid #666666;
}
.quicklinks a
{
color:black;
text-decoration:none;
}
.quicklinks a:hover
{
color:blue;
text-decoration:underline;
}
.quicklinksbottom
{
font-size:xx-small;
height:1ex;
border-left:1px solid #666666;
border-right:1px solid #666666;
border-bottom:1px solid #666666;
}
#quicklinksbox
{
width:165px;
background-color:#DDDDDD;
margin-left:1ex;
}
#quicklinkstop
{
line-height:3ex;
border:1px solid #666666;
font-family:sans-serif;
font-size:small;
padding-left:1ex;
padding-right:1ex;
text-align:left;
vertical-align:top;
padding-bottom:1px;
}
#content
{
padding-left:1ex;
font-family:verdana,arial,helvetica,helv,sans-serif;
font-size:small;
letter-spacing:0px;
line-height:3ex;
vertical-align:top;
padding:0ex 1ex 1ex 1ex;
margin-bottom:1ex;
vertical-align:top;
}
#content h1
{
font-family:sans-serif;
font-size:small;
text-align:justify;
}
#content h2
{
font-family:sans-serif;
font-size:small;
text-align:justify;
}
.ul_icons { margin-top:0px; margin-bottom:0px; } /* ul for action-links in viewcache */
/*New color white as for optimizing the printing*/
/*20091011 Uwe from Germany */
td.print
{
background-color:white;
}
/* styles for main content-table with new layout */
table.content
{
background-color:#E9E9E9;
width:100%;
font-size:small;
padding-left:0px;
padding-right:0px;
padding-top:0px;
padding-bottom:0px;
border-spacing:0;
}
td.spacer
{
height:5px;
}
td.header
{
background-color:#E6E2E6;
height:32px;
vertical-align:bottom;
padding-left:5px;
padding-right:5px;
border: 0px;
font-family:verdana,sans-serif;
}
td.header-small
{
background-color:#E6E2E6;
height:22px;
vertical-align:middle;
padding-left:5px;
padding-right:5px;
font-family:verdana,sans-serif;
font-weight:bold;
}
/*New color white as for optimizing the printing*/
/*20091011 Uwe from Germany */
td.spacer-print
{
background-color:white;
height:5px;
}
td.inner-print
{
background-color:white;
vertical-align:top;
border: 0px;
}
td.header-print
{
background-color:white;
height:32px;
vertical-align:bottom;
padding-left:5px;
padding-right:5px;
border: 0px;
font-family:verdana,sans-serif;
}
td.header-small-print
{
background-color:white;
height:22px;
vertical-align:middle;
padding-left:5px;
padding-right:5px;
font-family:verdana,sans-serif;
font-weight:bold;
}
/* End printing section */
/* for normal contents the next two definitions should have the same attributes */
table.content td
{
padding-left:5px;
padding-right:5px;
}
/* styles for inputfields */
input { border:1px solid black;
background-color:white;
padding:1px;
font-size:11px; }
*.input20 { width:20px; } /* day,month */
*.input30 { width:30px; }
*.input40 { width:40px; } /* year */
*.input50 { width:50px; }
*.input70 { width:70px; }
*.input100 { width:100px; } /* log-password */
*.input120 { width:120px; } /* emailadress */
*.input200 { width:200px; }
*.input300 { width:300px; }
*.input400 { width:400px; } /* short cachedescription */
input.checkbox { width:12px; height:12px; font-size:12px; border:0; }
input.radio { border:0px;
width:14px; height:14px; font-size:12px; }
textarea { border:1px solid black;
background-color:white;
padding:1px;
font-size:11px; }
textarea.cachedesc {width:600px; height:500px; } /* only cacheeditor */
textarea.hint { width:600px; height:200px; } /* only cacheditor */
textarea.logs { width:600px; height:300px; } /* only logeditor */
select { border:0px;
background-color:white;
padding:1px;
font-size:11px; }
form
{
display:inline;
}
input.formbuttons { background-color:white;
width:120px;
border:1px solid black;
padding:0px; }
.errormsg
{
color:red;
font-weight:bold;
}
.successmsg
{
color:green;
}
.warningmsg
{
color:blue;
}
.help
{
font-size:10px;
color:#666666;
}
/* Attribute auf der Suchseite */
div#attribs1 {
width: 620px;
padding: 0;
margin: 0;
}
div#attribs2 {
width: 620px;
padding: 0;
margin: 0;
}
/* CSS-Hack for Firefox */
:root div.attribgroup {
display: inline-block;
margin: 0px;
padding-right: 0.6em;
padding-bottom: 0.6em;
}
/* CSS-Hack for Chrome & Safari */
@media screen and (-webkit-min-device-pixel-ratio:0) {
div.attribgroup {
display: inline-block;
margin: 0px;
padding-right: 0.6em;
padding-bottom: 0.6em;
}
}
/* CSS-Hack for IE */
*div.attribgroup {
display: inline;
margin: 0px;
padding-right: 0.6em;
}
div.attribgroup table {
border-spacing: 0px;
display: inline;
}

View File

@@ -1,43 +0,0 @@
/***************************************************************************
* Opencaching PHP-Session timeout reminder implementation
*
* You can find the license in the docs directory of the CVS repository
*
* Unicode Reminder メモ
***************************************************************************/
var nSessionTimeout = 30; // in minutes (default 30)
nSessionTimeout -= 3; // tolerance
var bSetTimoutWarning = false;
function initSessionTimeout()
{
var d = document.getElementById('sessionTimout');
d.firstChild.nodeValue = nSessionTimeout;
var oSessionCheck = self.setInterval("checkSessionTimeout()", 60000);
}
function checkSessionTimeout()
{
var d = document.getElementById('sessionTimout');
d.firstChild.nodeValue = nSessionTimeout;
nSessionTimeout = nSessionTimeout - 1;
if (nSessionTimeout < 10 && bSetTimoutWarning==false)
{
document.getElementById('sessionWarn').style.display = 'block';
bSetTimoutWarning = true;
}
if (nSessionTimeout == 0)
{
self.location = 'login.php?action=logout';
self.clearInterval(oSessionCheck);
}
}
function cancelSessionTimeout()
{
alert(sSessionId);
}

File diff suppressed because it is too large Load Diff

View File

@@ -1,92 +0,0 @@
{***************************************************************************
* You can find the license in the docs directory
*
* Unicode Reminder メモ
***************************************************************************}
{* OCSTYLE - keine Änderungen *}
<form method="post" action="index.php">
<input type="hidden" name="commit" value="1" />
<table class="table">
<tr>
<td>{t}Username{/t}</td>
</tr>
<tr>
<td><input type="text" name="username" value="{$username|escape}" size="20" /></td>
</tr>
<tr>
<td>{t}Password{/t}</td>
</tr>
<tr>
<td><input type="password" name="password" value="" size="20" /></td>
</tr>
<tr>
<td>{t}OC-Waypoint{/t}</td>
</tr>
<tr>
<td><input type="text" name="waypoint" value="{$waypoint|escape}" size="6" /></td>
</tr>
<tr>
<td>{t}Date{/t}</td>
</tr>
<tr>
<td>
<select name="dateDay">
{section name=value start=1 loop=32 step=1}
<option value="{$smarty.section.value.index|escape}" {if $logdate.mday==$smarty.section.value.index}selected="selected"{/if}>{$smarty.section.value.index|escape}</option>
{/section}
</select>
.
<select name="dateMonth">
{section name=value start=1 loop=13 step=1}
<option value="{$smarty.section.value.index|escape}" {if $logdate.mon==$smarty.section.value.index}selected="selected"{/if}>{$smarty.section.value.index|escape}</option>
{/section}
</select>
.
<select name="dateYear">
{section name=value start=$curdate.year-1 loop=$curdate.year+2 step=1}
<option value="{$smarty.section.value.index|escape}" {if $logdate.year==$smarty.section.value.index}selected="selected"{/if}>{$smarty.section.value.index|escape}</option>
{/section}
</select>
</td>
</tr>
<tr>
<td>{t}Logtype{/t}</td>
</tr>
<tr>
<td>
<select name="logtype">
{foreach item=item key=idx from=$logtypes}
<option value="{$idx|escape}" {if $logtype==$idx}selected="selected"{/if}>{$item|escape}</option>
{/foreach}
</select>
</td>
</tr>
<tr>
<td>{t}Text{/t}</td>
</tr>
<tr>
<td>
<textarea name="text" rows="5" cols="17">{$logtext|escape}</textarea>
</td>
</tr>
<tr>
<td>
{t}Recommend this cache?{/t}<br />
<font size="2">{t}(only if you have free ratings){/t}</font>
</td>
</tr>
<tr>
<td align="right">
<select name="recommend">
<option value="0" {if !$recommend}selected="selected"{/if}>{t}No{/t}</option>
<option value="1" {if $recommend}selected="selected"{/if}>{t}Yes{/t}</option>
</select>
</td>
</tr>
<tr>
<td>
<input type="submit" value="{t}Submit{/t}" />
</td>
</tr>
</table>
</form>