-
Notifications
You must be signed in to change notification settings - Fork 0
/
map_major.html
94 lines (68 loc) · 3.34 KB
/
map_major.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
<!DOCTYPE html>
<html>
<head>
<title>CourseMate | iarasoft</title>
<link rel="stylesheet" type="text/css" href="bootstrap/css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="css/map_major_main.less.css" class="main-less">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=0">
<script src="intelxdk.js"></script>
<script src="cordova.js"></script>
<script type="application/javascript" src="js/jquery.min.js"></script>
<script type="application/javascript" src="marginal/marginal-position.min.js"></script>
<script type="application/javascript" src="bootstrap/js/bootstrap.min.js"></script>
<script src="js/doAuth.js"></script>
<script>
doSecureAuth();
$(function(){
$.ajax({
url : $__url_,
data: { method:"getInstCourses", institution:localStorage.getItem("inst") },
dataType:'jsonp',
success: function(resp){
if(resp["response"] == "ERROR"){
$_res = "'#result'";
$__result.html('<div class="panel widget uib_w_8 d-margins panel-danger" data-uib="twitter%20bootstrap/panel" data-ver="0" id="result" style="border-bottom:3px solid #999; max-width:95%; margin:0 auto;"><div class="panel-heading" align="right"><p style="text-align:right;"><a style="color:red; text-decoration:none;" href="javascript:+$('+$_res+').fadeOut()"><div style="border:1px solid #000; font-weight:bold; float:right; padding:1px; border-radius:5px;">X</div></a></p><p style="text-align:center;">' + resp['data']['message'] + '</p> </div></div>');
$__command.html(resp['data']['command']);
}else if(resp["response"] == "SUCCESS"){
$_courses = resp["data"]["message"]
$madeList = makeList($_courses);
$("#generated").html($madeList);
$__command.html(resp['data']['command']);
}else{
$__result.html("UNDEFINED RESPONSE MESSAGE.");
}
}
});
});
</script>
</head>
<body>
<div class="uwrap">
<div class="upage" id="mainpage">
<div class="upage-outer">
<div class="uib-header header-bg container-group inner-element uib_w_1 clr uib-header-fixed" data-uib="layout/header" data-ver="0">
<h2 id="titl">Courses Offered</h2>
<div class="widget-container wrapping-col single-centered"></div>
<div class="widget-container content-area horiz-area wrapping-col left"></div>
<div class="widget-container content-area horiz-area wrapping-col right"></div>
</div>
<div class="upage-content" id="mainsub">
<div class="grid grid-pad urow uib_row_1 row-height-1" data-uib="layout/row" data-ver="0">
<div class="col uib_col_1 col-0" data-uib="layout/col" data-ver="0">
<div class="widget-container content-area vertical-col" id="generated">
</div>
</div>
<span class="uib_shim"></span>
</div>
</div>
<!-- /upage-content -->
</div>
<!-- /upage-outer -->
</div>
<!-- /upage -->
</div>
<!-- /uwrap -->
<div id="command"></div>
</body>
</html>