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

Hello everyone!

I wanted to provide update on Charlie INTEL and the future of Charlie INTEL:   

I’m Keshav, and I have been with Charlie INTEL since the start…all the way back to June 2011, posting all the articles and tweets you’ve seen! Since June 2011, Victor, Peter, and myself have been operating charlieINTEL, FortniteINTEL, and the other INTEL accounts (@bravoINTEL, @theDestinyblog, @Titanfallblog, @FortniteLatest, and @CIGamingNews). I currently do majority of the work on charlieINTEL alongside being a college student. Doing all of this work, alongside school, over the years has not been easy, but it was always fun. CI has become a part of me and what I do everyday.

We have been thinking about what’s next for the CI and how we can ensure it will continue to operate in the long term. And with that, we’re excited to announce today that Charlie INTEL is being acquired by Dexerto, one the largest esports-focused news sites!

One of the things I want to share is that I am not going anywhere! I will still be writing articles on the site, covering all of the big news on Call of Duty, and tweeting (yes, tweeting all of those memes you see!) from the account — just as you are used to seeing from the site and Twitter. As part of being within the Dexerto Network, charlieINTEL will be able to grow and deliver more coverage and content as new resources are available.

Victor and Peter are moving on from charlieINTEL. I want to thank Victor and Peter, and I am so proud of what we were able to create together over the last seven years. We covered eight Call of Duty games from their announcement through launch through DLC season. It has been an incredible journey thus far.

One of the things we always prided ourselves on was being the best source for Call of Duty news, and I want to ensure that CI will continue to be the best Call of Duty news source. Our readers have been incredibly supportive and loyal over the years, and we cannot thank you enough for that! I am excited for the future of Charlie INTEL under the Dexerto network.

comments below