View More
Newsletter Signup

Signup for our newsletter

Subscribe to our daily briefing newsletter to receive the latest headlines from The Sun, delivered to your inbox.

Sign Up
Letters To The Editor
Opinion
|
Editorials
sportHeight) { sportHeight = $(this).outerHeight(); } }); $(".sportSlideStoryInfo").outerHeight(sportHeight); var slh = $(".sportSlideImageCtr").height() + sportHeight + 75; sportSlider.height(slh); } } function blurImg() { var spBlur = $(".sportSlideBlurImg"); var spSrc = $(".sportSlideImage").attr("src"); spBlur.css({ "background-image": "url(" + spSrc + ")" }); } function setComm() { var comHeight = $(".communityNews").height(); $(".communityNews").height(comHeight); $(".communityNews").removeAttr("style"); $(".communityNews").find(".photoText").each(function() { var detach = $(this).find(".photoDate").detach(); detach.insertBefore($(this).find(".photoTitle")); }); $(".communityNews").find(".photoTextw").each(function() { var detach = $(this).find(".photoDate").detach(); detach.insertBefore($(this).find(".photoTitle")); }); var link = "Read More"; var pi = $(".communityNews").find(".photoItem"); pi.each(function() { var linkTxt = $(this).find(".photoTitle a").attr("href"); $(link).insertAfter($(this).find(".photoBody")); $(this).find(".moreLink").attr("href", linkTxt); }); } function sameHeightChecks() { if(window.matchMedia("(min-width: 1280px)").matches) { var maxHeight = 0; var ssb = $(".opinionBlock .ssb"); ssb.each(function() { if ($(this).height() > maxHeight) { maxHeight = $(this).height(); } }); ssb.height(maxHeight); } else { var ssb = $(".opinionBlock .ssb"); ssb.removeAttr("style"); } } function mainSlider() { if(window.matchMedia("(min-width: 768px)").matches) { $(".mainFeaturedStoryInfo").removeAttr("style"); $(".mainFeaturedStory").removeAttr("style"); } else { var maxHeight = 0; $(".mainFeaturedStoryInfo").each(function() { if ($(this).height() > maxHeight) { maxHeight = $(this).height(); } }); $(".mainFeaturedStoryInfo").height(maxHeight); var mfs = $(".mainFeaturedStory"); var mfh = $(".mainFeaturedImgCtr").height() + $(".mainFeaturedStoryInfo").outerHeight(); mfs.height(mfh + 40); } }
Loading...
View Page in Progress

Sun Community News local and community news