Skip to content
Snippets Groups Projects
Commit 2b397fb0 authored by Eric Poirier's avatar Eric Poirier
Browse files

Change the id for class


Signed-off-by: default avatarEric Poirier <eric.poirier@eclipse-foundation.org>
parent f8079de9
No related branches found
No related tags found
No related merge requests found
...@@ -40,10 +40,10 @@ $(function () { ...@@ -40,10 +40,10 @@ $(function () {
if ($(element).attr('data-ad-format').includes(data[i].format) && url && campaignName && image) { if ($(element).attr('data-ad-format').includes(data[i].format) && url && campaignName && image) {
$(element).append( $(element).append(
'<p class="featured-story-description text-center">Sponsored Ad</p>' + '<p class="featured-story-description text-center">Sponsored Ad</p>' +
'<a href="' + url + '" rel="nofollow"><img alt="' + campaignName + '" src="' + image +'" id="'+ campaignName +'"></a>' + '<a href="' + url + '" rel="nofollow"><img alt="' + campaignName + '" src="' + image +'" class="'+ campaignName +'"></a>' +
'<p class="featured-story-description text-center"><a href="https://eclipse-5413615.hs-sites.com/ad-prospectus-form" style="float:none">Advertise Here</a></p>' '<p class="featured-story-description text-center"><a href="https://eclipse-5413615.hs-sites.com/ad-prospectus-form" style="float:none">Advertise Here</a></p>'
); );
$("#" + campaignName).on('load', function(){ $("." + campaignName).on('load', function(){
$.fn.matchHeight._update(); $.fn.matchHeight._update();
}); });
} }
...@@ -57,6 +57,4 @@ $(function () { ...@@ -57,6 +57,4 @@ $(function () {
}, },
}); });
} }
}); });
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment