diff --git a/src/components/Molecules/Promo/Promo.js b/src/components/Molecules/Promo/Promo.js index 1238d03f..2b5f09b8 100644 --- a/src/components/Molecules/Promo/Promo.js +++ b/src/components/Molecules/Promo/Promo.js @@ -42,8 +42,7 @@ const Promo = ({ if (videoEl.current.duration) { // Calculate the percentage of the video played: const percentage = Math.round((videoEl.current.currentTime / videoEl.current.duration) * 100); - // setVideoProgress(percentage); - + // Rounding const nearest = 1; const roundedPercentage = (percentage + nearest / 2) - ((percentage + nearest / 2) % nearest); setVideoProgress(roundedPercentage); diff --git a/src/components/Molecules/Promo/Promo.md b/src/components/Molecules/Promo/Promo.md index 4311a4c7..b6cc6c3c 100644 --- a/src/components/Molecules/Promo/Promo.md +++ b/src/components/Molecules/Promo/Promo.md @@ -156,10 +156,9 @@ Promo w/Video const defaultData = require('../../../styleguide/data/data').defaultData;import Text from '../../Atoms/Text/Text'; import Link from '../../Atoms/Link/Link'; import poster from '../../../styleguide/assets/VideoBannerPosterImage.png'; -const shortVideoSrc = - 'https://videos.ctfassets.net/zsfivwzfgl3t/6E6MTXiKrqCNviLx6uW9L9/54554151bc846a9946c5cae17533ec64/6-second-video.mp4'; -const longVideoSrc = - 'https://videos.ctfassets.net/zsfivwzfgl3t/5ZHe4jVngF1uAVeSXEQdNI/8ac0c9ab100e610adb8f3bff6a113e14/15-second-video.mp4'; +const src = + 'https://www.comicrelief.com/sites/default/files/downloads/Creativists_Logo_Web_small_V2_0.mp4'; +