Skip to content

Commit c960a25

Browse files
committed
Adjust URLs to be root-relative in pages.
1 parent c4259ad commit c960a25

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

pages/Types.html

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ <h3 id="Quoting"> Quoting </h3>
112112
"&lt;a href=\"home\"&gt;Home&lt;/a&gt;"
113113
</code></pre>
114114
<h3 id="Built-in_Methods"> Built-in Methods </h3>
115-
<p>A string in JavaScript has some built-in methods to manipulate the string, though the result is always a new string - or something else, eg. split returns an <a href="http://api.jquery.com/Types/#Array" title="Types">array</a>.
115+
<p>A string in JavaScript has some built-in methods to manipulate the string, though the result is always a new string - or something else, eg. split returns an <a href="/Types/#Array" title="Types">array</a>.
116116
</p>
117117
<pre><code data-lang="javascript">"hello".charAt( 0 ) // "h"
118118
"hello".toUpperCase() // "HELLO"
@@ -291,7 +291,7 @@ <h3 id="Iteration"> Iteration </h3>
291291
</code></pre>
292292
<p>Note that for-in-loop can be spoiled by extending Object.prototype (see <a href="http://erik.eae.net/archives/2005/06/06/22.13.54" class="external text" title="http://erik.eae.net/archives/2005/06/06/22.13.54">Object.prototype is verboten</a>) so take care when using other libraries.
293293
</p>
294-
<p>jQuery provides a generic <a href="http://api.jquery.com/jQuery.each/"><em>each</em> function</a> to iterate over properties of objects, as well as elements of arrays:
294+
<p>jQuery provides a generic <a href="/jQuery.each/"><em>each</em> function</a> to iterate over properties of objects, as well as elements of arrays:
295295
</p>
296296
<pre><code data-lang="javascript">jQuery.each( obj, function( key, value ) {
297297
console.log( "key", key, "value", value );
@@ -360,7 +360,7 @@ <h3 id="Iteration_2"> Iteration </h3>
360360
// Do something with item
361361
}
362362
</code></pre>
363-
<p>jQuery provides a generic <a href="http://api.jquery.com/jQuery.each/"><em>each</em> function</a> to iterate over element of arrays, as well as properties of objects:
363+
<p>jQuery provides a generic <a href="/jQuery.each/"><em>each</em> function</a> to iterate over element of arrays, as well as properties of objects:
364364
</p>
365365
<pre><code data-lang="javascript">var x = [ 1, 2, 3 ];
366366
jQuery.each( x, function( index, value ) {
@@ -544,7 +544,7 @@ <h2 id="Callback"> Callback </h2>
544544
<h2 id="Selector"> Selector </h2>
545545
<p>A selector is used in jQuery to select DOM elements from a DOM document. That document is, in most cases, the DOM document present in all browsers, but can also be an XML document received via AJAX.
546546
</p>
547-
<p>The selectors are a composition of CSS and custom additions. All selectors available in jQuery are documented on the <a href="http://api.jquery.com/category/selectors" title="Selectors">Selectors API page</a>.
547+
<p>The selectors are a composition of CSS and custom additions. All selectors available in jQuery are documented on the <a href="/category/selectors/" title="Selectors">Selectors API page</a>.
548548
</p>
549549
<p>There are lot of plugins that leverage jQuery's selectors in other ways. The validation plugin accepts a selector to specify a dependency, whether an input is required or not:
550550
</p>
@@ -559,7 +559,7 @@ <h2 id="Selector"> Selector </h2>
559559
<h2 id="Event">Event</h2>
560560
<p>jQuery's event system normalizes the event object according to W3C standards. The event object is guaranteed to be passed to the event handler (no checks for window.event required). It normalizes the target, relatedTarget, which, metaKey and pageX/Y properties and provides both stopPropagation() and preventDefault() methods.
561561
</p>
562-
<p>Those properties are all documented, and accompanied by examples, on the <a href="http://api.jquery.com/category/events/event-object/" title="Events">Event object</a> page.
562+
<p>Those properties are all documented, and accompanied by examples, on the <a href="/category/events/event-object/" title="Events">Event object</a> page.
563563
</p>
564564
<p>The standard events in the Document Object Model are: <code>blur</code>, <code>focus</code>, <code> load</code>, <code>resize</code>, <code>scroll</code>, <code>unload</code>, <code>beforeunload</code>, <code>click</code>, <code>dblclick</code>, <code>mousedown</code>, <code>mouseup</code>, <code>mousemove</code>, <code>mouseover</code>, <code>mouseout</code>, <code>mouseenter</code>, <code>mouseleave</code>, <code>change</code>, <code>select</code>, <code>submit</code>, <code>keydown</code>, <code>keypress,</code> and <code>keyup</code>. Since the DOM event names have predefined meanings for some elements, using them for other purposes is not recommended. jQuery's event model can trigger an event by any name on an element, and it is propagated up the DOM tree to which that element belongs, if any.
565565
</p>
@@ -607,13 +607,13 @@ <h2 id="XMLHttpRequest"> XMLHttpRequest </h2>
607607
<p>Google does not appear to have an official page for their XHR documentation for Chrome. As of version 5, Chrome does not support the use of the file protocol for XHR requests.
608608
</p>
609609
<h2 id="jqXHR"> jqXHR </h2>
610-
<p>As of jQuery 1.5, the <a href="http://api.jquery.com/jQuery.ajax/">$.ajax()</a> method returns the jqXHR object, which is a superset of the XMLHTTPRequest object. For more information, see the <a href="http://api.jquery.com/jQuery.ajax/#jqXHR">jqXHR section of the $.ajax entry</a>
610+
<p>As of jQuery 1.5, the <a href="/jQuery.ajax/">$.ajax()</a> method returns the jqXHR object, which is a superset of the XMLHTTPRequest object. For more information, see the <a href="/jQuery.ajax/#jqXHR">jqXHR section of the $.ajax entry</a>
611611
</p>
612612
<h2 id="Deferred"> Deferred Object</h2>
613-
<p>As of jQuery 1.5, the <a href="http://api.jquery.com/category/deferred-object">Deferred</a> object provides a way to register multiple callbacks into self-managed callback queues, invoke callback queues as appropriate, and relay the success or failure state of any synchronous or asynchronous function.
613+
<p>As of jQuery 1.5, the <a href="/category/deferred-object/">Deferred</a> object provides a way to register multiple callbacks into self-managed callback queues, invoke callback queues as appropriate, and relay the success or failure state of any synchronous or asynchronous function.
614614
</p>
615615
<h2 id="Promise"> Promise Object</h2>
616-
<p>This object provides a subset of the methods of the <a href="http://api.jquery.com/category/deferred-object">Deferred</a> object (<a href="http://api.jquery.com/deferred.then/"><code>then</code></a>, <a href="http://api.jquery.com/deferred.done/"><code>done</code></a>, <a href="http://api.jquery.com/deferred.fail/"><code>fail</code></a>, <a href="http://api.jquery.com/deferred.always"><code>always</code></a>, <a href="http://api.jquery.com/deferred.pipe/"><code>pipe</code></a>. <a href="http://api.jquery.com/deferred.isResolved/"><code>isResolved</code></a>, and <a href="http://api.jquery.com/deferred.isRejected/"><code>isRejected</code></a>) to prevent users from changing the state of the Deferred.
616+
<p>This object provides a subset of the methods of the <a href="/category/deferred-object/">Deferred</a> object (<a href="/deferred.then/"><code>then</code></a>, <a href="/deferred.done/"><code>done</code></a>, <a href="/deferred.fail/"><code>fail</code></a>, <a href="/deferred.always/"><code>always</code></a>, <a href="/deferred.pipe/"><code>pipe</code></a>. <a href="/deferred.isResolved/"><code>isResolved</code></a>, and <a href="/deferred.isRejected/"><code>isRejected</code></a>) to prevent users from changing the state of the Deferred.
617617
</p>
618618
<h2 id="Callbacks">Callbacks Object</h2>
619619
<p>A multi-purpose object that provides a powerful way to manage callback lists. It supports adding, removing, firing, and disabling callbacks. The Callbacks object is created and returned by the <code>$.Callbacks</code> function and subsequently returned by most of that function's methods. </p>

0 commit comments

Comments
 (0)