This repository has been archived by the owner on Sep 23, 2021. It is now read-only.
forked from framini/pestle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
83 lines (67 loc) · 2.8 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></title>
</head>
<body>
<div class="container-1">
<div data-platform-component="Example1"
data-platform-dataset='[{"itemId": "1","title": "Lizard Island","nearby": "Australia","leadImage": "http://lorempixel.com/g/200/200/","path": "http://lizard.com"},{"itemId": "2","title": "Homewood Suites","nearby": "United States","leadImage": "http://lorempixel.com/g/200/200/","path": ""}]' data-platform-single="no"><span class="boton">X</span></div>
</div>
<div class="container-2">
<div data-platform-component="Example2"><span class="boton">X</span></div>
<div data-platform-component="Example4"><span class="boton">X</span></div>
</div>
<div class="container-3">
<div data-platform-component="Example5" data-platform-title="This is a title for Example number 5"><span class="title"></span> <span class="boton">X</span></div>
</div>
<div style="width:200px">
<div class="delayed-image-load" data-src="http://kids.nationalgeographic.com/content/dam/kids/photos/articles/Other Explore Photos/H-P/International Photography Contest/IPC-amazing-AlexV2003.jpg/{width}/{pixel_ratio}"></div>
</div>
<!-- DEPENDENCIES -->
<script src="node_modules/jquery/dist/jquery.js"></script>
<script src="node_modules/underscore/underscore.js"></script>
<!-- END DEPENDENCIES -->
<script src="build/pestle.js"></script>
<!-- Example on how to instantiate Pestle without browserify -->
<script>
(function() {
Pestle.instance = new Pestle.Core({
debug: {
logLevel: 5
},
extension: {
"responsiveimages": {
"availableWidths": [133, 152, 162, 225, 210, 224, 280, 352, 470, 536, 590, 676, 710, 768, 885, 945, 1190]
}
},
component: {
"Example4": {
bar: "baz" // Default config option for all Example4 instances
}
}
});
// Set the config settings
// In this case, its overwritting the values pased above to the constructor
// when instantiating Pestle. Usually here is where you should define
// and set the config value.
Pestle.instance.setConfig({
debug: {
logLevel: 0
}
});
// Set default options (available within Example under this.__defaults__)
Pestle.instance.setComponentConfig('Example4', {
foo: "bar" // Default config option for all Example4 instances
});
}).call(this);
</script>
<!-- MODULES -->
<script src="build/main.js"></script>
<script>
(function() {
Pestle.instance.start();
}).call(this);
</script>
</body>
</html>