1
0
mirror of https://github.com/comatory/fb2iCal synced 2025-06-05 22:09:25 +02:00

allow passing FB event number as parameter

This commit is contained in:
Ondrej Synacek
2019-10-22 20:25:09 +02:00
parent 97317aeaa4
commit acebfe3658
8 changed files with 78 additions and 31 deletions

View File

@@ -5,7 +5,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="manifest" href="/manifest.json">
<link rel="apple-touch-icon" sizes="180x180" href="/icon-180.png">
<link rel="stylesheet" type="text/css" href="/style.css?2">
<link rel="stylesheet" type="text/css" href="/style.css?3">
<title>Facebook Event to iCal Converter</title>
</head>
@@ -24,7 +24,14 @@
</p>
<form action='/download' method='POST' id="form">
<input id="url" type='text' name='url' placeholder='Paste / type FB event URL here...' />
<input
required
pattern="^(http:\/\/www\.|https:\/\/www\.|http:\/\/|https:\/\/)?[a-z0-9]+([\-\.]{1}[a-z0-9]+)*\.[a-z]{2,5}(:[0-9]{1,5})?(\/.*)?|\d+$"
id="url"
name="url"
placeholder="Paste / type FB event URL or event number..."
title="Please insert Facebook Event URL / Number"
/>
<input id="submit" type='submit' value='Submit' />
</form>
@@ -71,6 +78,6 @@
<a href="#" title="Source code coming soon">Source</a>
</footer>
<script src="/scripts.js?2"></script>
<script src="/scripts.js?3"></script>
</body>
</html>