-
Notifications
You must be signed in to change notification settings - Fork 107
/
FeedEk_demo.html
158 lines (145 loc) · 4.36 KB
/
FeedEk_demo.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="content-language" content="en" />
<title>FeedEk jQuery RSS/ATOM Feed Plugin Demo | jQuery RSS/ATOM Parser Plugin FeedEk Demo</title>
<link href="css/FeedEk.css" rel="stylesheet" type="text/css" />
<style>
body{font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;background-color: #efefef;font-size: 13px;line-height: 17px !important;}
.feedDiv{float: left;padding-right: 35px;}
ul{width: 300px !important;}
pre{border:1px dashed #BBB; background-color:#fffcfc}
</style>
</head>
<body>
<div style="padding: 10px;">
<h1>FeedEk Examples</h1>
<div>
<div class="feedDiv">
<p><strong>Basic Example</strong></p>
<div id="divFeed"></div>
<strong>Code</strong>
<pre>
$('#divFeed').FeedEk({
FeedUrl: 'https://jquery-plugins.net/rss',
MaxCount: 2
});
</pre>
</div>
<div class="feedDiv">
<p><strong>Description Character Limit Example</strong></p>
<div id="divFeed2"></div>
<strong>Code</strong>
<pre>
$('#divFeed').FeedEk({
FeedUrl: 'https://jquery-plugins.net/rss',
MaxCount: 3,
ShowDesc: true,
ShowPubDate: false,
DescCharacterLimit: 100
});
</pre>
</div>
<div class="feedDiv">
<p><strong>Multiple Feed Url Example</strong></p>
<div id="divFeed3"></div>
<strong>Code</strong>
<pre>
$('#divFeed').FeedEk({
FeedUrl: ['http://feeds.bbci.co.uk/news/rss.xml',
'https://www.espn.com/espn/rss/news'],
MaxCount: 4
});
</pre>
</div>
<div style="clear: both"></div>
</div>
<h2>Examples with date format</h2>
<div>
<div class="feedDiv">
<div id="divFeed4"></div>
<strong>Code</strong>
<pre>
$('#divFeed').FeedEk({
FeedUrl: 'https://jquery-plugins.net/rss',
MaxCount: 2,
DateFormat: 'd',
DateFormatLang:'en'
});
</pre>
</div>
<div class="feedDiv">
<div id="divFeed5"></div>
<strong>Code</strong>
<pre>
$('#divFeed').FeedEk({
FeedUrl: 'https://jquery-plugins.net/rss',
MaxCount: 2,
DateFormat: 'D',
DateFormatLang:'fr-FR'
});
</pre>
</div>
<div class="feedDiv">
<div id="divFeed10"></div>
<strong>Code</strong>
<pre>
$('#divFeed').FeedEk({
FeedUrl: 'https://jquery-plugins.net/rss',
MaxCount: 2,
DateFormat: 'MM-dd-yyyy HH:mm',
DateFormatLang:'en'
});
</pre>
</div>
<div style="clear: both"></div>
</div>
<hr />
<div>
<div class="feedDiv">
<div id="divFeed11"></div>
<strong>Code</strong>
<pre>
$('#divFeed').FeedEk({
FeedUrl: 'https://jquery-plugins.net/rss',
MaxCount: 2,
DateFormat: 'dd MMMM yyyy',
DateFormatLang: 'en'
});
</pre>
</div>
<div style="clear: both"></div>
</div>
</div>
<p><a href="https://jquery-plugins.net/FeedEk/FeedEk.html">FeedEk Plugin Page</a> <a href="https://jquery-plugins.net/FeedEk/FeedEk_demo.html" >Demo</a> <a href="https://github.com/enginkizil/FeedEk" >Github</a></p><br/><br />
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<script type="text/javascript" src="js/FeedEk.min.js"></script>
<script type="text/javascript">
$(document).ready(function () {
$('#divFeed').FeedEk({
FeedUrl: 'https://jquery-plugins.net/rss', MaxCount: 2
});
$('#divFeed2').FeedEk({
FeedUrl: 'https://jquery-plugins.net/rss', MaxCount: 3, ShowDesc: true, ShowPubDate: false, DescCharacterLimit: 100
});
$('#divFeed3').FeedEk({
FeedUrl: ['http://feeds.bbci.co.uk/news/rss.xml','https://www.espn.com/espn/rss/news'],
MaxCount: 4
});
$('#divFeed4').FeedEk({
FeedUrl: 'https://jquery-plugins.net/rss', MaxCount: 2, DateFormat: 'd', DateFormatLang: 'en'
});
$('#divFeed5').FeedEk({
FeedUrl: 'https://jquery-plugins.net/rss', MaxCount: 2, DateFormat: 'D', DateFormatLang: 'fr-FR'
});
$('#divFeed10').FeedEk({
FeedUrl: 'https://jquery-plugins.net/rss', MaxCount: 2, DateFormat: 'MM-dd-yyyy HH:mm', DateFormatLang: 'en'
});
$('#divFeed11').FeedEk({
FeedUrl: 'https://jquery-plugins.net/rss', MaxCount: 2, DateFormat: 'dd MMMM yyyy', DateFormatLang: 'en'
});
});
</script>
</body>
</html>