-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
78 lines (77 loc) · 2.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
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Required meta tags always come first -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,
initial-scale=1, shrink-to-fit=no">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<link rel="stylesheet" href="https://cdn.rawgit.com/twbs/bootstrap/v4-dev/dist/css/bootstrap.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">
<title>Reno.js</title>
<style>
.container {
margin-top: 200px;
}
#networks > .btn {
margin-right: 5px;
margin-bottom: 5px;
}
</style>
</head>
<body>
<div class="container">
<div class="row">
<div class="col-md-3 col-sm-12">
<img src="./img/renojs.png"/>
</div>
<div class="col-md-8 col-md-offset-1 col-sm-12">
<h4>A community of JavaScript Developers in Reno, NV.</h4>
<div id="networks">
</div>
</div>
</div>
</div>
<script type="text/javascript" src="https://code.jquery.com/jquery-2.1.1.min.js"></script>
<script src="https://cdn.rawgit.com/twbs/bootstrap/v4-dev/dist/js/bootstrap.js" crossorigin="anonymous"></script>
<script>
var networks = [{
link: 'http://meetup.com/renojs',
title: 'Meetup',
color: '#E0393E'
}, {
link: 'http://github.com/renojs',
title: ' Github',
icon: 'fa fa-github',
color: '#171515'
}, {
link: 'https://www.facebook.com/renojavascript',
title: ' Facebook',
icon: 'fa fa-facebook',
color: '#3b5999'
}, {
link: 'https://twitter.com/renojavascript',
title: ' Twitter',
icon: 'fa fa-twitter',
color: '#55acee'
}, {
link: 'http://slack.devreno.org',
title: ' Slack',
icon: 'fa fa-slack',
color: '#56B68B'
}];
var $networks = $('#networks');
networks.forEach(function (network) {
var $button = $('<a href="' + network.link + '" class="btn btn-lg">');
$button.append(network.title);
$button.css('background-color', network.color);
$button.css('color', 'white');
if(network.icon) {
var $icon = $('<i class="left">').addClass(network.icon);
$button.prepend($icon)
}
$networks.append($button);
});
</script>
</body>
</html>