-
Notifications
You must be signed in to change notification settings - Fork 5
/
index.html
91 lines (91 loc) · 5.54 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
<!doctype html>
<html lang="de">
<head>
<meta charset="utf-8">
<title>Web to OSM Opening Hours - OSM_de Telegram edition</title>
<link rel="stylesheet" href="styles/styles.css">
<script src="https://momentjs.com/downloads/moment.min.js"></script>
<script src="https://code.jquery.com/jquery-1.12.4.min.js"></script>
<script>
for (
var includeFiles = [ "./scripts/day/addComma.js", "./scripts/day/addMissingZerosDays.js",
"./scripts/day/bindDaysTogether.js", "./scripts/day/combineDaysWithSameTimes.js",
"./scripts/day/detectNewDay.js", "./scripts/day/handleNumeralDates.js",
"./scripts/day/oneDaySpanCorrection.js", "./scripts/day/orderDaysAndTime.js",
"./scripts/day/pullDaysTogether.js", "./scripts/day/sortDays.js",
"./scripts/i18n/de/germanWords.js", "./scripts/i18n/de/replaceGermanMonths.js",
"./scripts/i18n/de/shortenDaysGer.js", "./scripts/i18n/en/englishWords.js",
"./scripts/i18n/en/replaceEnglishMonths.js", "./scripts/i18n/en/shortenDaysEng.js",
"./scripts/meta/addColon.js", "./scripts/meta/addMissingZeros.js",
"./scripts/meta/checkResult.js", "./scripts/meta/cleanUp.js",
"./scripts/meta/handleSortings.js", "./scripts/meta/removeUnNeededSpace.js",
"./scripts/meta/removeUnwantedText.js", "./scripts/meta/removeWrongColons.js",
"./scripts/meta/replaceComma.js", "./scripts/meta/replaceEmptyRule.js",
"./scripts/meta/replaceSymbols.js", "./scripts/month/addColonOnMonths.js",
"./scripts/month/addMonthsToEveryDays.js", "./scripts/month/cleanUpMonthRange.js",
"./scripts/month/combineSameMonths.js", "./scripts/month/correctMonthDays.js",
"./scripts/month/correctSyntaxBetweenMonthAndDay.js", "./scripts/month/handleMonthDays.js",
"./scripts/month/monthRangeEndCorrection.js", "./scripts/month/monthsAddSpace.js",
"./scripts/month/multipleSpecificDates.js", "./scripts/month/pullMonthsTogether.js",
"./scripts/month/removeAdditionalZeroesFromMonths.js", "./scripts/month/removeYearFromMonth.js",
"./scripts/month/seperateMonthAndDays.js", "./scripts/month/sortMonths.js",
"./scripts/month/switchDayAndMonthPosition.js", "./scripts/time/cutOverlappingTime.js",
"./scripts/time/detectNextTime.js", "./scripts/time/handleAdditiveTime.js",
"./scripts/time/handlePM.js", "./scripts/time/handleUnspecificClosingTime.js",
"./scripts/handleHTML.js", "./scripts/handleURL.js", "./scripts/main.js" ]
, index = 0; index < includeFiles.length; ++index
)
{
$.getScript(includeFiles[index].replace("./", "https://cdn.jsdelivr.net/gh/OSM-de/[email protected]/"));
}
</script>
</head>
<body>
<h1>Web to OSM Opening Hours — <a href="https://t.me/OSM_de">OSM_de Telegram</a> edition</h1>
<p>Info: URL Parsing only working partially</p>
<p>Paste free text or an URL where the opening hours can be found (will work if the website uses the <a href="https://schema.org/OpeningHoursSpecification" target="_blank">OpeningHours specification</a> of Schema.org)</p>
<p>This site is hosted by GitHub Pages from <a href="https://github.com/OSM-de/WebToOSMOH" target="_blank">@OSM_de's repository</a>.</p>
<form>
<table>
<tr>
<td class="top">
<big><b>Copy & Paste-area for website content (will be processed into text):</b></big><br/>
<div id="htmlArea" contenteditable class="textarea" placeholder="Paste a table here!!"></div>
</td>
<td class="lefttop">
<button type="button" onclick="handleHTMLinput();">Process</button>
</td>
</tr>
<tr>
<td class="top">
<big><b>Text input:</b></big><br/>
<textarea rows="9" id="inputArea" onblur="isURL()" placeholder="November bis Februar Montag - Freitag: 8.30 - 14.00 Uhr
13.03. bis 30.10.2019 Montag bis Freitag 7.30 - 15.00 Uhr"></textarea>
</td>
<td class="lefttop">
<button type="button" onclick="isURL()">Convert</button><br/>
<button type="reset">Clear</button>
</td>
</tr>
<tr>
<td class="top">
<big><b>Output:</b></big><br/>
<input type="text" id="outputArea" placeholder="Nov-Feb: Mo-Fr 08:30-14:00; Mar 13-Oct 30: Mo-Fr 07:30-15:00">
</td>
<td class="lefttop">
Auto copy to clipboard:<br/>
<small>
<input type="radio" name="autoCopy" value="n" id="autoCopy_1" checked="checked"/> <label for='autoCopy_1'>No</label><br/>
<input type="radio" name="autoCopy" value="y" id="autoCopy_2"/> <label for='autoCopy_2'>Yes</label><br/>
<input type="radio" name="autoCopy" value="o" id="autoCopy_3"/> <label for='autoCopy_3'>With <span style='font-family: monospace; font-size:1.25em'>opening_hours=</span> (For JOSM)</label></small>
</td>
</tr>
</table>
<img src="https://img.shields.io/badge/dynamic/json?color=%233866af&label=no.%20of%20conversions&query=%24.value&url=https%3A%2F%2Fapi.countapi.xyz%2Fget%2Fosm-de-telegram%2Fwebtoosmoh-usage&style=for-the-badge" id="usages"/>
<img src="https://img.shields.io/jsdelivr/gh/hm/OSM-de/WebToOSMOH?style=for-the-badge" id="jsDelivr"/><br/>
<button type="button" onclick="window.open('https://projets.pavie.info/yohours/?oh=' + document.getElementById('outputArea').value )">Check with YoHours</button>
<button type="button" onclick="window.open('https://openingh.openstreetmap.de/evaluation_tool/?EXP=' + document.getElementById('outputArea').value )">Check with opening_hours evaluation tool</button>
</form>
<p><small>This site is based on a Geometa Lab HSR project (<a href="https://gitlab.com/geometalab/web-to-osm-opening-hours/blob/master/README.md" target="_blank">repo</a>). Thanks for providing this!</small></p>
</body>
</html>