Close-up of Galaxy S21 Ultra 5G phone in Phantom Black seen from the rear at an angle, focused on its four cameras: Ultra Wide Camera, Wide-angle Camera, and two Telephoto Cameras.
Epic.In every way
Introducing Galaxy S21 Ultra 5G. Designed with a unique contour-cut camera to create a revolution in photography — letting you capture cinematic 8K video and snap epic stills, all in one go. And with Galaxy’s fastest chipset, strongest glass, 5G and an all-day battery, Ultra easily lives up to its name.
- Expert Review Highlight
Marques Brownlee, aka MKBHD, is holding Galaxy S21 5G in Phantom Violet. Here what the experts have to say. Krystal Lora is holding Galaxy S21 Ultra 5G in Phantom Black. New ways of expression. Marques goes into the phone’s Camera app and shows the many shooting modes available. He shoots a video in Director’s Mode, simultaneously recording footage of the hallway and himself walking. Thao Huynh’s selfies show the difference between the camera’s Bright Mode and Natural Mode. Marques outside shooting with Galaxy S21 5G. Show-off worthy design. Thao holding Galaxy S21 5G face down, then Krystal and Marques holding Galaxy S21 Ultra 5G face down. Close-up of Galaxy S21 Ultra 5G’s rear cameras. Power to fuel expression. Thao holding Galaxy S21 5G. Marques scrolls through Screen resolution settings, then taps to Display settings and Motion Smoothness. Galaxy S21 5G on a table with the calculator app in Pop-up view. Marques holding Galaxy S21 5G, then Galaxy S21 Ultra 5G. Disclaimer: Tech reviewers share their thoughts on the Galaxy S21. No payment was made to create this review. License was obtained for a fee after the content had been posted on YouTube.
- Everything about this design is as good as it gets
Marques Brownlee, aka MKBHD, is holding a Galaxy S21 Ultra 5G in Phantom Black, showing the rear side of the phone then the sides. With the phone face up on a table, he taps the side of the phone to rock it back and forth. All five colors of Galaxy S21 Ultra 5G are shown in a row: Phantom Black, Phantom Navy, Phantom Brown, Phantom Titanium and Phantom Silver. He holds the phone up, then places the phone on a table next to the Galaxy S20 Ultra to compare how the phones look. Marques holds Galaxy S21 Ultra 5G face up showing the vivid display. He scrolls through Display settings, tapping Screen resolution and Motion Smoothness. He scrolls through feeds to demonstrate the Super Smooth 120Hz display. Marques Brownlee holds the phone in one hand and competitor phones in the other to show the size difference. Galaxy S20 Ultra and Galaxy S21 Ultra 5G put side by side to show the size difference. Marques places his thumb on the Ultrasonic Fingerprint sensor to unlock the phone. He holds the phone in landscape, zooming in closer using the Camera app. He scrolls through the phone settings, tapping Notifications, Wallpaper and Home screen to show the many customizable settings available. He presses the volume button and slides to show the new volume controls. He drags from the top to show the Quick bar and Notifications menu, then scrolls in Dark mode. Marques swipes right from the home screen to reveal a Google discover page. 5000mAh. Snapdragon 888. Exynos 2100. Marques goes into the Battery settings to show 13 hours and 49 minutes left of power after using it. He plays a video then takes photos in the Camera app. In the Camera app, he chooses a selfie color tone. Then he zooms in slowly to 100x using 100X Space Zoom. Close-up of Galaxy S21 Ultra 5G cameras. Marques takes a video in Director’s Mode, simultaneously recording footage of the hallway and himself walking. In the Camera app, he zooms into 3x, then 10x, 30x and 100x.
- I really do love everything we get within the native camera app
Krystal Lora is holding the Galaxy S21 Ultra 5G box. She unboxes the phone in Phantom Black and shows the phone’s rear side and cameras. She takes out the SIM ejector tool and charging cable from the box. Then she unboxes Galaxy S21 5G in Phantom Violet. She holds the two Galaxy S21 phones side by side. Krystal opens the Camera App on Galaxy S21 5G to take a photo. Galaxy S21 5G and S21 Ultra 5G side by side to show the size difference. Both are in a case from the i-Blason Cosmo Collection. She shows the phones front and back in the case to show off the sheen and gold foil. The screen appears and she navigates the i-Blason websites. Text says Check out i-blason.com or type i-blason on Amazon. Then Galaxy S21 Ultra 5G appears in an i-blason case and text says S21 Ultra Giveaway! Link below. She unboxes the Galaxy Buds Pro earbuds in Phantom Black. Then she opens the case and puts the earbuds in her ears. She switches the ear-tip for a better fit. Krystal is holding the Galaxy S21 Ultra 5G in one hand and S21 5G in the other. She places her finger on Galaxy S21 Ultra 5G’s Ultrasonic Fingerprint sensor and quickly unlocks the phone. She opens the Camera app on Galaxy S21 5G and uses Selfie mode to record a video. Then she opens Director’s View and switches between three thumbnails onscreen demonstrating the different camera angles. Krystal is recording a video of herself sitting on a couch with the main Wide-angle camera. Then she opens the Galaxy Buds Pro case to pair with the Galaxy S21 Ultra 5G. She holds the earbuds in her hands.
“The Galaxy S21 Ultra is in a league of its own.”
SamMobile
“The Samsung Galaxy S21 Ultra’s camera is crazy good. It’s probably the most versatile phone camera for stills we’ve ever used.”
Stuff
“Every millimeter feels like it’s been maximised. Every feature feels like it’s been turned up to ultra.”
Input
“5 reasons to buy the Galaxy S21 Ultra, Samsung’s new camera king.”
XDA-Developers
“I can’t speak highly enough of the 120Hz display on the S21 Ultra. Every action feels exceptionally responsive and smooth.”
Forbes
“The Samsung Galaxy S21 Ultra has all the makings of becoming the best Android phone around.”
Tom’s Guide
Introducing a bold new camera design in a category of its own. It’s ultra-sized with a contour-cut camera that seamlessly houses cutting-edge lenses.
Introducing a bold new camera design in a category of its own. It’s ultra-sized with a contour-cut camera that seamlessly houses cutting-edge lenses.
PHANTOM BLACK
PHANTOM SILVER
17.3cm (6.8″) Infinity-O Display2
Its slim bezels and subtle camera cut-out offer a massive space for you to view and enjoy.
Dynamic AMOLED 2X
It’s the most vivid and brightest display in a Galaxy smartphone. Galaxy S21 Ultra 5G delivers our most stunning experience at 1500 nits, with 100% color volume for accurate and realistic color.
*The Dynamic AMOLED 2X display on Galaxy S21 Ultra 5G received a certification from VDE Germany for 100 percent Mobile Colour Volume in the DCI-P3 colour range, which means your images aren’t washed out and you’ll get unbelievably vivid colours regardless of differing levels of brightness. The display can achieve peak brightness of up to 1500 nits, improving the contrast between dark and light aspects of digital content for a more brilliant picture quality, with a 3,000,000:1 contrast ratio to make your mobile experience more immersive.
Eye Comfort Shield
Galaxy S21 Ultra 5G adjusts blue light for you at night, cutting down the harmful blue light you see as binge your favorite films.1
*SGS, the world’s leading certification company, awarded Galaxy S21 Ultra 5G’s display the Eye Care Certification based on its ability to drastically reduce the harmful effects of blue light. This certification can be found on www.sgs.com.
Super Smooth 120Hz Display
Our smoothest scrolling screen that keeps up with all your feeds. Incredibly responsive, this display delivers seamless transitions and optimizes the refresh rate based on what you view — saving battery for more of what you love.
S Pen Compatibility
The first S Pen for the Galaxy S series puts precision at your fingertips. By introducing Wacom technology, you can now craft edits, retouch and fine-tune with the low-latency pen. Take full advantage of that super-smooth display — whether that’s with S Pen or your favorite “feel by Wacom” EMR® pens.2
- 1. Eye Comfort Shield is ‘off’ by default, and must be turned on in Settings.
- 2. S Pen latency may vary by app. S Pen sold separately.
CORNING® GORILLA® GLASS VICTUS™
8K
Goes far beyond cinema resolution
Scene of a man dancing in front of an architectural structure, shot with 8K on Galaxy S21 Ultra 5G. A still image is taken from the video using 8K Video Snap. The image shows how crisp a frame from 8K Video looks as a photo.
Play
Man dancing on a staircase. One shot with Galaxy S21 Ultra 5G without Super Steady, and the other shot with Super Steady. The one shot with Super Steady is clear and detailed.
SUPER STEADY OFF
SUPER STEADY ON
Turn on Super Steady and Galaxy S21 Ultra 5G shoots like an action cam. AI stabilization eliminates the bumps, delivering gimbal-smooth video when you’re on the move.
Super Smooth 60fps Video does just what it says — shoots at 60fps for a smooth, detailed view when you play back the moment. Dynamic frame rate in FHD Auto Mode captures smoother video during the day — then switches to 30fps for brighter video in low light.
12MP ULTRA WIDE CAMERA
108MP WIDE-ANGLE CAMERA
10MP TELEPHOTO CAMERAS
12MP ULTRA WIDE
CAMERA
108MP WIDE-ANGLE
CAMERA
10MP TELEPHOTO
CAMERAS
108MP
108 megapixel
Play
A woman seen standing on the other side of a building. As you zoom in you see she’s holding an umbrella. As you zoom in further, you see her clearly. Zoom all the way in and you see a close-up of her umbrella.
The breakthrough Dual Tele Zoom system now zooms in faster, smoother and sharper than any zoom in the Galaxy series.6 And when paired with the all-new Zoom Lock, shots are more stable than ever.
Dual Tele Zoom system
Galaxy S21 Ultra 5G features 3x and 10x telephoto optical lenses that switch the further you zoom in. Then using our revolutionary double folded lens and AI-enhanced Super Resolution, you can get closer to the action without stepping closer.1
Zoom Lock
Ensures you get a steady shot, even without the tripod. When you zoom in 20x or more and the phone detects a lack of significant movement for 1.5 seconds, Zoom Lock activates and automatically stabilizes the image. You can also activate it by simply tapping the screen.
- 1. 100X Space Zoom includes 10x Hybrid Optic Zoom and 100x digital zoom with AI Super Resolution technology. Zooming in past 10x may cause some image deterioration.
Portraits get a face lift.
Studio-like Portrait mode is now enhanced by AI to deliver the ideal lighting in your photos — analyzing faces, lighting angles and direction and mapping depth of field.
Galaxy S21 Series 5G: Day Epic of BTS – Portrait Mode (Full ver.)
BTS members are in room. Time for a selfie? V picks up a Galaxy S21 and takes a selfie. Disclaimer: Selfie. Screen Image simulated. UX/UI subject to change. Disclaimer: Selfie. Screen Image simulated. Looking good! Jin is playing darts. What a shot! J-Hope holds up a Galaxy S21 to take a photo of Jin. My turn! Stay focused. S21 UI in Portrait Mode. Disclaimer: Portrait Mode. Screen image simulated. UX/UI subject to change. Jin looks at the S21 camera before throwing a dart. Ace every shot. It’s a bullseye. RM goes to the window and takes a selfie. Nice! Disclaimer: Selfie. Screen Image simulated. Each of the members hang up their own printed selfie on the wall. An S21 is on a table screen facing down. Galaxy S21 Series 5G. Disclaimer: Model and color may vary by country and carrier. Disclaimer: Portrait Mode. Image simulated. Samsung Galaxy BTS
A woman in a red dress staring out of a window in the dark. One shot with Galaxy S21 Ultra 5G without Night Mode, and one with Night Mode. The image shot with Night Mode comes out with more light and color than the other photo.
Galaxy’s first 5nm processor packs epic power and speed. This outstanding upgrade means faster processing and more intelligence in every aspect of Galaxy S21 Ultra 5G.3
*Image simulated for illustration purposes.
*16GB of RAM available with 512GB storage Galaxy S21 Ultra 5G model. 12GB of RAM available with 256GB and 128GB Galaxy S21 Ultra 5G models.
The Knox security platform delivers a high level of security, protecting your phone from the chip up and giving you more confidence in your data and app permissions. It also features Samsung Knox Vault to keep your biometric authentication data under wraps.3
5000mAh
Sky over architectural structure goes from night to dawn to show the 5000mAh battery’s long-lasting power.
INTELLIGENT BATTERY
All-day power has outdone itself
Galaxy S21 Ultra 5G’s Intelligent Battery outlasts the day — even on 5G. Maxing out at a massive 5000mAh, it combines with the new power-efficient display and processor to live on beyond the 24-hour mark.7, 8
Super Fast Charging delivers more than 50% charge in just 30 minutes with the 25W Travel Adapter.9
Fast Wireless Charging 2.0 gives you a quick power-up, without the cable.10
Wireless PowerShare lets you use your phone to charge your buds, watch or a friend’s phone.11
*The USB Implementers Forum, Inc. (USB-IF) was established in 1995 to support and accelerate the market and consumer adoption of USB compliant devices. Galaxy S21 Ultra 5G’s Super Fast Charging has been certified to be compliant to the USB standards which means your products have met the highest standards in the industry. This certification can be found on www.usb.org.
STORAGE
Boss-level gaming experience
With the 120Hz display, you get both fast touch response and smooth action. Pair that with 5G and Wi-Fi 6E to keep you connected in real time — and you’ll take your game to the next level.
Enhanced Game Booster
Game Booster’s new Priority Mode ensures you stay focused on your game by blocking calls and notifications — so you can take full advantage of Ultra performance. Plus, our AI-based solution monitors your device usage and automatically adjusts your settings for the best experience — regulating temperature, battery and memory all while you play.
From one big screen to another
Big Screen Chat with Google Duo is a new way to catch up with a friend or loved one, dialing up the fun with colorful backgrounds.18, 19, 21 It’s easy to stay close to those who matter with just a tap.
*Image simulated for illustration purposes.
*Google Duo is a trademark of Google LLC.
*Big Screen Chat can be accessed through the Smart View feature in Google Duo, located within the in-call controls.
Motion Mirror lets you project your phone to your TV so you can follow a workout routine. As you keep in step, you’ll see your moves right alongside your instructor.21, 22
Experience the power of running mobile apps right from your Windows 10 PC. Pin apps to the Start menu or taskbar for easy access and get right to work — it all starts when you connect your Galaxy phone to Your Phone Apps.
*Users must link their Galaxy smartphones to their Windows 10 PC through ‘Link to Windows’ on phone and Your Phone App on PC, follow the set-up prompts, including being signed into same Microsoft account. Link to Windows is preloaded on select Galaxy devices. Some Link to Windows features may require Galaxy smartphone to be on and connected to the same Wi-Fi network as the PC.
*Some mobile apps may restrict content to be shared on other screens or may require a touch screen to be able to interact with them.
Including: USB Type-C data cable Ejection pin Quick Start Guide
*Travel adapter sold separately.
*Some of the listed components may not be available depending on the model you purchase or the country or region you live in.
Galaxy S21 Ultra: Official Unboxing
Unboxing the Galaxy S21 Ultra 5G. Galaxy S21 Ultra 5G. Hands present the S21 Ultra 5G box. Disclaimer: 5G network availability may vary depending on the country, network provider and user environment. Hands open the box and a brand new S21 Ultra 5G is taken out. The Quick Start Guide is shown. There’s also an Ejection Pin and Data Cable. Film is peeled off the back of the S21 Ultra 5G. Another piece of film is peeled off the rear camera. The rear is shown from various angles. The S21 Ultra 5G is flipped to show the front. The S21 Ultra 5G is placed face down on a table. An S21 Ultra 5G in Phantom Silver appears from beneath the S21 Ultra 5G in Phantom Black and the two lie face down side by side. Phantom Black. Phantom Silver. Disclaimer: Image simulated. Color availability may vary by country or carrier. Three S21 Ultra 5G phones in different colors are face down side by side. Exclusive on Samsung.com. Phantom Titanium. Phantom Navy. Phantom Brown. Disclaimer: Image simulated. Color availability may vary by country or carrier. Close up of S21 Ultra 5G rear. Close up of S21 Ultra 5G rear camera. Hand holds up S21 Ultra 5G showing the front. 17.3cm (6.8″) Infinity-O Display. Disclaimer: Measured diagonally, Galaxy 21 Ultra 5G’s screen size is 6.8″ in the full rectangle and 6.6″ accounting for the rounded corners; actual viewable area is less due to the rounded corners and camera hole. Upper half of S21 Ultra 5G shows front camera hole. 40MP Selfie Camera. S21 Ultra 5G rotates to show the rear cameras. 12MP Ultra Wide Camera. 108MP Wide-angle Camera. 10MP Telephoto Camera (10x). Laser AF. LED Flash. 10MP Telephoto Camera (3x). The S21 Ultra 5G is being charged with a cable. S21 Ultra 5G is charged 87%. 5,000mAh Battery (typical)*. Disclaimer: Sequence shortened. Image simulated for illustrative purpose. Typical value tested under third-party laboratory condition. Typical value is the estimated average value considering the deviation in battery capacity among the battery samples tested under IEC 61960 standard. Rated (minimum) capacity is 4855mAh for Galaxy S21 Ultra 5G. Actual battery life may vary depending on network environment, usage patterns and other factors. Welcome UI is onscreen. Disclaimer: Sequence shortened. Image simulated for illustrative purposes. Hand places S21 Ultra 5G down next to the box, cable and ejection pin. Disclaimer: Travel adapter sold separately. In-box items may vary by country or region. Now, start exploring your Galaxy. Samsung.com. Samsung
Frequently Asked Questions
Galaxy S21 Ultra 5G has a total of four rear cameras and one 40MP selfie camera. The rear cameras include: one 108MP Wide-angle Camera, one 12MP Ultra Wide Camera and two 10MP Telephoto Cameras.
Yes, Galaxy S21 Ultra 5G comes with the Super Smooth 120Hz display. The display’s refresh rate adjusts between 10-120Hz based on the content you’re viewing.
Galaxy S21 Ultra 5G comes with a 6.8-inch screen, measuring at 75.6 x 165.1 x 8.9 millimeters and weighing 229g(mmW), 227g(sub6).2
Yes, you can use an electronic SIM, known as eSIM, with Galaxy S21 Ultra 5G. The eSIM allows you to activate a mobile network plan right on your phone, so you can switch data plans or add an overseas phone number without the physical Nano SIM.
In addition to its base Phantom colors, Galaxy S21 Ultra 5G comes in Samsung.com exclusive colors Phantom Titanium, Phantom Navy and Phantom Brown.
S Pen is sold separately. Galaxy S21 Ultra 5G supports Wacom technology, making it compatible with S Pens from other Galaxy devices as well as feel by Wacom EMR® products.
1 ) { var checkTop = $(‘.m_content-kv’).offset().top + $(‘.m_content-kv’).height() – GALAXY.areaHeight*.6; checkTop = Math.max((GALAXY.isGalaxy ? 50 : 100), checkTop); var isHide = $window.scrollTop() >= checkTop; } else { var checkTop = GALAXY.isGalaxy ? 50 : 100; var isHide = $window.scrollTop() >= checkTop; if ( $(‘html’).hasClass(‘ie’) ) { isHide = $window.scrollTop() >= 150; } if ( $(‘html’).hasClass(‘s1’) && window.innerHeight < 425) { isHide = $window.scrollTop() = 300; } } $sideMenus.decideClass('hide', isHide); $('.f_backtotop').get(0) && $('.f_backtotop').decideClass('hide', ! isHide ); $('.fab__button').get(0) && $('.fab__button').decideClass('hide', ! isHide ); } return { init: init } })(); oSideMenus && oSideMenus.init(); ; var $accessibillityTarget; var accessibillityLayers = { on: function($target) { if($target.length){ $target.attr('aria-hidden', 'true'); $accessibillityTarget = $target.find('a,input,select,textarea,button,video,iframe'); $accessibillityTarget.each(function() { var tabindex = $(this).attr('tabindex'); if (tabindex!==undefined&&tabindex!==null) { $(this).data('prev-tabindex', tabindex); } $(this).attr('tabindex','-1'); $(this).attr('aria-hidden', 'true'); }); } }, off: function($target) { if($target.length){ $target.removeAttr('aria-hidden'); $accessibillityTarget = $target.find('a,input,select,textarea,button,video,iframe'); $accessibillityTarget.each(function() { var tabindex = $(this).data('prev-tabindex'); if (tabindex!==undefined&&tabindex!==null) { $(this).attr('tabindex',tabindex); }else{ $(this).removeAttr('tabindex'); } $(this).removeAttr('aria-hidden'); }); } } }; if($('#QSIFeedbackButton-close-btn').length){ $('#QSIFeedbackButton-close-btn').attr('aria-hidden','true'); $('#QSIFeedbackButton-btn').on('click',function(){ $('#QSIFeedbackButton-close-btn').removeAttr('aria-hidden').focus(); }) } /*! * youtube.js * */ $(document).on('click', '.o_youtube_link', function (e) { e.preventDefault(); GALAXY.vodPlayer.show(this.href, this, true); var desc = ($(this).parent().find('.o_youtube_desc').length) ? $(this).parent().find('.o_youtube_desc').clone().removeAttr('aria-hidden','false') : null; $('#layer-youtube').find('h3').empty().text(''); $('#layer-youtube iframe').attr('title', $(this).siblings('strong').text()); if (desc != null) $('#layer-youtube').find('.m_video_view').append(desc); if (GALAXY.isGalaxy && $(this).parents('.o_youtube_lists').length) GALAXY.omniture( $(this).attr('data-omni')); });; var ChangePositionContents = (function () { var $articles; var _init = function () { $articles = $('article[class*="m_feature-"]'); this.resizeSizeChange(); } var changeContentTablet = function () { $articles.each(function (i, section) { var $section = $(section), $originBox = $section.find('.o_desc-origin'), $cloneBox; if ($originBox.length && $originBox.children().length) { $section.addClass('m_feature-tablet-block'); $cloneBox = $section.find('.o_desc-clone'); $originBox.each(function (j, elem) { $cloneBox.eq(j).html($(elem).children() .detach()); }); } }); } var changeContentDesktop = function () { $articles.each(function (i, section) { var $section = $(section), $originBox = $section.find('.o_desc-clone'), $cloneBox; if ($originBox.length && $originBox.children().length) { $section.removeClass('m_feature-tablet-block'); $cloneBox = $section.find('.o_desc-origin'); $originBox.each(function (j, elem) { $cloneBox.eq(j).html($(elem).children() .detach()); }); } }); } var _resize = function () { if (!GALAXY.sizeMode || !$articles.length) return false; if ((GALAXY.sizeMode 2) { changeContentDesktop(); } } return { init: _init, resizeSizeChange: _resize } })(); GALAXY.load(ChangePositionContents && ChangePositionContents.init()); GALAXY.resize(function () { if (GALAXY.sizeMode && GALAXY.sizeMode != GALAXY.prevSizeMode) { ChangePositionContents && ChangePositionContents.resizeSizeChange(); } }); ; var changeSizeMode = GALAXY.sizeMode; Fave.modals.init(); var stickyDesignSec = function () { var $designSec = $('.m_content-design'); var $designTitle = $designSec.find('.f_header-type1'); var $designDevice = $designSec.find('.device-wrap'); var $frontDevice = $designSec.find('.device-img-front'); var $backDevice = $designSec.find('.device-img-back'); var $designCopy = $designSec.find('.o_text-box'); var designMotion = function () { var _init = function () { $designDevice.__css({ y: $(window).height() }); } var _scroll = function (scrollT, moveArea) { var totalPercent = getCurPercent(scrollT, 0.1, 1, moveArea); var step1 = getCurPercent(scrollT, 0.2, 0.5, moveArea); var step2 = getCurPercent(scrollT, 0.5, 0.5, moveArea); var _copyH = $designCopy.outerHeight(); var _dH = ($(window).height() + $designDevice.outerHeight()) / 2 + _copyH; var _dTop1 = parseInt($frontDevice.css('top')) * 2; var _dTop2 = _dH; if (_copyH + parseInt($designCopy.css('bottom')) > ($(window).height() * 0.3)) { _dTop2 = (_dH + _copyH / 2); } var _dMoveTopVal1 = _dTop1 * totalPercent * -1; var _dMoveTopVal2 = _dTop2 * totalPercent * -1; $frontDevice.__css({ y: _dMoveTopVal1 }); $designDevice.__css({ y: _dMoveTopVal2 }); var _titleAlphaVal = 1 – step1; $designTitle.__css({ alpha: _titleAlphaVal }); $designCopy.__css({ alpha: step2 }); var step3 = getCurPercent(scrollT, 0.7, 0.3, moveArea); var _imgAlphaVal = 1 – (0.5 * step3); $designDevice.__css({ alpha: _imgAlphaVal }); } var _reset = function () { $frontDevice.removeAttr(‘style’); $designDevice.removeAttr(‘style’); $designTitle.removeAttr(‘style’); $designCopy.removeAttr(‘style’); $designDevice.removeAttr(‘style’); } return { init: _init, scroll: _scroll, reset: _reset } }(); var oDesign = $designSec.find(‘.sticky-wrap’).faveSticky({ top: ‘top’, on: function () { designMotion.init(); }, onScroll: function (percent, scroll) { var _this = $(this).data(‘faveSticky’); var _moveArea = _this.moveArea(); designMotion.scroll(scroll, _moveArea); }, onResize: function () { designMotion.reset(); $designSec.css({ marginTop: -($designTitle.position().top * 0.75) }); $designSec.css(‘z-index’, ‘0’).prev().css(‘z-index’, ‘1’); } }).data(‘faveSticky’); oDesign.resize(); } GALAXY.load(stickyDesignSec); var $glassSec = $(‘.m_content-glass’); var $glassFeature = $glassSec.find(‘.m_feature-type1’); var $glassCont = $glassSec.find(‘.f_container’); var $glassFigure = $glassSec.find(‘.complete’); GALAXY.hello($glassCont, { on: function () { if (GALAXY.sizeMode <= 2) { GALAXY.setTransitionEndEvent($glassFigure, function () { $glassFeature.addClass('anim-complete'); }); } }, off: function () { if (GALAXY.sizeMode 2) $glassFeature.removeClass('anim-complete'); }); var cameraSecSticky, cameraOptions, cameraMotion; var $cameraSec = $('.m_content-camera .m_feature-camera'); var $cameraSticky = $cameraSec.find('.sticky-wrap'); var stickycameraSec = function () { var $cameraTitle = $cameraSec.find('.f_header-type1'); var $cameraDevice = $cameraSec.find('.device-wrap'); var $cameraFront = $cameraSec.find('.device-front'); var $cameraBack = $cameraSec.find('.device-back'); var cameraMotion = function () { var _scroll = function (scrollT, moveArea) { var totalPercent = getCurPercent(scrollT, 0, 1, moveArea); $cameraSec.decideClass('bg_gradient', (totalPercent > 0.01)); var titAlphaPer = getCurPercent(scrollT, 0.12, 0.035, moveArea); if (GALAXY.sizeMode == 2) { titAlphaPer = getCurPercent(scrollT, 0.12, 0.07, moveArea); } else if (GALAXY.sizeMode == 1) { titAlphaPer = getCurPercent(scrollT, 0.12, 0.06, moveArea); } var stepDevicePer = getCurPercent(scrollT, 0.1, 0.4, moveArea); $cameraTitle.__css({ alpha: (1 – titAlphaPer) }); $cameraTitle.find(‘.c_title-type2.big’).decideClass(‘on’, ( totalPercent > 0.05)); var _moveYD = [470, 860, 900, 900]; var _moveYDval = ($(window).height() – 400) + _moveYD[GALAXY.sizeMode – 1]; var _moveYDevice = _moveYDval * stepDevicePer * -1; $cameraDevice.__css({ y: _moveYDevice }); var stepFrontPer = getCurPercent(scrollT, 0.1, 0.4, moveArea); var stepFrontAlphaPer = getCurPercent(scrollT, 0.3, 0.25, moveArea); if (GALAXY.sizeMode == 2) { stepFrontAlphaPer = getCurPercent(scrollT, 0.35, 0.2, moveArea); } var _moveYF = ($cameraFront.outerHeight() / 4); var _moveYFront = _moveYF * stepFrontPer * -1; $cameraFront.__css({ y: _moveYFront, alpha: (1 – stepFrontAlphaPer) }); var stepBackPer = getCurPercent(scrollT, 0.6, 0.1, moveArea); var _moveYB = [50, 220, 290, 290]; var _moveYBack = _moveYB[GALAXY.sizeMode – 1] * stepBackPer * -1; if (GALAXY.sizeMode != 2) { $cameraBack.__css({ y: _moveYBack }); } var capt1Per = getCurPercent(scrollT, 0.15, 0.2, moveArea); var capt2Per = getCurPercent(scrollT, 0.5, 0.15, moveArea); var capt3Per = getCurPercent(scrollT, 0.7, 0.15, moveArea); var capt4Per = getCurPercent(scrollT, 0.85, 0.15, moveArea); if (GALAXY.sizeMode == 2) { capt1Per = getCurPercent(scrollT, 0.18, 0.4, moveArea); capt2Per = getCurPercent(scrollT, 0.55, 0.15, moveArea); capt3Per = getCurPercent(scrollT, 0.7, 0.15, moveArea); capt4Per = getCurPercent(scrollT, 0.85, 0.15, moveArea); } else if (GALAXY.sizeMode == 1) { capt1Per = getCurPercent(scrollT, 0.18, 0.5, moveArea); } var isCapt1 = (capt1Per > 0 && capt1Per 0 && capt2Per 0 && capt3Per 0 && capt4Per 0.01)); $performanceTitle.__css({ alpha: (1 – titAlphaPer) }); $performanceTitle.find(‘.c_title-type2.big’).decideClass(‘on’, ( stepDevicePer > 0)); var _moveYD = ($(window).height() + $performanceDevice.find(‘figure’) .outerHeight()) / 2; var _moveYDevice = _moveYD * stepDevicePer * -1; $performanceDevice.__css({ y: _moveYDevice }); } var _reset = function () { $performanceSec.removeClass(‘bg_gradient’); $performanceTitle.removeAttr(‘style’); $performanceDevice.removeAttr(‘style’); } return { scroll: _scroll, reset: _reset } }(); $performanceSec.find(‘.sticky-wrap’).faveSticky({ top: ‘top’, onScroll: function (percent, scroll) { var moveArea = $(this).data(‘faveSticky’).moveArea(); performanceMotion.scroll(scroll, moveArea); }, onResize: function () { performanceMotion.reset(); } }) } GALAXY.load(stickyPerformanceSec); var stickyProcessorSec = function(){ var $processorSec = $(‘.m_content-processor’); $processorSec.find(‘.sticky-wrap’).faveSticky({ top: ‘center’, onScroll: function(percent, scroll){ var moveArea = $(this).data(‘faveSticky’).moveArea(); var totalPer = getCurPercent(scroll, 0, 1, moveArea); var isStep1 = (totalPer > 0 && totalPer 0.25 && totalPer 0.5 && totalPer 0.75 && totalPer 1) { _mahsrc = $mahCanvas.data(‘src-s4’); _mahviewW = 3148; _mahviewH = 909; _mahType = ‘X’; } else { _mahsrc = $mahCanvas.data(‘src-s1’); _mahviewW = 367; _mahviewH = 1056; _mahType = ‘Y’; } var mahOptions = { moveNode: $batterySticky, svgSrc: _mahsrc, viewW: _mahviewW, viewH: _mahviewH, alignX: ‘center’, alignY: ‘center’, bgColor: ‘transparent’, motionType: _mahType, motionTypeReverse: true, motionTypeReverseEndBg: ‘#000’ }; mahCanvasMotion = new Fave.svgMask($mahCanvas, mahOptions); mahCanvasMotion.init(); } var _resize = function () { mahCanvasMotion.destroy(); _init(); } var _scroll = function (scrollT, moveArea) { var _percent = getCurPercent(scrollT, 0, 1.5, moveArea); if (GALAXY.sizeMode == 1) { _percent = getCurPercent(scrollT, 0, 1.4, moveArea); } if (batteryMaskLoad) { mahCanvasMotion.draw(_percent); } } return { init: _init, scroll: _scroll, resize: _resize } }(); $batterySticky.faveSticky({ top: ‘top’, on: function () { if (!batteryMaskLoad) { svgMah.init(); batteryMaskLoad = true; } }, onScroll: function (percent, scroll) { var moveArea = $(this).data(‘faveSticky’).moveArea(); svgMah.scroll(scroll, moveArea); } }); $(window).resize(function () { (batteryMaskLoad && mahCanvasMotion) && mahCanvasMotion.resize(); if (changeSizeMode != GALAXY.sizeMode) { if (batteryMaskLoad) svgMah && svgMah.resize(); } }); } GALAXY.load(stickyBatterySec); var visual5g = function () { var $5g = $(‘.m_feature-5g’); var $5gVideoSticky = $5g.find(‘.sticky-wrap’); var $visual = $5gVideoSticky.find(‘.visual-5g’); var $5gVideo = $5gVideoSticky.find(‘.visual-video’); var _sticky = function () { var $device = $visual.find(‘.device’); var $visual5g = $visual.find(‘.svg-wrap’); var $visual5gSvg = $visual.find(‘.svg’); var $video = $5gVideo.find(‘video’); var isVideo = ($video.length) ? true : false; var $btn = (isVideo) ? $5gVideo.find(‘.btn_click-video’) : false; var isPlay = false; var move = {}; $5gVideoSticky.faveSticky({ top: ‘top’, on: function () { isPlay = false; reset && reset(); }, onScroll: function (per, scr) { var moveArea = $(this).data(‘faveSticky’).moveArea(); move = { svg5g: getCurPercent(scr, 0.15, 0.15, moveArea), movieScale: getCurPercent(scr, 0.4, 0.5, moveArea), movieAlpha: getCurPercent(scr, 0.8, 0.05, moveArea), posY: ‘0%’ } var isReady = $video && $video.hasClass(‘ready’); if (GALAXY.sizeMode > 2) { var per_device = -($(window).width() + ($device .width() * 1.2)) * getCurPercent(scr, 0, 0.3, moveArea); $device.__css({ x: per_device, YPercent: ‘-50%’ }); move.posY = ‘0%’; } else { var per_device = -($(window).height() + ($device .height() * 1.2)) * getCurPercent(scr, 0, 0.3, moveArea); $device.__css({ y: per_device, x: ‘0%’ }); } $visual5g.__css({ opacity: 1 – move.svg5g }); $visual5gSvg.__css({ opacity: 1 – move.svg5g }); $5gVideoSticky.find(‘.f_header-type1’).decideClass(‘show’, move.movieScale >= 1); $5gVideo.decideClass(‘show’, move.svg5g > 0); var max = (GALAXY.sizeMode > 1) ? 7 : 8; var min = 1; var calc = 1 – (min / max); var _scale = max – (max * move.movieScale * calc); $5gVideo.__css({ scale: _scale, y: move.posY }); if (move.movieScale > 0 && !isPlay && isVideo && isReady) { isPlay = true; $btn.off(‘click’, GALAXY.tracking).trigger(‘click’).on( ‘click’, GALAXY.tracking); } else if (move.movieScale == 0) { isPlay = false; } }, onResize: function () { reset(); } }); var reset = function () { $device.__css({ y: ‘0’, x: ‘0’ }); $visual5g.removeAttr(‘style’); $visual5gSvg.removeAttr(‘style’); $5gVideo.removeAttr(‘style’); } } return { sticky: _sticky } }(); var WIN_H = $window.height(); var SUBNAV_H = $(‘#subnav, .floating-navigation__wrap’).height() || 0; var STICKY_INNER_H = WIN_H – SUBNAV_H; GALAXY.load(function(){ GALAXY.landscape = !!(GALAXY.isMobile && (GALAXY.areaWidth > GALAXY.areaHeight)); $(‘html’).decideClass(‘landscape’, GALAXY.landscape); SUBNAV_H = $(‘#subnav, .floating-navigation__wrap’).height() || 0; STICKY_INNER_H = WIN_H – SUBNAV_H; if(GALAXY.prevSizeMode > -1){ interactive.sticky(); visual5g.sticky(); } $(‘.m_content-processor sup a’).each(function(){ $(this).on(‘keyup’,function(e){ var top = $(‘.m_content-processor’).offset().top; if($(this).closest(‘div[class^=chip_’).index() == 0){ _tabTop = ($(‘section.m_content-processor .sticky-wrap’).height()/4)/3; }else if($(this).closest(‘div[class^=chip_’).index() == 1){ _tabTop = ($(‘section.m_content-processor .sticky-wrap’).height()/4)+30; }else{ _tabTop = ($(‘section.m_content-processor .sticky-wrap’).height()/4) * ($(this).closest(‘div[class^=chip_’).index()); } if(e.keyCode == 9) { if(_tabTop >= 0) GALAXY.setSmoothScrollTop(top+_tabTop,100); } }); }); $(‘.m_feature-5g sup a’).on(‘keyup’,function(e){ var top = !$(‘html’).hasClass(‘static-check’) ? $(‘.m_feature-5g’).offset().top + $(‘.m_feature-5g’).height() – $(window).height() : $(this).offset().top – GALAXY.areaHeight/2; if(e.keyCode == 9) { if(GALAXY.sizeMode > 2) GALAXY.setSmoothScrollTop(top,100); } }); $(‘.m_feature-interactive .screen-desc1 sup a’).on(‘keyup’, function(e) { var top = $(‘.m_feature-interactive’).offset().top; var _tabTop = $(window).height() * 1.95; if (e.keyCode == 9) { if (GALAXY.sizeMode > 2) { GALAXY.setSmoothScrollTop(top+_tabTop,100); } } }); $(‘.m_feature-interactive .screen-desc2 sup a’).on(‘keyup’,function(e){ var top = $(‘.m_feature-interactive’).offset().top; var _tabTop = $(window).height() * 3; if(e.which == 9 ) { if(GALAXY.sizeMode > 2) GALAXY.setSmoothScrollTop(top+_tabTop,100); } }); }); GALAXY.resize(function(){ WIN_H = $window.height(); SUBNAV_H = $(‘#subnav, .floating-navigation__wrap’).height() || 0; STICKY_INNER_H = WIN_H – SUBNAV_H; }); var interactive = function(){ var $screen = $(‘.m_feature-interactive’), $screenSticky = $screen.find(‘.sticky-wrap’), $screenInner = $screenSticky.find(‘.sticky-inner’), $screenImgWrap = $screenSticky.find(‘.screen-wrap .screen-img’), $screenImg_base = $screenImgWrap.find(‘.screen-mirror’), $screenImg = $screenImgWrap.find(‘figure’), $txt1 = $screenInner.find(‘.text1’), $txt2 = $screenInner.find(‘.text2’), isDuo = $screenSticky.find(‘.duo’).length, minSclae = 0.35 ; if(!isDuo) $screen.addClass(‘none-duo’); var _sticky = function(){ $screenSticky.faveSticky({ top: ‘top’, on: function(){ $screenImgWrap = $screenSticky.find(‘.screen-wrap .screen-img’) $screenImg = $screenImgWrap.find(‘figure’); }, onScroll: function(per, scr){ var moveArea = $(this).data(‘faveSticky’).moveArea(); if(GALAXY.sizeMode <= 2) return false; var _top = parseInt($screenImg.css('top')) - ( ($window.height() - $screenImg_base.height()*0.67) /2); var _topPos = getCurPercent(scr, 0, 0.25, moveArea); var _scale = getCurPercent(scr, 0.25, 0.25, moveArea); _scale = Math.max(minSclae, 1-_scale); var _txt1Pos = getCurPercent(scr, 0.4, 0.4, moveArea); var _txt2Pos = (isDuo) ? getCurPercent(scr, 0.55, 0.3, moveArea) : getCurPercent(scr, 0.4, 0.35, moveArea); var _txt1Alpha = getCurPercent(scr, 0.7, 0.1, moveArea); var _txt2Alpha = (isDuo) ? getCurPercent(scr, 0.6, 0.1, moveArea) : 1; var _imgAlpha = getCurPercent(scr, 0.55, 0.25, moveArea); var txt1H = WIN_H + $txt1.height(); var txt2H = SUBNAV_H ? (WIN_H + ($txt2.height()*1.2) - SUBNAV_H )/2 : (WIN_H + ($txt2.height()*1.2))/2; $screenImgWrap._css({translateX: '-50%', scale: _scale}); $screenImg._css({'transform':'translate(-50%,'+ (_top * _topPos * -1) +'px)'}); $screen.find('.screen-video').css({'opacity': 1-_imgAlpha}); $txt1.__css({'transform': 'translateY('+(-1 * txt1H * _txt1Pos)+'px)', 'opacity': 1 - _txt1Alpha}); $txt2.__css({'transform': 'translateY('+(-1 * txt2H * _txt2Pos)+'px)', 'opacity': _txt2Alpha}); }, onResize: function(){ if( GALAXY.sizeMode 4) ? true : false; } else if ($('html').hasClass('s2')) { thumbLength = ($yvSlide.find('li').length > 3) ? true : false; } else { thumbLength = ($yvSlide.find(‘li’).length > 2) ? true : false; } if (thumbLength) { yvTitleArr = []; if ($yvWrap.hasClass(‘no-slide’)) $yvWrap.removeClass(‘no-slide’); $yvSlide.find(‘.thumb’).each(function (i) { var thisHtml = $(this).html(); yvThumbArray.push(thisHtml); yvTitleArr.push($(this).find(‘strong’).text()); }); var pageTitle = $yvSlidePaging.data(‘page-title’); $yvSlide.html(”); for (var i = 0; i < yvThumbArray.length; i++) { if ($html.hasClass('s1')) { if(i%2 == 0)$yvSlide.append('
‘+”); if(i%2 == 1)$yvSlide.find(‘li:last-child > div’).append(‘
‘+yvThumbArray[i]+’
‘); } else if ($html.hasClass(‘s2’)) { if(i%3 == 0)$yvSlide.append(‘
‘+yvThumbArray[i]+’
‘+’
‘); if(i%3!= 0)$yvSlide.find(‘li:last-child > div’).append(‘
‘+yvThumbArray[i]+’
‘); } else { if(i%4 == 0)$yvSlide.append(‘
‘+yvThumbArray[i]+’
‘+’
‘); if(i%4!= 0)$yvSlide.find(‘li:last-child > div’).append(‘
‘+yvThumbArray[i]+’
‘); } } $yvSlide.find(‘li’).each(function(){ if($(this).find(‘> div .thumb’).length div’).removeAttr(‘role’); $(this).find(‘> div .thumb’).removeAttr(‘role’); } }) var omniTxt = ‘galaxy-s21-ultra:highlights:epic-in-every-way:select:’; $yvSlide.find(‘li’).each(function (i) { var title; if($html.hasClass(‘s34’)){ title = yvTitleArr.slice(i*4,(i*4)+4).toString(); }else if($html.hasClass(‘s2’)){ title = yvTitleArr.slice(i*3,(i*3)+3).toString(); }else{ title = yvTitleArr.slice(i*2,(i*2)+2).toString(); } $(” + pageTitle + ‘ ‘ + (i + 1) +
‘:’ + title + ”).appendTo($yvSlidePaging);
});
var meetSwipe = GALAXY.swipeAble;
if ($html.hasClass(‘ie’) && $html.hasClass(‘rtl’)) {
meetSwipe = false;
}
if ($html.hasClass(‘edge’) && $html.hasClass(‘rtl’)) {
meetSwipe = false;
}
$yvSlide.xlider({
swipe: meetSwipe,
endless: true,
arrows: [$yvWrap.find(‘.m_btn_type1-prev’), $yvWrap.find(
‘.m_btn_type1-next’)],
paging: $yvSlidePaging,
onMove: function () {
$yvSlideWrap.find(‘li’).removeClass(‘view’);
$yvSlideWrap.removeClass(‘ie-error’);
},
onChange: function () {
$yvSlideWrap.find(‘li’).removeClass(‘view’);
$yvSlideWrap.removeClass(‘ie-error’);
},
onChangeEnd: function (i) {
var select = $yvSlidePaging.data(‘btn-title’);
sliderOmni.remove();
$yvSlideWrap.find(‘.xlider-current’).removeClass(‘view’)
.siblings().addClass(‘view’);
$yvSlidePaging.find(‘a’).eq(i).attr(‘title’, select).siblings()
.attr(‘title’, ”);
$yvSlideWrap.addClass(‘ie-error’);
}
});
$yvWrap.on(‘mousedown keydown’, ‘.slide-paging a, arrow-wrap a’, function (e) {
sliderOmni.add(e, this);
});
} else {
$yvWrap.addClass(‘no-slide’);
}
}
var yvSlideDestroy = function () {
yvThumbArray = [];
$yvSlidePaging.html(”);
$yvSlide.removeAttr(‘style’).xlider(‘remove’);
$yvSlide.html(yvSlideHtml);
$yvWrap.addClass(‘no-slide’);
setTimeout(function () {
$yvSlide.find(‘img’).each(function (i, img) {
if (GALAXY.sizeMode >= 3) {
img.src = img.getAttribute(‘data-media-s4’);
} else if (GALAXY.sizeMode == 2) {
img.src = img.getAttribute(‘data-media-s2’);
} else if (GALAXY.sizeMode == 1) {
img.src = img.getAttribute(‘data-media-s1’);
}
});
}, 10);
}
var waTimer;
$(document).on(‘click’, ‘.youtube-slide a’, function(e){
e.preventDefault();
GALAXY.vodPlayer.show(this.href, this, true);
var desc = ($(this).parent().find(‘.youtube-desc’).length) ? $(this).parent().find(‘.youtube-desc’).clone().removeAttr(‘aria-hidden’,’false’) : null;
$(‘#layer-youtube’).find(‘h3’).empty().text(”);
$(‘.m_layer-youtube.show iframe’).attr(‘title’, $(this).data(‘title’));
clearTimeout(waTimer);
waTimer = setTimeout(function(){
$(‘.m_layer-youtube.show’).find(‘.c_btn_close-type1’).focus();
},1500);
if(desc != null) $(‘.m_layer-youtube.show’).find(‘.m_video_view’).append(desc);
if (GALAXY.isGalaxy && $(this).parents(‘.youtube-slide’).length) GALAXY.omniture($(this).attr(‘data-omni’));
if($(‘html’).hasClass(‘dotcom’)){
accessibillityLayers.on($(‘#teconsent’));
}
var hide = function() {
setTimeout(function() {
$clickAble.focus();
},100);
};
});
// about slide
var $aboutWrap = $(‘.about-wrap’);
var $aboutSlideWrap = $(‘.about-slide’);
var $aboutSlide = $aboutSlideWrap.find(‘.about-list’);
var $aboutSlidePaging = $aboutWrap.find(‘.slide-paging’);
var aboutSlideHtml = $aboutSlide.html();
var aboutBoxArray = [];
var aboutTitleArr = [];
var aboutSlideInit = function () {
aboutTitleArr = [];
$aboutSlide.attr(‘role’,’presentation’);
if ($aboutWrap.hasClass(‘no-slide’)) $aboutWrap.removeClass(‘no-slide’);
$aboutSlide.find(‘.box’).each(function (i) {
var thisHtml = $(this).html();
aboutBoxArray.push(thisHtml);
aboutTitleArr.push($(this).find(‘.box-text’).data(‘title’));
});
var pageTitle = $aboutSlidePaging.data(‘page-title’);
$aboutSlide.html(”);
for (var i = 0; i ‘+’
‘+aboutBoxArray[i]+’
‘+”); if(i%2 == 1)$aboutSlide.find(‘li:last-child > div’).append(‘
‘+aboutBoxArray[i]+’
‘); }else if($html.hasClass(‘s3’)){ if(i%3 == 0)$aboutSlide.append(‘
‘+aboutBoxArray[i]+’
‘+’
‘); if(i%3!= 0)$aboutSlide.find(‘li:last-child > div’).append(‘
‘+aboutBoxArray[i]+’
‘); } else { if(i%4 == 0)$aboutSlide.append(‘
‘+aboutBoxArray[i]+’
‘+’
‘); if(i%4!= 0)$aboutSlide.find(‘li:last-child > div’).append(‘
‘+aboutBoxArray[i]+’
‘); } } $aboutSlide.find(‘li’).each(function(){ if($(this).find(‘> div .box’).length div’).removeAttr(‘role’); $(this).find(‘> div .box’).removeAttr(‘role’); } }) var omniTxt = ‘galaxy-s21-ultra:highlights:media-quote:select:’; $aboutSlide.find(‘li’).each(function(i) { var title; if($html.hasClass(‘s12’)){ title = aboutTitleArr.slice(i*2,(i*2)+2).toString(); }else if($html.hasClass(‘s3′)){ title = aboutTitleArr.slice(i*3,(i*3)+3).toString(); }else{ title = aboutTitleArr.slice(i*4,(i*4)+4).toString(); } $(”+pageTitle +’ ‘+ (i+1) +’:’+title + ”).appendTo($aboutSlidePaging);
});
var meetSwipe = GALAXY.swipeAble;
if ($html.hasClass(‘ie’) && $html.hasClass(‘rtl’)) {
meetSwipe = false;
}
if ($html.hasClass(‘edge’) && $html.hasClass(‘rtl’)) {
meetSwipe = false;
}
$aboutSlide.xlider({
swipe: meetSwipe,
endless: true,
arrows: [$aboutWrap.find(‘.m_btn_type1-prev’), $aboutWrap.find(
‘.m_btn_type1-next’)],
paging: $aboutSlidePaging,
onMove: function () {
$aboutSlideWrap.find(‘li’).removeClass(‘view’);
$aboutSlideWrap.removeClass(‘ie-error’);
},
onChange: function () {
$aboutSlideWrap.find(‘li’).removeClass(‘view’);
$aboutSlideWrap.removeClass(‘ie-error’);
},
onChangeEnd: function (i) {
var select = $aboutSlidePaging.data(‘btn-title’);
sliderOmni.remove();
$aboutSlideWrap.find(‘.xlider-current’).removeClass(‘view’)
.siblings().addClass(‘view’);
$aboutSlidePaging.find(‘a’).eq(i).attr(‘title’, select).siblings()
.attr(‘title’, ”);
$aboutSlideWrap.addClass(‘ie-error’);
}
});
$aboutWrap.on(‘mousedown keydown’, ‘.slide-paging a, arrow-wrap a’, function (e) {
sliderOmni.add(e, this);
});
}
var aboutSlideDestroy = function () {
aboutBoxArray = [];
$aboutSlidePaging.html(”);
$aboutSlide.removeAttr(‘style’).xlider(‘remove’);
$aboutSlide.html(aboutSlideHtml);
$aboutWrap.addClass(‘no-slide’);
setTimeout(function () {
$aboutSlide.find(‘img’).each(function () {
$(this).attr(‘src’, $(this).attr(‘data-media-s4’));
});
}, 10);
}
var changeSizeMode;
var boxResizeFirst = true;
GALAXY.resize(function () {
var _sizeMode = GALAXY.sizeMode;
if (_sizeMode != changeSizeMode) {
changeSizeMode = _sizeMode;
yvSlideDestroy();
yvSlideInit();
aboutSlideDestroy();
aboutSlideInit();
}
});;
function setWindowHeight(target) {
var navH = $(‘#subnav, .floating-navigation__wrap’).height() || 0;
var winH = $(window).outerHeight();
$(target).height(winH – navH);
}
var eightCanvasMotion;
var svg8K;
var stickyProVideoSec = function () {
var $8kSec = $(‘.m_feature-8k’);
var $8kSticky = $8kSec.find(‘.sticky-wrap’);
var $8kTitle = $8kSec.find(‘.f_header-type1’);
var $8kCopy = $8kSec.find(‘.o_copy’);
var $8kVideoWrap = $8kSec.find(‘.video-wrap’);
var $8kCanvas = $8kSec.find(‘.canvas-8k’);
var $8kSVGData = $8kSec.find(‘.svg-data’);
var $8kScreenIcon = $8kVideoWrap.find(‘.icon-screen’);
var $8kVideo = $8kVideoWrap.find(‘video’);
var is8kVideo = ($8kVideo.length) ? true : false;
var $8kVideoBtn = (is8kVideo) ? $8kSec.find(‘.btn_click-video’) : false;
var is8kPlay = false;
var is8kReady = $8kVideo && $8kVideo.hasClass(‘ready’);
var isScreenshotMan = false;
var captureMotion = function () {
var timeoutMotion;
var _init = function () {
if (is8kPlay && is8kVideo && is8kReady) {
is8kPlay = false;
$8kVideoBtn.off(‘click’, GALAXY.tracking).trigger(‘click’).on(
‘click’, GALAXY.tracking);
}
$8kVideoWrap.addClass(‘shot’);
timeoutMotion = setTimeout(function () {
$8kVideoWrap.removeClass(‘shot’);
$8kVideoWrap.addClass(‘is-snap’);
}, 200);
if (is8kVideo) $8kVideoBtn.hide();
}
var _destroy = function () {
clearTimeout(timeoutMotion);
$8kVideoWrap.removeClass(‘shot is-snap’);
if (!is8kPlay && is8kVideo && is8kReady) {
is8kPlay = true;
$8kVideoBtn.off(‘click’, GALAXY.tracking).trigger(‘click’).on(
‘click’, GALAXY.tracking);
}
if (is8kVideo) $8kVideoBtn.show();
}
var _resize = function () {
// _init();
}
// _init();
return {
init: _init,
destroy: _destroy,
resize: _resize
}
}();
svg8K = function () {
var _8Ksrc, _8KviewW, _8KviewH, _8KType;
var _init = function () {
if (GALAXY.sizeMode > 1) {
_8Ksrc = $8kSVGData.data(‘src-s4’);
_8KviewW = $8kSVGData.data(‘size-s4’)[0];
_8KviewH = $8kSVGData.data(‘size-s4’)[1];
_8KType = ‘X’;
} else {
_8Ksrc = $8kSVGData.data(‘src-s1’);
_8KviewW = $8kSVGData.data(‘size-s1’)[0];
_8KviewH = $8kSVGData.data(‘size-s1’)[1];
_8KType = ‘Y’;
}
var eightOptions = {
moveNode: $8kSticky,
svgSrc: _8Ksrc,
viewW: _8KviewW,
viewH: _8KviewH,
alignX: ‘center’,
alignY: ‘center’,
originX: ‘center’,
originY: ‘center’,
bgColor: _8kBgColor,
motionType: _8KType
};
eightCanvasMotion = new Fave.svgMask($8kCanvas, eightOptions);
eightCanvasMotion.init();
}
var _reset = function () {
$8kTitle.removeAttr(‘style’);
$8kCopy.removeAttr(‘style’);
}
var _resize = function () {
_reset();
eightCanvasMotion && eightCanvasMotion.destroy();
eightCanvasMotion && _init();
}
var _scroll = function (scrollT, moveArea) {
is8kReady = $8kVideo && $8kVideo.hasClass(‘ready’);
var step1 = getCurPercent(scrollT, 0, 0.4, moveArea);
var step2 = getCurPercent(scrollT, 0.4, 0.1, moveArea);
var step3 = getCurPercent(scrollT, 0.5, 0.1, moveArea);
var step4 = getCurPercent(scrollT, 0.6, 0.1, moveArea);
var step5 = getCurPercent(scrollT, 0.8, 0.2, moveArea);
if ((step1 > 0 && step1 1) {
if (GALAXY.sizeMode > 2) {
_sMoveLeft = ($window.width() + $8kTitle.outerWidth() * 2) *
step1 * -1;
} else if (GALAXY.sizeMode == 2) {
_sMoveLeft = ($window.width() + $8kTitle.outerWidth()) * 2 *
step1 * -1;
}
$8kTitle.__css({
x: _sMoveLeft
});
} else {
_sMoveLeft = ((($8kCanvas.height() * 2) + ($8kTitle.outerHeight() /
2)) * step1 * -1) – ($8kTitle.outerHeight() / 2);
$8kTitle.__css({
y: _sMoveLeft
});
}
if (step1 > 0) {
$8kVideoWrap.css(‘opacity’, ‘1’);
eightCanvasMotion && eightCanvasMotion.draw(step1);
$8kSec.decideClass(‘motion-on’, (step1 > 0.1));
} else {
$8kVideoWrap.css(‘opacity’, ‘0’);
eightCanvasMotion && eightCanvasMotion.draw(0);
$8kSec.removeClass(‘motion-on’);
if (GALAXY.sizeMode > 1) {
$8kTitle.__css({
x: 0
});
}
}
if (step2 > 0) {
$8kCopy.__css({
alpha: step2
});
if (step2 == 1) {
$8kScreenIcon.css(‘opacity’, ‘1’)
}
} else {
$8kCopy.__css({
alpha: 0
});
$8kScreenIcon.css(‘opacity’, ‘0’);
}
if (step3 > 0) {
$8kCopy.__css({
alpha: 1
});
}
if (step4 > 0) {
$8kCopy.__css({
alpha: 1 – step4
});
}
if (step5 > 0) {
if (!isScreenshotMan) {
isScreenshotMan = true;
captureMotion.init();
}
} else {
if (isScreenshotMan) {
isScreenshotMan = false;
captureMotion.destroy();
}
}
}
// _init();
return {
init: _init,
scroll: _scroll,
resize: _resize,
reset: _reset
}
}();
var oVideo = $8kSticky.faveSticky({
top: ‘top’,
on: function () {
is8kPlay = false;
!eightCanvasMotion && svg8K.init();
},
onScroll: function (percent, scroll) {
var _this = $(this).data(‘faveSticky’);
var _moveArea = _this.moveArea();
svg8K.scroll(scroll, _moveArea);
},
onResize: function () {
if ($8kSec.closest(‘#contents’).hasClass(‘p_s21-ultra’)) {
$8kSec.css({
marginTop: -($8kTitle.position().top * 0.75)
});
}
}
}).data(‘faveSticky’);
oVideo.resize();
};
GALAXY.load(stickyProVideoSec);
var highlightSizeMode = GALAXY.sizeMode;
$(window).resize(function () {
setWindowHeight($(‘.m_feature-8k .sticky-inner’));
if (highlightSizeMode != GALAXY.sizeMode) {
svg8K && svg8K.resize();
highlightSizeMode = GALAXY.sizeMode;
} else {
eightCanvasMotion && eightCanvasMotion.resize();
}
});
;
var hashSet;
var hashArr = [];
var hashModalArr = [];
var a = false;
$(‘[data-hashchange=true]’).each(function () {
if (!$(this).hasClass(‘modals_layer’)) {
hashArr.push(this.id.replace(‘#’, ”));
} else {
hashModalArr.push(this.id.replace(‘#’, ”));
}
});
//Modal Popup for 360
(function() {
var $ctrl,
$modal = $(”),
$clickAble = null,
$baseContentsArea = $(‘#wrap’),
$baseContentsClickAble,
$modalContent,
isModalShow = false,
isKeyDown = false,
$menuToggleButton,
toggleTitle = {},
saveScrollTop;
var _init = function() {
$(‘body’).append($modal);
addEvent();
return this;
};
var addEvent = function() {
$ctrl = $(‘.f_compare-vr360 .c_btn_palette’);
$ctrl.off(‘click.vr360’).on(‘click.vr360’, function() {
$clickAble = $(this);
show( $clickAble.attr(‘href’) );
return false;
});
hashCheck();
};
var show = function(target) {
var $target = $(target);
if ( !$target.length ) { return false; }
if ( isModalShow === true ) { return false; }
isModalShow = true;
isKeyDown = false;
GALAXY.setTransitionEndEvent($modal, shown);
$modal.html( $target.html() ).addClass(‘is-show’);
$modalContent = $modal.find(‘.modal-inner’).attr({tabindex: ‘0’});
$menuToggleButton = $modalContent.find(‘.btn_menus-toggle>button, .btn_menus-toggle>a’);
$modalContent.css({opacity: 0});
$modal.find(‘.modal-close>a,.modal-close>button’)
.off(‘.modalHide’)
.on(‘click.modalHide’, hide)
.on(‘touchstart’, function() { isKeyDown = true; })
.on(‘keydown.modalHide’, hideKeyDown);
Accessibillity.on();
vAlignCenter();
saveScrollTop = GALAXY.scrollTop;
GALAXY.noScroll.on();
};
var shown = function() {
selectedCopy = $modalContent.find(‘.o_tab-area’).data(‘select’);
$modalContent.find(‘.tab_color_list > li:first-child > a’).addClass(‘on’);
$modalContent.find(‘.tab_list_item > a’).off(‘.chgDevice’).on(‘click.chgDevice’, chgDevice);
$modalContent.find(‘.tab_list_item.on > a’).attr({title: selectedCopy });
$modalContent.find(‘.tab_color_list a.o_color-ctrl’).off(‘click.chgColor’).on(‘click.chgColor’,chgColor).filter(‘.on’).attr({title: selectedCopy});
$modalContent.focus().find(‘a, button’).off(‘click.omni’).on(‘click.omni’, actOmni);
$menuToggleButton.off(‘.hamburger’).on(‘click.hamburger’, togMenus).on(‘keyup.hamburger blur.hamburger’, function (e) {
if(e.type == ‘keyup’) {
if(e.which == 9) $(this).addClass(‘focus’);
}else {
$(this).removeClass(‘focus’);
}
});
toggleTitle = { open: $menuToggleButton.find(‘>span’).text(), close: $menuToggleButton.data(‘close-title’)};
chgIframe();
};
var hide = function() {
GALAXY.setTransitionEndEvent($modal, hiden);
$modal.removeClass(‘is-show’);
$(‘#wrap’).length && $(‘#wrap’).css({opacity: 0});
$modalContent = null;
};
var hiden = function() {
isModalShow = false;
Accessibillity.off();
$(‘#wrap’).length && $(‘#wrap’).css({opacity: 1});
if (isKeyDown) { $clickAble.focus(); }
$clickAble = null;
$modal.empty().removeClass(‘is-valign-center’);
location.hash = ”;
GALAXY.noScroll.off();
GALAXY.setScrollTop( saveScrollTop );
setTimeout(function() {
$ctrl.focus();
},100);
}
var hideKeyDown = function() {
if (event.keyCode == 13 ) {
isKeyDown = true;
}
}
var actOmni = function() {
var omni = this.dataset.omni;
omni && GALAXY.omniture(omni);
}
var vAlignCenter = function() {
isModalShow && setTimeout(function() {
$modal.decideClass(‘is-valign-center’, $modalContent.outerHeight() a’).attr({title: selectedCopy});
}
var selectDevice = $selectItem.find(‘>a’).data(‘device’);
var selectColor = $selectItem.find(‘.o_color-ctrl.on’).data(‘color’);
var paramDevice = ‘model_name=’+selectDevice;
var paramColor = ‘color=’+selectColor;
iframeSrc = [iframeSrc, paramDevice, paramColor].join(‘&’);
$iframe.attr({ src: iframeSrc });
};
var chgDevice = function() {
var $this = $(this);
if ( !$this.parent().hasClass(‘on’) ) {
$modalContent.find(‘.tab_list_item’).removeClass(‘on’).find(‘>a’).attr({title: ”});
$this.attr({title: selectedCopy });
$this.parent().addClass(‘on’);
chgIframe(null, true);
}
return false;
};
var chgColor = function() {
var $this = $(this);
var $iframe = $modalContent.find(‘iframe’);
var s = $iframe.attr(‘src’);
if ( !$this.hasClass(‘on’) ) {
$this.parents(‘.tab_color_list’).find(‘a’).removeClass(‘on’).attr({title: ”});
$this.addClass(‘on’).attr({title: selectedCopy});
s = s.split(‘#’)[0] + ‘#color=’ + this.dataset.color;
$iframe.attr({src: s});
};
return false;
};
var togMenu = {
open: function() {
$(‘.modal-wrapper’).one(‘click.closeMenuLayer’, togMenu.close);
$menuToggleButton.find(‘span’).text(toggleTitle.close);
$modalContent.addClass(‘is-menu-open’);
$modalContent.find(‘.modal-close>a’).attr({‘aria-hidden’: ‘true’, ‘tabindex’: ‘-1’});
$modalContent.find(‘iframe’).attr({‘aria-hidden’: ‘true’, ‘tabindex’: ‘-1’});
$(‘.modal-header’).attr({‘aria-hidden’: ‘true’, ‘tabindex’: ‘-1’});
},
close: function() {
$menuToggleButton.find(‘span’).text(toggleTitle.open);
$modalContent.removeClass(‘is-menu-open’);
$modalContent.find(‘.modal-close>a’).attr({‘aria-hidden’: ”, ‘tabindex’: ”});
$modalContent.find(‘iframe’).attr({‘aria-hidden’: ”, ‘tabindex’: ”});
$(‘.modal-header’).attr({‘aria-hidden’: ”, ‘tabindex’: ”});
}
};
var togMenus = function() {
$(‘.modal-wrapper’).off(‘click.closeMenuLayer’);
var isMenusStatus = !$modalContent.hasClass(‘is-menu-open’);
togMenu[isMenusStatus?’open’:’close’]();
return false;
};
var hashCheck = function() {
var hashname = location.hash;
if ( $ctrl.attr(‘href’) == hashname ) {
show( $ctrl.attr(‘href’) );
}
}
var Accessibillity = {
on: function() {
$baseContentsArea.attr(‘aria-hidden’, ‘true’);
$baseContentsClickAble = $baseContentsArea.find(‘a,input,select,textarea,button,video,iframe’);
$baseContentsClickAble.each(function() {
var tabindex = $(this).attr(‘tabindex’);
if (tabindex!==undefined&&tabindex!==null) {
$(this).data(‘prev-tabindex’, tabindex);
$(this).attr(‘aria-hidden’, ‘true’);
}
$(this).attr(‘tabindex’,’-1′);
$(this).attr(‘aria-hidden’, ‘true’);
});
if($(‘html’).hasClass(‘dotcom’)){
accessibillityLayers.on($(‘#consent_blackbar’));
accessibillityLayers.on($(‘#teconsent’));
}
},
off: function() {
$baseContentsArea.attr(‘aria-hidden’, ”);
$baseContentsClickAble.each(function() {
var tabindex = $(this).data(‘prev-tabindex’);
if (tabindex!==undefined&&tabindex!==null) {
$(this).attr(‘tabindex’,tabindex);
$(this).attr(‘aria-hidden’, ”);
} else {
$(this).removeAttr(‘tabindex’);
$(this).attr(‘aria-hidden’, ”);
}
});
if($(‘html’).hasClass(‘dotcom’)){
accessibillityLayers.on($(‘#consent_blackbar’));
accessibillityLayers.off($(‘#teconsent’));
}
}
};
var _resize = function() {
if ( !isModalShow ) { return false; }
if ( !$modalContent.length ) { return false; }
if ( GALAXY.sizeMode > 2 && $modalContent.hasClass(‘is-menu-open’) ) {
togMenu.close();
}
vAlignCenter();
};
return {
fave: _init,
show: show,
hide: hide,
resize: _resize
}
})().fave()
var hashScroll = function () {
var _hash2 = window.location.href.split(‘#’)[1];
var _hash = window.location.hash.replace(‘#’, ”);
var _h = 0;
var _hashTop = 0;
var isHashCheck = (hashArr.indexOf(_hash) > -1 || hashModalArr.indexOf(_hash) > -1);
if (!isHashCheck) {
return;
}
clearTimeout(hashSet);
hashSet = setTimeout(function () {
if (hashModalArr.indexOf(_hash) > -1) {
Fave.modals.show(‘#’ + _hash);
} else {
if ($(‘.modals.show’).length) {
Fave.modals.hide();
};
_h = $(‘#’ + _hash).offset().top;
if (_hash == ‘epic-8k-video’) {
// _h = $(‘.m_content-pro_video’).offset().top;
if ($(‘html’).hasClass(‘s34’)) {
_hashTop = 870;
}
if ($(‘html’).hasClass(‘s2’)) {
_hashTop = 870;
}
if ($(‘html’).hasClass(‘s1’)) {
_hashTop = 900;
}
}
if (_hash == ‘epic-8k-video-snap’) {
_h = $(‘.m_content-pro_video’).offset().top;
if ($(‘html’).hasClass(‘s34’)) {
_hashTop = 1520;
}
if ($(‘html’).hasClass(‘s2’)) {
_hashTop = 1370;
}
if ($(‘html’).hasClass(‘s1’)) {
_hashTop = 1900;
}
}
if (_hash == ‘high-resolution-camera’) {
_h = $(‘.m_content-camera’).offset().top;
if ($(‘html’).hasClass(‘s34’)) {
_hashTop = 500;
}
if ($(‘html’).hasClass(‘s2’)) {
_hashTop = 500;
}
if ($(‘html’).hasClass(‘s1’)) {
_hashTop = 550;
}
}
if (_hash == ‘s-pen’) {
_h = $(‘.m_content-spen’).offset().top;
if ($(‘html’).hasClass(‘s2’)) {
_hashTop = -60;
}
if ($(‘html’).hasClass(‘s1’)) {
_hashTop = -60;
}
}
if (_hash == ‘accessories’) {
_h = $(‘.m_content-acc’).offset().top;
if ($(‘html’).hasClass(‘s2’)) {
_hashTop = -60;
}
if ($(‘html’).hasClass(‘s1’)) {
_hashTop = -60;
}
}
if (_hash == ‘screen-mirror’) {
_h = $(‘.m_feature-ecosystem’).offset().top;
if ($(‘html’).hasClass(‘s34’)) {
_hashTop = 500;
}
}
if (_hash == ‘big-screen-chat’) {
_h = $(‘.m_feature-interactive’).offset().top;
if ($(‘html’).hasClass(‘s34’)) {
_hashTop = 2300;
}
if ($(‘html’).hasClass(‘s2’)) {
_hashTop = 40;
}
if ($(‘html’).hasClass(‘s1’)) {
_hashTop = 0;
}
}
if (_hash == ‘motion-mirror’) {
_h = $(‘.m_feature-interactive’).offset().top;
if ($(‘html’).hasClass(‘s34’)) {
_hashTop = 3450;
}
if ($(‘html’).hasClass(‘s2’)) {
_hashTop = 1200;
}
if ($(‘html’).hasClass(‘s1’)) {
_hashTop = 680;
}
}
if (_hash == ‘hi-res-108mp’) {
if ($(‘html’).hasClass(‘s1’)) {
_hashTop = 2000;
} else if ($(‘html’).hasClass(‘s2’)) {
_hashTop = $(window).height();
} else {
_hashTop = $(window).height() / 4;
}
}
}
GALAXY.setSmoothScrollTop(_h + parseInt(_hashTop), 300);
$(‘#’ + _hash).attr({
‘tabindex’: ‘0’
}).focus().blur().removeAttr(‘tabindex’);
}, 1000);
}
GALAXY.load(hashScroll);
window.addEventListener(‘hashchange’, function () {
hashScroll();
});
;
var portraitTouchChk = false;
var portraitsSlide = function () {
var $sectionPortraits = $(‘.m_content-portraits’);
var $portraitsSlide = $sectionPortraits.find(‘.portraits-slide’);
var $portraitsSlidePaging = $sectionPortraits.find(‘.portraits-paging .inner’);
var idx = 0;
$portraitsSlide.find(‘li’).each(function (i) {
var thisBtnName = $(this).data(‘btn-name’);
var thisBtnTitle = $(this).data(‘btn-title’);
var thisBtnOmni = $(this).data(‘btn-omni’);
$portraitsSlidePaging.append(” + thisBtnName + ”);
});
$portraitsSlide.find(‘li’).css(‘display’, ‘none’);
$portraitsSlide.find(‘li’).eq(0).css({
‘opacity’: 1,
‘z-index’: 1,
‘display’: ‘block’
}).addClass(‘on’);
$portraitsSlidePaging.find(‘a’).eq(0).addClass(‘on’);
var portraitsSelectedTxt = $sectionPortraits.find(‘.portraits-slide-wrap’).data(
‘btn-title’);
$(‘.portraits-paging .inner a’).each(function () {
$(this).attr(‘title’, ”);
});
$sectionPortraits.find(‘.txt’).text($portraitsSlide.find(‘li’).eq(0).find(‘figcaption’)
.text());
$(‘.portraits-paging .inner a.on’).attr(‘title’, portraitsSelectedTxt);
$portraitsSlidePaging.find(‘a’).on(‘click’, function () {
idx = $(this).index();
portraitsFade(idx);
if (!$(‘html’).hasClass(‘dotcom’)) GALAXY.omniture($portraitsSlide.find(
‘li’).eq(idx).data(‘btn-omni’));
return false;
});
var portraitsFade = function (idx) {
$portraitsSlidePaging.find(‘a’).not(idx).removeClass(‘on’);
$portraitsSlidePaging.find(‘a’).eq(idx).addClass(‘on’);
$portraitsSlide.find(‘li’).not(idx).removeClass(‘on’).css(‘zIndex’, 0);
$portraitsSlide.find(‘li’).eq(idx).addClass(‘on’).css({
‘zIndex’: 1,
‘display’: ‘block’
}).animate({
‘opacity’: 1
}, 300, function () {
$portraitsSlide.find(‘li’).not(‘.on’).css({
‘opacity’: 0,
‘display’: ‘none’
});
var prevIdx = idx;
var nextIdx = idx;
(prevIdx == 0) ? prevIdx = $portraitsSlide.find(‘li’).length – 1:
prevIdx–;
(nextIdx == $portraitsSlide.find(‘li’).length – 1) ? nextIdx = 0:
nextIdx++;
$(‘.portraits-paging a’).each(function () {
$(this).attr(‘title’, ”);
});
$(‘.portraits-paging a.on’).attr(‘title’, portraitsSelectedTxt);
$sectionPortraits.find(‘.txt’).text($portraitsSlide.find(‘li’).eq(
idx).find(‘figcaption’).text());
});
}
$sectionPortraits.find(‘.portraits-slide-wrap’).off(‘touchstart’).on(‘touchstart’,
function (e) {
__prevPageX = e.pageX;
__prevPageY = e.pageY;
if (e.type == ‘touchstart’) {
__prevPageX = e.originalEvent.touches[0].pageX;
__prevPageY = e.originalEvent.touches[0].pageY;
}
if (!$.browser.mobile) {
e.preventDefault();
}
portraitTouchChk = true;
});
$sectionPortraits.find(‘.portraits-slide-wrap’).bind(‘touchmove’, function (e) {
var __afterPageX = e.pageX;
var __afterPageY = e.pageY;
if (portraitTouchChk) {
if (e.type == ‘touchmove’) {
__afterPageX = e.originalEvent.touches[0].pageX;
__afterPageY = e.originalEvent.touches[0].pageY;
}
}
__movePoint = __afterPageX – __prevPageX;
__movePointy = __afterPageY – __prevPageY;
if (Math.abs(__movePoint) > Math.abs(__movePointy)) {
__movedirection = ‘x’;
} else {
__movedirection = ‘y’
}
if ((__movedirection == ‘x’) && ($.browser.mobile)) {
e.preventDefault();
}
});
$sectionPortraits.find(‘.portraits-slide-wrap’).bind(‘touchend’, function (e) {
__movePointyModify = Math.abs(__movePointy);
if ((__movedirection == ‘x’) && (Math.abs(__movePoint) > 30)) {
var curList = $sectionPortraits.find(‘.portraits-slide’).find(‘li.on’)
.index();
if (__movePoint > 30) {
(idx == 0) ? idx = $portraitsSlide.find(‘li’).length – 1: idx–;
} else if (__movePoint 2) {
bgImgSrc =
‘//images.samsung.com/in/smartphones/galaxy-s21-ultra-5g/images/galaxy-s21-ultra-5g_highlights_night_mode_off.jpg’;
InImgSrc =
‘//images.samsung.com/in/smartphones/galaxy-s21-ultra-5g/images/galaxy-s21-ultra-5g_highlights_night_mode_on.jpg’;
} else {
bgImgSrc =
‘//images.samsung.com/in/smartphones/galaxy-s21-ultra-5g/images/galaxy-s21-ultra-5g_highlights_night_mode_off_m.jpg’;
InImgSrc =
‘//images.samsung.com/in/smartphones/galaxy-s21-ultra-5g/images/galaxy-s21-ultra-5g_highlights_night_mode_on_m.jpg’;
}
var nightModeOptions = {
moveNode: $nightModeSticky,
svgSrc: ‘//images.samsung.com/in/smartphones/galaxy-s21-ultra-5g/images/galaxy-s21-ultra-5g_highlights_night_mode_circle.svg’,
bgImgSrc: bgImgSrc,
maskInImgSrc: InImgSrc,
maskImgY: ‘top’,
viewW: 100,
viewH: 100,
minScale: ‘0’,
maxScale: ‘5’,
originX: ’35’,
originY: ’20’,
alignX: ‘center’,
alignY: ‘bottom’,
bgColor: ‘transparent’,
motionType: ‘s’,
blandingMode: ‘source-in’
};
nightMaskMotion = new Fave.svgMask($nightModeSticky.find(
‘.canvas-night_mode’), nightModeOptions);
nightMaskMotion.init();
};
var _sticky = function () {
var $summaryTitle = $nightWrap.find(‘.m_feature-header’);
var $innerTitle = $nightWrap.find(‘.f_header-type1’);
$nightWrap.find(‘.sticky-wrap’).faveSticky({
top: ‘auto’,
on: function () {
nightmodeMaskLoad = true;
_maskInit();
},
onScroll: function (per, scr) {
var _this = $(this).data(‘faveSticky’),
_moveArea = _this.moveArea(),
_step1Move = _moveArea * 0.5,
_step2Move = _moveArea * 0.5,
step1 = Math.min(1, scr / _step1Move),
step2 = Math.min(1, (scr – _step1Move) /
_step2Move);
step1 = Math.min(1, Math.max(0, step1));
step2 = Math.min(1, Math.max(0, step2));
if (step1 = 1920) _winW = 1920;
if ($html.hasClass(‘s34’)) {
_moveCropImgW = 1354;
_defaultZoomImgW = 736;
_moveZoomImgW = 1380;
_defaultZoomImgH = 414;
_moveZoomImgH = 780;
}
if ($html.hasClass(‘s2’)) {
_moveCropImgW = 1158;
_defaultZoomImgW = 329;
_moveZoomImgW = 480;
_defaultZoomImgH = 509;
_moveZoomImgH = 740;
}
if ($html.hasClass(‘s1’)) {
_moveCropImgW = 766;
_defaultZoomImgW = 218;
_moveZoomImgW = 310;
_defaultZoomImgH = 337;
_moveZoomImgH = 480;
}
var _step1Move = _moveArea * 0.5;
var _maskTop = ($(window).height() 2 && !$html.hasClass(‘s1’)){
GALAXY.setScrollTop( $(‘.nav-inner’).offset().top + $(‘.nav-inner’).height()/2- GALAXY.areaHeight/2);
}else if(GALAXY.sizeMode == 1 && !$html.hasClass(‘landscape’)){
GALAXY.setScrollTop( $(‘#wrap’).offset().top);
}
}
});
if($html.hasClass(‘ie’)){
$(‘.m_feature-youtube .youtube-slide .youtube-video li .thumb a’).on(‘focus’,function(){
$(‘.m_feature-youtube .youtube-slide .youtube-video’).addClass(‘position-set’);
});
}
});
GALAXY.resize(function(){
$html.removeClass(‘static-check’);
if($html.hasClass(‘landscape’)){
$(‘.landscape-cont’).parent().each(function(){
var _this = $(this);
_this.find(‘.sticky-wrap’).attr({‘aria-hidden’:true});
})
}else{
$(‘.landscape-cont’).parent().each(function(){
var _this = $(this);
_this.find(‘.sticky-wrap’).removeAttr(‘aria-hidden’)
})
}
if($html.hasClass(‘desktop’) && GALAXY.sizeMode !== 1){
if(window.innerHeight
//
GALAXY.initialize();
})
});