Skip to content

Commit

Permalink
Change donate to hire us everywhere
Browse files Browse the repository at this point in the history
  • Loading branch information
curran committed May 14, 2021
1 parent 32861ad commit 715830c
Show file tree
Hide file tree
Showing 16 changed files with 27 additions and 15 deletions.
12 changes: 12 additions & 0 deletions donate-to-hire.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# This script was used to replace all instances of the "donate" link with a "hire us!" link.
# -- Curran May 2021

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

# Change the tooltip and href
find . -type f -name '*.html' -print0 | xargs -0 sed -i'' -e 's/title="donate" href="https:\/\/stamen.com\/opensource\/#donate"/title="hire us!" href="https:\/\/stamen.com\/contact\/"/'

# Change the visible content
find . -type f -name '*.html' -print0 | xargs -0 sed -i'' -e 's/>donate</>hire us!</g'


2 changes: 1 addition & 1 deletion terrain-background/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ <h1 id="tiles" class="brand"><a id="home-link" href="../">maps.stamen.com</a> /
<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="donate" href="https://stamen.com/opensource/#donate" target="_blank">donate</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>
Expand Down
2 changes: 1 addition & 1 deletion terrain-labels/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ <h1 id="tiles" class="brand"><a id="home-link" href="../">maps.stamen.com</a> /
<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="donate" href="https://stamen.com/opensource/#donate" target="_blank">donate</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>
Expand Down
2 changes: 1 addition & 1 deletion terrain-lines/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ <h1 id="tiles" class="brand"><a id="home-link" href="../">maps.stamen.com</a> /
<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="donate" href="https://stamen.com/opensource/#donate" target="_blank">donate</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>
Expand Down
2 changes: 1 addition & 1 deletion terrain/beta/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="http://maps.stamen.com/">ma
<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="donate" href="https://stamen.com/opensource/#donate" target="_blank">donate</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>
Expand Down
2 changes: 1 addition & 1 deletion terrain/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ <h1 id="tiles" class="brand"><a id="home-link" href="../">maps.stamen.com</a> /
<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="donate" href="https://stamen.com/opensource/#donate" target="_blank">donate</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>
Expand Down
2 changes: 1 addition & 1 deletion toner-2010/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ <h1 id="tiles" class="brand"><a id="home-link" href="../">maps.stamen.com</a> /
<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="donate" href="https://stamen.com/opensource/#donate" target="_blank">donate</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>
Expand Down
2 changes: 1 addition & 1 deletion toner-2011/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ <h1 id="tiles" class="brand"><a id="home-link" href="../">maps.stamen.com</a> /
<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="donate" href="https://stamen.com/opensource/#donate" target="_blank">donate</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>
Expand Down
2 changes: 1 addition & 1 deletion toner-background/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 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="donate" href="https://stamen.com/opensource/#donate" target="_blank">donate</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>
Expand Down
2 changes: 1 addition & 1 deletion toner-hybrid/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ <h1 id="tiles" class="brand"><a id="home-link" href="../">maps.stamen.com</a> /
<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="donate" href="https://stamen.com/opensource/#donate" target="_blank">donate</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>
Expand Down
2 changes: 1 addition & 1 deletion toner-labels/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ <h1 id="tiles" class="brand"><a id="home-link" href="../">maps.stamen.com</a> /
<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="donate" href="https://stamen.com/opensource/#donate" target="_blank">donate</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>
Expand Down
2 changes: 1 addition & 1 deletion toner-lines/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ <h1 id="tiles" class="brand"><a id="home-link" href="../">maps.stamen.com</a> /
<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="donate" href="https://stamen.com/opensource/#donate" target="_blank">donate</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>
Expand Down
2 changes: 1 addition & 1 deletion toner-lite/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ <h1 id="tiles" class="brand"><a id="home-link" href="../">maps.stamen.com</a> /
<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="donate" href="https://stamen.com/opensource/#donate" target="_blank">donate</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>
Expand Down
2 changes: 1 addition & 1 deletion toner/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ <h1 id="tiles" class="brand"><a id="home-link" href="../">maps.stamen.com</a> /
<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="donate" href="https://stamen.com/opensource/#donate" target="_blank">donate</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>
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 @@ -52,7 +52,7 @@ <h1 id="tiles" class="brand"><a id="home-link" href="../">maps.stamen.com</a> /
<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="donate" href="https://stamen.com/opensource/#donate" target="_blank">donate</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>
Expand Down
2 changes: 1 addition & 1 deletion watercolor/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ <h1 id="tiles" class="brand"><a id="home-link" href="../">maps.stamen.com</a> /

<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="donate" href="https://stamen.com/opensource/#donate" target="_blank">donate</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>
Expand Down

0 comments on commit 715830c

Please sign in to comment.