Subversion Repositories Sites.obs-saisons.fr

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
40 aurelien 1
<!DOCTYPE html>
2
<html lang="en">
3
<head>
4
	<meta charset="UTF-8" />
5
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6
	<title>jQuery UI Demos</title>
7
	<link type="text/css" href="../themes/base/jquery.ui.all.css" rel="stylesheet" />
8
	<link type="text/css" href="demos.css" rel="stylesheet" />
9
	<script type="text/javascript" src="../jquery-1.4.2.js"></script>
10
	<script type="text/javascript" src="../external/jquery.bgiframe-2.1.1.js"></script>
11
	<script type="text/javascript" src="../ui/jquery.ui.core.js"></script>
12
	<script type="text/javascript" src="../ui/jquery.ui.widget.js"></script>
13
	<script type="text/javascript" src="../ui/jquery.ui.mouse.js"></script>
14
	<script type="text/javascript" src="../ui/jquery.ui.accordion.js"></script>
15
	<script type="text/javascript" src="../ui/jquery.ui.autocomplete.js"></script>
16
	<script type="text/javascript" src="../ui/jquery.ui.button.js"></script>
17
	<script type="text/javascript" src="../ui/jquery.ui.datepicker.js"></script>
18
	<script type="text/javascript" src="../ui/jquery.ui.dialog.js"></script>
19
	<script type="text/javascript" src="../ui/jquery.ui.draggable.js"></script>
20
	<script type="text/javascript" src="../ui/jquery.ui.droppable.js"></script>
21
	<script type="text/javascript" src="../ui/jquery.ui.position.js"></script>
22
	<script type="text/javascript" src="../ui/jquery.ui.progressbar.js"></script>
23
	<script type="text/javascript" src="../ui/jquery.ui.resizable.js"></script>
24
	<script type="text/javascript" src="../ui/jquery.ui.selectable.js"></script>
25
	<script type="text/javascript" src="../ui/jquery.ui.slider.js"></script>
26
	<script type="text/javascript" src="../ui/jquery.ui.sortable.js"></script>
27
	<script type="text/javascript" src="../ui/jquery.ui.tabs.js"></script>
28
	<script type="text/javascript" src="../ui/jquery.effects.core.js"></script>
29
	<script type="text/javascript" src="../ui/jquery.effects.blind.js"></script>
30
	<script type="text/javascript" src="../ui/jquery.effects.bounce.js"></script>
31
	<script type="text/javascript" src="../ui/jquery.effects.clip.js"></script>
32
	<script type="text/javascript" src="../ui/jquery.effects.drop.js"></script>
33
	<script type="text/javascript" src="../ui/jquery.effects.explode.js"></script>
34
	<script type="text/javascript" src="../ui/jquery.effects.fold.js"></script>
35
	<script type="text/javascript" src="../ui/jquery.effects.highlight.js"></script>
36
	<script type="text/javascript" src="../ui/jquery.effects.pulsate.js"></script>
37
	<script type="text/javascript" src="../ui/jquery.effects.scale.js"></script>
38
	<script type="text/javascript" src="../ui/jquery.effects.shake.js"></script>
39
	<script type="text/javascript" src="../ui/jquery.effects.slide.js"></script>
40
	<script type="text/javascript" src="../ui/jquery.effects.transfer.js"></script>
41
	<script type="text/javascript" src="../ui/i18n/jquery.ui.datepicker-af.js"></script>
42
	<script type="text/javascript" src="../ui/i18n/jquery.ui.datepicker-ar.js"></script>
43
	<script type="text/javascript" src="../ui/i18n/jquery.ui.datepicker-az.js"></script>
44
	<script type="text/javascript" src="../ui/i18n/jquery.ui.datepicker-bs.js"></script>
45
	<script type="text/javascript" src="../ui/i18n/jquery.ui.datepicker-bg.js"></script>
46
	<script type="text/javascript" src="../ui/i18n/jquery.ui.datepicker-ca.js"></script>
