Skip to content

Commit 9661b83

Browse files
committed
Added images as resources using resources support in grunt-wordpress v0.1.0
1 parent e956564 commit 9661b83

87 files changed

Lines changed: 82 additions & 60 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

entries/animate.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,12 @@
6969
});
7070
</pre>
7171
<p class="image">
72-
<img src="/images/animate-1.jpg" alt="" />
72+
<img src="/resources/animate-1.jpg" alt="" />
7373
</p>
7474
<p>Note that the target value of the <code>height</code> property is <code>'toggle'</code>. Since the image was visible before, the animation shrinks the height to 0 to hide it. A second click then reverses this transition:
7575
</p>
7676
<p class="image">
77-
<img src="/images/animate-2.jpg" alt="" />
77+
<img src="/resources/animate-2.jpg" alt="" />
7878
</p>
7979

8080
<p>The <code>opacity</code> of the image is already at its target value, so this property is not animated by the second click. Since the target value for <code>left</code> is a relative value, the image moves even farther to the right during this second animation.</p>

entries/attr.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ var title = $("em").attr("title");
9898
<desc>Set some attributes for all &lt;img&gt;s in the page.</desc>
9999
<code><![CDATA[
100100
$("img").attr({
101-
src: "/images/hat.gif",
101+
src: "/resources/hat.gif",
102102
title: "jQuery",
103103
alt: "jQuery Logo"
104104
});
@@ -141,7 +141,7 @@ $("div").attr("id", function (arr) {
141141
<desc>Set the src attribute from title attribute on the image.</desc>
142142
<code><![CDATA[
143143
$("img").attr("src", function() {
144-
return "/images/" + this.title;
144+
return "/resources/" + this.title;
145145
});
146146
]]></code>
147147
<html><![CDATA[

entries/click.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
Trigger the handler
3131
&lt;/div&gt;</pre>
3232

33-
<p class="image"><img src="/images/0042_05_03.png" alt="" /></p>
33+
<p class="image"><img src="/resources/0042_05_03.png" alt="" /></p>
3434
<p>The event handler can be bound to any <code>&lt;div&gt;</code>:</p>
3535
<pre>$("#target").click(function() {
3636
alert("Handler for .click() called.");

entries/dblclick.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
Trigger the handler
3131
&lt;/div&gt;</pre>
3232

33-
<p class="image"><img src="/images/0042_05_04.png" alt="" />
33+
<p class="image"><img src="/resources/0042_05_04.png" alt="" />
3434
</p>
3535
<p>The event handler can be bound to any <code>&lt;div&gt;</code>:</p>
3636
<pre>$('#target').dblclick(function() {

entries/fadeIn.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,10 @@
3636
});
3737
});</pre>
3838
<p class="image four-across">
39-
<img src="/images/0042_06_33.png" alt="" />
40-
<img src="/images/0042_06_34.png" alt="" />
41-
<img src="/images/0042_06_35.png" alt="" />
42-
<img src="/images/0042_06_36.png" alt="" />
39+
<img src="/resources/0042_06_33.png" alt="" />
40+
<img src="/resources/0042_06_34.png" alt="" />
41+
<img src="/resources/0042_06_35.png" alt="" />
42+
<img src="/resources/0042_06_36.png" alt="" />
4343
</p>
4444

4545
<h4 id="easing">Easing</h4>

entries/fadeOut.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,10 @@
3636
});
3737
});</pre>
3838
<p class="image four-across">
39-
<img src="/images/0042_06_37.png" alt="" />
40-
<img src="/images/0042_06_38.png" alt="" />
41-
<img src="/images/0042_06_39.png" alt="" />
42-
<img src="/images/0042_06_40.png" alt="" />
39+
<img src="/resources/0042_06_37.png" alt="" />
40+
<img src="/resources/0042_06_38.png" alt="" />
41+
<img src="/resources/0042_06_39.png" alt="" />
42+
<img src="/resources/0042_06_40.png" alt="" />
4343
</p>
4444
<blockquote>
4545
<p><strong>Note: </strong>To avoid unnecessary DOM manipulation, <code>.fadeOut()</code> will not hide an element that is already considered hidden. For information on which elements jQuery considers hidden, see <a href="http://api.jquery.com/hidden-selector"> :hidden Selector</a>.</p>

entries/height.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
</signature>
66
<desc>Get the current computed height for the first element in the set of matched elements.</desc>
77
<longdesc><p>The difference between <code>.css('height')</code> and <code>.height()</code> is that the latter returns a unit-less pixel value (for example, <code>400</code>) while the former returns a value with units intact (for example, <code>400px</code>). The <code>.height()</code> method is recommended when an element's height needs to be used in a mathematical calculation.</p>
8-
<p class="image"><img src='/images/0042_04_01.png'/></p>
8+
<p class="image"><img src='/resources/0042_04_01.png'/></p>
99

1010
<p>This method is also able to find the height of the window and document.</p>
1111

entries/hide.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,10 @@ $('#clickme').click(function() {
4747
});</pre>
4848

4949
<p class="image four-across">
50-
<img src="/images/0042_06_05.png" alt="" />
51-
<img src="/images/0042_06_06.png" alt="" />
52-
<img src="/images/0042_06_07.png" alt="" />
53-
<img src="/images/0042_06_08.png" alt="" />
50+
<img src="/resources/0042_06_05.png" alt="" />
51+
<img src="/resources/0042_06_06.png" alt="" />
52+
<img src="/resources/0042_06_07.png" alt="" />
53+
<img src="/resources/0042_06_08.png" alt="" />
5454
</p>
5555

5656
</longdesc>

entries/innerHeight.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<longdesc>
77
<p>This method returns the height of the element, including top and bottom padding, in pixels.</p>
88
<p>This method is not applicable to <code>window</code> and <code>document</code> objects; for these, use <code><a href='/height'>.height()</a></code> instead.</p>
9-
<p class="image"><img src="/images/0042_04_02.png"/></p>
9+
<p class="image"><img src="/resources/0042_04_02.png"/></p>
1010
</longdesc>
1111

1212
<example>

entries/innerWidth.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<desc>Get the current computed width for the first element in the set of matched elements, including padding but not border.</desc>
66
<longdesc><p>This method returns the width of the element, including left and right padding, in pixels.</p>
77
<p>This method is not applicable to <code>window</code> and <code>document</code> objects; for these, use <code><a href='/width'>.width()</a></code> instead.</p>
8-
<p class="image"><img src="/images/0042_04_05.png"/></p></longdesc>
8+
<p class="image"><img src="/resources/0042_04_05.png"/></p></longdesc>
99
<example>
1010
<desc>Get the innerWidth of a paragraph.</desc>
1111
<code><![CDATA[var p = $("p:first");

0 commit comments

Comments
 (0)