forked from Mark-H/twitterwall
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.html
246 lines (221 loc) · 10.8 KB
/
test.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
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
246
<!DOCTYPE HTML>
<html>
<!--[if lte IE 9]>
<h2>We're sorry, but your browser isn't currently supported by this board :/</h2>
<h2>You need at least Internet Explorer 10 to view this page</h2>
<![endif]-->
<!--[if gte IE 10]>
<head>
<!-- <link rel="stylesheet" type="text/css" href="test.css"> -->
<style type="text/css">
html {
height:100%;
width:100%;
}
body {
margin: 0 auto;
padding: 0;
height: 100%;
overflow: hidden;
}
#container {
/*margin-top: .5%;
margin-left: .5%;*/
height: 100%;
}
.item {
height: 33.4%;
width: 33.33%;
float: left;
background: #0AACAE;
/*border: 4px solid #333;
border-color: hsla(0, 0%, 0%, 0.3);*/
box-sizing:border-box;
-moz-box-sizing:border-box;
-webkit-box-sizing:border-box;
font-family: 'Lato' !important;
font-style: normal;
font-weight: 400;
cursor: pointer;
}
.item.dh { height: 66.7%; }
.item h2 {
color: white;
position: absolute;
top: 10px;
left: 20px;
right: 15px;
text-shadow: 1px 1px 1px rgba(19, 18, 18, 0.98);
margin-top: 0px;
margin-bottom: 0px;
font-weight: 300;
font-size: 25px;
}
.item h4 {
color: white;
text-shadow: 1px 1px 1px rgba(19, 18, 18, 0.98);
position: absolute;
top: 10px;
left: 20px;
right: 15px;
font-weight: 300;
font-size: 25px;
margin-top: 0px;
margin-bottom: 0px;
}
.animated {
-webkit-animation-duration: 700ms!important;
animation-duration: 700ms!important;
-webkit-animation-fill-mode: both!important;
animation-fill-mode: both!important;
}
</style>
<link href='https://fonts.googleapis.com/css?family=Lato:300,400,700' rel='stylesheet' type='text/css'>
<link href='https:////cdnjs.cloudflare.com/ajax/libs/animate.css/3.1.1/animate.min.css' rel='stylesheet' type='text/css'>
</head>
<body>
<div id="container" style="">
<a class="item full-bg-0 animated fadeInLeft", target="_blank">
<div class="background-faded-0">
<h4 class="item-text-0">
</h4>
</div>
</a>
<a class="item full-bg-1 animated fadeInDown", target="_blank">
<div class="background-faded-1">
<h4 class="item-text-1">
</h4>
</div>
</a>
<a class="item dh full-bg-2 animated fadeInRight", target="_blank">
<div class="background-faded-2">
<h2 class="item-text-2">
</h2>
</div>
<!-- <img src="http://higherlogicdownload.s3.amazonaws.com/HL/UploadedImages/7f2de571-92e8-49b0-ba12-27413bf99c95/HL_Blog_Sheridan_300x300%20copy.jpg" style="margin-left:30%;
border-radius:150px;"> -->
</a>
<a class="item dh full-bg-3 animated fadeInLeft", target="_blank">
<div class="background-faded-3">
<h2 class="item-text-3">
</h2>
</div>
<!-- <img src="http://higherlogicdownload.s3.amazonaws.com/HL/UploadedImages/7f2de571-92e8-49b0-ba12-27413bf99c95/HigherLogic_Personify_Webinar.jpg" style="margin-left:30%;
border-radius:150px;"> -->
</a>
<a class="item full-bg-4", target="_blank">
<div class="background-faded-4">
<h4 class="item-text-4">
</h4>
</div>
</a>
<a class="item full-bg-5 animated fadeInUp", target="_blank">
<div class="background-faded-5">
<h4 class="item-text-5">
</h4>
</div>
</a>
<a class="item full-bg-6 animated fadeInRight", target="_blank">
<div class="background-faded-6">
<h4 class="item-text-6">
</h4>
</div>
</a>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/packery/1.1.2/packery.pkgd.min.js"></script>
<script type="text/javascript">
$('#container').packery({
itemSelector: '.item',
"columnWidth": '.item',
"rowHeight": '.item'
});
var REG = /<img src=.(.*)'\/>/;
var items = [
{
title: 'How to Create Community Reports - HUG',
image: 'http://cdn2.hubspot.net/hub/312413/file-1032098961-png/thumbnail_community_mgmt_report_hubspot.png',
url: 'http://hug.higherlogic.com/communities/community-home/viewthread/?GroupId=727&MID=20935&tab=digestviewer',
tileBackground: 'linear-gradient(rgba(200, 73, 145, .7), rgba(200, 73, 145, .5))',
titleBackground: 'height: 100px;width: 100%;position: absolute;bottom: 0px;background-color: rgba(200, 73, 145, .95);'
},
{
title: 'How to Engage Your Audience Through Content Marketing - Marcus Sheridan',
image: 'http://cdn2.hubspot.net/hub/312413/file-404865041-jpg/HUG_Buzz_-_December_2013/marcus_sheridan_keynote_image.jpg',
url: 'http://www.higherlogic.com/resources/learning-series/how-to-engage-your-audience-through-content-marketing',
tileBackground: 'linear-gradient(rgba(10,172,174, .7), rgba(10,172,174, .5))',
titleBackground: 'height: 100px;width: 100%;position: absolute;bottom: 0px;background-color: rgba(10,172,174, .95);'
},
{
title: 'Learn How to Build Bigger, Better and More Active Online Communities',
image: 'http://higherlogicdownload.s3.amazonaws.com/HUG/6ab9a070-fc6c-4010-a591-23cccea8d851/UploadedImages/HUG%20Buzz/image_8_Steps_Guide_iPad_Icons.png',
url: 'http://www.higherlogic.com/resources/learning-series/fever-bee',
tileBackground: 'linear-gradient(rgba(9, 140, 182, 0.75), rgba(9, 140, 182, 0.61))',
titleBackground: 'height: 100px;width: 100%;position: absolute;bottom: 0px;background-color: rgba(255,114,3, .90);'
},
{
title: '10 Community Management Tips',
image: 'http://higherlogicdownload.s3.amazonaws.com/HL/339ad0cc-c652-4903-ad9b-f95e96ff29eb/UploadedImages/www/Tip_Sheets_and_Guides/10_cool_community_management_tips.png',
url: 'http://resources.higherlogic.com/higher-logic-cmad-2014',
tileBackground: 'linear-gradient(rgba(9, 140, 182, 0.75), rgba(9, 140, 182, 0.61))',
titleBackground: 'height: 100px;width: 100%;position: absolute;bottom: 0px;background-color: rgba(9, 140, 182, .90);'
},
{
title: '5 Tenets of Engagement Success - HUG',
image: 'http://model.shoppingdelpaseo.com.br/uploads/2011/07/top5.jpg',
url: 'http://hug.higherlogic.com/browse/blogs/blogviewer/?BlogKey=c35b1bed-2da7-42ce-a166-71a355c439c7',
tileBackground: 'linear-gradient(rgba(174,176,177, .7), rgba(174,176,177, .5))',
titleBackground: 'height: 100px;width: 100%;position: absolute;bottom: 0px;background-color: rgba(111, 111, 111, 0.90);'
},
{
title: 'The Anatomy of a Meaningful Community - Moz',
image: 'http://d2v4zi8pl64nxt.cloudfront.net/the-anatomy-of-a-meaningful-community/541b6ce2de8216.74640903.jpg',
url: 'http://moz.com/ugc/the-anatomy-of-a-meaningful-community',
tileBackground: 'linear-gradient(rgba(129,191,79, .7), rgba(129,191,79, .5))',
titleBackground: 'height: 100px;width: 100%;position: absolute;bottom: 0px;background-color: rgba(129,191,79, .95);'
},
{
title: 'Why Associations Need Actionable Data, Not Big Data - HUG',
image: 'http://higherlogicdownload.s3.amazonaws.com/HUG/UploadedImages/7a254f66-d28c-430b-acb3-cb570970ec76/Moneyball.jpg',
url: 'http://hug.higherlogic.com/blogs/howard-pollock/2014/09/15/why-associations-need-actionable-data-not-big-data',
tileBackground: 'linear-gradient(rgba(255,114,3, .7), rgba(255,114,3, .5))',
titleBackground: 'height: 100px;width: 100%;position: absolute;bottom: 0px;background-color: rgba(200, 73, 145, .95);'
}
];
var hover_colors = [];
var indexesToReplace = [1, 4, 5];
for(i = 0; i <= 6; i++) {
var stub = 'url(' + items[i].image + ')';
console.log(stub);
$('.full-bg-'+i).css('background', stub, 'important').css('background-size', 'cover', 'important').attr('href', items[i].url);
var target = $('.background-faded-'+i);
target.attr("style", target.attr("style") + "; " + items[i].titleBackground);
$('.item-text-'+i).html(items[i].title);
}
$.ajax({
type: "POST",
headers: { 'Access-Control-Allow-Origin': '*' },
url: 'http://104.131.40.143:8585/rss',
data: {feedUrl: 'https://app.triblio.com/rss-feed/AGz'}
}).done(function(data){
console.log(data);
// for(i = 0; i <= 6; i++) {
// var stub = items[i].tileBackground + ',url(' + items[i].image + ')';
// console.log(stub);
// $('.full-bg-'+i).css('background', stub, 'important').css('background-size', 'cover', 'important').attr('href', items[i].url);
// var target = $('.background-faded-'+i);
// target.attr("style", target.attr("style") + "; " + items[i].titleBackground);
// $('.item-text-'+i).html(items[i].title);
// }
// // data.forEach(function(item, idx){
// // var id = '.full-bg-'+(indexesToReplace[idx]);
// // var url = REG.exec(item.pic)[1];
// // var stub = 'linear-gradient(rgba(10,172,174, .7), rgba(10,172,174, .5)),url(' + url + ')';
// // $(id).css('background', stub, 'important').css('background-size', 'cover', 'important').attr('href', item.link);
// // $('.item-text-'+(indexesToReplace[idx])).html(item.title);
// // });
});
</script>
</body>
<![endif]-->
</html>