annotate app/views/tweets/index.html.erb @ 115:c712d307e197

Gem updates
author nanaya <me@myconan.net>
date Sun, 12 Feb 2017 16:46:26 +0900
parents 394235fd42d2
children 32c8c150cd80
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
8
86abbc9ce81b Add static controller.
edogawaconan <me@myconan.net>
parents:
diff changeset
1 <!DOCTYPE html>
86abbc9ce81b Add static controller.
edogawaconan <me@myconan.net>
parents:
diff changeset
2 <head>
86abbc9ce81b Add static controller.
edogawaconan <me@myconan.net>
parents:
diff changeset
3 <title>rsstweet</title>
86abbc9ce81b Add static controller.
edogawaconan <me@myconan.net>
parents:
diff changeset
4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
114
394235fd42d2 Fancy index page
nanaya <me@myconan.net>
parents: 52
diff changeset
5 <meta name="viewport" content="width=device-width, initial-scale=1.0">
51
d4bda7501b77 Less serif.
nanaya <me@myconan.net>
parents: 38
diff changeset
6
d4bda7501b77 Less serif.
nanaya <me@myconan.net>
parents: 38
diff changeset
7 <style type="text/css">
114
394235fd42d2 Fancy index page
nanaya <me@myconan.net>
parents: 52
diff changeset
8 *, *::before, *::after {
394235fd42d2 Fancy index page
nanaya <me@myconan.net>
parents: 52
diff changeset
9 box-sizing: border-box;
394235fd42d2 Fancy index page
nanaya <me@myconan.net>
parents: 52
diff changeset
10 }
394235fd42d2 Fancy index page
nanaya <me@myconan.net>
parents: 52
diff changeset
11
394235fd42d2 Fancy index page
nanaya <me@myconan.net>
parents: 52
diff changeset
12 html {
394235fd42d2 Fancy index page
nanaya <me@myconan.net>
parents: 52
diff changeset
13 line-height: 1.5;
394235fd42d2 Fancy index page
nanaya <me@myconan.net>
parents: 52
diff changeset
14 font-family: Arial, sans-serif;
394235fd42d2 Fancy index page
nanaya <me@myconan.net>
parents: 52
diff changeset
15 font-size: 14px;
394235fd42d2 Fancy index page
nanaya <me@myconan.net>
parents: 52
diff changeset
16 height: 100%;
394235fd42d2 Fancy index page
nanaya <me@myconan.net>
parents: 52
diff changeset
17 }
394235fd42d2 Fancy index page
nanaya <me@myconan.net>
parents: 52
diff changeset
18
394235fd42d2 Fancy index page
nanaya <me@myconan.net>
parents: 52
diff changeset
19 code {
394235fd42d2 Fancy index page
nanaya <me@myconan.net>
parents: 52
diff changeset
20 font-family: "Courier New", monospace;
394235fd42d2 Fancy index page
nanaya <me@myconan.net>
parents: 52
diff changeset
21 }
394235fd42d2 Fancy index page
nanaya <me@myconan.net>
parents: 52
diff changeset
22
394235fd42d2 Fancy index page
nanaya <me@myconan.net>
parents: 52
diff changeset
23 .main {
394235fd42d2 Fancy index page
nanaya <me@myconan.net>
parents: 52
diff changeset
24 margin: auto;
394235fd42d2 Fancy index page
nanaya <me@myconan.net>
parents: 52
diff changeset
25 max-width: 600px;
394235fd42d2 Fancy index page
nanaya <me@myconan.net>
parents: 52
diff changeset
26 width: 100%;
394235fd42d2 Fancy index page
nanaya <me@myconan.net>
parents: 52
diff changeset
27 display: flex;
394235fd42d2 Fancy index page
nanaya <me@myconan.net>
parents: 52
diff changeset
28 flex-direction: column;
394235fd42d2 Fancy index page
nanaya <me@myconan.net>
parents: 52
diff changeset
29 height: 100%;
394235fd42d2 Fancy index page
nanaya <me@myconan.net>
parents: 52
diff changeset
30 padding: 0 10px;
394235fd42d2 Fancy index page
nanaya <me@myconan.net>
parents: 52
diff changeset
31 }
394235fd42d2 Fancy index page
nanaya <me@myconan.net>
parents: 52
diff changeset
32
394235fd42d2 Fancy index page
nanaya <me@myconan.net>
parents: 52
diff changeset
33 .main__content {
394235fd42d2 Fancy index page
nanaya <me@myconan.net>
parents: 52
diff changeset
34 flex: 1;
394235fd42d2 Fancy index page
nanaya <me@myconan.net>
parents: 52
diff changeset
35 }
394235fd42d2 Fancy index page
nanaya <me@myconan.net>
parents: 52
diff changeset
36
394235fd42d2 Fancy index page
nanaya <me@myconan.net>
parents: 52
diff changeset
37 .main__footer {
394235fd42d2 Fancy index page
nanaya <me@myconan.net>
parents: 52
diff changeset
38 padding-bottom: 10px;
394235fd42d2 Fancy index page
nanaya <me@myconan.net>
parents: 52
diff changeset
39 }
394235fd42d2 Fancy index page
nanaya <me@myconan.net>
parents: 52
diff changeset
40
394235fd42d2 Fancy index page
nanaya <me@myconan.net>
parents: 52
diff changeset
41 .twitter-form {
394235fd42d2 Fancy index page
nanaya <me@myconan.net>
parents: 52
diff changeset
42 width: 100%;
394235fd42d2 Fancy index page
nanaya <me@myconan.net>
parents: 52
diff changeset
43 display: flex;
394235fd42d2 Fancy index page
nanaya <me@myconan.net>
parents: 52
diff changeset
44 align-items: center;
394235fd42d2 Fancy index page
nanaya <me@myconan.net>
parents: 52
diff changeset
45 }
394235fd42d2 Fancy index page
nanaya <me@myconan.net>
parents: 52
diff changeset
46
394235fd42d2 Fancy index page
nanaya <me@myconan.net>
parents: 52
diff changeset
47 .twitter-form__input {
394235fd42d2 Fancy index page
nanaya <me@myconan.net>
parents: 52
diff changeset
48 flex: 1;
394235fd42d2 Fancy index page
nanaya <me@myconan.net>
parents: 52
diff changeset
49 margin-right: 5px;
394235fd42d2 Fancy index page
nanaya <me@myconan.net>
parents: 52
diff changeset
50 font-family: "Courier New", monospace;
394235fd42d2 Fancy index page
nanaya <me@myconan.net>
parents: 52
diff changeset
51 font-size: 16px;
51
d4bda7501b77 Less serif.
nanaya <me@myconan.net>
parents: 38
diff changeset
52 }
d4bda7501b77 Less serif.
nanaya <me@myconan.net>
parents: 38
diff changeset
53 </style>
8
86abbc9ce81b Add static controller.
edogawaconan <me@myconan.net>
parents:
diff changeset
54 </head>
114
394235fd42d2 Fancy index page
nanaya <me@myconan.net>
parents: 52
diff changeset
55 <body class="main">
394235fd42d2 Fancy index page
nanaya <me@myconan.net>
parents: 52
diff changeset
56 <div class="main__content">
394235fd42d2 Fancy index page
nanaya <me@myconan.net>
parents: 52
diff changeset
57 <h1>rsstweet</h1>
394235fd42d2 Fancy index page
nanaya <me@myconan.net>
parents: 52
diff changeset
58 <p>
394235fd42d2 Fancy index page
nanaya <me@myconan.net>
parents: 52
diff changeset
59 Proxying any user's tweet for usage with RSS readers.
394235fd42d2 Fancy index page
nanaya <me@myconan.net>
parents: 52
diff changeset
60 Doesn't actually output <code>rss</code> but generates <code>atom</code> instead.
394235fd42d2 Fancy index page
nanaya <me@myconan.net>
parents: 52
diff changeset
61 Not that it matters because either way it works with any RSS readers.
394235fd42d2 Fancy index page
nanaya <me@myconan.net>
parents: 52
diff changeset
62 </p>
394235fd42d2 Fancy index page
nanaya <me@myconan.net>
parents: 52
diff changeset
63
394235fd42d2 Fancy index page
nanaya <me@myconan.net>
parents: 52
diff changeset
64 <form class="js-twitter--form twitter-form">
394235fd42d2 Fancy index page
nanaya <me@myconan.net>
parents: 52
diff changeset
65 <input type="text" placeholder="Enter Username" class="js-twitter--input twitter-form__input" autofocus>
394235fd42d2 Fancy index page
nanaya <me@myconan.net>
parents: 52
diff changeset
66 <button type="submit">
394235fd42d2 Fancy index page
nanaya <me@myconan.net>
parents: 52
diff changeset
67 Go
394235fd42d2 Fancy index page
nanaya <me@myconan.net>
parents: 52
diff changeset
68 </button>
394235fd42d2 Fancy index page
nanaya <me@myconan.net>
parents: 52
diff changeset
69 </form>
394235fd42d2 Fancy index page
nanaya <me@myconan.net>
parents: 52
diff changeset
70 </div>
394235fd42d2 Fancy index page
nanaya <me@myconan.net>
parents: 52
diff changeset
71 <div class="main__footer">
394235fd42d2 Fancy index page
nanaya <me@myconan.net>
parents: 52
diff changeset
72 <hr>
394235fd42d2 Fancy index page
nanaya <me@myconan.net>
parents: 52
diff changeset
73 <a href="https://bitbucket.org/nanaya1/rsstweet">Source</a>
394235fd42d2 Fancy index page
nanaya <me@myconan.net>
parents: 52
diff changeset
74 </div>
394235fd42d2 Fancy index page
nanaya <me@myconan.net>
parents: 52
diff changeset
75
394235fd42d2 Fancy index page
nanaya <me@myconan.net>
parents: 52
diff changeset
76 <script>
394235fd42d2 Fancy index page
nanaya <me@myconan.net>
parents: 52
diff changeset
77 var form = document.getElementsByClassName('js-twitter--form')[0]
394235fd42d2 Fancy index page
nanaya <me@myconan.net>
parents: 52
diff changeset
78 var input = document.getElementsByClassName('js-twitter--input')[0]
394235fd42d2 Fancy index page
nanaya <me@myconan.net>
parents: 52
diff changeset
79 var doRedirect = function(e) {
394235fd42d2 Fancy index page
nanaya <me@myconan.net>
parents: 52
diff changeset
80 e.preventDefault()
394235fd42d2 Fancy index page
nanaya <me@myconan.net>
parents: 52
diff changeset
81 document.location = "/" + input.value
394235fd42d2 Fancy index page
nanaya <me@myconan.net>
parents: 52
diff changeset
82 }
394235fd42d2 Fancy index page
nanaya <me@myconan.net>
parents: 52
diff changeset
83
394235fd42d2 Fancy index page
nanaya <me@myconan.net>
parents: 52
diff changeset
84 form.addEventListener('submit', doRedirect)
394235fd42d2 Fancy index page
nanaya <me@myconan.net>
parents: 52
diff changeset
85 </script>
8
86abbc9ce81b Add static controller.
edogawaconan <me@myconan.net>
parents:
diff changeset
86 </body>