Skip to content

Commit

Permalink
Converted all source files to space indention.
Browse files Browse the repository at this point in the history
* git ls-files | egrep --invert-match '^.*?(taginfo.*.json|opening_hours\.js|evaluation_tool|submodules|Makefile|.gitmodules|\.png|\.xcf|\.gif)$' | xargs sed -i 's/\t/    /g
  • Loading branch information
ypid committed Sep 6, 2015
1 parent b2d6fed commit ec8e567
Show file tree
Hide file tree
Showing 6 changed files with 2,514 additions and 2,514 deletions.
122 changes: 61 additions & 61 deletions css/default.css
Original file line number Diff line number Diff line change
@@ -1,139 +1,139 @@
noscript { color: #AA4400 }
.olMap {
color: black;
color: black;
}

.olMap a {
background: transparent;
color: blue;
text-decoration: none;
background: transparent;
color: blue;
text-decoration: none;
}

.olControlAttribution {
bottom: 0.1em !important;
left: 0.1em;
right: auto !important;
bottom: 0.1em !important;
left: 0.1em;
right: auto !important;
}

.olControlLoadStatus {
left: 50px;
top: 10px;
left: 50px;
top: 10px;
}

.olControlMaplink {
right: 0.1em;
font-size: smaller;
right: 0.1em;
font-size: smaller;
}

#ml1 {
bottom: 4.2em;
bottom: 4.2em;
}

#ml2 {
bottom: 3.0em;
bottom: 3.0em;
}

.olControlMousePosition {
background: white;
bottom: 0.1em;
font-family: Monospace;
opacity: 0.7;
right: 0.1em;
background: white;
bottom: 0.1em;
font-family: Monospace;
opacity: 0.7;
right: 0.1em;
}

.olControlZoomstatus {
bottom: 1.5em;
left: 0px;
background: white;
opacity: 0.7;
bottom: 1.5em;
left: 0px;
background: white;
opacity: 0.7;
}

/* .olFramedCloudPopupContent { */
/* max-height: 400px; */
/* max-height: 400px; */
/* } */
/* */
/* .olFramedCloudPopupContent, */
/* .olFramedCloudPopupContent table { */
/* color: black; */
/* color: black; */
/* } */

.olFramedCloudPopupContent h3 {
font-size: 120%;
font-weight: bold;
margin: 0;
font-size: 120%;
font-weight: bold;
margin: 0;
}

.olFramedCloudPopupContent h3 img {
height: 16px;
width: 16px;
height: 16px;
width: 16px;
}

/* .olFramedCloudPopupContent td { */
/* background: transparent; */
/* margin: 0; */
/* padding: 0; */
/* background: transparent; */
/* margin: 0; */
/* padding: 0; */
/* } */
/* */
/* .olFramedCloudPopupContent p { */
/* font-size: xx-small; */
/* margin: 0 0 1em; */
/* text-align: right; */
/* font-size: xx-small; */
/* margin: 0 0 1em; */
/* text-align: right; */
/* } */

.olFramedCloudPopupContent hr {
display: none;
display: none;
}

.olFramedCloudPopupContent .v {
color:black;
background: #dddddd;
border: 1px solid gray;
font-family: Monospace;
color:black;
background: #dddddd;
border: 1px solid gray;
font-family: Monospace;
}

.olFramedCloudPopupContent .e {
background: red;
color: white;
font-weight: bold;
padding: 2px;
background: red;
color: white;
font-weight: bold;
padding: 2px;
}

.olFramedCloudPopupContent .m {
background: gray;
color: white;
font-weight: bold;
padding: 2px;
background: gray;
color: white;
font-weight: bold;
padding: 2px;
}

.olFramedCloudPopupContent .o {
color: blue;
color: blue;
}

.olFramedCloudPopupContent .c {
color: gray;
color: gray;
}

.olFramedCloudPopupContent .u {
color: red;
color: red;
}

.olFramedCloudPopupContent .t {
color: red;
color: red;
}

#map {
background: gray;
height:100%;
width:100%;
background: gray;
height:100%;
width:100%;
}
.olFramedCloudPopupContent {
overflow: auto !important;}

