Skip to content

Commit 9ae79a0

Browse files
committed
reverting that change for the Super Bowl
1 parent 3bdb7d0 commit 9ae79a0

File tree

1 file changed

+18
-19
lines changed

1 file changed

+18
-19
lines changed

lib/story.js

Lines changed: 18 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -14,40 +14,39 @@ export async function render(locker) {
1414
const wps = document.querySelectorAll(".story-body [id^=zone-el]");
1515
const combos = document.querySelectorAll(".story-body > .zone.combo");
1616

17-
// Connatix goes to everyone
18-
zones.get("zone-el-101");
17+
/*
18+
* Subscribers
19+
*/
1920

20-
// Featured carousel for subs
2121
if(subscriber) {
22+
// Make sure to serve the top ad always
23+
zones.get("zone-el-101");
24+
2225
// Carousel for miamiherald/News
2326
if(market == "miamiherald" && taxonomy.includes("News")) {
2427
let carousel = new zones.Zone("zone-featured-carousel");
2528
carousel.dataset.taxonomy = taxonomy;
2629
carousel.dataset.market = market;
2730
carousel.zephr("zone-featured-carousel", market);
2831
}
29-
}
3032

31-
// Generate a zone for everything else in the story body
32-
wps.forEach(ele => new zones.Zone(ele.id));
33+
// Generate a zone for everything remaining
34+
wps.forEach(ele => new zones.Zone(ele.id));
3335

34-
// Temp fix for combo zones until WPS can be updated
35-
zones.forEach(zone => {
36-
zone.classList.remove("cap-width");
37-
});
36+
// Temp fix for combo zones until WPS can be updated
37+
zones.forEach(zone => {
38+
zone.classList.remove("cap-width");
39+
});
3840

39-
// Leave these zones alone
40-
zones.ignore("zone-el-16");
41+
// Ignore these zones
42+
zones.ignore("zone-el-16");
4143

42-
// Remove the combo zone containers
43-
combos.forEach(ele => ele.remove());
44+
// Remove the combo zone containers
45+
combos.forEach(ele => ele.remove());
4446

45-
// Redistribute zones generically
46-
if(subscriber) {
47+
// Redistribute zones generically
4748
zones.distribute(5);
48-
} else {
49-
zones.distribute(3);
5049
}
5150

52-
zones.render();
51+
zones.render()
5352
}

0 commit comments

Comments
 (0)