47
	<script type="text/javascript" src="../ui/i18n/jquery.ui.datepicker-cs.js"></script>
48
	<script type="text/javascript" src="../ui/i18n/jquery.ui.datepicker-da.js"></script>
49
	<script type="text/javascript" src="../ui/i18n/jquery.ui.datepicker-de.js"></script>
50
	<script type="text/javascript" src="../ui/i18n/jquery.ui.datepicker-el.js"></script>
51
	<script type="text/javascript" src="../ui/i18n/jquery.ui.datepicker-en-GB.js"></script>
52
	<script type="text/javascript" src="../ui/i18n/jquery.ui.datepicker-eo.js"></script>
53
	<script type="text/javascript" src="../ui/i18n/jquery.ui.datepicker-es.js"></script>
54
	<script type="text/javascript" src="../ui/i18n/jquery.ui.datepicker-et.js"></script>
55
	<script type="text/javascript" src="../ui/i18n/jquery.ui.datepicker-eu.js"></script>
56
	<script type="text/javascript" src="../ui/i18n/jquery.ui.datepicker-fa.js"></script>
57
	<script type="text/javascript" src="../ui/i18n/jquery.ui.datepicker-fi.js"></script>
58
	<script type="text/javascript" src="../ui/i18n/jquery.ui.datepicker-fo.js"></script>
59
	<script type="text/javascript" src="../ui/i18n/jquery.ui.datepicker-fr.js"></script>
60
	<script type="text/javascript" src="../ui/i18n/jquery.ui.datepicker-fr-CH.js"></script>
61
	<script type="text/javascript" src="../ui/i18n/jquery.ui.datepicker-he.js"></script>
62
	<script type="text/javascript" src="../ui/i18n/jquery.ui.datepicker-hr.js"></script>
63
	<script type="text/javascript" src="../ui/i18n/jquery.ui.datepicker-hu.js"></script>
64
	<script type="text/javascript" src="../ui/i18n/jquery.ui.datepicker-hy.js"></script>
65
	<script type="text/javascript" src="../ui/i18n/jquery.ui.datepicker-id.js"></script>
66
	<script type="text/javascript" src="../ui/i18n/jquery.ui.datepicker-is.js"></script>
67
	<script type="text/javascript" src="../ui/i18n/jquery.ui.datepicker-it.js"></script>
68
	<script type="text/javascript" src="../ui/i18n/jquery.ui.datepicker-ja.js"></script>
69
	<script type="text/javascript" src="../ui/i18n/jquery.ui.datepicker-ko.js"></script>
70
	<script type="text/javascript" src="../ui/i18n/jquery.ui.datepicker-kz.js"></script>
71
	<script type="text/javascript" src="../ui/i18n/jquery.ui.datepicker-lt.js"></script>
72
	<script type="text/javascript" src="../ui/i18n/jquery.ui.datepicker-lv.js"></script>
73
	<script type="text/javascript" src="../ui/i18n/jquery.ui.datepicker-ms.js"></script>
74
	<script type="text/javascript" src="../ui/i18n/jquery.ui.datepicker-nl.js"></script>
75
	<script type="text/javascript" src="../ui/i18n/jquery.ui.datepicker-no.js"></script>
76
	<script type="text/javascript" src="../ui/i18n/jquery.ui.datepicker-pl.js"></script>
77
	<script type="text/javascript" src="../ui/i18n/jquery.ui.datepicker-pt-BR.js"></script>
78
	<script type="text/javascript" src="../ui/i18n/jquery.ui.datepicker-ro.js"></script>
79
	<script type="text/javascript" src="../ui/i18n/jquery.ui.datepicker-ru.js"></script>
80
	<script type="text/javascript" src="../ui/i18n/jquery.ui.datepicker-sk.js"></script>
81
	<script type="text/javascript" src="../ui/i18n/jquery.ui.datepicker-sl.js"></script>
