Skip to content

Commit

Permalink
Remove embed-content HTML blocks manually (Vim macros)
Browse files Browse the repository at this point in the history
  • Loading branch information
curran committed May 17, 2021
1 parent 802d22c commit 7fb4d2b
Show file tree
Hide file tree
Showing 16 changed files with 1 addition and 79 deletions.
5 changes: 0 additions & 5 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,7 @@ <h2 id="main-title">
</form>

<div id="embed" class="toggle controls">

<a id="make-image" title="make an image of this map">&lt;image&gt;</a>
<div id="embed-content" class="toggle-content" style="display: none;">
<p>Copy the HTML below to embed this map:</p>
<textarea id="embed-code" rows="3">&lt;iframe width="600" height="420" src="{url}"&gt;&lt;/iframe&gt;</textarea>
</div>
</div>

<div id="controls" class="controls">
Expand Down
3 changes: 1 addition & 2 deletions remove-embeds.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,4 @@
# Remove embed code toggler.
find . -type f -name '*.html' -print0 | xargs -0 sed -i'' -e 's/<a id="embed-toggle" class="toggler" title="embed this map">&lt;embed&gt;<\/a>//g'

# Remove embed code content
#find . -type f -name '*.html' -print0 | xargs -0 sed -i'' -e 's/<div id="embed-content"//g'
# embed-content removed manually
5 changes: 0 additions & 5 deletions terrain-background/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,8 @@ <h1 id="tiles" class="brand"><a id="home-link" href="../">maps.stamen.com</a> /
</a>
</div>
<div id="embed" class="toggle controls">

<a id="make-image" title="make an image of this map">&lt;image&gt;</a>
<a id="donate-link" title="hire us!" href="https://stamen.com/contact/" target="_blank">hire us!</a>
<div id="embed-content" class="toggle-content" style="display: none;">
<p>Copy the HTML below to embed this map:</p>
<textarea id="embed-code" rows="3">&lt;iframe width="600" height="420" src="{url}"&gt;&lt;/iframe&gt;</textarea>
</div>
</div>
<div id="feedback" class="toggle" style="display: none;">
<div>
Expand Down
5 changes: 0 additions & 5 deletions terrain-labels/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,8 @@ <h1 id="tiles" class="brand"><a id="home-link" href="../">maps.stamen.com</a> /
</a>
</div>
<div id="embed" class="toggle controls">

<a id="make-image" title="make an image of this map">&lt;image&gt;</a>
<a id="donate-link" title="hire us!" href="https://stamen.com/contact/" target="_blank">hire us!</a>
<div id="embed-content" class="toggle-content" style="display: none;">
<p>Copy the HTML below to embed this map:</p>
<textarea id="embed-code" rows="3">&lt;iframe width="600" height="420" src="{url}"&gt;&lt;/iframe&gt;</textarea>
</div>
</div>
<div id="feedback" class="toggle" style="display: none;">
<div>
Expand Down
5 changes: 0 additions & 5 deletions terrain-lines/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,8 @@ <h1 id="tiles" class="brand"><a id="home-link" href="../">maps.stamen.com</a> /
</a>
</div>
<div id="embed" class="toggle controls">

<a id="make-image" title="make an image of this map">&lt;image&gt;</a>
<a id="donate-link" title="hire us!" href="https://stamen.com/contact/" target="_blank">hire us!</a>
<div id="embed-content" class="toggle-content" style="display: none;">
<p>Copy the HTML below to embed this map:</p>
<textarea id="embed-code" rows="3">&lt;iframe width="600" height="420" src="{url}"&gt;&lt;/iframe&gt;</textarea>
</div>
</div>
<div id="feedback" class="toggle" style="display: none;">
<div>
Expand Down
5 changes: 0 additions & 5 deletions terrain/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,8 @@ <h1 id="tiles" class="brand"><a id="home-link" href="../">maps.stamen.com</a> /
</a>
</div>
<div id="embed" class="toggle controls">

