-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
42 lines (35 loc) · 1.66 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
<!DOCTYPE html>
<html>
<head>
<meta charset = "UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>composeCard Card</title>
<!-- <link rel="stylesheet" type="text/css" href="https://dwln9tzsi7g07.cloudfront.net/Assets/semantic.min.css"> -->
<!-- <link href="https://fonts.googleapis.com/css?family=Bitter:400,700|Cabin:400,400i,500,700" rel="stylesheet"> -->
<!-- <script src="//cdn.tinymce.com/4/tinymce.min.js"></script> -->
<link rel="stylesheet" type="text/css" href="./src/css/styles.css">
</head>
<body>
<style>
.test-card {
margin: 10px 20px;
}
</style>
<div id="card" class="test-card"></div>
<script src = "./dist/0.0.1/card.min.js"></script>
<script type="text/javascript">
var x = new ProtoGraph.Card.ComposeCard(),
params = {
selector: document.querySelector('#card'),
data_url: "dist/0.0.1/sample.json",
configuration_url: "./dist/0.0.1/configuration_sample.json"
};
//params['site_config_url'] = "./dist/0.0.1/site.json"
params['site_configs'] = { "header_logo_url": "https://d2jco8ydyctdne.cloudfront.net/images/indianexpress/57c86975cd78ab70/2432.png", "header_background_color": "#000000", "header_jump_to_link": "http://indianexpress.com", "header_logo_position": "center", "house_colour": "#ee1c25", "reverse_house_colour": "#4caf50", "font_colour": "#ffffff", "reverse_font_colour": "#ffffff", "primary_language": "English", "story_card_style": "Clear: Color", "story_card_flip": true }
x.init(params);
// x.renderCol3();
// x.renderCol4();
x.renderCol7();
</script>
</body>
</html>