-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
33 lines (30 loc) · 1.2 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>@ecomclub/refapp sample</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/lykmapipo/[email protected]/css/themify-icons.css">
<link rel="stylesheet" href="./../css/styles.css">
</head>
<body>
<div id="app"></div>
<script src="https://code.jquery.com/jquery-3.3.1.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/showdown/1.8.6/showdown.min.js"></script>
<script src="./../dist/refapp.js"></script>
<script language="javascript">
console.log('Sample for @ecomclub/refapp', 'https://github.com/ecomclub/refapp')
var converter = new showdown.Converter()
$('#app').refapp([
{
src: './refract.json',
title: 'Posts'
}
], {
mdParser: function (md) { return converter.makeHtml(md) }
})
</script>
</body>
</html>