/
index.html
195 lines (184 loc) · 9.98 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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Search Engine -->
<meta property="description" content="A Front-end application to find movies and TV-shows on the fly. This application will match with what you have in your Radarr & Sonarr libary ">
<meta property="image" content="https://eventyret.github.io/FrontEndProject/img/OG-cover.png">
<!-- Schema.org for Google -->
<meta property="name" content="Radarr & Sonarr Search Application (RSSA)">
<meta property="description" content="A Front-end application to find movies and TV-shows on the fly. This application will match with what you have in your Radarr & Sonarr libary ">
<meta property="image" content="https://eventyret.github.io/FrontEndProject/img/OG-cover.png">
<!-- Open Graph general (Facebook, Pinterest & Google+) -->
<meta property="og:title" content="Radarr & Sonarr Search Application (RSSA)">
<meta property="og:description" content="A Front-end application to find movies and TV-shows on the fly. This application will match with what you have in your Radarr & Sonarr libary ">
<meta property="og:image" content="https://eventyret.github.io/FrontEndProject/img/OG-cover.png">
<meta property="og:url" content="https://eventyret.github.io/FrontEndProject/">
<meta property="og:site_name" content="Radarr & Sonarr Search Application (RSSA)">
<meta property="og:locale" content="en_GB">
<meta property="fb:admins" content="657300566">
<meta property="og:type" content="website">
<title>Radarr & Sonarr Search Application (RSSA)</title>
<!-- CSS and Favicon -->
<link rel="icon" href="favicon.ico">
<link rel="stylesheet" href="css/font-awesome.min.css">
<link rel="stylesheet" href="css/theme.min.css">
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<div class="loader">
</div>
<nav class="navbar navbar-default">
<div class="container-fluid">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header" id="brand">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#top-navbar" aria-expanded="false">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="index.html">RSSA Demo</a>
</div>
<div class="collapse navbar-collapse" id="top-navbar">
<ul class="nav navbar-nav navbar-right">
<li><a href="index.html"><i class="fa fa-home"></i> Home</a></li>
<li><a href="#" onclick="showHelp()"><i class="fa fa-question-circle"></i> Help</a></li>
<li><a href="#" data-toggle="modal" data-target="#project"><i class="fa fa-info-circle"></i> About the Project</a></li>
<li><a href="404.html"><i class="fa fa-heart"></i> Easteregg (404 demo)</a></li>
</ul>
</div>
</div>
</nav>
<!-- About the Project Modal -->
<article>
<div class="modal fade" id="project" tabindex="-1" role="dialog" aria-labelledby="aboutprojectLabel">
<div class="modal-dialog modal-lg" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h4 class="modal-title" id="aboutprojectLabel">Radarr & Sonarr Search Application (RSSA)</h4>
</div>
<div class="modal-body">
<h3>What is this app for?</h3>
<p>Ever wanted to use <a href="https://github.com/Radarr/Radarr">Radarr</a> or <a href="https://github.com/Sonarr/Sonarr">Sonarr</a>
from just a search function? Well, look no further.</p>
<h3 id="whatdoesitdo">What does it do?</h3>
<p>RSSA uses the API from <a href="https://github.com/Radarr/Radarr">Radarr</a> and <a href="https://github.com/Sonarr/Sonarr">Sonarr</a>
to find what is in your libary.<br>It will then match what you are searching for and display in a simple term
if you have it in your collection or not. </p>
<h3 id="howdoesitwork">How does it work?</h3>
<p>RSSA will compare the result you are searching for with what you already have in your collection. It will
load the Radarr & Sonarr JSON into one array and when you search it will loop through and check for matches.
It is considered to be a part of your collection if <em>Size on disk is greater than 0</em> and matches the
<em>IMDB ID or title</em>.</p>
<p>This app uses the API's from the following resources:</p>
<ul>
<li>Radarr</li>
<li>Sonarr</li>
<li>The Open Movie Database</li>
<li>FanartTV</li>
</ul>
<h2 id="features">Features</h2>
<ul>
<li>Search for any movie or TV series.</li>
<li>Add a movie or TV series to your collection.</li>
<li>Grabs a random background at the first page. (If it exists)</li>
<li>Grabs the background for the movie you are looking in detail. (If it exists)</li>
<li>Adds a placeholder image if there is no poster to display.</li>
<li>"Add to Collection" button is disabled if you have it in your collection.</li>
<li>Validates input - Use the search bar to find a movie or TV series. (<strong>*This cannot be blank</strong>)</li>
<li>Displays a <strong><em>green banner></em></strong> on top of the result if it is <strong><em>IN your collection.</em></strong></li>
<li>Displays a <strong><em>red banner</em></strong> on top of the result if its <strong><em>NOT in your collection.</em></strong></li>
</ul>
<p><img src="https://i.imgur.com/bHIfftd.png" class="img-responsive" alt="Collection Preview" /></p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-primary" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
</article>
<!--Help Modal-->
<article>
<div class="modal fade" id="helpModal" tabindex="-1" role="dialog" aria-labelledby="helpModalLabel">
<div class="modal-dialog modal-lg" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h4 class="modal-title" id="helpModalLabel">This is a demo...</h4>
</div>
<div class="modal-body">
<h4>To show you how it works, search for one of these options:</h4><br>
<ul>
<li>Home Alone (Or just Home)</li>
<li>Star Wars</li>
<li>Billions</li>
</ul><br>
<p>You can also try to check validation. Don't enter anything in the search field and press Enter.<br> Alternatively,
just search for something you know doesn't exists and see how it handles errors.</p><br>
<p>If there is no background, don't worry; it's not broken, the system just didn't find it. Try press <b>F5</b>
or
<i class="fa fa-refresh"></i> button and it should try find another background. It is randomly chosen and will
only display backgrounds from movies and series that are already in your Collection.
</p><br>
<h4>The Project itself can be found on
<a href="https://github.com/Eventyret/FrontEndProject" target="_blank"><i class="fa fa-github"></i> Github</a>
</h4>
<p><i class="fa fa-info-circle"></i> If you need to see this information again, click on help at the navigation
bar
</p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-primary" onclick="dismissHelp()">Close</button>
</div>
</div>
</div>
</div>
</article>
<!--End of Demo modal-->
<!-- Start Search Content & Movie Container | - Original code from Bradtraversy https://github.com/bradtraversy/movieinfo modified to work with more functionality. -->
<div class="container">
<div class="row">
<div class="jumbotron vertical-center" id="search">
<div class="row">
<form id="searchForm">
<div class="input-group">
<input type="text" class="form-control" id="searchText" placeholder="Search for any movie or series and press enter..." autofocus
required>
<span class="input-group-btn"><input type="submit" id="searchbutton" class="btn btn-primary" value="Go"></span>
</div>
</form>
</div>
</div>
<div class="container" id="maincontainer">
<div id="movies" class="row">
</div>
</div>
</div>
</div>
<!--End Search Content & Movie container-->
<!--Footer-->
<footer class="navbar-default navbar-fixed-bottom">
<div class="container-fluid">
<p class="navbar-text pull-left">© 2017 - Site Built By Simen Daehlin.
<a href="https://goo.gl/LGsKme" target="_blank"><i class="fa fa-html5"></i> HTML 5 Validation</a>
</p>
</div>
</footer>
<!--End Footer-->
<!-- Start SCRIPTS -->
<!-- JQuery & Bootstrap -->
<script src="js/libs/jquery.min.js"></script>
<script src="js/libs/bootstrap.min.js"></script>
<script src="js/libs/bootbox.min.js"></script>
<!-- My Own Magic -->
<script src="js/api.js"></script>
<script src="js/common.js"></script>
<script src="js/main.js"></script>
<!-- End of SCRIPTS -->
</body>
</html>