-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
executable file
·64 lines (50 loc) · 1.87 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="">
<meta name="author" content="">
<title>Startup Name</title>
<!-- Bootstrap core CSS -->
<link href="vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet">
<!-- Custom fonts for this template -->
<link href="vendor/fontawesome-free/css/all.min.css" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Varela+Round" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Nunito:200,200i,300,300i,400,400i,600,600i,700,700i,800,800i,900,900i" rel="stylesheet">
<!-- Device Mockups -->
<link rel="stylesheet" href="device-mockups/device-mockups.min.css">
<!-- Custom styles for this template -->
<link href="css/grayscale.min.css" rel="stylesheet">
<!-- Bootstrap core JavaScript -->
<script src="vendor/jquery/jquery.min.js"></script>
<script src="vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
<!-- Plugin JavaScript -->
<script src="vendor/jquery-easing/jquery.easing.min.js"></script>
<script src="vendor/mustache/mustache.min.js"></script>
</head>
<body id="page-top">
<div id="app">
</div>
<script>
$(document).ready(function(){
$.when($.ajax({url: "./data/template.mst", dataType: 'text'}),$.ajax({url: "./data/startup.json"}))
.done(function(template, data) {
Mustache.parse(template[0]);
var rendered = Mustache.render(template[0], data[0]);
$("#app").html(rendered);
// load other scripts that depend on the
// page content
$.ajax({
url: "js/grayscale.min.js",
dataType: "script",
cache: true
});
})
.fail(function(){
alert("Something went wrong");
});
});
</script>
</body>
</html>