82
	<script type="text/javascript" src="../ui/i18n/jquery.ui.datepicker-sq.js"></script>
83
	<script type="text/javascript" src="../ui/i18n/jquery.ui.datepicker-sr.js"></script>
84
	<script type="text/javascript" src="../ui/i18n/jquery.ui.datepicker-sr-SR.js"></script>
85
	<script type="text/javascript" src="../ui/i18n/jquery.ui.datepicker-sv.js"></script>
86
	<script type="text/javascript" src="../ui/i18n/jquery.ui.datepicker-ta.js"></script>
87
	<script type="text/javascript" src="../ui/i18n/jquery.ui.datepicker-th.js"></script>
88
	<script type="text/javascript" src="../ui/i18n/jquery.ui.datepicker-tr.js"></script>
89
	<script type="text/javascript" src="../ui/i18n/jquery.ui.datepicker-uk.js"></script>
90
	<script type="text/javascript" src="../ui/i18n/jquery.ui.datepicker-vi.js"></script>
91
	<script type="text/javascript" src="../ui/i18n/jquery.ui.datepicker-zh-CN.js"></script>
92
	<script type="text/javascript" src="../ui/i18n/jquery.ui.datepicker-zh-HK.js"></script>
93
	<script type="text/javascript" src="../ui/i18n/jquery.ui.datepicker-zh-TW.js"></script>
94
	<script type="text/javascript">