<a id="make-image" title="make an image of this map">&lt;image&gt;</a>
<a id="donate-link" title="hire us!" href="https://stamen.com/contact/" target="_blank">hire us!</a>
<div id="embed-content" class="toggle-content" style="display: none;">
<p>Copy the HTML below to embed this map:</p>
<textarea id="embed-code" rows="3">&lt;iframe width="600" height="420" src="{url}"&gt;&lt;/iframe&gt;</textarea>
</div>
</div>
<div id="feedback" class="toggle" style="display: none;">
<div>
Expand Down
5 changes: 0 additions & 5 deletions toner-2010/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,8 @@ <h1 id="tiles" class="brand"><a id="home-link" href="../">maps.stamen.com</a> /
</a>
</div>
<div id="embed" class="toggle controls">

<a id="make-image" title="make an image of this map">&lt;image&gt;</a>
<a id="donate-link" title="hire us!" href="https://stamen.com/contact/" target="_blank">hire us!</a>
<div id="embed-content" class="toggle-content" style="display: none;">
<p>Copy the HTML below to embed this map:</p>
<textarea id="embed-code" rows="3">&lt;iframe width="600" height="420" src="{url}"&gt;&lt;/iframe&gt;</textarea>
</div>
</div>
<div id="feedback" class="toggle" style="display: none;">
<div>
Expand Down
5 changes: 0 additions & 5 deletions toner-2011/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,8 @@ <h1 id="tiles" class="brand"><a id="home-link" href="../">maps.stamen.com</a> /
</a>
</div>
<div id="embed" class="toggle controls">

<a id="make-image" title="make an image of this map">&lt;image&gt;</a>
<a id="donate-link" title="hire us!" href="https://stamen.com/contact/" target="_blank">hire us!</a>
<div id="embed-content" class="toggle-content" style="display: none;">
<p>Copy the HTML below to embed this map:</p>
<textarea id="embed-code" rows="3">&lt;iframe width="600" height="420" src="{url}"&gt;&lt;/iframe&gt;</textarea>
</div>
</div>
<div id="feedback" class="toggle" style="display: none;">
<div>
Expand Down
5 changes: 0 additions & 5 deletions toner-background/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,8 @@ <h1 id="tiles" class="brand"><a id="home-link" href="../">maps.stamen.com</a> /
</a>
</div>
<div id="embed" class="toggle controls">

<a id="make-image" title="make an image of this map">&lt;image&gt;</a>
<a id="donate-link" title="hire us!" href="https://stamen.com/contact/" target="_blank">hire us!</a>
<div id="embed-content" class="toggle-content" style="display: none;">
<p>Copy the HTML below to embed this map:</p>
<textarea id="embed-code" rows="3">&lt;iframe width="600" height="420" src="{url}"&gt;&lt;/iframe&gt;</textarea>
</div>
</div>
<div id="feedback" class="toggle" style="display: none;">
<div>
Expand Down
5 changes: 0 additions & 5 deletions toner-hybrid/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,8 @@ <h1 id="tiles" class="brand"><a id="home-link" href="../">maps.stamen.com</a> /
</a>
</div>
<div id="embed" class="toggle controls">

<a id="make-image" title="make an image of this map">&lt;image&gt;</a>
<a id="donate-link" title="hire us!" href="https://stamen.com/contact/" target="_blank">hire us!</a>
<div id="embed-content" class="toggle-content" style="display: none;">
<p>Copy the HTML below to embed this map:</p>
<textarea id="embed-code" rows="3">&lt;iframe width="600" height="420" src="{url}"&gt;&lt;/iframe&gt;</textarea>
</div>
</div>
<div id="feedback" class="toggle" style="display: none;">
<div>
Expand Down
5 changes: 0 additions & 5 deletions toner-labels/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,8 @@ <h1 id="tiles" class="brand"><a id="home-link" href="../">maps.stamen.com</a> /
</a>
</div>
<div id="embed" class="toggle controls">

<a id="make-image" title="make an image of this map">&lt;image&gt;</a>
<a id="donate-link" title="hire us!" href="https://stamen.com/contact/" target="_blank">hire us!</a>
<div id="embed-content" class="toggle-content" style="display: none;">
<p>Copy the HTML below to embed this map:</p>
<textarea id="embed-code" rows="3">&lt;iframe width="600" height="420" src="{url}"&gt;&lt;/iframe&gt;</textarea>
</div>
</div>
<div id="feedback" class="toggle" style="display: none;">
<div>
Expand Down
5 changes: 0 additions & 5 deletions toner-lines/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,8 @@ <h1 id="tiles" class="brand"><a id="home-link" href="../">maps.stamen.com</a> /
</a>
</div>
<div id="embed" class="toggle controls">

