Skip to content

Commit

Permalink
Remove all embed toggle buttons from HTML via script.
Browse files Browse the repository at this point in the history
  • Loading branch information
curran committed May 17, 2021
1 parent b93fd62 commit 802d22c
Show file tree
Hide file tree
Showing 17 changed files with 29 additions and 16 deletions.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ <h2 id="main-title">
</form>

<div id="embed" class="toggle controls">
<a id="embed-toggle" class="toggler" title="embed this map">&lt;embed&gt;</a>

<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>
Expand Down
13 changes: 13 additions & 0 deletions remove-embeds.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# This script was used to remove the "embed" button across pages.
# -- Curran May 2021

# Inspired by https://superuser.com/questions/428493/how-can-i-do-a-recursive-find-and-replace-from-the-command-line

# Original string:


# 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'
2 changes: 1 addition & 1 deletion terrain-background/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,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="embed-toggle" class="toggler" title="embed this map">&lt;embed&gt;</a>

<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;">
Expand Down
2 changes: 1 addition & 1 deletion terrain-labels/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,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="embed-toggle" class="toggler" title="embed this map">&lt;embed&gt;</a>

<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;">
Expand Down
2 changes: 1 addition & 1 deletion terrain-lines/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,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="embed-toggle" class="toggler" title="embed this map">&lt;embed&gt;</a>

<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;">
Expand Down
2 changes: 1 addition & 1 deletion terrain/beta/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ <h1 id="tiles" class="brand"><a id="home-link" href="http://maps.stamen.com/">ma
</a>
</div>
<div id="embed" class="toggle controls">
<a id="embed-toggle" class="toggler" title="embed this map">&lt;embed&gt;</a>

<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;">
Expand Down
2 changes: 1 addition & 1 deletion terrain/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,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="embed-toggle" class="toggler" title="embed this map">&lt;embed&gt;</a>

<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;">
Expand Down
2 changes: 1 addition & 1 deletion toner-2010/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,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="embed-toggle" class="toggler" title="embed this map">&lt;embed&gt;</a>

<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;">
Expand Down
2 changes: 1 addition & 1 deletion toner-2011/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,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="embed-toggle" class="toggler" title="embed this map">&lt;embed&gt;</a>

<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;">
Expand Down
2 changes: 1 addition & 1 deletion toner-background/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,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="embed-toggle" class="toggler" title="embed this map">&lt;embed&gt;</a>

<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;">
Expand Down
2 changes: 1 addition & 1 deletion toner-hybrid/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,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="embed-toggle" class="toggler" title="embed this map">&lt;embed&gt;</a>

<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;">
Expand Down
2 changes: 1 addition & 1 deletion toner-labels/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,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="embed-toggle" class="toggler" title="embed this map">&lt;embed&gt;</a>

<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;">
Expand Down
2 changes: 1 addition & 1 deletion toner-lines/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,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="embed-toggle" class="toggler" title="embed this map">&lt;embed&gt;</a>

<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;">
Expand Down
2 changes: 1 addition & 1 deletion toner-lite/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,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="embed-toggle" class="toggler" title="embed this map">&lt;embed&gt;</a>

<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;">
Expand Down
2 changes: 1 addition & 1 deletion toner/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,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="embed-toggle" class="toggler" title="embed this map">&lt;embed&gt;</a>

<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;">
Expand Down
2 changes: 1 addition & 1 deletion trees-cabs-crime/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +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="embed-toggle" class="toggler" title="embed this map">&lt;embed&gt;</a>

<!-- <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;">
Expand Down
2 changes: 1 addition & 1 deletion watercolor/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ <h1 id="tiles" class="brand"><a id="home-link" href="../">maps.stamen.com</a> /
</div>
<div id="embed" class="toggle controls">

<a id="embed-toggle" class="toggler" title="embed this map">&lt;embed&gt;</a>

<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>
Expand Down

0 comments on commit 802d22c

Please sign in to comment.