|
0
|
1 |
|
|
|
2 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> |
|
|
3 |
<html> |
|
|
4 |
<head> |
|
|
5 |
<meta http-equiv="content-type" content="text/html; charset=utf-8"> |
|
|
6 |
<title>Accessible TabView</title> |
|
|
7 |
|
|
|
8 |
<style type="text/css"> |
|
|
9 |
/*margin and padding on body element |
|
|
10 |
can introduce errors in determining |
|
|
11 |
element position and are not recommended; |
|
|
12 |
we turn them off as a foundation for YUI |
|
|
13 |
CSS treatments. */ |
|
|
14 |
body { |
|
|
15 |
margin:0; |
|
|
16 |
padding:0; |
|
|
17 |
} |
|
|
18 |
</style> |
|
|
19 |
|
|
|
20 |
<link type="text/css" rel="stylesheet" href="../../build/cssfonts/fonts-min.css" /> |
|
|
21 |
<script type="text/javascript" src="../../build/yui/yui-min.js"></script> |
|
|
22 |
|
|
|
23 |
|
|
|
24 |
<!--begin custom header content for this example--> |
|
|
25 |
<style type="text/css"> |
|
|
26 |
|
|
|
27 |
/* The following style rules necessary to override style rules in the |
|
|
28 |
YUI CSS file. */ |
|
|
29 |
|
|
|
30 |
#example ul, |
|
|
31 |
#example li { |
|
|
32 |
list-style: none; |
|
|
33 |
list-style: none; |
|
|
34 |
} |
|
|
35 |
|
|
|
36 |
#example em { |
|
|
37 |
font-style: normal; |
|
|
38 |
} |
|
|
39 |
|
|
|
40 |
#example .yui-tabpanel { |
|
|
41 |
|
|
|
42 |
/* Use the "zoom" property to set the the hasLayout property to true. |
|
|
43 |
This ensures that the background color of the tab's panel will |
|
|
44 |
be rendered correctly when the example is running in the |
|
|
45 |
example chrome. |
|
|
46 |
*/ |
|
|
47 |
|
|
|
48 |
_zoom: 1; |
|
|
49 |
|
|
|
50 |
} |
|
|
51 |
|
|
|
52 |
#example .yui-tabpanel a { |
|
|
53 |
text-decoration: underline; |
|
|
54 |
color: blue; |
|
|
55 |
} |
|
|
56 |
|
|
|
57 |
#example h3 { |
|
|
58 |
color: #000; |
|
|
59 |
font-size: 100%; |
|
|
60 |
font-weight: bold; |
|
|
61 |
} |
|
|
62 |
|
|
|
63 |
#example .yui-tabview { |
|
|
64 |
margin: 0 .25em; |
|
|
65 |
} |
|
|
66 |
|
|
|
67 |
|
|
|
68 |
/* Hide the instructional text used to label the tabview offscreen. |
|
|
69 |
This ensures it is still available to users of screen readers, but is |
|
|
70 |
not visible to sighted users. */ |
|
|
71 |
|
|
|
72 |
#tabview-heading em { |
|
|
73 |
position: absolute; |
|
|
74 |
left: -999em; |
|
|
75 |
} |
|
|
76 |
|
|
|
77 |
|
|
|
78 |
/* Hide the list while it is being transformed into a tabview. */ |
|
|
79 |
|
|
|
80 |
.yui-loading #tabview-1 { |
|
|
81 |
display: none; |
|
|
82 |
} |
|
|
83 |
|
|
|
84 |
</style> |
|
|
85 |
<script type="text/javascript"> |
|
|
86 |
|
|
|
87 |
// Add a class to the documentElement to prevent the user from seeing |
|
|
88 |
// the unstyled tabview while the necessary CSS and JavaScript |
|
|
89 |
// dependancies are being fetched. |
|
|
90 |
|
|
|
91 |
document.documentElement.className = "yui-loading"; |
|
|
92 |
|
|
|
93 |
</script> |
|
|
94 |
<!--end custom header content for this example--> |
|
|
95 |
|
|
|
96 |
</head> |
|
|
97 |
|
|
|
98 |
<body class=" yui-skin-sam"> |
|
|
99 |
|
|
|
100 |
<h1>Accessible TabView</h1> |
|
|
101 |
|
|
|
102 |
<div class="exampleIntro"> |
|
|
103 |
<p> |
|
|
104 |
This example illustrates how to create an accessible tabview widget using the |
|
|
105 |
Focus Manager Node Plugin, |
|
|
106 |
<a href="../../api/YUI.html#event_delegate">Event's delegation support</a>, and |
|
|
107 |
Node's support for the |
|
|
108 |
<a href="http://www.w3.org/TR/wai-aria/">WAI-ARIA Roles and States</a>. |
|
|
109 |
</p> |
|
|
110 |
</div> |
|
|
111 |
|
|
|
112 |
<!--BEGIN SOURCE CODE FOR EXAMPLE =============================== --> |
|
|
113 |
|
|
|
114 |
<h3 id="tabview-heading">Today's News</h3> |
|
|
115 |
<div id="tabview-1"> |
|
|
116 |
<ul> |
|
|
117 |
<li class="yui-tab yui-tab-selected"><a href="#top-stories"><em>Top Stories</em></a></li> |
|
|
118 |
<li class="yui-tab"><a href="#world-news"><em>World</em></a></li> |
|
|
119 |
<li class="yui-tab"><a href="#entertainment-news"><em>Entertainment</em></a></li> |
|
|
120 |
<li class="yui-tab"><a href="#sports-news"><em>Sports</em></a></li> |
|
|
121 |
<li class="yui-tab"><a href="#technology-news"><em>Technology</em></a></li> |
|
|
122 |
</ul> |
|
|
123 |
<div> |
|
|
124 |
<div class="yui-tabpanel yui-tabpanel-selected" id="top-stories"> |
|
|
125 |
<h3>Top Stories</h3> |
|
|
126 |
<ul> <li> |
|
|
127 |
<a href="http://us.rd.yahoo.com/dailynews/rss/topstories/*http://news.yahoo.com/s/ap/20090929/ap_on_go_co/us_health_care_overhaul"><q>Senate Finance panel rejects govt insurance option |
|
|
128 |
(AP) |
|
|
129 |
</q></a> |
|
|
130 |
</li> <li> |
|
|
131 |
<a href="http://us.rd.yahoo.com/dailynews/rss/topstories/*http://news.yahoo.com/s/ap/20090929/ap_on_re_us/us_nyc_terror"><q>NYC terror suspect pleads not guilty, kept in jail |
|
|
132 |
(AP) |
|
|
133 |
</q></a> |
|
|
134 |
</li> <li> |
|
|
135 |
<a href="http://us.rd.yahoo.com/dailynews/rss/topstories/*http://news.yahoo.com/s/ap/20090929/ap_on_re_mi_ea/ml_iran"><q>Iran put nuclear site near base in case of attack |
|
|
136 |
(AP) |
|
|
137 |
</q></a> |
|
|
138 |
</li> <li> |
|
|
139 |
<a href="http://us.rd.yahoo.com/dailynews/rss/topstories/*http://news.yahoo.com/s/ap/20090929/ap_on_re_as/as_afghanistan"><q>Taliban roadway attacks spread fear in Afghanistan |
|
|
140 |
(AP) |
|
|
141 |
</q></a> |
|
|
142 |
</li> <li> |
|
|
143 |
<a href="http://us.rd.yahoo.com/dailynews/rss/topstories/*http://news.yahoo.com/s/ap/20090929/ap_on_re_us/us_schools_listening_tour"><q>Sharpton, Gingrich launch school tour in Philly |
|
|
144 |
(AP) |
|
|
145 |
</q></a> |
|
|
146 |
</li> <li> |
|
|
147 |
<a href="http://us.rd.yahoo.com/dailynews/rss/topstories/*http://news.yahoo.com/s/ap/20090929/ap_on_re_us/us_hitler_s_skull"><q>Skull piece thought to be Hitler's is from woman |
|
|
148 |
(AP) |
|
|
149 |
</q></a> |
|
|
150 |
</li> <li> |
|
|
151 |
<a href="http://us.rd.yahoo.com/dailynews/rss/topstories/*http://news.yahoo.com/s/ap/20090929/ap_on_sc/eu_italy_nero_s_dining_room"><q>Nero's rotating banquet hall unveiled in Rome |
|
|
152 |
(AP) |
|
|
153 |
</q></a> |
|
|
154 |
</li> <li> |
|
|
155 |
<a href="http://us.rd.yahoo.com/dailynews/rss/topstories/*http://news.yahoo.com/s/ap/20090929/ap_on_en_tv/us_tv_jon___kate_changes"><q>TLC's 'Jon & Kate' is soon to be 'Kate Plus Eight' |
|
|
156 |
(AP) |
|
|
157 |
</q></a> |
|
|
158 |
</li> <li> |
|
|
159 |
<a href="http://us.rd.yahoo.com/dailynews/rss/topstories/*http://news.yahoo.com/s/ap/20090929/ap_on_fe_st/us_odd_skate_rage"><q>Cops: Skater faces charges in right-of-way dispute |
|
|
160 |
(AP) |
|
|
161 |
</q></a> |
|
|
162 |
</li> <li> |
|
|
163 |
<a href="http://us.rd.yahoo.com/dailynews/rss/topstories/*http://news.yahoo.com/s/ap/20090929/ap_on_sp_ba_ga_su/bba_twins_tigers"><q>AL Central race gets wild, Twins beat Tigers in 10 |
|
|
164 |
(AP) |
|
|
165 |
</q></a> |
|
|
166 |
</li></ul> |
|
|
167 |
</div> |
|
|
168 |
<div class="yui-tabpanel" id="world-news"> |
|
|
169 |
<h3>World News</h3> |
|
|
170 |
<ul> <li> |
|
|
171 |
<a href="http://us.rd.yahoo.com/dailynews/rss/world/*http://news.yahoo.com/s/ap/20090929/ap_on_re_mi_ea/ml_iran"><q>Iran put nuclear site near base in case of attack |
|
|
172 |
(AP) |
|
|
173 |
</q></a> |
|
|
174 |
</li> <li> |
|
|
175 |
<a href="http://us.rd.yahoo.com/dailynews/rss/world/*http://news.yahoo.com/s/ap/20090929/ap_on_re_as/as_afghanistan"><q>Taliban roadway attacks spread fear in Afghanistan |
|
|
176 |
(AP) |
|
|
177 |
</q></a> |
|
|
178 |
</li> <li> |
|
|
179 |
<a href="http://us.rd.yahoo.com/dailynews/rss/world/*http://news.yahoo.com/s/ap/20090929/ap_on_en_mo/eu_switzerland_polanski"><q>Polanski asks Swiss court to free him from custody |
|
|
180 |
(AP) |
|
|
181 |
</q></a> |
|
|
182 |
</li> <li> |
|
|
183 |
<a href="http://us.rd.yahoo.com/dailynews/rss/world/*http://news.yahoo.com/s/ap/20090929/ap_on_re_as/as_philippines_flooding"><q>Flood kills 246 in Philippines; survivors seek aid |
|
|
184 |
(AP) |
|
|
185 |
</q></a> |
|
|
186 |
</li> <li> |
|
|
187 |
<a href="http://us.rd.yahoo.com/dailynews/rss/world/*http://news.yahoo.com/s/ap/20090929/ap_on_re_au_an/as_pacific_earthquake"><q>Tsunami hits American Samoa |
|
|
188 |
(AP) |
|
|
189 |
</q></a> |
|
|
190 |
</li> <li> |
|
|
191 |
<a href="http://us.rd.yahoo.com/dailynews/rss/world/*http://news.yahoo.com/s/time/20090929/wl_time/08599192665500"><q>Iran Sanctions: Would Blocking Gas Imports Hurt Tehran? |
|
|
192 |
(Time.com) |
|
|
193 |
</q></a> |
|
|
194 |
</li> <li> |
|
|
195 |
<a href="http://us.rd.yahoo.com/dailynews/rss/world/*http://news.yahoo.com/s/afp/20090929/bs_afp/britainusirelandairlinecompanyba"><q>BA launches US business-class route |
|
|
196 |
(AFP) |
|
|
197 |
</q></a> |
|
|
198 |
</li> <li> |
|
|
199 |
<a href="http://us.rd.yahoo.com/dailynews/rss/world/*http://news.yahoo.com/s/ap/20090929/ap_on_re_mi_ea/ml_israel_palestinians"><q>Israeli envoys to US for talks on peacemaking |
|
|
200 |
(AP) |
|
|
201 |
</q></a> |
|
|
202 |
</li> <li> |
|
|
203 |
<a href="http://us.rd.yahoo.com/dailynews/rss/world/*http://news.yahoo.com/s/ap/20090929/ap_on_re_la_am_ca/us_americas_conference"><q>Arias warns Honduran elections won't be recognized |
|
|
204 |
(AP) |
|
|
205 |
</q></a> |
|
|
206 |
</li> <li> |
|
|
207 |
<a href="http://us.rd.yahoo.com/dailynews/rss/world/*http://news.yahoo.com/s/ap/20090929/ap_on_re_af/af_guinea"><q>Group: Guinea protest death toll climbs to 157 |
|
|
208 |
(AP) |
|
|
209 |
</q></a> |
|
|
210 |
</li></ul> </div> |
|
|
211 |
<div class="yui-tabpanel" id="entertainment-news"> |
|
|
212 |
<h3>Entertainment News</h3> |
|
|
213 |
<ul> <li> |
|
|
214 |
<a href="http://us.rd.yahoo.com/dailynews/rss/entertainment/*http://news.yahoo.com/s/ap/20090929/ap_en_ce/eu_switzerland_polanski"><q>Polanski asks Swiss court to free him from custody |
|
|
215 |
(AP) |
|
|
216 |
</q></a> |
|
|
217 |
</li> <li> |
|
|
218 |
<a href="http://us.rd.yahoo.com/dailynews/rss/entertainment/*http://news.yahoo.com/s/ap/20090929/ap_en_ot/us_dj_am"><q>DJ AM's death ruled accidental drug overdose |
|
|
219 |
(AP) |
|
|
220 |
</q></a> |
|
|
221 |
</li> <li> |
|
|
222 |
<a href="http://us.rd.yahoo.com/dailynews/rss/entertainment/*http://news.yahoo.com/s/ap/20090929/ap_en_mu/us_levine_surgery"><q>Conductor Levine withdrawing from upcoming shows |
|
|
223 |
(AP) |
|
|
224 |
</q></a> |
|
|
225 |
</li> <li> |
|
|
226 |
<a href="http://us.rd.yahoo.com/dailynews/rss/entertainment/*http://news.yahoo.com/s/ap/20090929/ap_en_ot/us_twilight_zone_at50"><q>50 years later, 'Twilight Zone' bridges time |
|
|
227 |
(AP) |
|
|
228 |
</q></a> |
|
|
229 |
</li> <li> |
|
|
230 |
<a href="http://us.rd.yahoo.com/dailynews/rss/entertainment/*http://news.yahoo.com/s/ap/20090929/ap_en_tv/us_tv_jon___kate_changes"><q>TLC's 'Jon & Kate' is soon to be 'Kate Plus Eight' |
|
|
231 |
(AP) |
|
|
232 |
</q></a> |
|
|
233 |
</li> <li> |
|
|
234 |
<a href="http://us.rd.yahoo.com/dailynews/rss/entertainment/*http://news.yahoo.com/s/ap/20090929/ap_en_ot/us_music_barbra_streisand"><q>Barbra Streisand gets nostalgic on latest CD |
|
|
235 |
(AP) |
|
|
236 |
</q></a> |
|
|
237 |
</li> <li> |
|
|
238 |
<a href="http://us.rd.yahoo.com/dailynews/rss/entertainment/*http://news.yahoo.com/s/ap/20090929/ap_en_tv/us_dan_rather_lawsuit"><q>Dan Rather's lawsuit against CBS is dismissed |
|
|
239 |
(AP) |
|
|
240 |
</q></a> |
|
|
241 |
</li> <li> |
|
|
242 |
<a href="http://us.rd.yahoo.com/dailynews/rss/entertainment/*http://news.yahoo.com/s/nm/20090929/film_nm/us_polanski_arrest_extradition"><q>Polanski appeals against extradition over sex case |
|
|
243 |
(Reuters) |
|
|
244 |
</q></a> |
|
|
245 |
</li> <li> |
|
|
246 |
<a href="http://us.rd.yahoo.com/dailynews/rss/entertainment/*http://news.yahoo.com/s/ap/20090929/ap_en_mu/us_levine_surgery"><q>Conductor Levine withdrawing from upcoming shows |
|
|
247 |
(AP) |
|
|
248 |
</q></a> |
|
|
249 |
</li> <li> |
|
|
250 |
<a href="http://us.rd.yahoo.com/dailynews/rss/entertainment/*http://news.yahoo.com/s/nm/20090929/media_nm/us_businessweek"><q>Bloomberg seen as top BusinessWeek bidder: source |
|
|
251 |
(Reuters) |
|
|
252 |
</q></a> |
|
|
253 |
</li></ul> |
|
|
254 |
</div> |
|
|
255 |
<div class="yui-tabpanel" id="sports-news"> |
|
|
256 |
<h3>Sports News</h3> |
|
|
257 |
<ul> <li> |
|
|
258 |
<a href="http://us.rd.yahoo.com/dailynews/rss/sports/*http://news.yahoo.com/s/ap/20090929/ap_on_sp_ba_ga_su/bba_twins_tigers"><q>AL Central race gets wild, Twins beat Tigers in 10 |
|
|
259 |
(AP) |
|
|
260 |
</q></a> |
|
|
261 |
</li> <li> |
|
|
262 |
<a href="http://us.rd.yahoo.com/dailynews/rss/sports/*http://news.yahoo.com/s/ap/20090929/ap_on_sp_fo_ne/fbn_chiefs_dolphins_trade"><q>With Pennington out, Dolphins get Thigpen |
|
|
263 |
(AP) |
|
|
264 |
</q></a> |
|
|
265 |
</li> <li> |
|
|
266 |
<a href="http://us.rd.yahoo.com/dailynews/rss/sports/*http://news.yahoo.com/s/ap/20090929/ap_on_sp_co_ne/fbc_t25_usc_johnson_hurt"><q>Johnson giving thumbs-up to mom after surgery |
|
|
267 |
(AP) |
|
|
268 |
</q></a> |
|
|
269 |
</li> <li> |
|
|
270 |
<a href="http://us.rd.yahoo.com/dailynews/rss/sports/*http://news.yahoo.com/s/ap/20090929/ap_on_sp_ol/oly2016_bids_rio"><q>Rio puts President Lula at heart of Olympic bid |
|
|
271 |
(AP) |
|
|
272 |
</q></a> |
|
|
273 |
</li> <li> |
|
|
274 |
<a href="http://us.rd.yahoo.com/dailynews/rss/sports/*http://news.yahoo.com/s/ap/20090929/ap_on_sp_ho_ne/hkn_penguins_crosby"><q>Crosby practices, expects to play Friday |
|
|
275 |
(AP) |
|
|
276 |
</q></a> |
|
|
277 |
</li> <li> |
|
|
278 |
<a href="http://us.rd.yahoo.com/dailynews/rss/sports/*http://news.yahoo.com/s/ap/20090929/ap_on_sp_go_ne/glf_palmer_medal"><q>Palmer to receive Congressional Gold Medal |
|
|
279 |
(AP) |
|
|
280 |
</q></a> |
|
|
281 |
</li> <li> |
|
|
282 |
<a href="http://us.rd.yahoo.com/dailynews/rss/sports/*http://news.yahoo.com/s/nm/20090929/sp_nm/us_nfl_dolphins_thigpen"><q>Dolphins acquire Thigpen from Chiefs |
|
|
283 |
(Reuters) |
|
|
284 |
</q></a> |
|
|
285 |
</li> <li> |
|
|
286 |
<a href="http://us.rd.yahoo.com/dailynews/rss/sports/*http://news.yahoo.com/s/ap/20090929/ap_on_sp_ba_ne/bbo_schmidt_peanut_butter_and_jelly"><q>Hall of Famer Mike Schmidt on 200 Ks |
|
|
287 |
(AP) |
|
|
288 |
</q></a> |
|
|
289 |
</li> <li> |
|
|
290 |
<a href="http://us.rd.yahoo.com/dailynews/rss/sports/*http://news.yahoo.com/s/afp/20090929/sp_afp/basketnbarockets"><q>NBA Rockets open pre-season without Yao, McGrady |
|
|
291 |
(AFP) |
|
|
292 |
</q></a> |
|
|
293 |
</li> <li> |
|
|
294 |
<a href="http://us.rd.yahoo.com/dailynews/rss/sports/*http://news.yahoo.com/s/ap/20090929/ap_on_sp_co_ne/fbc_wyoming_coach_ill"><q>Wyoming coach laid up with kidney stone |
|
|
295 |
(AP) |
|
|
296 |
</q></a> |
|
|
297 |
</li></ul> |
|
|
298 |
</div> |
|
|
299 |
<div class="yui-tabpanel" id="technology-news"> |
|
|
300 |
<h3>Technology News</h3> |
|
|
301 |
<ul> <li> |
|
|
302 |
<a href="http://us.rd.yahoo.com/dailynews/rss/tech/*http://news.yahoo.com/s/ap/20090929/ap_on_hi_te/us_warner_music_group_youtube"><q>YouTube says Warner Music videos back in months |
|
|
303 |
(AP) |
|
|
304 |
</q></a> |
|
|
305 |
</li> <li> |
|
|
306 |
<a href="http://us.rd.yahoo.com/dailynews/rss/tech/*http://news.yahoo.com/s/ap/20090929/ap_on_hi_te/us_tec_techbit_t_mobile_motorola"><q>T-Mobile to sell Motorola Android phone Oct. 19 |
|
|
307 |
(AP) |
|
|
308 |
</q></a> |
|
|
309 |
</li> <li> |
|
|
310 |
<a href="http://us.rd.yahoo.com/dailynews/rss/tech/*http://news.yahoo.com/s/ap/20090929/ap_on_hi_te/us_gm_ebay"><q>GM's trial program selling cars on eBay set to end |
|
|
311 |
(AP) |
|
|
312 |
</q></a> |
|
|
313 |
</li> <li> |
|
|
314 |
<a href="http://us.rd.yahoo.com/dailynews/rss/tech/*http://news.yahoo.com/s/ap/20090929/ap_on_hi_te/us_tec_cnn_iphone_app"><q>Among the new features in CNN iPhone app: a price |
|
|
315 |
(AP) |
|
|
316 |
</q></a> |
|
|
317 |
</li> <li> |
|
|
318 |
<a href="http://us.rd.yahoo.com/dailynews/rss/tech/*http://news.yahoo.com/s/ap/20090929/ap_on_hi_te/us_tec_microsoft_security_software"><q>Microsoft to release free antivirus PC software |
|
|
319 |
(AP) |
|
|
320 |
</q></a> |
|
|
321 |
</li> <li> |
|
|
322 |
<a href="http://us.rd.yahoo.com/dailynews/rss/tech/*http://news.yahoo.com/s/ap/20090929/ap_on_hi_te/us_diebold_voting_machines"><q>Voter group challenges Diebold voting machine sale |
|
|
323 |
(AP) |
|
|
324 |
</q></a> |
|
|
325 |
</li> <li> |
|
|
326 |
<a href="http://us.rd.yahoo.com/dailynews/rss/tech/*http://news.yahoo.com/s/afp/20090929/tc_afp/usitcompanyinternetmusicyoutubewarner"><q>Warner music videos returning to YouTube |
|
|
327 |
(AFP) |
|
|
328 |
</q></a> |
|
|
329 |
</li> <li> |
|
|
330 |
<a href="http://us.rd.yahoo.com/dailynews/rss/tech/*http://news.yahoo.com/s/nf/20090929/tc_nf/69236"><q>Garmin Rolls Out Navigation Smartphone on AT&T |
|
|
331 |
(NewsFactor) |
|
|
332 |
</q></a> |
|
|
333 |
</li> <li> |
|
|
334 |
<a href="http://us.rd.yahoo.com/dailynews/rss/tech/*http://news.yahoo.com/s/nm/20090929/wr_nm/us_vodafone_egypt"><q>Vodafone Egypt sees 160,000 broadband users in 2009 |
|
|
335 |
(Reuters) |
|
|
336 |
</q></a> |
|
|
337 |
</li> <li> |
|
|
338 |
<a href="http://us.rd.yahoo.com/dailynews/rss/tech/*http://news.yahoo.com/s/nm/20090929/en_nm/us_warnermusic_youtube"><q>Warner, YouTube confirm music video deal |
|
|
339 |
(Reuters) |
|
|
340 |
</q></a> |
|
|
341 |
</li></ul> |
|
|
342 |
</div> |
|
|
343 |
</div> |
|
|
344 |
</div> |
|
|
345 |
|
|
|
346 |
<script type="text/javascript"> |
|
|
347 |
|
|
|
348 |
YUI({ |
|
|
349 |
|
|
|
350 |
base: "../../build/", |
|
|
351 |
modules: { |
|
|
352 |
"tabviewcss": { |
|
|
353 |
type: "css", |
|
|
354 |
fullpath: "assets/tabview.css" |
|
|
355 |
}, |
|
|
356 |
"tabviewjs": { |
|
|
357 |
type: "js", |
|
|
358 |
fullpath: "assets/tabview.js", |
|
|
359 |
requires: ["node-focusmanager", "tabviewcss"] |
|
|
360 |
} |
|
|
361 |
|
|
|
362 |
}, |
|
|
363 |
timeout: 10000 |
|
|
364 |
|
|
|
365 |
}).use("tabviewjs", function(Y, result) { |
|
|
366 |
|
|
|
367 |
// The callback supplied to use() will be executed regardless of |
|
|
368 |
// whether the operation was successful or not. The second parameter |
|
|
369 |
// is a result object that has the status of the operation. We can |
|
|
370 |
// use this to try to recover from failures or timeouts. |
|
|
371 |
|
|
|
372 |
if (!result.success) { |
|
|
373 |
|
|
|
374 |
Y.log("Load failure: " + result.msg, "warn", "Example"); |
|
|
375 |
|
|
|
376 |
// Show the tabview HTML if the loader failed that way the |
|
|
377 |
// original unskinned tabview will be visible so that the |
|
|
378 |
// user can interact with it either way. |
|
|
379 |
|
|
|
380 |
document.documentElement.className = ""; |
|
|
381 |
|
|
|
382 |
} |
|
|
383 |
|
|
|
384 |
}); |
|
|
385 |
|
|
|
386 |
</script> |
|
|
387 |
<!--END SOURCE CODE FOR EXAMPLE =============================== --> |
|
|
388 |
|
|
|
389 |
</body> |
|
|
390 |
</html> |