Facebook-Events-iCal-Converter/lib/views/index.ejs

85 lines
2.5 KiB
Plaintext

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<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?5">
<title>Facebook Event to iCal Converter</title>
</head>
<body>
<header>
<a id="current-download" href="javascript:void(0)"></a>
<img id="logo" src="/icon-512.png" />
<h1>Facebook Events to iCal Converter</h1>
</header>
<article id="main">
<p>
Insert Facebook event URL / event number into the form.
When you submit it you will get <a href="https://en.wikipedia.org/wiki/ICalendar"><code>ics</code></a>
file that you can import into your calendar. <strong>Only public events are supported.</strong>
</p>
<form action='/download' method='POST' id="form">
<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>
<div id="status">
<div class="status-item" id="network">
Fetching file...
</div>
<div class="status-item" id="parsing">
Parsing data...
</div>
<div class="status-item" id="error">
</div>
<div class="status-item" id="service-worker">
</div>
</div>
<br />
<label for="nojs">
<input id="nojs" type="checkbox" />
No JavaScript
</label>
<br />
<br />
<div class="list-wrapper">
<table id="list" class="hidden">
<thead>
<tr>
<td>#</td>
<td>Link</td>
<td>Created at</td>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
</article>
<footer>
Created by <a href="https://ondrejsynacek.com" target="_blank">Ondrej Synacek</a> (2019) ◆
<a href="https://github.com/comatory/fb2iCal" target="_blank" title="Github">Source</a> ◆
<a href="/about" target="_blank" title="About the project">About</about>
</footer>
<script src="/scripts.js?4"></script>
</body>
</html>