github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

jquery / jquery-ui

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 441
    • 60
  • Source
  • Commits
  • Network (60)
  • Graphs
  • Tree: 37e8dd6

click here to add a description

click here to add a homepage

  • Switch Branches (7)
    • bind
    • devpreview
    • formcontrols
    • master
    • menu
    • panel
    • tooltip
  • Switch Tags (16)
    • 1.8rc3
    • 1.8rc2
    • 1.8rc1
    • 1.8b1
    • 1.8a2
    • 1.8a1
    • 1.8.1
    • 1.8
    • 1.7
    • 1.6rc6
    • 1.6rc5
    • 1.6rc3
    • 1.6rc2
    • 1.6
    • 1.5.2
    • 1.5.1
  • Comments
  • Contributors
Sending Request…

The official jQuery user interface library. — Read more

  Cancel

http://jqueryui.com/

  Cancel
  • HTTP
  • Git Read-Only

This URL has Read+Write access

more inline widgets and variations added to theme test page
paulirish (author)
Thu Apr 29 17:28:56 -0700 2010
rdworth (committer)
Sat May 01 03:05:04 -0700 2010
commit  37e8dd605da5d99600c0
tree    80079822d48c7778802a
parent  01ad6ce83e7d33c4a510
M tests/visual/theme.html 232 ••••
Txt tests/visual/theme.html
  • View file @ 37e8dd6
... ...
@@ -3,31 +3,33 @@
3 3
   <head>
4 4
     <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
5 5
     <title>jQuery UI Example Page</title>
6  
-      <link rel="stylesheet" href="../../themes/base/jquery.ui.all.css" type="text/css">
7  
-      <script type="text/javascript" src="../../jquery-1.4.2.js"></script>
8  
-      <script type="text/javascript" src="../../ui/jquery.ui.core.js"></script>
9  
-      <script type="text/javascript" src="../../ui/jquery.ui.widget.js"></script>
10  
-      <script type="text/javascript" src="../../ui/jquery.ui.mouse.js"></script>
11  
-      <script type="text/javascript" src="../../ui/jquery.ui.position.js"></script>
12  
-      <script type="text/javascript" src="../../ui/jquery.ui.accordion.js"></script>
13  
-      <script type="text/javascript" src="../../ui/jquery.ui.autocomplete.js"></script>
14  
-      <script type="text/javascript" src="../../ui/jquery.ui.button.js"></script>
15  
-      <script type="text/javascript" src="../../ui/jquery.ui.datepicker.js"></script>
16  
-      <script type="text/javascript" src="../../ui/jquery.ui.dialog.js"></script>
17  
-      <script type="text/javascript" src="../../ui/jquery.ui.draggable.js"></script>
18  
-      <script type="text/javascript" src="../../ui/jquery.ui.droppable.js"></script>
19  
-      <script type="text/javascript" src="../../ui/jquery.ui.progressbar.js"></script>
20  
-      <script type="text/javascript" src="../../ui/jquery.ui.resizable.js"></script>
21  
-      <script type="text/javascript" src="../../ui/jquery.ui.selectable.js"></script>
22  
-      <script type="text/javascript" src="../../ui/jquery.ui.slider.js"></script>
23  
-      <script type="text/javascript" src="../../ui/jquery.ui.sortable.js"></script>
24  
-      <script type="text/javascript" src="../../ui/jquery.ui.tabs.js"></script>
  6
+    <link rel="stylesheet" href="../../themes/base/jquery.ui.all.css" type="text/css">
  7
+    <script type="text/javascript" src="../../jquery-1.4.2.js"></script>
  8
+    <script type="text/javascript" src="../../ui/jquery.ui.core.js"></script>
  9
+    <script type="text/javascript" src="../../ui/jquery.ui.widget.js"></script>
  10
+    <script type="text/javascript" src="../../ui/jquery.ui.mouse.js"></script>
  11
+    <script type="text/javascript" src="../../ui/jquery.ui.position.js"></script>
  12
+    <script type="text/javascript" src="../../ui/jquery.ui.accordion.js"></script>
  13
+    <script type="text/javascript" src="../../ui/jquery.ui.autocomplete.js"></script>
  14
+    <script type="text/javascript" src="../../ui/jquery.ui.button.js"></script>
  15
