-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
245 lines (210 loc) · 11.8 KB
/
index.html
File metadata and controls
245 lines (210 loc) · 11.8 KB
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
<!DOCTYPE html>
<html ng-app="myApp">
<head>
<meta charset="utf-8" />
<link rel="icon" href="assets/favor.png" />
<title>Outbrain Smartfeed Generator</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" href="libs/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="libs/ng-sortable/ng-sortable.min.css">
<link rel="stylesheet" type="text/css" href="libs/ng-sortable/ng-sortable.style.min.css">
<script type="text/javascript" src="libs/angular.min.js"></script>
<script type="text/javascript" src="libs/ui-bootstrap.min.js"></script>
<script type="text/javascript" src="libs/ui-bootstrap-tpls.min.js"></script>
<script type="text/javascript" src="libs/ng-sortable/ng-sortable.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-tour/0.11.0/js/bootstrap-tour-standalone.min.js"></script>
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-tour/0.11.0/css/bootstrap-tour-standalone.min.css">
<script src="libs/angular-sqlite.js"></script>
<link rel="stylesheet" type="text/css" media="screen" href="style.css" />
<script src="https://unpkg.com/tippy.js@2.5.4/dist/tippy.all.min.js"></script>
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.2.0/css/all.css" integrity="sha384-hWVjflwFxL6sNzntih27bfxkr27PmbbK/iSvJ+a4+0owXq79v+lsFkW54bOGbiDQ" crossorigin="anonymous">
<script src="app.js"></script>
</head>
<body ng-controller="myCtrl" id="sortable-container" style="overflow: hidden;">
<div id="wrapper">
<header class="navbar navbar-default navbar-fixed-top navbar-inner main-header">
<div class="ico-logo"></div>
</header>
<div class="row main-container">
<!-- The Modal -->
<div id="myModal" class="modal">
<!-- Modal content -->
<div class="modal-content">
<p class="reset-header">Are you sure you want to reset your cards?</p>
<div class="button-area">
<button type="button" class="btn btn-default" style="float: left;" ng-click="close();">No</button>
<button type="button" class="btn btn-primary" style="float: right;" ng-click="yes();">Yes</button>
</div>
</div>
</div>
<!--Card Marketplace on the left side of the screen-->
<div class="col-39 card-markplace">
<h1 class="title">Step 1</h1>
<!-- <div class="tooltips-step1" ><i class="fa fa-question-circle" style="color:grey;" aria-hidden="true" ></i>
</div> -->
<div id="step1" style="display: none;">
<p style="font-size: 15px;margin: 3%;"> <span style="font-family: AvenirNext-Bold">Step 1</span><br> Drag your desired cards from this Card Marketplace to the Editor in the middle panel</p>
</div>
<h2 class="title">Drag desired cards to the middle panel</h2>
<div class="sortable-row row" as-sortable="sortableCloneOptions" data-ng-model="itemsList.items1">
<div class="col-45 card-item panel panel-default" ng-repeat="item in itemsList.items1" ng-if="item.Id != 9" as-sortable-item as-sortable-item-handle>
<div class="panel-heading md-title">
<label>
<svg xmlns="http://www.w3.org/2000/svg" width="18" height="27" viewBox="0 0 18 27">
<path fill="#B7B7B7" fill-rule="evenodd" d="M.978.607h6.49V7.1H.978V.607zm9.734 0h6.49V7.1h-6.49V.607zM.978 10.346h6.49v6.492H.978v-6.492zm9.734 0h6.49v6.492h-6.49v-6.492zM.978 20.084h6.49v6.492H.978v-6.492zm9.734 0h6.49v6.492h-6.49v-6.492z"/>
</svg>
{{item.Label}}
</label>
</div>
<div class="panel-body">
<div class="item color-{{item.Id}}">
<img src="assets/ico/ico-{{item.Id}}.png" alt="">
</div>
</div>
</div>
</div>
</div>
<div class="col-21 middle-place">
<h1 class="title">Step 2</h1>
<!-- <div class="tooltips-step2" ><i class="fa fa-question-circle" style="color:rgb(218, 218, 218);" aria-hidden="true" ></i>
</div> -->
<div id="step2" style="display: none;">
<p style="font-size: 15px; margin: 3%;"> <span style="font-family: AvenirNext-Bold;" >Step 2</span><br> After populating your cards here, click "Generate". You can also rearrange, remove or reset cards</p>
</div>
<h2 class="title">After populating your cards here, click "Generate" and your feed will appear in <br>the mobile device</h2>
<h3 class="title">After populating your cards here, tap "Generate" and your feed will appear in the mobile device</h3>
<div class="middle-header">
<button type="button" class="btn reset-btn" ng-click="reset();">
<div class="reset-icon">
<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 24 24" fit="" preserveAspectRatio="xMidYMid meet" style="pointer-events: none; display: block;">
<path d="M19 8l-4 4h3c0 3.31-2.69 6-6 6-1.01 0-1.97-.25-2.8-.7l-1.46 1.46C8.97 19.54 10.43 20 12 20c4.42 0 8-3.58 8-8h3l-4-4zM6 12c0-3.31 2.69-6 6-6 1.01 0 1.97.25 2.8.7l1.46-1.46C15.03 4.46 13.57 4 12 4c-4.42 0-8 3.58-8 8H1l4 4 4-4H6z"></path>
<path d="M0 0h24v24H0z" fill="none"></path>
</svg>
</div>
</button>
<button type="button" class="btn btn-primary" ng-click="save();" style="float: right;">Generate</button>
</div>
<div class="sortable-row" as-sortable="sortableOptions" data-ng-model="itemsList.items2">
<div ng-repeat="item in itemsList.items2" as-sortable-item>
<button type="button" class="ipad-touch-button" ng-click="closeItem($index);" style="float: right;">.</button>
<div as-sortable-item-handle ng-if="item.Id != 9">
<div class="middle-item middle-{{item.Id}} panel panel-default">
<div class="middle-icon m-ico-1">
<svg xmlns="http://www.w3.org/2000/svg" width="17" height="27" viewBox="0 0 17 27">
<path fill="#FFF" fill-rule="evenodd" d="M.758.532h6.49v6.496H.757V.532zm9.734 0h6.49v6.496h-6.49V.532zM.758 10.276h6.49v6.495H.757v-6.495zm9.734 0h6.49v6.495h-6.49v-6.495zM.758 20.019h6.49v6.496H.757v-6.496zm9.734 0h6.49v6.496h-6.49v-6.496z"/>
</svg>
</div>
<p> {{item.Label}} </p>
<div class="middle-icon m-ico-2" ng-click="closeItem($index);">
<svg xmlns="http://www.w3.org/2000/svg" width="46" height="46" viewBox="0 0 46 46">
<g fill="#FFF" fill-rule="nonzero" id="close-ico">
<path d="M23 46C10.297 46 0 35.703 0 23S10.297 0 23 0s23 10.297 23 23-10.297 23-23 23zm0-2c11.598 0 21-9.402 21-21S34.598 2 23 2 2 11.402 2 23s9.402 21 21 21z"/>
<path d="M30.847 27.881l-2.988 2.988-4.85-4.85-4.86 4.859-3.05-3.051 4.858-4.859-4.826-4.827 2.988-2.988 4.827 4.827 4.88-4.881 3.052 3.05-4.882 4.882 4.85 4.85z"/>
</g>
</svg>
</div>
</div>
</div>
<div class="middle-item middle-place-holder panel panel-default" ng-if="item.Id == 9" id="placementholder">
<div class="middle-icon m-ico-2">
<svg xmlns="http://www.w3.org/2000/svg" width="46" height="46" viewBox="0 0 46 46" id="placementholder-svg">
<g fill="#FFF" fill-rule="nonzero" opacity=".6" id="placementholder-g">
<path d="M23 46C10.297 46 0 35.703 0 23S10.297 0 23 0s23 10.297 23 23-10.297 23-23 23zm0-2c11.598 0 21-9.402 21-21S34.598 2 23 2 2 11.402 2 23s9.402 21 21 21z"/>
<path d="M32 20.903v4.226h-6.86V32h-4.314v-6.871H14v-4.226h6.826V14h4.314v6.903H32z"/>
</g>
</svg>
</div>
</div>
</div>
</div>
</div>
<script type="text/ng-template" id="render.html">
</script>
<div class="col-39 device-place">
<div class="tooltips-smartfeed" ><i class="fa fa-question-circle" style="color:rgb(190, 190, 190);" aria-hidden="true" ></i></div>
<div id="smartfeed" style="display: none;">
<p style="font-size: 15px;margin: 3%;"> <span style="font-family: AvenirNext-Bold">Smartfeed</span><br> Once the card arrangement is generated, the Smartfeed experience will appear in this mobile device below the article</p>
</div>
<div class="mobile-device">
<div class="mobile-device window">
<iframe class="mobile-device window iframe" src="render/render.html" id="render-frame" style="display:block;"></iframe>
</div>
</div>
<div class="learnlink">
<a href="https://lp.outbrain.com/smartfeed/" target="_blank">Learn More</a>
</div>
</div>
<script src="libs/jquery/jquery-1.9.1.min.js"></script>
<script>
tippy('.tooltips-step1' , {
html: '#step1',
delay: 50,
arrow: true,
arrowType: 'round',
size: 'regular',
duration: 500,
animation: 'perspective',
flip: true,
placement: 'bottom',
maxWidth: '300px',
arrowTransform: 'scaleX(2)',
arrowType: 'sharp',
theme: 'regular',
})
</script>
<script>
tippy('.tooltips-step2' , {
html: '#step2',
delay: 50,
arrow: true,
arrowType: 'round',
size: 'regular',
duration: 500,
animation: 'perspective',
flip: true,
placement: 'bottom',
maxWidth: '300px',
arrowTransform: 'scaleX(2)',
arrowType: 'sharp',
theme: 'regular',
})
</script>
<script>
tippy('.tooltips-smartfeed' , {
html: '#smartfeed',
delay: 50,
arrow: true,
arrowType: 'round',
size: 'regular',
duration: 500,
animation: 'perspective',
flip: true,
placement: 'bottom',
theme: 'light',
maxWidth: '340px',
arrowTransform: 'scaleX(2)',
arrowType: 'sharp',
})
var tour = new Tour({
steps: [
{
element: "#smartfeed",
title: "Title of my step",
content: "Content of my step"
},
{
element: "#my-other-element",
title: "Title of my step",
content: "Content of my step"
}
]});
// Initialize the tour
tour.init();
// Start the tour
tour.start();
</script>
</div>
</div>
</body>
</html>