// 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); };});

The trophies for Call of Duty: Infinite Warfare have been revealed on ExoPhase. There are trophies for Campaign, Multiplayer, and Zombies.

SPOILERS…read at your own risk: 

  • Platinum – Awarded when all other trophies have been unlocked.
  • Rising Threat – Complete Rising Threat.
  • Black Sky – Complete Black Sky.
  • Operation Port Armor – Complete Operation Port Armor.
  • Operation Burn Water – Complete Operation Burn Water.
  • Operation Dark Quarry – Complete Operation Dark Quarry.
  • Operation Black Flag – Complete Operation Black Flag.
  • Operation Blood Storm – Complete Operation Blood Storm.
  • The Longest Day – Complete all Single Player missions on Veteran.
  • Operation Taken Dagger – Complete Operation Taken Dagger.
  • Operation Phoenix – Complete Operation Phoenix.
  • Operation D-Con – Complete Operation D-Con.
  • Operation Deep Execute – Complete Operation Deep Execute.
  • Targets of Opportunity – Complete all ship boarding side missions.
  • Operation Safe Harbor – Complete Operation Safe Harbor.
  • Operation Pure Threat – Complete Operation Pure Threat.
  • Operation Grave Robber – Complete Operation Grave Robber.
  • Operation Sudden Death – Complete Operation Sudden Death.
  • Operation Trace Kill – Complete Operation Trace Kill.
  • Top Gun – Complete all Jackal-only side missions.
  • New Gun Collector – Scan your first weapon!
  • Serious Gun Collector – Scan 10 weapons.
  • Gun Nut – All weapons scanned.
  • Peace to the Fallen – Listened to all of the death letters of the fallen.
  • Make it Personal – Load out with a custom weapon.
  • Gear Up – Find your first equipment upgrade.
  • Fully Equipped – Earn all equipment upgrades.
  • Fangs Out – Earn your first Jackal item (weapon or upgrade).
  • Jackal Ace – Earn all Jackal weapons and upgrades.
  • Ante Up – Get your first kill on the most-wanted board.
  • Aces High – Clear half of the most-wanted board.
  • Royal Flush – All SDF Aces and Captains killed.
  • Danger Close – Kill 15 enemies with a zero G grappling hook.
  • You Know Nothing – Kill Kotch before his speech ends.
  • Captain’s Log – Use the computer in the Captain’s office.
  • Reality TV – Watch a news cast.
  • Boots on the Ground – Go 2 minutes without double jumping or wall running in a mission where these abilities are available.
  • Peek-a-boo! – Kick open a door, peek open a door, and throw a grenade while peeking a door.
  • Gravity Kills – Kill an enemy while floating in your own anti-gravity grenade.
  • C12 – Kill a C12 by doing a right rodeo, a left rodeo and by blowing off multiple limbs.
  • Sticker Collector – In Spaceland, find all of the quest items and complete the sticker pack.
  • Sooooul Key – In Spaceland, recover the piece of the Soul Key.
  • The Bigger They Are – In Spaceland, defeat 5 Brutes in one game without dying.
  • Hoff The Charts! – In Spaceland, unlock David Hasselhoff.
  • Rock On! – In Spaceland, craft a Weapon of Rock.
  • Get Packed – In Spaceland, Pack-A-Punch a weapon.
  • Batteries Not Included – In Spaceland, create an Exquisite Core.
  • I Love the 80’s – In Spaceland, find the MW1 and MW2 songs.
  • Insert Coin – In Spaceland, play every arcade game at least once.
  • Brain Dead – In Spaceland, play 30 games and get to scene 10 or higher.
  • Dominion – Win 5 online matches in Multiplayer.

SOURCE: Exo Phase

comments below