Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
84 commits
Select commit Hold shift + click to select a range
da24008
Update README.md
topotech Jun 2, 2017
3a3e16b
Create CNAME
topotech Jun 15, 2017
6c34fb3
Delete CNAME
topotech Jun 15, 2017
1153eb7
Create test.html
topotech Jun 16, 2017
6603e0d
Update test.html
topotech Jun 17, 2017
c56d037
Update test.html
topotech Jun 17, 2017
a8b0252
Update get-video.js
topotech Jun 17, 2017
cccb8b2
Update get-video.js
topotech Jun 17, 2017
4d4468e
Update get-video.js
topotech Jun 17, 2017
34ab067
Update get-video.js
topotech Jun 17, 2017
df4fb2c
Update index.html
topotech Jun 17, 2017
baba1b7
Update index.html
topotech Jun 17, 2017
b68bb6b
Update get-video.js
topotech Jun 17, 2017
26495c4
Update get-video.js
topotech Jun 17, 2017
fc53d2f
Update index.html
topotech Jun 17, 2017
6a9ae39
Update get-video.js
topotech Jun 17, 2017
633fe1d
Update index.html
topotech Jun 17, 2017
8fa2cdc
Update get-video.js
topotech Jun 17, 2017
f014d12
Update get-video.js
topotech Jun 17, 2017
0352baf
Update index.html
topotech Jun 17, 2017
20d1044
Update get-video.js
topotech Jun 17, 2017
4c203a8
Update get-video.js
topotech Jun 17, 2017
2d845ef
Update get-video.js
topotech Jun 17, 2017
284006f
Update get-video.js
topotech Jun 17, 2017
27abf01
Update get-video.js
topotech Jun 17, 2017
2680a4b
Update index.html
topotech Jun 17, 2017
28d7b90
Update style.css
topotech Jun 17, 2017
3b31c63
Update get-video.js
topotech Jun 17, 2017
d5e4219
Update get-video.js
topotech Jun 17, 2017
5145910
Update get-video.js
topotech Jun 17, 2017
64a55c9
Update get-video.js
topotech Jun 17, 2017
f83f31f
Update get-video.js
topotech Jun 17, 2017
0f4a5ec
Update get-video.js
topotech Jun 17, 2017
0f5ae0a
Update get-video.js
topotech Jun 17, 2017
ba89cba
Update get-video.js
topotech Jun 17, 2017
9fb41b3
Update get-video.js
topotech Jun 17, 2017
6d6415b
Update get-video.js
topotech Jun 17, 2017
49d9f1e
Update get-video.js
topotech Jun 17, 2017
bdb73fd
Update get-video.js
topotech Jun 17, 2017
cefd174
Update get-video.js
topotech Jun 17, 2017
eb4ecae
Update get-video.js
topotech Jun 17, 2017
4a97613
Update get-video.js
topotech Jun 17, 2017
64d8e7d
Update get-video.js
topotech Jun 17, 2017
ca61aaf
Update get-video.js
topotech Jun 17, 2017
8f23b3b
Update get-video.js
topotech Jun 17, 2017
3b34330
Update get-video.js
topotech Jun 17, 2017
8d271b1
Update get-video.js
topotech Jun 17, 2017
5085dd8
Update get-video.js
topotech Jun 17, 2017
54e752a
Update get-video.js
topotech Jun 17, 2017
2994e12
Update get-video.js
topotech Jun 17, 2017
96c8df0
Update get-video.js
topotech Jun 17, 2017
1ef29eb
Update get-video.js
topotech Jun 17, 2017
f8626b4
Update get-video.js
topotech Jun 17, 2017
c97ce9b
Update get-video.js
topotech Jun 17, 2017
9ce6257
Update get-video.js
topotech Jun 17, 2017
c99b308
Update get-video.js
topotech Jun 17, 2017
880a70c
Update get-video.js
topotech Jun 17, 2017
e7833bb
Update get-video.js
topotech Jun 17, 2017
09daf1d
Update index.html
topotech Jun 17, 2017
df3151a
Update get-video.js
topotech Jun 17, 2017
3ae1fbf
Update index.html
topotech Jun 17, 2017
2013cc9
Update index.html
topotech Jun 17, 2017
0a80f51
Update index.html
topotech Jun 17, 2017
22b2266
Update index.html
topotech Jun 17, 2017
54556f3
Update index.html
topotech Jun 18, 2017
4061c5c
Update index.html
topotech Jun 18, 2017
27d0123
Update get-video.js
topotech Jun 18, 2017
b874493
Update style.css
topotech Jun 18, 2017
72b6822
Update style.css
topotech Jun 18, 2017
f8b1ecf
Update get-video.js
topotech Jun 18, 2017
e4bde70
Update index.html
topotech Jun 18, 2017
a45c780
Update README.md
topotech Jun 18, 2017
b24b08c
Update README.md
topotech Jun 22, 2017
2c7874c
Update get-video.js
topotech Jun 28, 2017
e4eca0a
Update get-video.js
topotech Jun 28, 2017
e7fc3c1
Update index.html
topotech Jun 28, 2017
3e608ea
Update get-video.js
topotech Jun 28, 2017
bff71d5
Update get-video.js
topotech Jun 29, 2017
83935cf
Added support for /r/CommercialCuts
williambl Sep 23, 2017
f824977
Added a slider to change minimum post score
williambl Sep 23, 2017
cde2ed5
Added myself to credits
williambl Sep 23, 2017
80b85e8
Updated README.md
williambl Sep 23, 2017
b5eeace
Made menu scrollable
williambl Sep 26, 2017
9f945cb
Merge pull request #1 from williambl/gh-pages
topotech Nov 12, 2017
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion CNAME

