forked from knode/node-meatspace
-
Notifications
You must be signed in to change notification settings - Fork 0
/
template.hbs
66 lines (64 loc) · 2.15 KB
/
template.hbs
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
<html>
<head>
<title>Node.js Meatspace</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href='http://fonts.googleapis.com/css?family=Raleway' rel='stylesheet' type='text/css' />
<style>
body {
padding: 40px 20px;
font-family: 'Raleway', sans-serif;
color: #333;
max-width: 800px;
margin: 0px auto;
}
a {
text-decoration: none;
padding-bottom: 1px;
border-bottom: 1px solid #acacac;
color: #58A775;
}
a:hover {
border-bottom: 1px dotted #acacac;
opacity: .75;
}
h1 {font-size: 300%;}
p, li {line-height: 1.6em;}
ul {
list-style: none;
margin: 0px;
padding: 10px;
background: #eee;
}
ul + ul {padding: 0px;}
ul li:not(:last-child) {
margin: 4px 0px;
padding-bottom: 6px;
background: #eee;
}
img.country {
max-height:14px;
padding-left:1px;
padding-right:2px;
}
</style>
</head>
<body>
<a href="https://github.com/mikeal/node-meatspace"><img style="position: absolute; top: 0; right: 0; border: 0;" src="https://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png" alt="Fork me on GitHub"></a>
<a href="https://twitter.com/nodemeatspace" class="twitter-follow-button" data-show-count="false">Follow @nodemeatspace</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script>
{{{readme}}}
<script src="countryiso.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script>
<script>
$(function () {
$('strong').each(function () {
var str = $(this).text()
if (countryiso(str)) {
console.log(countryiso(str))
$(this).prepend($('<img class="country" src="'+countryiso(str)+'"></img>'))
}
})
})
</script>
</body>
</html>