-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathindex.html
83 lines (80 loc) · 3.43 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
<!DOCTYPE HTML>
<html>
<head>
<title>Chronocube - Your Rubik's Cube solves</title>
<meta name="Description" content="Chronocube is a simple app to manage your Rubik's Cube solves. It's fast. It's simple. It's beautiful.">
<meta name="Keywords" content="rubik, cube, rubik cube, puzzle, rubiks, feliks, aolong, ctimer, timer, chronocube">
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<link href="css/new-age.css" rel="stylesheet">
<script src="https://use.fontawesome.com/8db8d4d5ed.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.0/jquery.min.js"></script>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style type="text/css">
body {
background: url('resources/bg.jpg') no-repeat;
background-size: cover;
background-color: black;
}
.container {
text-align: center;
}
.navbar-text {
color: white !important;
}
.buttons {
margin-top: 10%;
}
.btn {
margin: 1em;
}
</style>
<script type="text/javascript">
$(document).ready(function() {
getLatestRelease();
});
function getLatestRelease() {
$.getJSON("https://api.github.com/repos/pablopunk/chronocube/tags").done(function (json) {
var release = json[0];
var tag = release.name;
var url = getFileName(tag);
$('#download').find('span').text(url[0]);
$('#download').attr("href", url[1]);
});
}
function getFileName(tag) {
var nav = window.navigator.appVersion;
var url = 'https://github.com/pablopunk/chronocube/releases/download/'+tag+'/';
if (nav.indexOf('Mac')>-1) return [' Download for Mac' , url+'Chronocube-Mac.dmg'];
if (nav.indexOf('Windows')>-1) return [' Download for Windows', url+'Chronocube-Windows-Installer.exe'];
return [' Download' , 'https://github.com/pablopunk/chronocube/releases/latest']; // default
}
</script>
</head>
<body>
<nav id="mainNav" class="navbar navbar-default navbar-fixed-top">
<div class="container">
<div class="navbar-header">
<a class="navbar-brand" href="#">Chronocube</a>
</div>
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<p class="navbar-text navbar-right">A simple and beautiful way to manage your Rubik's cube solves</p>
</div>
</div>
</nav>
<section>
<div class="container">
<div class="col-lg-12 logo">
<img src="src/img/icon200px.png" />
</div>
</div>
<div class="container">
<div class="col-lg-12 buttons">
<a href="#" id="download" class="btn btn-lg btn-info"><i class="fa fa-arrow-circle-down" aria-hidden="true"></i><span> Download</span></a>
<a href="src/" class="btn btn-lg btn-success"><i class="fa fa-html5" aria-hidden="true"></i><span> Use it online</span></a>
<a href="https://github.com/pablopunk/chronocube" class="btn btn-lg btn-warning"><i class="fa fa-code" aria-hidden="true"></i><span> Source Code</span></a>
</div>
</div>
</section>
</body>
</html>