Skip to content

Commit

Permalink
deploy: bf884b1
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelCurrin committed Aug 28, 2024
1 parent 504963d commit e8b550f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions cheatsheets/javascript/browser/svg.html
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ <h1 class="post-title">

<h2 id="change-color-using-js">Change color using JS</h2>

<h3 id="inline-svg">Inline SVG</h3>
<h3 id="inline-svg-svg-element">Inline SVG (<code class="language-plaintext highlighter-rouge">svg</code> element)</h3>

<p>Change using <code class="language-plaintext highlighter-rouge">onclick</code> to set an attribute or class.</p>

Expand Down Expand Up @@ -205,7 +205,7 @@ <h3 id="inline-svg">Inline SVG</h3>
<span class="p">}</span>
</code></pre></div></div>

<h3 id="linked-svg">Linked SVG</h3>
<h3 id="linked-svg-object-element-with-reference">Linked SVG (<code class="language-plaintext highlighter-rouge">object</code> element with reference)</h3>

<p>When you embed an SVG using <code class="language-plaintext highlighter-rouge">&lt;object&gt;</code>, the SVG is treated as a separate document. The <code class="language-plaintext highlighter-rouge">contentDocument</code> property allows you to access and manipulate this embedded document’s DOM (and is safer and more widely used than <code class="language-plaintext highlighter-rouge">getSVGDocument()</code>).</p>

Expand Down
4 changes: 2 additions & 2 deletions cheatsheets/javascript/browser/svg.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Change color using JS

### Inline SVG
### Inline SVG (`svg` element)

Change using `onclick` to set an attribute or class.

Expand Down Expand Up @@ -41,7 +41,7 @@ circle {
```


### Linked SVG
### Linked SVG (`object` element with reference)

When you embed an SVG using `<object>`, the SVG is treated as a separate document. The `contentDocument` property allows you to access and manipulate this embedded document's DOM (and is safer and more widely used than `getSVGDocument()`).

Expand Down
2 changes: 1 addition & 1 deletion feed.xml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" ><generator uri="https://jekyllrb.com/" version="4.3.3">Jekyll</generator><link href="https://michaelcurrin.github.io/dev-cheatsheets/feed.xml" rel="self" type="application/atom+xml" /><link href="https://michaelcurrin.github.io/dev-cheatsheets/" rel="alternate" type="text/html" /><updated>2024-08-28T13:52:10+00:00</updated><id>https://michaelcurrin.github.io/dev-cheatsheets/feed.xml</id><title type="html">Dev Cheatsheets</title><subtitle>A collection of code snippets and CLI guides for quick and easy reference while coding</subtitle><author><name>Michael Currin</name></author></feed>
<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" ><generator uri="https://jekyllrb.com/" version="4.3.3">Jekyll</generator><link href="https://michaelcurrin.github.io/dev-cheatsheets/feed.xml" rel="self" type="application/atom+xml" /><link href="https://michaelcurrin.github.io/dev-cheatsheets/" rel="alternate" type="text/html" /><updated>2024-08-28T14:02:44+00:00</updated><id>https://michaelcurrin.github.io/dev-cheatsheets/feed.xml</id><title type="html">Dev Cheatsheets</title><subtitle>A collection of code snippets and CLI guides for quick and easy reference while coding</subtitle><author><name>Michael Currin</name></author></feed>

0 comments on commit e8b550f

Please sign in to comment.