-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
135 lines (122 loc) · 6.28 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
<!DOCTYPE html>
<html>
<head>
<script src="https://code.jquery.com/jquery-2.1.4.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.min.js"></script>
<script src="https://code.jquery.com/ui/1.11.3/jquery-ui.min.js"></script>
<script src="AlienTube.js"></script>
<script>
var AddSubreddit = function(s){
console.log(app);
}
</script>
<link href='https://fonts.googleapis.com/css?family=Inconsolata' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="style.css" />
<title>Alien Studio</title>
</head>
<body ng-app="alienApp" ng-controller="AlienController">
<div id="ImageViewer" style="display:none; position:fixed; z-index:200;">
<img style="padding:20px;"/>
<div class="close" style="position:absolute; top:0; right:0;background:white;padding:2px; cursor:pointer;" onclick="$(this).parent().hide()">
X
</div>
</div>
<div id="VideoViewer" style="display:none; position:fixed; z-index:200; padding:10px;padding-top:30px;">
<iframe width="560" height="315" frameborder="0" allowfullscreen></iframe>
<div class="close" style="position:absolute; top:0; right:0;background:white;padding:2px; cursor:pointer;" onclick="$(this).siblings('iframe').attr('src','');$(this).parent().hide()">
X
</div>
</div>
<div id="TopBar"></div>
<div id="MiddleContent">
<div id="SuperRight">
<div id="NavBar">
<img src="Images/TopRightBar.png" />
</div>
</div>
<div class="Right">
<div id="SubredditList">
<div id="SearchHeader">
<img src="Images/RightBarTop.png" id="SubRedditTop" />
<img src="Images/SearchButton.png" id="SearchButton" ng-click="addSubredditToList(subredditText)"/>
<input type="text" id="SubredditBar" ng-model="subredditText"/>
</div>
<div class="list">
<div class="subReddit" ng-repeat="subreddit in SubReddits track by $index" ng-click="setCurrentSub(subreddit)"><a href>{{subreddit}}</a></div>
</div>
</div>
</div>
<div id="Left">
<div id="LeftBarPreview">
</div>
<img src="Images/LeftBar.png" />
</div>
<div id="Center">
<div id="mainTab">
<a>{{CurrentSubreddit}}</a>
</div>
<div id="mainContent">
<!-- Header data for subreddits -->
<div class="IsSubReddit">
<a><span class="blue">using</span> System.Collections;</a><br />
<a><span class="blue">using</span> System.Text;</a><br />
<a><span class="blue">using</span> System.Web;</a><br /></br>
<a><span class="blue">namespace</span> <b>AlienTube</b></a><br />
<a>{</a></br>
<a class="in1">[<span class="blue-green">Serializable</span>]</a><br />
<a class="in1"><span class="blue">public class</span> <span><b>AlienStudio</b></span> <b>:</b> <a class="blue-green" ng-click="setCurrentSub(CurrentSubreddit)">{{CurrentSubreddit}}</a></a><br />
<a class="in1">{</a>
</div>
<!-- End header data for subreddits -->
<!-- Posts -->
<p ng-repeat="post in CurrentPosts track by $index" ng-if="cView == 'sub'">
<span class="in2" ng-if="post.stickied">[<span class="blue-green">Pinned</span>]</span></br>
<a class="in2" ng-click="setSelfPostContent(post.permalink)" id="{{post.id}}">
<span class="blue">public </span>{{post.author}}(<span class="blue-green">Subreddit</span> <span class="black" ng-click="setCurrentSub(post.subreddit)">{{post.subreddit}}</span>)<br>
<span class="black in2">{</span><br>
<a class="in3"><span class="blue">string </span>Title = <span class="red" ng-click="((post.is_self)?'setSelfPostContent(post.permalink)':'showImageViewer(Thread.data.children[0].data.url)')">"{{post.title}}"</span>;</a><br/>
<a class="in3"><span class="blue">int </span>Votes = <span class="blue">{{post.ups}}</span>;</a><br/>
<a class="in3"><span class="blue-green">Type </span>linkType = <span class="blue">{{post.is_self?"Selfpost":"Link"}}</span>;</a><br/>
<span class="black in2">}</span><br><br />
</a>
</p>
<!-- End Posts -->
<!-- Thread Header -->
<a class="in2" ng-click="navigateToPermalink(Thread.data.children[0].data.permalink);"><span class="blue">{{Thread.kind}} </span>Body = <span class="red"></span>{{Thread.data.children[0].data.title}};</a><br/>
<a class="in2" ng-click="showImageViewer(Thread.data.children[0].data.url)"><span class="blue">{{Thread.kind}} </span>Url = <span class="red"></span>{{Thread.data.children[0].data.url}};</a><br/>
<a class="in2" ng-click="showImageViewer(Thread.data.children[0].data.url)"><span class="blue">{{Thread.kind}} </span>PostBody = <span class="red">"{{Thread.data.children[0].data.selftext}};"</span></a><br/><br/>
<!-- End Thread Header -->
<!-- Header data for subreddits -->
<p ng-repeat="post in CurrentPosts track by $index" ng-if="cView == 'comment'">
<a class="in2" ng-click="hidePostById(post.id)" id="{{post.id}}">
<span class="blue">public </span><a ng-click="goToUser(post.author)">{{post.author}}</a >(<span class="blue-green">Subreddit</span> <span class="black" ng-click="setCurrentSub(post.subreddit)">{{post.subreddit}}</span>)<br>
<span class="black in2">{</span><br>
<a class="in3"><span class="blue">string </span>Body = <span class="red">"{{post.body}}"</span>;</a><br/>
<a class="in3"><span class="blue">int </span>Votes = <span class="blue">{{post.ups}}</span>;</a><br/>
<a class="in3"><span class="blue">for </span>(int comment_index = 0; comment_index < {{post.replies.data.children.length}}; comment_index++)</a><br/>
<a class="in3">{</a><br/>
<span ng-repeat="subComment in post.replies.data.children track by $index">
<a class="in4"><span class="blue">Console.WriteLine</span>(<span class="red">"{{subComment.data.body}}"</span>);</a><br>
</span>
<a class="in3">}</a>
<br/>
<span class="black in2">}</span><br> <br />
</a>
</p>
<!-- Header data for subreddits -->
<a class="in1">}</a><br />
<a>}</a><br />
<br />
</div>
</div>
<!-- Header data for subreddits -->
</div>
<div id="FootBar">
<div id="FootBarContent">
<div ng-repeat="i in PatchNotes" style="">
<img src="{{ i.committer.avatar_url }}" style="width:30px; height:30px;"/><a style="padding:40px;"> : {{ i.sha | first:7 }} : {{ i.commit.message }}</a>
</div>
</div>
</div>
</body>
</html>