@media print {
.olControlMousePosition,
.olControlPanZoomBar,
.olControlPermalink,
.olControlZoomstatus {
display: none !important;
}
.olControlMousePosition,
.olControlPanZoomBar,
.olControlPermalink,
.olControlZoomstatus {
display: none !important;
}
}
160 changes: 80 additions & 80 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,108 +1,108 @@
<html>
<head><!-- {{{ -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Map with layer for the tag opening_hours based on OpenStreetMap</title>
<link rel="icon" type="image/png" href="favicon.png">
<meta name="description" content="Auswertung des Tags opening_hours auf einer Karte von OpenStreetMap" />
<script type="text/javascript" src="js/OpenLayers-2.13.1/OpenLayers.js"></script>
<script type="text/javascript" src="js/OpenStreetMap.js"></script>
<script type="text/javascript" src="js/popupmarker.js"></script>
<script type="text/javascript" src="js/loadstatus.js"></script>
<script type="text/javascript" src="js/zoomstatus.js"></script>
<script type="text/javascript" src="opening_hours.js/opening_hours+deps.min.js"></script>
<script type="text/javascript" src="js/main.js"></script>
<script type="text/javascript" src="opening_hours.js/node_modules/moment/min/moment-with-locales.min.js"></script>
<script type="text/javascript" src="opening_hours.js/js/i18n-resources.js"></script>
<script type="text/javascript" src="opening_hours.js/js/opening_hours_table.js"></script>
<script type="text/javascript" src="opening_hours.js/js/helpers.js"></script>
<link rel="stylesheet" href="opening_hours.js/css/table.css"/>
<link rel="stylesheet" href="css/default.css"/>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Map with layer for the tag opening_hours based on OpenStreetMap</title>
<link rel="icon" type="image/png" href="favicon.png">
<meta name="description" content="Auswertung des Tags opening_hours auf einer Karte von OpenStreetMap" />
<script type="text/javascript" src="js/OpenLayers-2.13.1/OpenLayers.js"></script>
<script type="text/javascript" src="js/OpenStreetMap.js"></script>
<script type="text/javascript" src="js/popupmarker.js"></script>
<script type="text/javascript" src="js/loadstatus.js"></script>
<script type="text/javascript" src="js/zoomstatus.js"></script>
<script type="text/javascript" src="opening_hours.js/opening_hours+deps.min.js"></script>
<script type="text/javascript" src="js/main.js"></script>
<script type="text/javascript" src="opening_hours.js/node_modules/moment/min/moment-with-locales.min.js"></script>
<script type="text/javascript" src="opening_hours.js/js/i18n-resources.js"></script>
<script type="text/javascript" src="opening_hours.js/js/opening_hours_table.js"></script>
<script type="text/javascript" src="opening_hours.js/js/helpers.js"></script>
<link rel="stylesheet" href="opening_hours.js/css/table.css"/>
<link rel="stylesheet" href="css/default.css"/>
</head> <!-- }}} -->
<body><!-- {{{ -->
<noscript>You don‘t have JavaScript enabled and thats a good thing but this tool makes heavy use of JavaScript so you need to enable it in order to use this tool. If you don’t trust the code that is going to be executed that is good as well. I encourage you to read all the source code on <a href="https://github.com/ypid/opening_hours.js">Github</a>. Also note that every commit and all releases are gpg signed. You might want to check this out as well :) Stay safe.</noscript>
<div id="map"></div>

<script type="text/javascript">
document.write('<h1>' + i18n.t('texts.heading map') + '</h1>');
document.title = i18n.t('texts.heading map');
document.write(getUserSelectTranslateHTMLCode());
document.write('<h1>' + i18n.t('texts.heading map') + '</h1>');
document.title = i18n.t('texts.heading map');
document.write(getUserSelectTranslateHTMLCode());

function submitenter(myfield,e) {
var keycode;
if (window.event) {
keycode = window.event.keyCode;
}
else if (e) {
keycode = e.which;
}
else {
return true;
}
function submitenter(myfield,e) {
var keycode;
if (window.event) {
keycode = window.event.keyCode;
}
else if (e) {
keycode = e.which;
}
else {
return true;
}

if (keycode == 13) {
useUserKey(document.getElementById(myfield.id).value);
keyChanged();
return false;
} else {
return true;
}
}
if (keycode == 13) {
useUserKey(document.getElementById(myfield.id).value);
keyChanged();
return false;
} else {
return true;
}
}
</script>

<div id="tag_selector">
<script type="text/javascript">
document.write('<strong>' + i18n.t('texts.config POIs') + '</strong>:');
</script>
<select id="tag_selector_input" name="tag_selector_input">
<script type="text/javascript">
for (var tag in tags_to_mode) {
document.write('<option value="' + tags_to_mode[tag][1] + '">' + tag + '</option>');
}
</script>
</select>
<form id="userKey" action="">
<input id="key" style="width:20%" name="key" onKeyPress="return submitenter(this,event)" />
</form>
<script type="text/javascript">
document.write('<strong>' + i18n.t('texts.config POIs') + '</strong>:');
</script>
<select id="tag_selector_input" name="tag_selector_input">
<script type="text/javascript">
for (var tag in tags_to_mode) {
document.write('<option value="' + tags_to_mode[tag][1] + '">' + tag + '</option>');
}
</script>
</select>
<form id="userKey" action="">
<input id="key" style="width:20%" name="key" onKeyPress="return submitenter(this,event)" />
</form>
</div>

<script type="text/javascript">
document.write(i18n.t('texts.map is showing', { wikiUrl: wiki_url }));
document.write('<ul>');
document.write('<li>' + i18n.t('words.green') + ': ' + i18n.t('texts.open now') + '</li>');
document.write('<li>' + i18n.t('words.yellow') + ': ' + i18n.t('texts.unknown now') + '</li>');
document.write('<li>' + i18n.t('words.red') + ': ' + i18n.t('texts.closed now') + '</li>');
document.write('<li>' + i18n.t('words.violet') + ': ' + i18n.t('texts.error') + '</li>');
document.write('</ul>');
document.write(i18n.t('texts.warning', { sign: '<q>W</q>' }));
document.write(i18n.t('texts.map is showing', { wikiUrl: wiki_url }));
document.write('<ul>');
document.write('<li>' + i18n.t('words.green') + ': ' + i18n.t('texts.open now') + '</li>');
document.write('<li>' + i18n.t('words.yellow') + ': ' + i18n.t('texts.unknown now') + '</li>');
document.write('<li>' + i18n.t('words.red') + ': ' + i18n.t('texts.closed now') + '</li>');
document.write('<li>' + i18n.t('words.violet') + ': ' + i18n.t('texts.error') + '</li>');
document.write('</ul>');
document.write(i18n.t('texts.warning', { sign: '<q>W</q>' }));
</script>
</p>

<div id="filter_selector"><p>
<script type="text/javascript">
document.write(i18n.t('texts.map filter'));
document.write('<form name="filter_form">');
var showFilterOptions = ['none', 'error', 'warnOnly', 'errorOnly', 'open', 'unknown', 'closed', 'openOrUnknown'];
for (var i = 0; i < showFilterOptions.length; i++) {
var filter_id = showFilterOptions[i];
document.write('<label><input type="radio" name="filter"'
+ ' value="' + filter_id + '"'
+ ' id="filter_form_' + filter_id + '"'
+ ' onclick="applyNewFilter(this)">' + i18n.t('texts.filter.' + filter_id) + '</input></label><br>');
}
document.write('</form>');
document.getElementById('filter_form_none').checked = true;
document.write(i18n.t('texts.map filter'));
document.write('<form name="filter_form">');
var showFilterOptions = ['none', 'error', 'warnOnly', 'errorOnly', 'open', 'unknown', 'closed', 'openOrUnknown'];
for (var i = 0; i < showFilterOptions.length; i++) {
var filter_id = showFilterOptions[i];
document.write('<label><input type="radio" name="filter"'
+ ' value="' + filter_id + '"'
+ ' id="filter_form_' + filter_id + '"'
+ ' onclick="applyNewFilter(this)">' + i18n.t('texts.filter.' + filter_id) + '</input></label><br>');
}
document.write('</form>');
document.getElementById('filter_form_none').checked = true;
</script>
</p></div>

<script type="text/javascript">
document.write('</p><p>');
document.write(i18n.t('texts.data source', {
APIaTag: '<a href="http://overpass-api.de/">Overpass API</a>',
OSMaTag: '<a href="https://www.openstreetmap.org/copyright">© OpenStreetMap contributors</a>',
OSMStartaTag: '<a href="https://www.openstreetmap.org/">OpenStreetMap</a>',
}) + '<br />');
document.write(i18n.t('texts.this website', { url: repo_url, hoster: 'GitHub' }));
document.write('</p>');
document.write('</p><p>');
document.write(i18n.t('texts.data source', {
APIaTag: '<a href="http://overpass-api.de/">Overpass API</a>',
OSMaTag: '<a href="https://www.openstreetmap.org/copyright">© OpenStreetMap contributors</a>',
OSMStartaTag: '<a href="https://www.openstreetmap.org/">OpenStreetMap</a>',
}) + '<br />');
document.write(i18n.t('texts.this website', { url: repo_url, hoster: 'GitHub' }));
document.write('</p>');
</script>

</body>
Expand Down
Loading

0 comments on commit ec8e567

Please sign in to comment.