forked from montyaggie/tamufeed.js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathasync.html
189 lines (178 loc) · 7.53 KB
/
async.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
<!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" /**/
//,"sort": "shuffle"
,"fetchEntries": 10
,"wantEntries" : 6
,"truncatedStringMaxLength": 480
,"minutesBeforeHistorical": 45
,"url": [
"http://codemaroon.tamu.edu/feed.xml",
"http://calendar.tamu.edu/?calendar_id=37&upcoming=1&format=rss",
"http://feeds.feedburner.com/AggieWebmasters"
/**
,"http://picasaweb.google.com/data/feed/base/all?alt=rss&kind=photo&access=public&tag=landscape&filter=1&imgmax=4&hl=en_US"
,"http://api.twitter.com/1/statuses/user_timeline.rss?screen_name=tamuliberalarts"
,"http://www.facebook.com/feeds/api_messages.php" //Facebook's Health
,"http://feeds.feedburner.com/TAMUTrafficConstruction?format=xml"
,"http://liberalarts.tamu.edu/feeds/collegenews.rss"
,"http://academyarts.tamu.edu/feed/"
,"http://gdata.youtube.com/feeds/api/users/TAMUliberalarts/uploads"
,"http://calendar.tamu.edu/?calendar_id=73&upcoming&format=rss" //Stark
,"http://calendar.tamu.edu/?calendar_id=103&upcoming&format=rss" //Forsyth
/**/
]//^url
/** //This configuration style is proposed but not yet implemented
,"feeds": [
{ "id": "tamucodemaroon"
,"url": "http://codemaroon.tamu.edu/feed.xml"
,"fetchEntries": 10
,"wantEntries" : 10
,"truncatedStringMaxLength": 600
,"minutesBeforeHistorical": 60
}//^tamucodemaroon
,{ "id": "tamucllacal"
,"url": "http://cal.tamu.edu/liberalarts/upcoming/?format=rss"
,"fetchEntries": 10
,"wantEntries" : 6
,"truncatedStringMaxLength": 300
,"minutesBeforeHistorical": 30
}//^tamucllacal
]//^feeds
/**/
}//^tamufeed configuration
//Require.js configuration
var require = {
"enforceDefine" : true //You can turn this off when loading non-AMD libs.
,"baseUrl" : "." //Set this path /to/place/where/ your JS app resides.
,"waitSeconds" : 4 //Tighter timeout than default 7 seconds
,"deps" : ["tamufeed"]
// ,"urlArgs" : "bustcache="+(new Date()).getTime() //for developing only
,"paths": {
"tamufeed": "./tamufeed.min",
"PubSub": "./PubSub.min",
"jquery": [
"http://cdnjs.cloudflare.com/ajax/libs/jquery/1.8.3/jquery.min"
,"http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min"
,"http://cdnjs.cloudflare.com/ajax/libs/zepto/1.0rc1/zepto.min"
]
,"google": "https://www.google.com/jsapi?" //?key=your_google_api_key_here&
,"underscore" : [
"http://cdnjs.cloudflare.com/ajax/libs/lodash.js/0.8.2/lodash.min"
,"http://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.4.2/underscore-min"
]
,"underscorestr": "http://cdnjs.cloudflare.com/ajax/libs/underscore.string/2.3.0/underscore.string.min"
,"Backbone": "http://cdnjs.cloudflare.com/ajax/libs/backbone.js/0.9.2/backbone-min"
}//^paths
,"shim": {
"google" : { exports: "google"}
,"PubSub" : { exports: "PubSub"}
,"underscore" : { exports: "_"}
,"underscorestr": { exports: "_", deps: ["underscore" ]}
,"Backbone" : { exports: "Backbone", deps: ["underscore" ]}
,"tamufeed" : { exports: "tamufeed", deps: ["google", "jquery", "PubSub" ]}
}//^shim
}//^require
</script>
<script data-main="main.js" src="http://cdnjs.cloudflare.com/ajax/libs/require.js/2.0.6/require.min.js"></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>
<p 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>
</p>
<!-- -------------------------------------------------------------------- -->
<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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -->
</body>
</html>