This repository has been archived by the owner on Apr 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
correlativas_orientation.html
238 lines (210 loc) · 8.79 KB
/
correlativas_orientation.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
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>UA Correlativas</title>
<!-- Bootstrap core CSS -->
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/theme.css" rel="stylesheet">
<link href="css/bootstrap-reset.css" rel="stylesheet">
<!--external css-->
<link href="css/font-awesome.min.css" rel="stylesheet" />
<link rel="stylesheet" href="css/flexslider.css"/>
<link href="assets/bxslider/jquery.bxslider.css" rel="stylesheet" />
<link href="assets/fancybox/source/jquery.fancybox.css" rel="stylesheet" />
<link rel="stylesheet" href="assets/revolution_slider/css/rs-style.css" media="screen">
<link rel="stylesheet" href="assets/revolution_slider/rs-plugin/css/settings.css" media="screen">
<!-- Custom styles for this template -->
<link href="css/style.css" rel="stylesheet">
<link href="css/style-responsive.css" rel="stylesheet" />
<!-- HTML5 shim and Respond.js IE8 support of HTML5 tooltipss and media queries -->
<!--[if lt IE 9]>
<script src="js/html5shiv.js"></script>
<script src="js/respond.min.js"></script>
<![endif]-->
<style>
#correlatives {
font-size: 20pt;
}
</style>
</head>
<body>
<!--header start-->
<header class="header-frontend">
<div class="navbar navbar-default navbar-static-top">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
<span class="fa fa-bars"></span>
</button>
<a class="navbar-brand" href="index.html">UA<span>Correlativas</span></a>
</div>
<div class="navbar-collapse collapse ">
<ul class="nav navbar-nav">
<li><a href="index.html">Inicio</a></li>
</ul>
</div>
</div>
</div>
</header>
<!--header end-->
<div class="container" id="container">
<label for="subjects">Seleccioná una materia:</label>
<select id="subjects" style="margin-top: 50px; margin-bottom: 80px"></select>
<ul id="correlatives" style="list-style: none"></ul>
</div>
<!--footer start-->
<footer class="footer">
<div class="container">
<div class="row">
<div class="col-lg-3 col-sm-3"></div>
<div class="col-lg-5 col-sm-5"></div>
<div class="col-lg-3 col-sm-3 col-lg-offset-1">
<i class="fa fa-code" style="color: #ff774b"></i> Desarrollado por Juan Gesino & Agustin Quintas
</div>
</div>
</div>
</footer>
<!--footer end-->
<!-- js placed at the end of the document so the pages load faster -->
<script src="js/jquery.js"></script>
<script src="js/jquery-migrate-1.2.1.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script type="text/javascript" src="js/hover-dropdown.js"></script>
<script defer src="js/jquery.flexslider.js"></script>
<script type="text/javascript" src="assets/bxslider/jquery.bxslider.js"></script>
<script type="text/javascript" src="js/jquery.parallax-1.1.3.js"></script>
<script src="js/jquery.easing.min.js"></script>
<script src="js/link-hover.js"></script>
<script src="assets/fancybox/source/jquery.fancybox.pack.js"></script>
<script type="text/javascript" src="assets/revolution_slider/rs-plugin/js/jquery.themepunch.plugins.min.js"></script>
<script type="text/javascript" src="assets/revolution_slider/rs-plugin/js/jquery.themepunch.revolution.min.js"></script>
<!--common script for all pages-->
<script src="js/loading.js"></script>
<script src="js/common-scripts.js"></script>
<script src="js/revulation-slide.js"></script>
<script>
RevSlide.initRevolutionSlider();
$(window).load(function() {
$('[data-zlname = reverse-effect]').mateHover({
position: 'y-reverse',
overlayStyle: 'rolling',
overlayBg: '#fff',
overlayOpacity: 0.7,
overlayEasing: 'easeOutCirc',
rollingPosition: 'top',
popupEasing: 'easeOutBack',
popup2Easing: 'easeOutBack'
});
});
$(window).load(function() {
$('.flexslider').flexslider({
animation: "slide",
start: function(slider) {
$('body').removeClass('loading');
}
});
});
// fancybox
jQuery(".fancybox").fancybox();
</script>
<script>
$.blockUI({ css: {
border: 'none',
padding: '15px',
backgroundColor: '#000',
'-webkit-border-radius': '10px',
'-moz-border-radius': '10px',
opacity: .5,
color: '#fff'
} });
$(document).ready(function(){
major_id = getUrlVars()['id'];
var url = "http://uacorrelativas.herokuapp.com/api/majors.json";
$.ajax({
dataType: "json",
url: url,
success: success,
error: error,
timeout: timeout
});
function success(data){
var items = [];
$.each( data, function( key, val ) {
if(!val.disabled){
if(val.has_orientation){
items.push( "<li><a href='orientations.html?id="+val.id+"'>" + val.name + "</a></li>" );
}else{
items.push( "<li><a href='major.html?id="+val.id+"'>" + val.name + "</a></li>" );
}
}
});
$(items.join( "" )).appendTo('.navbar-nav')
}
var url2 = "http://uacorrelativas.herokuapp.com/api/orientation/"+major_id+".json";
$.ajax({
dataType: "json",
url: url2,
success: success2,
error: error,
timeout: timeout
});
function success2(data){
name = "<h2 style='font-family: \"Roboto\", sans-serif' class='major' style='font-weight: bold'>" + data["major"].name + "</h2>";
name = name + "<h3 style='font-family: \"Roboto\", sans-serif' class='major' style='margin-bottom: 10px;font-weight: lighter'>" + data["orientation"].name + "</h3>";
$(name).prependTo('#container');
}
var url3 = "http://uacorrelativas.herokuapp.com/api/subjects/orientation/"+major_id+".json";
$.ajax({
dataType: "json",
url: url3,
success: success3,
error: error,
timeout: timeout
}).done(done);
function success3(data){
var items = [];
$.each( data, function( key, val ) {
items.push( "<option value='"+val.id+"'>" + val.name + "</option>" );
});
$(items.join( "" )).appendTo('select')
}
$('select').change(function(){
$.blockUI({ css: {
border: 'none',
padding: '15px',
backgroundColor: '#000',
'-webkit-border-radius': '10px',
'-moz-border-radius': '10px',
opacity: .5,
color: '#fff'
} });
$('#correlatives').empty();
subject_id = $(this).val();
var url4 = "http://uacorrelativas.herokuapp.com/api/correlatives/"+subject_id+".json";
$.ajax({
dataType: "json",
url: url4,
success: success4,
error: error,
timeout: timeout
}).done(done);
function success4(data){
var items = [];
if(data['correlatives'].length == 0){
items.push( "<li>Esta materia no tiene correlativas!</li>" );
}else{
$.each( data['correlatives'], function( key, val ) {
if(val.correlative_name != undefined){
items.push( "<li>" + val.correlative_name + "</li>" );
}
});
}
$(items.join( "" )).appendTo('#correlatives')
}
});
});
</script>
</body>
</html>