Welcome to Samsung store for Samsung Student

Galaxy Book4 Ultra | Book4 Pro | Book4

Buying Tool

Device

OS

Memory

Storage

Connectivity

Colour

Screen Size

Processor

Graphic

Add to Wishlist

Add to Wishlist

Go above and beyond with the
Galaxy Book4 Series

${video.title}

`; }) .join(""); }; const changeModalVideo = (url, index) => { const video = document.getElementById("gb4-popup-video"); const hideOnPlay = document.querySelectorAll(".cheil-hide-on-play"); hideOnPlay.forEach((el) => { el.style.display = "none"; }); clearSelected(); document .querySelectorAll(".sub-video-bg>img") [index].classList.add("selected"); video.src = url; fixModalVideoSize(); }; const fixModalVideoSize = (e) => { const video = document.getElementById("gb4-popup-video"); const widthProvider = gb4_popup.querySelector(".sub-links"); if (window.innerWidth < 1440) { video.width = widthProvider.offsetWidth; video.height = widthProvider.offsetWidth * 0.5625; } else { video.width = 700; video.height = 394; } let popupContent = document.querySelector(".bc-popup__content-wrap"); let popup = document.querySelector(".bc-popup__layer"); if (popupContent.offsetHeight > popup.offsetHeight) { video.height = video.height - (popupContent.offsetHeight - popup.offsetHeight); } // const popup = document.querySelector(".bc-popup__content-wrap"); // if(popup.clientHeight + 20 > window.innerHeight){ // video.height = video.height - (popup.clientHeight - window.innerHeight) * 1.25; // } }; const fixCloseButton = () => { gb4_popup .querySelector(".bc-popup__close") .addEventListener("click", (e) => { const video = document.getElementById("gb4-popup-video"); video.src = ""; video.src = is360 ? "https://www.youtube.com/embed/eTsSHeUeUBE" : "https://www.youtube.com/embed/CuZFdYXYiaA"; window.sg.components.hubblePdPopup.closePopup(); }); }; const addDestroyThumbnailListener = () => { document .querySelector("#cheil-bc-gb4-videos-popup .main-frame") .addEventListener( "click", function (e) { let video = document.getElementById("gb4-popup-video"); video.src = is360 ? "https://youtube.com/embed/eTsSHeUeUBE?&autoplay=1" : "https://youtube.com/embed/CuZFdYXYiaA?&autoplay=1"; console.log(this); this.querySelector("img").style.display = "none"; this.querySelector("svg").style.display = "none"; fixModalVideoSize(); }, { once: true, } ); }; const bannerHTML = (copy, image) => `

Discover More

`; const openPopup = () => { sg.components.hubblePdPopup.openPopup("#cheil-bc-gb4-videos-popup"); document.querySelector( "#cheil-bc-gb4-videos-popup .main-frame img" ).style.display = "block"; document.querySelector( "#cheil-bc-gb4-videos-popup .main-frame svg" ).style.display = "block"; addDestroyThumbnailListener(); clearSelected(); document.querySelectorAll(".sub-video-bg>img")[0].classList.add("selected"); fixModalVideoSize(); }; function injectBanner() { const banner = bannerHTML( "Whether it’s unleashing your creativity, portable study or gaming, you can see which Galaxy Book4 works for you.", is360 ? "//images.samsung.com/is/image/samsung/assets/uk/computing/gb4-video-thumbnails/banner-gb4360.png" : "//images.samsung.com/is/image/samsung/assets/uk/computing/gb4-video-thumbnails/banner-gb4.png" ); document .querySelector("#storage-OPT-018") .insertAdjacentHTML("afterend", banner); } function clearSelected() { document.querySelectorAll(".sub-video-bg>img").forEach((el) => { el.classList.remove("selected"); }); } populateModalVideos(); fixCloseButton(); injectBanner(); document .querySelector(".s-cheil-guide-btn") .addEventListener("click", openPopup); window.addEventListener("resize", fixModalVideoSize);