Skip to content

Commit

Permalink
All: Reduce examples down to a single basic example
Browse files Browse the repository at this point in the history
  • Loading branch information
scottgonzalez committed Oct 25, 2018
1 parent 762c12f commit bc9e260
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 113 deletions.
18 changes: 0 additions & 18 deletions entries/autocomplete.xml
Original file line number Diff line number Diff line change
Expand Up @@ -255,24 +255,6 @@ $( "#autocomplete" ).autocomplete({
<html><![CDATA[
<label for="autocomplete">Select a programming language: </label>
<input id="autocomplete">
]]></html>
</example>
<example>
<desc>Using a custom source callback to match only the beginning of terms</desc>
<code><![CDATA[
var tags = [ "c++", "java", "php", "coldfusion", "javascript", "asp", "ruby" ];
$( "#autocomplete" ).autocomplete({
source: function( request, response ) {
var matcher = new RegExp( "^" + $.ui.autocomplete.escapeRegex( request.term ), "i" );
response( $.grep( tags, function( item ){
return matcher.test( item );
}) );
}
});
]]></code>
<html><![CDATA[
<label for="autocomplete">Select a programming language: </label>
<input id="autocomplete">
]]></html>
</example>
<category slug="widgets"/>
Expand Down
12 changes: 0 additions & 12 deletions entries/progressbar.xml
Original file line number Diff line number Diff line change
Expand Up @@ -109,18 +109,6 @@ $( "#progressbar" ).progressbar({
]]></code>
<html><![CDATA[
<div id="progressbar"></div>
]]></html>
</example>
<example>
<height>50</height>
<desc>A simple jQuery UI Indeterminate Progressbar</desc>
<code><![CDATA[
$( "#progressbar" ).progressbar({
value: false
});
]]></code>
<html><![CDATA[
<div id="progressbar"></div>
]]></html>
</example>
<category slug="widgets"/>
Expand Down
20 changes: 0 additions & 20 deletions entries/scale-effect.xml
Original file line number Diff line number Diff line change
Expand Up @@ -36,26 +36,6 @@ $( document ).click(function() {
<html><![CDATA[
<p>Click anywhere to toggle the box.</p>
<div id="toggle"></div>
]]></html>
</example>
<example>
<height>200</height>
<desc>Toggle a div using the scale effect in just one direction.</desc>
<css><![CDATA[
#toggle {
width: 100px;
height: 100px;
background: #ccc;
}
]]></css>
<code><![CDATA[
$( document ).click(function() {
$( "#toggle" ).toggle({ effect: "scale", direction: "horizontal" });
});
]]></code>
<html><![CDATA[
<p>Click anywhere to toggle the box.</p>
<div id="toggle"></div>
]]></html>
</example>
<category slug="effects"/>
Expand Down
63 changes: 0 additions & 63 deletions entries/selectmenu.xml
Original file line number Diff line number Diff line change
Expand Up @@ -323,69 +323,6 @@ $( "#speed" ).selectmenu();
<css><![CDATA[
label { display: block; }
select { width: 200px; }
]]></css>
</example>
<example>
<height>270</height>
<desc>A simple jQuery UI Selectmenu with optgroups</desc>
<code><![CDATA[
$( "#files" ).selectmenu();
]]></code>
<html><![CDATA[
<label for="files">Select a file:</label>
<select name="files" id="files">
<optgroup label="Scripts">
<option value="jquery">jQuery.js</option>
<option value="jqueryui">ui.jQuery.js</option>
</optgroup>
<optgroup label="Other files">
<option value="somefile">Some unknown file</option>
<option value="someotherfile">Some other file</option>
</optgroup>
</select>
]]></html>
<css><![CDATA[
label { display: block; }
select { width: 200px; }
]]></css>
</example>
<example>
<height>270</height>
<desc>A jQuery UI Selectmenu with overflow</desc>
<code><![CDATA[
$( "#number" )
.selectmenu()
.selectmenu( "menuWidget" )
.addClass( "overflow" );
]]></code>
<html><![CDATA[
<label for="number">Select a number:</label>
<select name="number" id="number">
<option value="1">1</option>
<option value="2" selected>2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
<option value="8">8</option>
<option value="9">9</option>
<option value="10">10</option>
<option value="11">11</option>
<option value="12">12</option>
<option value="13">13</option>
<option value="14">14</option>
<option value="15">15</option>
<option value="16">16</option>
<option value="17">17</option>
<option value="18">18</option>
<option value="19">19</option>
</select>
]]></html>
<css><![CDATA[
label { display: block; }
select { width: 200px; }
.overflow { height: 200px; }
]]></css>
</example>
<category slug="widgets"/>
Expand Down

0 comments on commit bc9e260

Please sign in to comment.