forked from iv-one/coursera-downloader
-
Notifications
You must be signed in to change notification settings - Fork 0
/
options.html
147 lines (126 loc) · 5.16 KB
/
options.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
<!DOCTYPE html>
<html lang="en" ng-app="application" ng-csp>
<head>
<meta charset="utf-8">
<title>Coursera Videos Downloader</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
<link href="assets/vendors/bootstrap/css/bootstrap.css" rel="stylesheet">
<link href="assets/vendors/bootstrap/css/docs.css" rel="stylesheet">
<style type="text/css">
html, body {
height: 100%;
padding: 0px;
margin: 0px;
}
.loading {
padding-top: 9px;
}
.alerts {
overflow: hidden;
height: 1px;
}
.fork-me {
position: fixed;
bottom: 0;
left: 0;
}
.wrap {
padding-top: 60px;
}
</style>
<link href="assets/vendors/bootstrap/css/bootstrap-responsive.css" rel="stylesheet">
<!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<link rel="shortcut icon" href="assets/vendors/bootstrap/ico/favicon.ico">
<script src="assets/vendors/bootstrap/js/jquery.js"></script>
<script src="assets/vendors/bootstrap/js/bootstrap.js"></script>
<script src="assets/vendors/angular/angular-1.0.1.js"></script>
<script src="lib/services/classes.js"></script>
<script src="lib/controller/badge.js"></script>
<script src="lib/controller/settings.js"></script>
<script src="lib/store.js"></script>
<script src="lib/badge.js"></script>
<script src="lib/application.js"></script>
</head>
<body ng-controller="SettingsController">
<div class="navbar navbar-fixed-top">
<div class="navbar-inner">
<div class="container-fluid">
<a class="brand" href="#">Coursera Videos Downloader <i class="icon-star"></i></a>
<a class="pull-right loading hide" href="#"><img src="assets/images/loading.gif" width="22px"
height="22px"/></a>
</div>
</div>
</div>
<div class="wrap">
<div class="container">
<div class="row">
<div class="span12" ng-show="hasIncomingTasks">
<h4>Current tasks <span class="badge badge-info">{{uncompleted()}}</span></h4>
<ul class="unstyled">
<li ng-repeat="task in tasks">
<span><i class="{{taskIcon(task)}}"></i> {{task.filename}}</span>
</li>
</ul>
</div>
<div class="span12" ng-hide="hasIncomingTasks">
<div class="alert alert-block">
<h4>Warning!</h4>
Could not find sections and lectures. Please navigate to "Videos and Reading Notes" section and try again.<br>
Link should be https://class.coursera.org/<course>/lecture/index
</div>
</div>
</div>
<a href="https://github.com/ivan-dyachenko/coursera-downloader" target="_blank" class="fork-me">
<img border="0" src="github-fork-me.png"/>
</a>
</div>
</div>
<!-- Modal -->
<div id="incomingModal" class="modal show fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"
aria-hidden="true">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h3 id="myModalLabel">{{incomings.course}}</h3>
</div>
<div class="modal-body">
<p>
Video filename pattern:<br/>
<label>
<input type="text" ng-model="filePattern" class="span5"/>
</label>
</p>
<p>
Subdirectory (optional):<br />
<label>
<input type="text" ng-model="subdirectory" class="span5"/>
</label>
</p>
<ul class="unstyled">
<li ng-repeat="(sectionIndex, section) in incomings.sections">
<span><b>{{section.title}}</b></span>
<ul class="unstyled">
<li ng-repeat="(lectureIndex, lecture) in section.lectures">
<label class="checkbox">
<input type="checkbox" ng-model="lecture.selected">{{filename(section, lecture,
sectionIndex, lectureIndex)}}
</label>
</li>
</ul>
</li>
</ul>
</div>
<div class="modal-footer">
<button class="btn btn" ng-click="selectAll()"><i class="icon-star-empty"></i> Select All</button>
<button class="btn btn" ng-click="selectNone()">Select None</button>
<button class="btn" aria-hidden="true" ng-click="cancel()">Cancel</button>
<button class="btn btn-primary" ng-click="download()"><i class="icon-circle-arrow-down icon-white"></i> Download
</button>
</div>
</div>
</body>
</html>