Added index.html

For now, it's your job to find how to get this thing to work well with your http server (or morss')
master
pictuga 2014-05-18 12:37:02 +02:00
parent e8e7f170a6
commit b5bd0be3d3
1 changed files with 52 additions and 0 deletions

52
index.html 100644
View File

@ -0,0 +1,52 @@
<!DOCTYPE html>
<html>
<head>
<title>morss.it</title>
<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0;">
<meta charset="UTF-8" />
<style type="text/css">
body
{
padding : 2%;
margin : auto;
margin-top : 10px;
margin-bottom : 10px;
min-width: 70%;
max-width: 70px;
text-align : center;
}
input
{
display: block;
min-width: 50%;
margin: auto;
margin-top: 1em;
text-align : center;
}
</style>
</head>
<body>
<h1>morss</h1>
<p>Fill your RSS feeds.</p>
<form>
<input type="text" id="url" name="url" placeholder="Feed url (http://example.com/feed.xml)" />
</form>
<code>Copyright: pictuga 2013-2014<br/>
Source code: https://github.com/pictuga/morss</code>
<script>
form = document.forms[0]
form.addEventListener('submit', function(e)
{
console.log('lol');
url = form.elements[0].value.replace(/^https?:\/\/?/, '')
document.location = "./" + url;
e.preventDefault();
});
</script>
</body>
</html>