95
	jQuery(function($) {
96
 
97
		$('.left-nav a').click(function(ev) {
98
			window.location.hash = this.href.replace(/.+\/([^\/]+)\/index\.html/,'$1') + '|default';
99
			loadPage(this.href);
100
			$('.left-nav a.selected').removeClass('selected');
101
			$(this).addClass('selected');
102
			ev.preventDefault();
103
		});
104
 
105
		if (window.location.hash) {
106
			if (window.location.hash.indexOf('|') === -1) {
107
				window.location.hash += '|default';
108
			}
109
			var path = window.location.href.replace(/(index\.html)?#/,'');
110
			path = path.replace('\|','/') + '.html';
111
			loadPage(path);
112
		}
113
 
114
		function loadPage(path) {
115
			var section = path.replace(/\/[^\/]+\.html/,'');
116
			var header = section.replace(/.+\/([^\/]+)/,'$1').replace(/_/, ' ');
117
 
118
			$('td.normal div.normal')
119
				.empty()
120
				.append('<h4 class="demo-subheader">Functional demo:</h4>')
121
				.append('<h3 class="demo-header">'+ header +'</h3>')
122
				.append('<div id="demo-config"></div>')
123
				.find('#demo-config')
124
					.append('<div id="demo-frame"></div><div id="demo-config-menu"></div><div id="demo-link"><a class="demoWindowLink" href="#"><span class="ui-icon ui-icon-newwin"></span>Open demo in a new window</a></div>')
125
					.find('#demo-config-menu')
126
						.load(section + '/index.html .demos-nav', function() {
127
							$('#demo-config-menu a').each(function() {
128
								this.setAttribute('href', section + '/' + this.getAttribute('href').replace(/.+\/([^\/]+)/,'$1'));
129
								$(this).attr('target', 'demo-frame');
130
								$(this).click(function() {
131
 
132
									resetDemos();
133
 
134
									$(this).parents('ul').find('li').removeClass('demo-config-on');
135
									$(this).parent().addClass('demo-config-on');
136
									$('#demo-notes').fadeOut();
137
 
138
									//Set the hash to the actual page without ".html"
139
									window.location.hash = header + '|' + this.getAttribute('href').match((/\/([^\/\\]+)\.html/))[1];
140
 
141
									loadDemo(this.getAttribute('href'));
142
 
143
									return false;
144
								});
145
							});
146
 
147
							if (window.location.hash) {
148
								var demo = window.location.hash.split('|')[1];
149
								$('#demo-config-menu a').each(function(){
150
									if (this.href.indexOf(demo + '.html') !== -1) {
151
										$(this).parents('ul').find('li').removeClass('demo-config-on');
152
										$(this).parent().addClass('demo-config-on');
153
										loadDemo(this.href);
154
									}
155
								});
156
							}
157
 
158
							updateDemoNotes();
159
						})
160
					.end()
161
					.find('#demo-link a')
162
						.bind('click', function(ev){
163
							window.open(this.href);
164
							ev.preventDefault();
165
						})
166
					.end()
167
				.end()
168
			;
169
 
170
			resetDemos();
171
		}
172
 
173
		function loadDemo(path) {
174
			var directory = path.match(/([^\/]+)\/[^\/\.]+\.html$/)[1];
175
			$.get(path, function(data) {
176
				var source = data;
177
				data = data.replace(/<script.*>.*<\/script>/ig,""); // Remove script tags
178
				data = data.replace(/<\/?link.*>/ig,""); //Remove link tags
179
				data = data.replace(/<\/?html.*>/ig,""); //Remove html tag
180
				data = data.replace(/<\/?body.*>/ig,""); //Remove body tag
181
				data = data.replace(/<\/?head.*>/ig,""); //Remove head tag
182
				data = data.replace(/<\/?!doctype.*>/ig,""); //Remove doctype
183
				data = data.replace(/<title.*>.*<\/title>/ig,""); // Remove title tags
184
				data = data.replace(/((href|src)=["'])(?!(http|#))/ig, "$1" + directory + "/");
185
 
186
				$('#demo-style').remove();
187
				$('#demo-frame').empty().html(data);
188
				$('#demo-frame style').clone().appendTo('head').attr('id','demo-style');
189
				$('#demo-link a').attr('href', path);
190
				updateDemoNotes();
191
				updateDemoSource(source);
192
 
193
				if (/default.html$/.test(path)) {
194
					$.get("documentation/docs-" + path.match(/demos\/(.+)\//)[1] + ".html", function(html) {
195
						$("#demo-source").after(html);
196
						$("#widget-docs").tabs();
197
						$(".param-header").click(function() {
198
							$(this).parent().toggleClass("param-open").end().next().toggle();
199
						});
200
						$(".docs-list-header").each(function() {
201
							var header = $(this);
202
							var details = header.next().find(".param-details").hide();
203
							$("a:first", header).click(function() {
204
								details.show().parent().addClass("param-open");
205
								return false;
206
							});
207
							$("a:last", header).click(function() {
208
								details.hide().parent().removeClass("param-open");
209
								return false;
210
							});
211
						});
212
					});
213
				}
214
			});
215
		}
216
 
217
		function updateDemoNotes() {
218
			var notes = $('#demo-frame .demo-description');
219
			if ($('#demo-notes').length == 0) {
220
				$('<div id="demo-notes"></div>').insertAfter('#demo-config');
221
			}
222
			$('#demo-notes').hide().empty().html(notes.html());
223
			$('#demo-notes').show();
224
			notes.hide();
225
		}
226
 
227
		function updateDemoSource(source) {
228
			if ($('#demo-source').length == 0) {
229
				$('<div id="demo-source"><a href="#" class="source-closed">View Source</a><div><pre><code></code></pre></div></div>').insertAfter('#demo-notes');
230
				$('#demo-source').find(">a").click(function() {
231
					$(this).toggleClass("source-closed").toggleClass("source-open").next().toggle();
232
					return false;
233
				}).end().find(">div").hide();
234
			}
235
			var cleanedSource = source
236
				.replace('themes/base/jquery.ui.all.css', 'theme/jquery.ui.all.css')
237
				.replace(/\s*\x3Clink.*demos\x2Ecss.*\x3E\s*/, '\r\n\t')
238
				.replace(/\x2E\x2E\x2F\x2E\x2E\x2F/g, '');
239
 
240
			$('#demo-source code').empty().text(cleanedSource);
241
		}
242
 
243
		function resetDemos() {
244
			$.datepicker.setDefaults($.extend({showMonthAfterYear: false}, $.datepicker.regional['']));
245
			$(".ui-dialog-content").remove();
246
		}
247
 
248
	});
249
	</script>
250
</head>
251
<body>
252
 
253
<table class="layout-grid" cellspacing="0" cellpadding="0">
254
	<tr>
255
		<td class="left-nav">
256
			<dl class="demos-nav">
257
				<dt>Interactions</dt>
258
					<dd><a href="draggable/index.html">Draggable</a></dd>
259
					<dd><a href="droppable/index.html">Droppable</a></dd>
260
					<dd><a href="resizable/index.html">Resizable</a></dd>
261
					<dd><a href="selectable/index.html">Selectable</a></dd>
262
					<dd><a href="sortable/index.html">Sortable</a></dd>
263
				<dt>Widgets</dt>
264
					<dd><a href="accordion/index.html">Accordion</a></dd>
265
					<dd><a href="autocomplete/index.html">Autocomplete</a></dd>
266
					<dd><a href="button/index.html">Button</a></dd>
267
					<dd><a href="datepicker/index.html">Datepicker</a></dd>
268
					<dd><a href="dialog/index.html">Dialog</a></dd>
269
					<dd><a href="progressbar/index.html">Progressbar</a></dd>
270
					<dd><a href="slider/index.html">Slider</a></dd>
271
					<dd><a href="tabs/index.html">Tabs</a></dd>
272
				<dt>Effects</dt>
273
					<dd><a href="animate/index.html">Color Animation</a></dd>
274
					<dd><a href="toggleClass/index.html">Toggle Class</a></dd>
275
					<dd><a href="addClass/index.html">Add Class</a></dd>
276
					<dd><a href="removeClass/index.html">Remove Class</a></dd>
277
					<dd><a href="switchClass/index.html">Switch Class</a></dd>
278
					<dd><a href="effect/index.html">Effect</a></dd>
279
					<dd><a href="toggle/index.html">Toggle</a></dd>
280
					<dd><a href="hide/index.html">Hide</a></dd>
281
					<dd><a href="show/index.html">Show</a></dd>
282
				<dt>Utilities</dt>
283
                    <dd><a href="position/index.html">Position</a></dd>
284
				<dt>About jQuery UI</dt>
285
					<dd><a href="http://jqueryui.com/docs/Getting_Started">Getting Started</a></dd>
286
					<dd><a href="http://jqueryui.com/docs/Upgrade_Guide">Upgrade Guide</a></dd>
287
					<dd><a href="http://jqueryui.com/docs/Changelog">Changelog</a></dd>
288
					<dd><a href="http://jqueryui.com/docs/Roadmap">Roadmap</a></dd>
289
					<dd><a href="http://jqueryui.com/docs/Subversion">Subversion Access</a></dd>
290
					<dd><a href="http://jqueryui.com/docs/Developer_Guide">UI Developer Guidelines</a></dd>
291
				<dt>Theming</dt>
292
					<dd><a href="http://jqueryui.com/docs/Theming">Theming jQuery UI</a></dd>
293
					<dd><a href="http://jqueryui.com/docs/Theming/API">jQuery UI CSS Framework</a></dd>
294
					<dd><a href="http://jqueryui.com/docs/Theming/Themeroller">ThemeRoller application</a></dd>
295
					<dd><a href="http://jqueryui.com/docs/Theming/ThemeSwitcher">Theme Switcher Widget</a></dd>
296
 
297
			</dl>
298
		</td>
299
		<td class="normal">
300
 
301
			<div class="normal">
302
 
303
					<h3>Instructions</h3>
304
					<p>
305
						These demos showcase some common uses of each jQuery UI plugin. Simply copy and paste code from the demos to get started. Have fun playing with them.
306
					</p>
307
 
308
			</div>
309
 
310
		</td>
311
	</tr>
312
</table>
313
</body>
314
</html>