-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbubble.html
80 lines (52 loc) · 2.05 KB
/
bubble.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
<div class="bubble" id="{{itemID}}">
<!-- Toggle -->
<div class="bubble--toggle" ng-show="toggle === true && types.length > 1">
<div ng-repeat="type in types" ng-click="$parent.current = type"
class="bubble--toggle--button"
ng-class="{selected: $parent.current==type}">
{{type}}
</div>
</div>
<!-- Person -->
<div class="bubble--photo" ng-if="person" ng-show="current === 'Person'"
ng-style="{'background-image' : 'url(' + person['schema:image'] + ')' }"
data-name="{{person['schema:givenName']}}" data-type="Person">
<div class="bubble--label">
{{person["schema:givenName"]}} {{person["schema:familyName"]}}
</div>
</div>
<!-- Place -->
<div class="bubble--photo" ng-if="place" ng-show="current === 'Place'"
ng-style="{'background-image' : 'url(' + place['schema:image'] + ')' }"
data-name="{{place['schema:name']}}" data-type="Place">
<div class="bubble--label">
{{place["schema:name"]}}
</div>
</div>
<!-- Product -->
<div class="bubble--photo" ng-if="product" ng-show="current === 'Product'"
ng-style="{'background-image' : 'url(' + product['schema:image'] + ')' }"
data-name="{{product['schema:name']}}" data-type="Product">
<div class="bubble--label">
{{product["schema:name"]}}
</div>
</div>
<!-- Organization -->
<div class="bubble--photo" ng-if="organization"
ng-show="current === 'Organization'"
ng-style="{'background-image' : 'url(' + organization['schema:logo'] + ')' }"
data-name="{{product['schema:name']}}" data-type="Organization">
<div class="bubble--label">
{{organization["schema:name"]}}
</div>
</div>
<!-- Service -->
<div class="bubble--photo" ng-if="service"
ng-show="current === 'Service'"
ng-style="{'background-image' : 'url(' + service['schema:logo'] + ')' }"
data-name="{{product['schema:name']}}" data-type="Service">
<div class="bubble--label">
{{service["schema:name"]}}
</div>
</div>
</div>