// initialize jwplayer var playerInstance = jwplayer('player');// player dom elements var playerContainerEl = document.querySelector('.player-container');// returns video player position from top of document function getElementOffsetTop(el) { var boundingClientRect = el.getBoundingClientRect(); var bodyEl = document.body; var docEl = document.documentElement; var scrollTop = window.pageYOffset || docEl.scrollTop || bodyEl.scrollTop; var clientTop = docEl.clientTop || bodyEl.clientTop || 0; return Math.round(boundingClientRect.top + scrollTop - clientTop); }// returns the current y scroll position function getScrollTop() { var docEl = document.documentElement; return (window.pageYOffset || docEl.scrollTop) - (docEl.clientTop || 0); }// configure jwplayer instance playerInstance.setup({ autostart: true, playlist: 'https://cdn.jwplayer.com/v2/playlists/mYdavspX', primary: 'html5', setFullscreen: true, width: '100%' });// when jwplayer instance is ready playerInstance.on('ready', function() { var config = playerInstance.getConfig(); var utils = playerInstance.utils; // get height of player element var playerHeight = config.containerHeight; // flag determining whether close has been clicked var closed = true; // CHANGED // flag determing whether player is playing var playing = false; // ADDED // eventhandler for when close button is being pressed document.getElementsByClassName('icon-close')[0].addEventListener('click', () => { closed = true; onScrollViewHandler(); }); playerInstance.on('play', function() { closed = false; playing = true; // ADDED }).on('pause', function () { playing = false; // ADDED }).on('adPlay', function() { closed = false; // ADDED playing = true; // ADDED }).on('adPause', function() { playing = false; // ADDED });// get player element position from top of document var playerOffsetTop = getElementOffsetTop(playerContainerEl);// set player container to match height of actual video element playerContainerEl.style.height = playerHeight + 'px';// below we handle window scroll event without killing performance function onScrollViewHandler() { var minimized = getScrollTop() >= playerOffsetTop;if (closed && minimized) { minimized = false; jwplayer().pause(); playing = false; // ADDED } else if (!minimized && !playing) { closed = true; // ADDED } utils.toggleClass(playerContainerEl, 'player-minimize', minimized); // update the player's size so the controls are adjusted playerInstance.resize(); }// namespace for whether or not we are waiting for setTimeout() to finish var isScrollTimeout = false;// window onscroll event handler window.onscroll = function() { // skip if we're waiting on a scroll update timeout to finish if (isScrollTimeout) return; // flag that a new timeout will begin isScrollTimeout = true; // otherwise, call scroll event view handler onScrollViewHandler(); // set new timeout setTimeout(function() { // reset timeout flag to false (no longer waiting) isScrollTimeout = false; }, 80); };});

Call of Duty: WWII received an update yesterday as well alongside the new Days of Summer drop for Call of Duty: Black Ops 4.

One of the big downsides to both of the new updates was that the new weapons that came with the updates were locked behind Supply Drops only, restricting how many players could actually earn and unlock the weapons.

Today, Sledgehammer Games has stated that they will be rotating in contracts for each of the weapons in Call of Duty: WWII starting July 2.

Here’s what Sledgehammer Games has to say on this:

The new weapons are now out in the wild and available via Supply Drops. We are actively keeping an eye on all our social media channels to see how you feel about the release and we hear you loud and clear, friends.

In the past, Collections have been part of themed events consisting of a variety of gear and weapons. As of now, we do not have any plans to release new Collections for WWII. The current weapons update consists purely of weapons with no additional content and were never intended for Collections. Previously, newly released weapons have been offered up for contracts shortly after their release, generally about a month, and that is the plan with the new weapons.

On 7/2, we’re dropping contracts for the new weapons. Additionally, we will briefly open all previous Collections tied to Timed Events (e.g. Winter Siege, Resistance, etc.) and Weapons associated with past Collections will be available for purchase with Armory Credits. So, if you’ve got a ton of credits sitting around, are thinking of buying every single collection, or are missing that one gun, this post is for you.

Maybe Treyarch will make some changes in Black Ops 4 too now? Nothing confirmed yet, but we can hope.

SOURCE: SHG

comments below