<a id="make-image" title="make an image of this map">&lt;image&gt;</a>
<a id="donate-link" title="hire us!" href="https://stamen.com/contact/" target="_blank">hire us!</a>
<div id="embed-content" class="toggle-content" style="display: none;">
<p>Copy the HTML below to embed this map:</p>
<textarea id="embed-code" rows="3">&lt;iframe width="600" height="420" src="{url}"&gt;&lt;/iframe&gt;</textarea>
</div>
</div>
<div id="feedback" class="toggle" style="display: none;">
<div>
Expand Down
5 changes: 0 additions & 5 deletions toner-lite/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,8 @@ <h1 id="tiles" class="brand"><a id="home-link" href="../">maps.stamen.com</a> /
</a>
</div>
<div id="embed" class="toggle controls">

<a id="make-image" title="make an image of this map">&lt;image&gt;</a>
<a id="donate-link" title="hire us!" href="https://stamen.com/contact/" target="_blank">hire us!</a>
<div id="embed-content" class="toggle-content" style="display: none;">
<p>Copy the HTML below to embed this map:</p>
<textarea id="embed-code" rows="3">&lt;iframe width="600" height="420" src="{url}"&gt;&lt;/iframe&gt;</textarea>
</div>
</div>
<div id="feedback" class="toggle" style="display: none;">
<div>
Expand Down
5 changes: 0 additions & 5 deletions toner/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,8 @@ <h1 id="tiles" class="brand"><a id="home-link" href="../">maps.stamen.com</a> /
</a>
</div>
<div id="embed" class="toggle controls">

<a id="make-image" title="make an image of this map">&lt;image&gt;</a>
<a id="donate-link" title="hire us!" href="https://stamen.com/contact/" target="_blank">hire us!</a>
<div id="embed-content" class="toggle-content" style="display: none;">
<p>Copy the HTML below to embed this map:</p>
<textarea id="embed-code" rows="3">&lt;iframe width="600" height="420" src="{url}"&gt;&lt;/iframe&gt;</textarea>
</div>
</div>
<div id="feedback" class="toggle" style="display: none;">
<div>
Expand Down
6 changes: 0 additions & 6 deletions trees-cabs-crime/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,7 @@ <h1 id="tiles" class="brand"><a id="home-link" href="../">maps.stamen.com</a> /
</a>
</div>
<div id="embed" class="toggle controls">

<!-- <a id="make-image" title="make an image of this map">&lt;image&gt;</a> -->
<a id="donate-link" title="hire us!" href="https://stamen.com/contact/" target="_blank">hire us!</a>
<div id="embed-content" class="toggle-content" style="display: none;">
<p>Copy the HTML below to embed this map:</p>
<textarea id="embed-code" rows="3">&lt;iframe width="600" height="420" src="{url}"&gt;&lt;/iframe&gt;</textarea>
</div>
</div>
<div id="feedback" class="toggle" style="display: none;">
<div>
Expand Down
6 changes: 0 additions & 6 deletions watercolor/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -53,15 +53,9 @@ <h1 id="tiles" class="brand"><a id="home-link" href="../">maps.stamen.com</a> /
</a>
</div>
<div id="embed" class="toggle controls">


<a id="make-image" title="make an image of this map">&lt;image&gt;</a>
<a id="donate-link" title="hire us!" href="https://stamen.com/contact/" target="_blank">hire us!</a>
<a id="buy-toggle" class="" title="Buy a print from Mapisart" href="http://mapisart.com" target="_blank">&lt;buy&gt;</a>
<div id="embed-content" class="toggle-content" style="display: none;">
<p>Copy the HTML below to embed this map:</p>
<textarea id="embed-code" rows="3">&lt;iframe width="600" height="420" src="{url}"&gt;&lt;/iframe&gt;</textarea>
</div>
</div>
<div id="feedback" class="toggle" style="display: none;">
<div>
Expand Down

0 comments on commit 7fb4d2b

Please sign in to comment.