2020 < script src ="../ui/jquery.ui.draggable.js "> </ script >
2121 < script src ="../ui/jquery.ui.droppable.js "> </ script >
2222 < script src ="../ui/jquery.ui.menu.js "> </ script >
23- < script src ="../ui/jquery.ui.menubar.js "> </ script >
24- < script src ="../ui/jquery.ui.popup.js "> </ script >
2523 < script src ="../ui/jquery.ui.position.js "> </ script >
2624 < script src ="../ui/jquery.ui.progressbar.js "> </ script >
2725 < script src ="../ui/jquery.ui.resizable.js "> </ script >
111109 < script src ="../ui/i18n/jquery.ui.datepicker-zh-TW.js "> </ script >
112110 < script >
113111 $ ( function ( ) {
114-
112+
115113 $ ( '.left-nav a' ) . click ( function ( ev ) {
116114 window . location . hash = this . href . replace ( / .+ \/ ( [ ^ \/ ] + ) \/ i n d e x \. h t m l / , '$1' ) + '|default' ;
117115 loadPage ( this . href ) ;
118116 $ ( '.left-nav a.selected' ) . removeClass ( 'selected' ) ;
119117 $ ( this ) . addClass ( 'selected' ) ;
120118 ev . preventDefault ( ) ;
121119 } ) ;
122-
120+
123121 if ( window . location . hash ) {
124122 if ( window . location . hash . indexOf ( '|' ) === - 1 ) {
125- window . location . hash += '|default' ;
126- }
123+ window . location . hash += '|default' ;
124+ }
127125 var path = window . location . href . replace ( / ( i n d e x \. h t m l ) ? # / , '' ) ;
128126 path = path . replace ( '\|' , '/' ) + '.html' ;
129127 loadPage ( path ) ;
130- }
128+ }
131129
132- function loadPage ( path ) {
130+ function loadPage ( path ) {
133131 var section = path . replace ( / \/ [ ^ \/ ] + \. h t m l / , '' ) ;
134132 var header = section . replace ( / .+ \/ ( [ ^ \/ ] + ) / , '$1' ) . replace ( / _ / , ' ' ) ;
135-
133+
136134 $ ( 'td.normal div.normal' )
137135 . empty ( )
138136 . append ( '<h4 class="demo-subheader">Functional demo:</h4>' )
148146 $ ( this ) . click ( function ( ) {
149147
150148 resetDemos ( ) ;
151-
149+
152150 $ ( this ) . parents ( 'ul' ) . find ( 'li' ) . removeClass ( 'demo-config-on' ) ;
153151 $ ( this ) . parent ( ) . addClass ( 'demo-config-on' ) ;
154152 $ ( '#demo-notes' ) . fadeOut ( ) ;
167165 $ ( '#demo-config-menu a' ) . each ( function ( ) {
168166 if ( this . href . indexOf ( demo + '.html' ) !== - 1 ) {
169167 $ ( this ) . parents ( 'ul' ) . find ( 'li' ) . removeClass ( 'demo-config-on' ) ;
170- $ ( this ) . parent ( ) . addClass ( 'demo-config-on' ) ;
171- loadDemo ( this . href ) ;
168+ $ ( this ) . parent ( ) . addClass ( 'demo-config-on' ) ;
169+ loadDemo ( this . href ) ;
172170 }
173171 } ) ;
174172 }
184182 . end ( )
185183 . end ( )
186184 ;
187-
185+
188186 resetDemos ( ) ;
189187 }
190-
188+
191189 function loadDemo ( path ) {
192190 var directory = path . match ( / ( [ ^ \/ ] + ) \/ [ ^ \/ \. ] + \. h t m l $ / ) [ 1 ] ;
193191 $ . get ( path , function ( data ) {
207205 $ ( '#demo-link a' ) . attr ( 'href' , path ) ;
208206 updateDemoNotes ( ) ;
209207 updateDemoSource ( source ) ;
210-
208+
211209 if ( / d e f a u l t .h t m l $ / . test ( path ) ) {
212210 $ . get ( "documentation/docs-" + path . match ( / d e m o s \/ ( .+ ) \/ / ) [ 1 ] + ".html" , function ( html ) {
213211 $ ( "#demo-source" ) . after ( html ) ;
241239 $ ( '#demo-notes' ) . show ( ) ;
242240 notes . hide ( ) ;
243241 }
244-
242+
245243 function updateDemoSource ( source ) {
246244 if ( $ ( '#demo-source' ) . length == 0 ) {
247245 $ ( '<div id="demo-source"><a href="#" class="source-closed">View Source</a><div><pre><code></code></pre></div></div>' ) . insertAfter ( '#demo-notes' ) ;
257255
258256 $ ( '#demo-source code' ) . empty ( ) . text ( cleanedSource ) ;
259257 }
260-
258+
261259 function resetDemos ( ) {
262260 $ . datepicker . setDefaults ( $ . extend ( { showMonthAfterYear : false } , $ . datepicker . regional [ '' ] ) ) ;
263- $ ( ".ui-dialog-content" ) . remove ( ) ;
261+ $ ( ".ui-dialog-content" ) . remove ( ) ;
264262 }
265-
263+
266264 } ) ;
267265 </ script >
268266</ head >
285283 < dd > < a href ="datepicker/index.html "> Datepicker</ a > </ dd >
286284 < dd > < a href ="dialog/index.html "> Dialog</ a > </ dd >
287285 < dd > < a href ="menu/index.html "> Menu</ a > </ dd >
288- < dd > < a href ="menubar/index.html "> Menubar</ a > </ dd >
289- < dd > < a href ="popup/index.html "> Popup</ a > </ dd >
290286 < dd > < a href ="progressbar/index.html "> Progressbar</ a > </ dd >
291287 < dd > < a href ="slider/index.html "> Slider</ a > </ dd >
292288 < dd > < a href ="spinner/index.html "> Spinner</ a > </ dd >
307303 < dd > < a href ="widget/index.html "> Widget</ a > </ dd >
308304 < dt > About jQuery UI</ dt >
309305 < dd > < a href ="http://jqueryui.com/docs/Getting_Started "> Getting Started</ a > </ dd >
310- < dd > < a href ="http://jqueryui.com/docs/Upgrade_Guide "> Upgrade Guide</ a > </ dd >
306+ < dd > < a href ="http://jqueryui.com/docs/Upgrade_Guide "> Upgrade Guide</ a > </ dd >
311307 < dd > < a href ="http://jqueryui.com/docs/Changelog "> Changelog</ a > </ dd >
312308 < dd > < a href ="http://jqueryui.com/docs/Roadmap "> Roadmap</ a > </ dd >
313309 < dd > < a href ="http://jqueryui.com/docs/Subversion "> Subversion Access</ a > </ dd >
@@ -328,7 +324,7 @@ <h3>Instructions</h3>
328324 < p >
329325 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.
330326 </ p >
331-
327+
332328 </ div >
333329
334330 </ td >
0 commit comments