-
Notifications
You must be signed in to change notification settings - Fork 0
/
starships.html
125 lines (105 loc) · 5.45 KB
/
starships.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
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="Proyecto 5ta semana curso 4GEEKS">
<meta name="author" content="Luis Santana">
<link rel="icon" href="images/favicon.ico">
<title>Proyecto Semana 5</title>
<!--===================== ARCHIVOS CSS =====================-->
<link rel="stylesheet" href="css/bootstrap.min.css" >
<link rel="stylesheet" href="css/style.css" >
</head>
<body >
<!--===================== WRAPPER =====================-->
<div id="wrapper">
<!--===================== HEADER (NAVBAR) ===================== -->
<nav class="navbar navbar-fixed-top navbar-inverse">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#">Star Wars</a>
</div>
<div id="navbar" class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li><a href="index.html" >Home</a></li>
<li><a href="films.html" >Films</a></li>
<li><a href="characters.html" >Characters</a></li>
<li><a href="planets.html" >Planets</a></li>
<li><a href="vehicles.html" >Vehicles</a></li>
<li class="active"><a href="#" >Starships</a></li>
</ul>
</div><!-- /.nav-collapse -->
</div><!-- /.container -->
</nav><!-- /.navbar -->
<!--===================== CONTENT (Main Section) ===================== -->
<div id="content">
<div class="container">
<div class="row">
<div class="col-md-12 text-info">
<div class="jumbotron">
<h1>Starships in Star Wars</h1>
<p>A list of all the Starships to appear in the movies</p>
</div>
</div>
</div>
<div class="row">
<div class="col-md-6 col-lg-6 col-sm-6 col-xs-6 pagination text-left" hidden="true">
<button value="" class="previous btn btn-primary disabled">«« PREVIOUS</button>
</div>
<div class="col-md-6 col-lg-6 col-sm-6 col-xs-6 pagination text-right" hidden="true">
<button value="" class="next btn btn-primary disabled">NEXT »»</button>
</div>
</div>
<div class="row" id="starships"></div>
<div class="row">
<div class="col-md-6 col-lg-6 col-sm-6 col-xs-6 pagination text-left" hidden="true">
<button value="" class="previous btn btn-primary disabled">«« PREVIOUS</button>
</div>
<div class="col-md-6 col-lg-6 col-sm-6 col-xs-6 pagination text-right" hidden="true">
<button value="" class="next btn btn-primary disabled">NEXT »»</button>
</div>
</div>
</div>
</div>
<!--===================== END OF CONTENT =====================-->
<!--===================== FOOTER =====================-->
<div id="footer">
<div class="container footer-text">
© 2016 Star Wars
<a href="index.html">Home</a>
<a href="films.html">Films</a>
<a href="characters.html">Characters</a>
<a href="planets.html">Planets</a>
<a href="vehicles.html">Vehicles</a>
<a href="#">Starships</a>
</div>
</div>
<!--===================== Java Script =====================-->
<script src="js/jquery-2.1.4.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/functions.js"></script>
<script >
/****************** LOAD CHARACTERS ******************/
$(function() { loadStarships("http://swapi.co/api/starships/"); });
/****************** PAGINATION ACTIONS ******************/
$(".previous").on("click", function(){
var url = this.value;
loadStarships(url);
});
$(".next").on("click", function(){
var url = this.value;
loadStarships(url);
});
</script>
</div>
<!--===================== END OF WRAPPER =====================-->
</body>
</html>