commit
c6b689e891
@ -0,0 +1,10 @@ |
||||
import $ from 'jquery' |
||||
import { showAd, fetchTextAdData } from './ad.js' |
||||
|
||||
const customAds = process.env.CUSTOM_ADS |
||||
|
||||
$(function () { |
||||
if (showAd()) { |
||||
fetchTextAdData(customAds) |
||||
} |
||||
}) |
@ -1,4 +1,4 @@ |
||||
<script defer data-cfasync="false" src="<%= static_path(@conn, "/js/ad.js") %>"></script> |
||||
<div class="ad mb-3 d-none"> |
||||
<script defer data-cfasync="false" src="<%= static_path(@conn, "/js/text_ad.js") %>"></script> |
||||
<div class="ad mb-3"> |
||||
Sponsored: <img class="ad-img-url" width=20 height=20 /> <b><span class="ad-name"></span></b> - <span class="ad-short-description"></span> <a class="ad-url"><b><span class="ad-cta-button"></span></a></b> |
||||
</div> |
||||
</div> |
Loading…
Reference in new issue