Skip to content

Commit

Permalink
updates ad refresh
Browse files Browse the repository at this point in the history
  • Loading branch information
edelstone committed Feb 15, 2024
1 parent 4776c05 commit d64d09a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ <h2><label class="textarea-label" for="color-values">Enter hex colors (separated
<textarea id="color-values" name="color-values" autocomplete="off" autocorrect="off" autocapitalize="off"
spellcheck="false"></textarea>
</div>
<input id="loadmore" class="button" type="submit" value="Make tints and shades &nbsp;🎉" />
<input id="make" class="button" type="submit" value="Make tints and shades &nbsp;🎉" />
</form>
</div>

Expand Down
2 changes: 1 addition & 1 deletion scripts/tints-and-shades.js
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ $(document).keypress(function (event) {
});

// Show a new Carbon ad every time certain elements are clicked
$(document).on('click', '#loadmore', function () {
$(document).on('click', '#make', function () {
// If the ad hasn't loaded yet, don't refresh it while it's still loading, or it will return two (or more) ads
if (!$("#carbonads")[0]) return;
// If the script hasn't loaded, don't try calling it
Expand Down

0 comments on commit d64d09a

Please sign in to comment.