We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 78d224f + b9d0cce commit 4fea14eCopy full SHA for 4fea14e
readthedocs/core/static-src/core/js/doc-embed/sponsorship.js
@@ -199,6 +199,9 @@ Promo.prototype.display = function () {
199
$(window).on('DOMContentLoaded.rtdinview load.rtdinview scroll.rtdinview resize.rtdinview', handler);
200
$('.wy-side-scroll').on('scroll.rtdinview', handler);
201
202
+ // Add a handler to close the ad on mobile
203
+ $('.ethical-close').on('click', function () { $(ad_selector).hide(); return false; });
204
+
205
this.post_promo_display();
206
};
207
0 commit comments