-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtasteofcinema.html
128 lines (111 loc) · 2.87 KB
/
tasteofcinema.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
<script type='text/javascript' src='https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js'></script>
<script type="text/javascript">
(function ($) {
$.fn.FeedEk = function (opt) {
var def = {
FeedUrl: '',
MaxCount: 5,
ShowDesc: true,
ShowPubDate: true
};
if (opt) {
$.extend(def, opt)
}
var idd = $(this).attr('id');
if (def.FeedUrl == null || def.FeedUrl == '') {
$('#' + idd).empty();
return
}
var pubdt;
$('#' + idd).empty().append('<div style="text-align:left; padding:3px;"><img src="loader.gif" /></div>');
$.ajax({
url: 'http://ajax.googleapis.com/ajax/services/feed/load?v=1.0&num=' + def.MaxCount + '&output=json&q=' + encodeURIComponent(def.FeedUrl) + '&callback=?',
dataType: 'json',
success: function (data) {
$('#' + idd).empty();
$.each(data.responseData.feed.entries, function (i, entry) {
$('#' + idd).append('<div class="ItemTitle"><a href="' + entry.link + '" target="_blank" >' + entry.title + '</a></div>');
if (def.ShowPubDate) {
pubdt = new Date(entry.publishedDate);
$('#' + idd).append('<div class="ItemDate">' + pubdt.toLocaleDateString() + '</div>')
}
if (def.ShowDesc) $('#' + idd).append('<div class="ItemContent">' + entry.content + '</div>')
})
}
})
}
})(jQuery);
</script>
<script type="text/javascript" >
$(document).ready(function(){
$('#divRss3').FeedEk({
FeedUrl : 'http://feeds.feedburner.com/tasteofcinema/TGBZ?v=1',
MaxCount : 25,
ShowDesc : true,
ShowPubDate: true
});
});
</script>
<style type="text/css">
#divRss3 {
width: 685px;
padding: 0px 3px 3px 5px;
background-color: #FFF;
border: 1px solid #D3CAD7;
margin-top: 3px;
line-height: normal;
text-align: left;
}
.ItemTitle{
font-weight:bold;
margin:5px 0px 0px 0px;
padding-top:3px;
}
.ItemTitle a{
font-family: Calibri, Arial, Helvetica, sans-serif;
color: #4b9701;
text-decoration: none;
font-size: 24px;
font-weight: bold;
}
.ItemTitle a:visited {
color: #999999;
}
.ItemTitle a:hover {
color: #C43F3C;
}
.ItemContent{
padding: 1px 3px 3px 3px;
border-bottom: 1px solid #D3CAD7;
color: #666666;
font-family: Calibri, Arial, Helvetica, sans-serif;
font-size: 14px;
line-height: normal;
}
.ItemContent a{
color: #4b9701;
}
.ItemDate{
font-size:10px;
color:#AAA;
}
</style>
<div class="TabbedPanelsContentGroup" style="padding-top:4px;">
<div class="TabbedPanelsContent" style="-webkit-border-radius: 8px;
border-radius: 8px; background-color:#f2f2f2; padding:6px;
border-top-width: 1px;
border-right-width: 2px;
border-bottom-width: 2px;
border-left-width: 1px;
border-top-style: solid;
border-right-style: solid;
border-bottom-style: solid;
border-left-style: solid;
border-top-color: #999;
border-right-color: #818181;
border-bottom-color: #818181;
border-left-color: #999;
">
<h1> Taste of Cinema </h1>
<div id="divRss3" ></div>
</div></div>