+    <script type="text/javascript" src="../../ui/jquery.ui.datepicker.js"></script>
  16
+    <script type="text/javascript" src="../../ui/jquery.ui.dialog.js"></script>
  17
+    <script type="text/javascript" src="../../ui/jquery.ui.draggable.js"></script>
  18
+    <script type="text/javascript" src="../../ui/jquery.ui.droppable.js"></script>
  19
+    <script type="text/javascript" src="../../ui/jquery.ui.progressbar.js"></script>
  20
+    <script type="text/javascript" src="../../ui/jquery.ui.resizable.js"></script>
  21
+    <script type="text/javascript" src="../../ui/jquery.ui.selectable.js"></script>
  22
+    <script type="text/javascript" src="../../ui/jquery.ui.slider.js"></script>
  23
+    <script type="text/javascript" src="../../ui/jquery.ui.sortable.js"></script>
  24
+    <script type="text/javascript" src="../../ui/jquery.ui.tabs.js"></script>
25 25
     <script type="text/javascript">
26 26
       $(function(){
27 27
 
28 28
         // Accordion
29  
-        $("#accordion").accordion({ header: "h3" });
30  
-  
  29
+        $(".accordion").accordion({ header: "h3" });
  30
+        $(".accordion").last().accordion("option", "icons", false);
  31
+        
  32
+        
31 33
         // Tabs
32 34
         $('#tabs').tabs();
33 35
   
... ...
@@ -54,15 +56,33 @@
54 56
 
55 57
         // Datepicker
56 58
         $('#datepicker').datepicker({
  59
+          inline: true,
  60
+          showWeek: true
  61
+        });
  62
+        
  63
+        $('#multidatepicker').datepicker({
  64
+          numberOfMonths: 3,
  65
+          showButtonPanel: true,
57 66
           inline: true
58 67
         });
59 68
         
60 69
         // Slider
61  
-        $('#slider').slider({
  70
+        $('.slider').slider({
62 71
           range: true,
63 72
           values: [17, 67]
64 73
         });
65 74
         
  75
+        $("#eq > span").each(function() {
  76
+          var value = parseInt($(this).text());
  77
+          $(this).empty().slider({
  78
+            value: value,
  79
+            range: "min",
  80
+            animate: true,
  81
+            orientation: "vertical"
  82
+          });
  83
+        });
  84
+        
  85
+        
66 86
         // Progressbar
67 87
         $("#progressbar").progressbar({
68 88
           value: 20 
... ...
@@ -74,40 +94,114 @@
74 94
           function() { $(this).removeClass('ui-state-hover'); }
75 95
         );
76 96
         
  97
+        $(".buttonset > button").button()
  98
+        .next()
  99
+        .button({
  100
+          text: false,
  101
+          icons: {
  102
+            primary: "ui-icon-triangle-1-s"
  103
+          }
  104
+        })
  105
+        .parent()
  106
+        .buttonset();
  107
+        
  108
+        
  109
+        $('#beginning').button({
  110
+          text: false,
  111
+          icons: {
  112
+            primary: 'ui-icon-seek-start'
  113
+          }
  114
+        });
  115
+        $('#rewind').button({
  116
+          text: false,
  117
+          icons: {
  118
+            primary: 'ui-icon-seek-prev'
  119
+          }
  120
+        });
  121
+        $('#play').button({
  122
+          text: false,
  123
+          icons: {
  124
+            primary: 'ui-icon-play'
  125
+          }
  126
+        });
  127
+        $('#stop').button({
  128
+          text: false,
  129
+          icons: {
  130
+            primary: 'ui-icon-stop'
  131
+          }
  132
+        });
  133
+        $('#forward').button({
  134
+          text: false,
  135
+          icons: {
  136
+            primary: 'ui-icon-seek-next'
  137
+          }
  138
+        });
  139
+        $('#end').button({
  140
+          text: false,
  141
+          icons: {
  142
+            primary: 'ui-icon-seek-end'
  143
+          }
  144
+        });
  145
+        $("#shuffle").button();
  146
+        $("#repeat").buttonset();
  147
+        
77 148
       });
78 149
     </script>
79 150
     <style type="text/css">
80 151
       /*demo page css*/
81 152
       body{ font: 62.5% "Trebuchet MS", sans-serif; margin: 50px;}
82  
-      .demoHeaders { margin-top: 2em; }
  153
+      .demoHeaders { margin-top: 2em; clear:both; }
83 154
       #dialog_link {padding: .4em 1em .4em 20px;text-decoration: none;position: relative;}
84 155
       #dialog_link span.ui-icon {margin: 0 5px 0 0;position: absolute;left: .2em;top: 50%;margin-top: -8px;}
85 156
       ul#icons {margin: 0; padding: 0;}
86 157
       ul#icons li {margin: 2px; position: relative; padding: 4px 0; cursor: pointer; float: left;  list-style: none;}
87 158
       ul#icons span.ui-icon {float: left; margin: 0 4px;}
  159
+      .columnbox { height: 150px; width: 48%; float:left; margin-right: 1%; }
  160
+      #eq span {   height:120px; float:left; margin:15px   }
  161
+      .buttonset {margin-bottom: 5px; }
  162
+      #toolbar { padding: 10px 4px;  }
88 163
     </style>  
89 164
   </head>
90 165
   <body>
91 166
 
92 167
   <!-- <p style="font-size: 1.3em; line-height: 1.5; margin: 1em 0; width: 50%;">This page demonstrates the widgets using a theme.</p> -->
93  
-        <div id="switcher" style="position:absolute; right: 20px; top: 20px;"></div>
  168
+    <div id="switcher" style="position:absolute; right: 20px; top: 20px;"></div>
94 169
     
95 170
     <!-- Accordion -->
96 171
     <h2 class="demoHeaders">Accordion</h2>
97  
-    <div id="accordion">
98  
-      <div>
99  
-        <h3><a href="#">First</a></h3>
100  
-        <div>Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet.</div>
101  
-      </div>
102  
-      <div>
103  
-        <h3><a href="#">Second</a></h3>
104  
-        <div>Phasellus mattis tincidunt nibh.</div>
  172
+    <div class="columnbox">
  173
+      <div class="accordion">
  174
+        <div>
  175
+          <h3><a href="#">First</a></h3>
  176
+          <div>Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet.</div>
  177
+        </div>
  178
+        <div>
  179
+          <h3><a href="#">Second</a></h3>
  180
+          <div>Phasellus mattis tincidunt nibh.</div>
  181
+        </div>
  182
+        <div>
  183
+          <h3><a href="#">Third</a></h3>
  184
+          <div>Nam dui erat, auctor a, dignissim quis.</div>
  185
+        </div>
105 186
       </div>
106  
-      <div>
107  
-        <h3><a href="#">Third</a></h3>
108  
-        <div>Nam dui erat, auctor a, dignissim quis.</div>
  187
+    </div>
  188
+    <div class="columnbox">
  189
+      <div class="accordion">
  190
+        <div>
  191
+          <h3><a href="#">First no icons</a></h3>
  192
+          <div>Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet.</div>
  193
+        </div>
  194
+        <div>
  195
+          <h3><a href="#">Second no icons</a></h3>
  196
+          <div>Phasellus mattis tincidunt nibh.</div>
  197
+        </div>
  198
+        <div>
  199
+          <h3><a href="#">Third no icons</a></h3>
  200
+          <div>Nam dui erat, auctor a, dignissim quis.</div>
  201
+        </div>
109 202
       </div>
110 203
     </div>
  204
+    
111 205
   
112 206
     <!-- Tabs -->
113 207
     <h2 class="demoHeaders">Tabs</h2>
... ...
@@ -126,6 +220,10 @@
126 220
     <h2 class="demoHeaders">Dialog</h2>
127 221
     <p><a href="#" id="dialog_link" class="ui-state-default ui-corner-all"><span class="ui-icon ui-icon-newwin"></span>Open Dialog</a></p>
128 222
     
  223
+    <div class="ui-dialog ui-widget ui-widget-content ui-corner-all  ui-draggable ui-resizable" ><div class="ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix"><span class="ui-dialog-title">Inline Dialog</span><a href="#" class="ui-dialog-titlebar-close ui-corner-all" ><span class="ui-icon ui-icon-closethick" >close</span></a></div><div class="ui-dialog-content ui-widget-content" >
  224
+    <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>
  225
+    </div><div class="ui-resizable-handle ui-resizable-n" ></div><div class="ui-resizable-handle ui-resizable-e" ></div><div class="ui-resizable-handle ui-resizable-s" ></div><div class="ui-resizable-handle ui-resizable-w" ></div><div class="ui-resizable-handle ui-resizable-se ui-icon ui-icon-gripsmall-diagonal-se ui-icon-grip-diagonal-se" ></div><div class="ui-resizable-handle ui-resizable-sw" ></div><div class="ui-resizable-handle ui-resizable-ne" ></div><div class="ui-resizable-handle ui-resizable-nw" ></div><div class="ui-dialog-buttonpane ui-widget-content ui-helper-clearfix"><button type="button" class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only" role="button" aria-disabled="false"><span class="ui-button-text">Ok</span></button><button type="button" class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only" role="button" aria-disabled="false"><span class="ui-button-text">Cancel</span></button></div></div>
  226
+    
129 227
     
130 228
     <h2 class="demoHeaders">Overlay and Shadow Classes <em>(not currently used in UI widgets)</em></h2>
131 229
     <div style="position: relative; width: 96%; height: 200px; padding:1% 4%; overflow:hidden;" class="fakewindowcontain">
... ...
@@ -349,12 +447,32 @@
349 447
   
350 448
     <!-- Slider -->
351 449
     <h2 class="demoHeaders">Slider</h2>
352  
-    <div id="slider"></div>
353  
-  
  450
+    <div class="columnbox">
  451
+      <div class="slider"></div>
  452
+    </div>
  453
+    <div class="columnbox">
  454
+      <div id="eq">
  455
+        <span>88</span>
  456
+        <span>77</span>
  457
+        <span>55</span>
  458
+        <span>33</span>
  459
+        <span>40</span>
  460
+        <span>45</span>
  461
+        <span>70</span>
  462
+      </div>
  463
+    </div>
  464
+    
  465
+    
354 466
     <!-- Datepicker -->
355 467
     <h2 class="demoHeaders">Datepicker</h2>
356  
-    <div id="datepicker"></div>
357  
-  
  468
+    <div class="columnbox" style="width: 32%">
  469
+      <div id="datepicker"></div>
  470
+    </div>
  471
+    <div class="columnbox" style="width: 66%; height: 220px;">
  472
+      <div id="multidatepicker"></div>
  473
+    </div>
  474
+    
  475
+    
358 476
     <!-- Progressbar -->
359 477
     <h2 class="demoHeaders">Progressbar</h2>  
360 478
     <div id="progressbar"></div>
... ...
@@ -374,13 +492,37 @@
374 492
         <strong>Alert:</strong> Sample ui-state-error style.</p>
375 493
       </div>
376 494
     </div>
377  
-    
  495
+  
  496
+    <h2 class="demoHeaders">Button</h2>
  497
+    
  498
+    <div class="buttonset">
  499
+      <button id="rerun">Run last action</button>
  500
+      <button id="select">Select an action</button>
  501
+    </div>
  502
+  
  503
+    <span id="toolbar" class="ui-widget-header ui-corner-all">
  504
+      <button id="beginning">go to beginning</button>
  505
+      <button id="rewind">rewind</button>
  506
+      <button id="play">play</button>
  507
+      <button id="stop">stop</button>
  508
+      <button id="forward">fast forward</button>
  509
+      <button id="end">go to end</button>
  510
+      
  511
+      <input type="checkbox" id="shuffle" /><label for="shuffle">Shuffle</label>
  512
+      
  513
+      <span id="repeat">
  514
+        <input type="radio" id="repeat0" name="repeat" checked="checked" /><label for="repeat0">No Repeat</label>
  515
+        <input type="radio" id="repeat1" name="repeat" /><label for="repeat1">Once</label>
  516
+        <input type="radio" id="repeatall" name="repeat" /><label for="repeatall">All</label>
  517
+      </span>
  518
+    </span>  
  519
+      
378 520
     <!-- theme switcher -->
379  
-    
380  
-    <script src="http://jqueryui.com/themeroller/themeswitchertool/"></script>
381  
-    <script>
382  
-        $('#switcher').themeswitcher();
383  
-    </script>
  521
+  
  522
+  <script src="http://jqueryui.com/themeroller/themeswitchertool/"></script>
  523
+  <script>
  524
+    $('#switcher').themeswitcher();
  525
+  </script>
384 526
 
385 527
 
386 528
 

0 notes on commit 37e8dd6

Please log in to comment.
Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server