forked from montyaggie/tamufeed.js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
synchronous.html
140 lines (130 loc) · 5.3 KB
/
synchronous.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
<!doctype html>
<!--[if lt IE 7]> <html class="ie6 oldie badie demo" lang="en"> <![endif]-->
<!--[if IE 7]> <html class="ie7 oldie badie demo" lang="en"> <![endif]-->
<!--[if IE 8]> <html class="ie8 oldie demo" lang="en"> <![endif]-->
<!--[if IE 9]> <html class="ie9 demo" lang="en"> <![endif]-->
<!--[if gt IE 9]><!-->
<html class="demo" lang="en">
<!--<![endif]-->
<head>
<meta charset="utf-8"/>
<meta http-equiv="Cache-Control" content="max-age=0,must-revalidate" />
<meta http-equiv="Expires" content="Thu, 04 Oct 12 20:00:00 +0000" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
<script charset="utf-8">
//tamufeed configuration
var tamufeed = {
"selector": "#tamufeed"
,"debugging": true
/* ,"language": "es" /**/
,"fetchEntries": 10
,"wantEntries" : 9
,"truncatedStringMaxLength": 480
,"minutesBeforeHistorical": 45
,"url": [
"http://codemaroon.tamu.edu/feed.xml",
"http://cal.tamu.edu/liberalarts/upcoming/?format=rss",
"http://feeds.feedburner.com/AggieWebmasters"
]//^url
}//^tamufeed configuration
</script>
<link href="./normalize.css" rel="stylesheet" type="text/css" charset="utf-8"
data-doc="http://necolas.github.com/normalize.css/"/>
<link href="./styles.css" rel="stylesheet" type="text/css" charset="utf-8" charset="utf-8"/>
<title>demonstration</title>
<meta name="author" content="Monty Dickerson">
</head>
<body>
<div id="tamufeed">
<img src="http://cllacdn.tamu.edu/images/ajaxspinner/deep-bo.com-spinner.gif"
alt="loading..." class="ajaxspinner" />
<noscript>JavaScript is required to run this web application.</noscript>
</div>
<!-- -------------------------------------------------------------------- -->
<script type="text/html" id="dateBlockTemplate" charset="utf-8">
<span class="month">{{M}}</span><span class="dayOfMonth">{{j}}</span>
</script>
<!-- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^TEMPLATE^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -->
<script type="text/html" id="dateTemplate" charset="utf-8"
>{{l}}, {{F}} {{j}}<sup>{{S}}</sup>, {{Y}}</script>
<!-- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^TEMPLATE^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -->
<script type="text/html" id="propertyTemplate" charset="utf-8">
<span class="{{key}}" {{dataAttr}}>{{value}}</span>
</script>
<!-- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^TEMPLATE^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -->
<script type="text/html" id="encasedTemplate" charset="utf-8">
<table class="{{key}}"><tbody><tr><td class="{{key}}" {{dataAttr}}>
{{value}}
</td></tr></tbody></table>
</script>
<!-- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^TEMPLATE^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -->
<script type="text/html" id="feedTemplate" charset="utf-8">
<div class="feed channel {{feedKey}} {{attributes}}"
data-source="{{feedUrl}}" data-children="{{quantity}}"
data-index="{{index}}" data-peers="{{feedQuantity}}"
>
<h2 class="feed-title">{{title}}</h2>
<div class="feed-description">{{description}}</div>
<div class="toc">{{entriesToc}}</div>
{{entries}}
</div>
</script>
<!-- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^TEMPLATE^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -->
<script type="text/html" id="responseTemplate" charset="utf-8">
<div class="toc">{{feedsToc}}</div>
{{feeds}}
</script>
<!-- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^TEMPLATE^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -->
<script type="text/html" id="entryTemplate" charset="utf-8"
data-schema="http://microformats.org/wiki/hcalendar">
<div class="item entry {{tags}} {{attributes}}"
data-index="{{index}}" data-peers="{{quantity}}">
<div class="feature">
{{dateBlock}}
<h3><a href="{{link}}" class="entry-title title">{{title}}</a></h3>
{{subtitle}}
</div><div style="clear:left;"></div>
{{summary}}
{{author}}
{{location}}
{{pubDate}}
{{time}}
<div class="share">
<span class="facebook social unshine">
<a href="http://www.facebook.com/sharer.php?u={{linkencoded}}"
title="Share on this Facebook »">Share this on Facebook »
</a>
</span><span class="twitter social unshine">
<a href="http://twitter.com/home?status={{linkencoded}}"
title="Tweet this »">Share this on Twitter »
</a>
</span><span class="linkedin social unshine">
<a href="http://www.linkedin.com/shareArticle?url={{linkencoded}}"
title="Share on this LinkedIn »">Share this on LinkedIn »
</a>
</span>
</div>
{{categories}}
{{bookmark}}
{{description}}
</div>
</script>
<!-- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^TEMPLATE^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -->
<script src="http://cdnjs.cloudflare.com/ajax/libs/jquery/1.8.3/jquery.min.js" charset="utf-8"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/lodash.js/0.8.2/lodash.min.js" charset="utf-8"></script>
<script src="https://www.google.com/jsapi?" charset="utf-8"></script>
<script src="./PubSub.min.js" charset="utf-8"></script>
<script src="./tamufeed.min.js" charset="utf-8"></script>
<script>
if ("undefined"===typeof $) alert("jQuery was not loaded.");
if ("undefined"===typeof _) alert("Underscore.js was not loaded.");
if ("undefined"===typeof google) alert("Google JS API was not loaded.");
if ("undefined"===typeof PubSub) alert("PubSub.js was not loaded.");
if ("function"!==typeof tamufeed.init) alert("tamufeed.js was not loaded.");
else {
tamufeed.init();
}
</script>
</body>
</html>