This file was deleted.

39 changes: 38 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,39 @@
# Inter-Dimensional Cable
http://inter-dimensionalcable.xyz
Mirror of http://inter-dimensionalcable.xyz web app source

----
Customized version of mrmcpowned interdimensional cable,
you can visit it in https://topotech.github.io/interdimensionalcable/

This new version has the following features:

· Optional support of more subs with similar content can be activated via menu.

> /r/NotTimAndEric,

> /r/ACIDS,

> /r/fifthworldvideos,

> /r/IllBeYourGuide,

> /r/CommercialCuts.

If no option is selected, /r/InterdimensionalCable will be used by default.

· New system that increases randomization.

· Softened the score requirement so any video with score ≥ 1 is accepted
(before, the videos with score < 5 were excluded).

· Cosmetic change of the list of previously played videos: now all the elements
should be visible in any browser and screen.

· Keyboard support! Now you can use a wireless keyboard (or joypad using joy2key
or whatever) to watch interdimensional tv!

· The code was modified so the site can be slightly more usable in more devices.
It was tested on Android Lollipop: it presents buggy behavior but is usable,
specially with virtual keyboards like Ivan Volosyuk's "WiFi Keyboard".

· Added a slider to filter out low-score videos.
20 changes: 13 additions & 7 deletions css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,15 @@ h1, h2{
font-size: 1.6vw;
}
h2{
font-size: 1.25vw;
font-size: 1.0vw;
}
h3{
margin: 0 0 .4vw 0;
}
.contents .left,
.contents .right {
font-size: .85vw;
overflow-y: auto;
}
p {
margin: 0 0 .5vw 0;
Expand Down Expand Up @@ -383,6 +387,7 @@ html[data-useragent*=Firefox] .menu-overlay #video::before {
display: block;
color: #FFFFFF;
z-index: 3;
overflow: auto;
}
.tv-menu .left,
.tv-menu .right {
Expand Down Expand Up @@ -414,13 +419,14 @@ html[data-useragent*=Firefox] .menu-overlay #video::before {
}
.shows{
display: flex;
flex-direction: column;
height: 10.5vw;
overflow-y: auto;
overflow-x: hidden;
/*flex-direction: column;*/
/*height: 7.3vw;*/
/*overflow-y: auto;*/
overflow-y: hidden;
/*overflow-x: hidden;*/
}
.zoom .shows{
height: calc(10.5vw * var(--scale-ratio));
/*height: calc(10.5vw * var(--scale-ratio));*/
}
.shows li, .zoom .shows li{
padding: 0;
Expand Down Expand Up @@ -468,7 +474,7 @@ html[data-useragent*=Firefox] .menu-overlay #video::before {
flex-grow: 0;
}
.zoom .shows .video-info{
max-width: calc(13.1vw * var(--scale-ratio))
/*max-width: calc(13.1vw * var(--scale-ratio))*/
}
.shows .video-title{
font-size: 1vw;
Expand Down
101 changes: 68 additions & 33 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
<html lang="en">

<!--
Original backlog of mrmcpowned:
DONE: Add a zoom-in functionality
TODO: Volume animations
TODO: Offline Animations
Expand All @@ -18,7 +19,6 @@
<meta charset="UTF-8">
<title>Inter-Dimensional Cable</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.0/jquery.min.js"></script>
<script src="js/get-video.js"></script>
<link rel="stylesheet" href="https://necolas.github.io/normalize.css/3.0.2/normalize.css">
<link rel="stylesheet" href="css/style.css">
<link href="https://fonts.googleapis.com/css?family=PT+Mono" rel="stylesheet" type="text/css">
Expand All @@ -44,13 +44,13 @@
<div class="remote-area">
<div class="tips">
<ul>
<li><b>Power Button</b>: Turns TV On/Off</li>
<li><b>Zoom</b>: Zooms the TV in or out for a better view</li>
<li><b>MENU</b>: Shows the TV menu which gives you a list of previously played shows and info about the site</li>
<li><b>MUTE</b>: Mutes the TV's audio</li>
<li><b>CH +</b>: Changes the channel</li>
<li><b>VOL +/-</b>: Adjusts the TV's volume</li>
<li><b>OK</b>: Opens the current video's Reddit thread in a new tab</li>
<li><b>Power Button</b>: Turns TV On/Off(O,P)</li>
<li><b>Zoom</b>: Zooms the TV in or out for a better view(Z)</li>
<li><b>MENU</b>: Shows the TV menu which gives you a list of previously played shows and info about the site(M)</li>
<li><b>MUTE</b>: Mutes the TV's audio(S)</li>
<li><b>CH +</b>: Changes the channel(N,J,C,right)</li>
<li><b>VOL +/-</b>: Adjusts the TV's volume(+/-)</li>
<li><b>OK</b>: Opens the current video's Reddit thread in a new tab(R)</li>
<li><b>NO SIGNAL</b>: Reddit's API is down. Turn your TV On and Off again to see if the signal is back</li>
</ul>
</div>
Expand All @@ -76,7 +76,7 @@
<div class="bottom">
<span class="button wide" id="channel-up">CH +</span>
<span class="button large" id="volume-down"><span>VOL<br/>-</span></span>
<a href="#" class="button center red" id="video-url">OK</a>
<a href="#" class="button center red" id="video-url" target="_blank">OK</a>
<span class="button large" id="volume-up"><span>VOL<br/>+</span></span>
<span class="button wide"></span>
</div>
Expand All @@ -100,14 +100,23 @@
<div class="tv-menu">
<div class="contents">
<div class="left">
<p>I'm <a href="https://mrmcpowned.com">Mr McPowned</a>. I <a href="http://gamepadviewer.com">kinda make stuff</a>. Some people call me <a href="http://chrisr.xyz">Chris</a>, and I don't really <a href="https://twitter.com/mrmcpowned">have much to say</a>. </p>
<p>This thing's also <a href="https://github.com/mrmcpowned/interdimensionalcable">on github</a> if you wanna check that out.</p>
<p><a href="https://steamcommunity.com/id/2Mill/">This guy</a> gave me the idea, but <a href="http://gravypod.com">this guy</a> actually helped me with stuff.</p>
<p>Originally developed by <a href="https://mrmcpowned.com">Mr McPowned</a> (source on <a href="https://github.com/mrmcpowned/interdimensionalcable">on github</a>). Also <a href="http://gravypod.com">this guy</a> helped.</p>
<p>Original idea by <a href="https://steamcommunity.com/id/2Mill/">this guy</a>.</p>
<p>This version was tweaked by <a href="https://github.com/topotech/">this guy</a>, with a couple of features by <a href="https://github.com/williambl">This guy</a>.</p>
</div>
<div class="right">
<h1>Menu - MrMcTV v1.0</h1>
<p><i>A non-stop stream of intergalactic content from <a href="https://reddit.com/r/InterdimensionalCable">/r/InterdimensionalCable</a> straight to your eyeholes.</i></p>
<h2>Past Shows</h2>
<h2>Menu</h2>
<p><i>A non-stop stream of intergalactic content straight to your eyeholes!</i></p>
<h3>Select your sources</h3>
<input type="checkbox" id="IDC" checked = "true">/r/InterdimensionalCable (default)<br>
<input type="checkbox" id="NTE">/r/NotTimAndEric<br>
<input type="checkbox" id="ACI">/r/ACIDS<br>
<input type="checkbox" id="FWV">/r/fifthworldvideos<br>
<input type="checkbox" id="IBG">/r/IllBeYourGuide<br>
<input type="checkbox" id="CMC">/r/CommercialCuts
<h3>Minimum score</h3>
<input type="range" min="0" max="1000" value="1" class="slider" id="min_score"><span id="score_preview">1</span>
<h3>Past Shows</h3>
<div id="list-template">
<li>
<a href="">
Expand All @@ -130,6 +139,50 @@ <h2>Past Shows</h2>
</div>
</div>
</div>
<!-- KEYBOARD CODE -->
<script>
$(document).ready(function(){
$(document).keypress(function(event){
if (event.which == 43)//Vol (+)
$("#volume-up").click();

if (event.which == 45)//Vol (-)
$("#volume-down").click();
});
$(document).keydown(function(event){
if (event.which == 83) //(S)ilence (Mute)
$("#mute").click();

if (event.which == 77) //(M)enu
$("#menu").click();

if (event.which == 82) //(R)eddit (OK)
$("#video-url")[0].click();

if (event.which == 90) //(Z)oom
$("#zoom").click();

if (event.which == 80) //(P)ower
$("#power").click();

if (event.which == 79) //(O)N/OFF
$("#power").click();

if (event.which == 67) //(C)hannel (CH+)
$("#channel-up").click();

if (event.which == 78) //(N)ext (CH+)
$("#channel-up").click();

if (event.which == 74) // J (vi down/next button) (CH+)
$("#channel-up").click();

if (event.which == 39) // -> (next) (CH+)
$("#channel-up").click();
});
});
</script>
<script src="js/get-video.js"></script>
<script src="https://www.youtube.com/iframe_api" async></script>
<script>
//CSS USer Agent Selectors from http://rog.ie/blog/html5-boilerplate-addon
Expand All @@ -142,24 +195,6 @@ <h2>Past Shows</h2>
$('a[href^="http://"], a[href^="https://"]').not('a[href^="http://' + thisSite + '"], a[href^="https://' + thisSite + '"]').attr('target', '_blank');

</script>
<script>
(function(i, s, o, g, r, a, m) {
i['GoogleAnalyticsObject'] = r;
i[r] = i[r] || function() {
(i[r].q = i[r].q || []).push(arguments)
}, i[r].l = 1 * new Date();
a = s.createElement(o),
m = s.getElementsByTagName(o)[0];
a.async = 1;
a.src = g;
m.parentNode.insertBefore(a, m)
})(window, document, 'script', 'https://www.google-analytics.com/analytics.js', 'ga');

ga('create', 'UA-20916585-7', 'auto');
ga('send', 'pageview');

</script>

</body>

</html>
Loading