Product Description
year.
Welcome to a new age of intelligence
ExpressConnect
Experience seamless Wi-Fi. ExpressConnect automatically joins the strongest access points1in the office and prioritizes bandwidth for conferencing applications, wherever you work.
ExpressResponse2
With Intel®Adaptix™ Technology, prioritize your most important apps, so they open faster and perform better.
ExpressCharge3
Dell Optimizer extends runtime and improves battery performance by adapting to your patterns and charging up to 80% in an hour.
Intelligent Audio
Collaborate like you’re in the same room. Intelligent Audio enhances your audio quality and reduces background noises, so you can hear and be heard, creating a better conference experience for all.
Essential features for any business
Fast performance:Up to 11th Gen Intel®Core™ i7 processors offer businesses the performance, manageability, built-in security features and stability of Intel®and align to a future-proof roadmap. Download and smoothly run graphic-intensive applications with optional NVIDIA MX450. Connect anywhere:Seamlessly work on the go. Intel®Wi-Fi 6 capability provides reliable connectivity, fast speeds and next-gen security to PCs and wireless networks. Ports for any purpose:Compatible with more monitors and accessories, with a full range of available ports, including USB 3.2 Gen2x2 Type-C™ port and legacy ports like HDMI and RJ45. Start quickly:Start up instantly with a fingerprint reader built into the power button. Power through:Drive efficiency with low-density, 3C and 4C battery pack options.
Modern design to boost productivity
Stunningly designed:Our Latitude 3520 is smaller, thinner, and lighter, with a new darker finish, polished sidewalls and thin bezel. Upgraded keyboard:The larger edge-to-edge keyboard, keycaps and 10% larger touchpad make typing and navigation easier than ever. Enhanced display:Gain a brighter view with 250 nit Full HD display panels. Privacy shutter:Available with a mechanical privacy camera shutter for added security.4 Our commitment to sustainability:Our systems are EPEAT Gold Certified5ensuring Latitude is a purchase you can feel good about. Plus, choosing Energy Star compliant systems not only saves you money, but also reduces emissions associated with electricity production.
Modernize your experience with Dell Technologies Unified Workspace.
Dell Technologies Unified Workspaceis the gold standard approach to helping you achieve a modernized endpoint environment and deliver an optimized end user experience. Dell'ssoftware and services solutions integrate with current endpoint environments and provide enhanced efficiencies, actionable insights and an optimized experience across deployment, security, management and support.
Gains from implementing Dell Technologies Unified Workspace offset hardware and IT costs6
Ports & Slots
1. Optional uSim card tray | 2. uSD 3.0 card reader slot | 3. Audio jack | 4. USB 2.0 | 5. USB 3.2 Gen 1 Type-A port | 6. RJ-45 with status LED | 7. Wedge-shaped lock slot | 8. Power-in, 4.5mm barrel with status LED | 9. HDMI 1.4 | 10. USB 3.2 Gen 1 Type-A port | 11. USB 3.2 Gen 2x2 Type-C™ port with DisplayPort Alt mode
Dimensions & Weight
1. Height: 18.06mm (0.71") | 2. Width: 361mm (14.2") | 3. Depth: 240.9mm (9.5") | Starting weight: 1.79kg (3.95lb)9
Specs
Processor
- 10th Generation Intel®Core™ i3-1005G1 (4 MB Cache, 2 Core, 4 Threads, 2.40 GHz to 3.40 GHz, 15 W)
11th Generation Intel®Celeron®6305U (4 MB Cache, 2 Core, 2 Threads, 1.80 GHz, 15 W)
11th Generation Intel®Core™ i3-1115G4 (6 MB Cache, 2 Core, 4 Threads, 3.0 GHz to 4.10 GHz, 15 W)
11th Generation Intel®Core™ i5-1135G7 (8 MB Cache, 4 Core, 8 Threads, 2.40 GHz to 4.20 GHz, 15 W)
11th Generation Intel®Core™ i5-1145G7 (8 MB Cache, 4 Core, 8 Threads, 2.60 GHz to 4.40 GHz, 15 W)
11th Generation Intel®Core™ i7-1165G7 (12 MB Cache, 4 Core, 8 Threads, 2.80 GHz to 4.70 GHz, 15 W)
Operating System (Dell recommends Windows 10 Pro for business.)
- Windows 10 Pro, 64-bit
Windows 10 Home, 64-bit
Ubuntu®Linux®20.04 LTS, 64-bit
Kylin Linux version 10
Video Card
- Integrated:
Intel®UHD Graphics
Intel®Iris®Xe GraphicsDiscrete:
NVIDIA®GeForce®MX450, 2 GB GDDR5
Display
- 15.6-inch, HD 1366 x 768, 60 Hz, anti-glare, non-touch, 45% NTSC, 220 nits, twisted nematic
15.6-inch, FHD 1920 x 1080, 60 Hz, anti-glare, non-touch, 45% NTSC, 250 nits, wide-viewing angle
15.6-inch, FHD 1920 x 1080, 60 Hz, anti-glare, touch, 45% NTSC, 250 nits, wide-viewing angle
Memory10
- 4 GB, 1 x 4 GB, DDR4, 3200 MHz
8 GB, 1 x 8 GB, DDR4, 3200 MHz
8 GB, 2 x 4 GB, DDR4, 3200 MHz
16 GB, 1 x 16 GB, DDR4, 3200 MHz
16 GB, 2 x 8 GB, DDR4, 3200 MHz
32 GB, 2 x 16 GB, DDR4, 3200 MHz
Hard Drive
- 2.5-inch, 1 TB, 5400 RPM, SATA, HDD
2.5-inch, 500 GB, 7200 RPM, SATA, HDD
M.2 2230, 128 GB, PCIe NVMe Gen3 x4, Class 35 SSD
M.2 2230, 256 GB, PCIe NVMe Gen3 x4, Class 35 SSD
M.2 2230, 512 GB, PCIe NVMe Gen3 x4, Class 35 SSD
M.2 2280, 256 GB, PCIe NVMe Gen3 x4, Class 40 SSD
M.2 2280, 512 GB, PCIe NVMe Gen3 x4, Class 40 SSD
M.2 2280, 1 TB, PCIe NVMe Gen3 x4, Class 40 SSD
M.2 2280, 512 GB, PCIe NVMe Gen3 x4, Intel®Optane™ Storage
Color
- Black
Microsoft Office
- Microsoft Office 30-day trial
Microsoft Office Home and Business 2019
Microsoft Office Professional 2019
Security Software
- McAfee®Small Business Security 30-day free trial
McAfee®Small Business Security 12-month subscription
McAfee®Small Business Security 36-month subscription
Intel®Identity Protection Technology
Intel®Platform Trust Technology(PTT) - China only
Intel®Boot Guard
Intel®Software Guard(SGX) - ICL only
Warranty
- 1 year hardware warranty with on-site/in-home service after remote diagnosis
3 years hardware warranty with on-site/in-home service after remote diagnosis
1 year ProSupport with Next Business Day on-site Service
3 years ProSupport with Next Business Day on-site service
4 years ProSupport with Next Business Day on-site service
5 years ProSupport with Next Business Day on-site service
1 year ProSupport Plus with Next Business Day on-site service
3 years ProSupport Plus with Next Business Day on-site service
3 years ProSupport Plus with Next Business Day on-site service
3 years ProSupport Plus with Next Business Day on-site service
Accidental Damage Protection
- 3 years Accidental Damage Service
4 years Accidental Damage Service
5 years Accidental Damage Service
Keyboard
- Black, English US, backlit keyboard with optional fingerprint reader
Black, English UK, backlit keyboard with optional fingerprint reader
Black, Japanese, backlit keyboard with optional fingerprint reader
Black, English US, non-backlit keyboard with optional fingerprint reader
Black, English UK, non-backlit keyboard with optional fingerprint reader
Black, Japanese, non-backlit keyboard with optional fingerprint reader
Ports
- 1 USB 3.2 Gen 2x2 Type-C port with DisplayPort alt mode/Power Delivery
2 USB 3.2 Gen 1 Type-A port
1 USB 2.0 port
1 HDMI 1.4a port
1 RJ-45 Ethernet port
1 universal audio port
1 power adapter port
Optical Drive
- No Optical Drive
Slots
- 1 uSD 3.0 card slot
1 uSIM slot (WWAN only)
1 wedge-shaped lock slot
Dimensions& Weight
- Height: 18.06 mm (0.71") x Width: 361 mm (14.2") x Depth: 240.9 mm (9.5")
Starting Weight (Minimum): 1.79 kg (3.95 lb)11
Camera
- 720p at 30 fps HD camera, single integrated microphone
720p at 30 fps HD + IR camera, dual-array microphone
Audio and Speakers
- Stereo speakers with Realtek Audio Controller, 2W x 2 = 4 W
Primary Battery
- 3-cell, 41 WHr Polymer,ExpressCharge™, Integrated
4-cell, 54 WHr Polymer,ExpressCharge™, Integrated
year.
Welcome to a new age of intelligence
ExpressConnect
Experience seamless Wi-Fi. ExpressConnect automatically joins the strongest access points1in the office and prioritizes bandwidth for conferencing applications, wherever you work.
ExpressResponse2
With Intel®Adaptix™ Technology, prioritize your most important apps, so they open faster and perform better.
ExpressCharge3
Dell Optimizer extends runtime and improves battery performance by adapting to your patterns and charging up to 80% in an hour.
Intelligent Audio
Collaborate like you’re in the same room. Intelligent Audio enhances your audio quality and reduces background noises, so you can hear and be heard, creating a better conference experience for all.
Essential features for any business
Fast performance:Up to 11th Gen Intel®Core™ i7 processors offer businesses the performance, manageability, built-in security features and stability of Intel®and align to a future-proof roadmap. Download and smoothly run graphic-intensive applications with optional NVIDIA MX450. Connect anywhere:Seamlessly work on the go. Intel®Wi-Fi 6 capability provides reliable connectivity, fast speeds and next-gen security to PCs and wireless networks. Ports for any purpose:Compatible with more monitors and accessories, with a full range of available ports, including USB 3.2 Gen2x2 Type-C™ port and legacy ports like HDMI and RJ45. Start quickly:Start up instantly with a fingerprint reader built into the power button. Power through:Drive efficiency with low-density, 3C and 4C battery pack options.
Modern design to boost productivity
Stunningly designed:Our Latitude 3520 is smaller, thinner, and lighter, with a new darker finish, polished sidewalls and thin bezel. Upgraded keyboard:The larger edge-to-edge keyboard, keycaps and 10% larger touchpad make typing and navigation easier than ever. Enhanced display:Gain a brighter view with 250 nit Full HD display panels. Privacy shutter:Available with a mechanical privacy camera shutter for added security.4 Our commitment to sustainability:Our systems are EPEAT Gold Certified5ensuring Latitude is a purchase you can feel good about. Plus, choosing Energy Star compliant systems not only saves you money, but also reduces emissions associated with electricity production.
Modernize your experience with Dell Technologies Unified Workspace.
Dell Technologies Unified Workspaceis the gold standard approach to helping you achieve a modernized endpoint environment and deliver an optimized end user experience. Dell'ssoftware and services solutions integrate with current endpoint environments and provide enhanced efficiencies, actionable insights and an optimized experience across deployment, security, management and support.
Gains from implementing Dell Technologies Unified Workspace offset hardware and IT costs6
Ports & Slots
1. Optional uSim card tray | 2. uSD 3.0 card reader slot | 3. Audio jack | 4. USB 2.0 | 5. USB 3.2 Gen 1 Type-A port | 6. RJ-45 with status LED | 7. Wedge-shaped lock slot | 8. Power-in, 4.5mm barrel with status LED | 9. HDMI 1.4 | 10. USB 3.2 Gen 1 Type-A port | 11. USB 3.2 Gen 2x2 Type-C™ port with DisplayPort Alt mode
Dimensions & Weight
1. Height: 18.06mm (0.71") | 2. Width: 361mm (14.2") | 3. Depth: 240.9mm (9.5") | Starting weight: 1.79kg (3.95lb)9
0 Comments
- Login
- Homeshopping
Recommend
Reload
- Sort by Newest
- Newest
- Best
- Oldest
Something went wrong please try again
'; $.iModal({ checkHeight: false, data: str, onClose: function () { HsnComments.CloseModelPopup(); } }); HsnComments.EmptyCommentBox(); HsnComments.StopCommentPost(); }); */ $('.FormField.JSHidden').show(); HsnComments.MoveModelPopupToVisibleScreen(); HsnComments.loadComments(); HsnComments.updatePostButton(); }, updatePostButton: function() { var is_logged_in = parseInt($('.is_signed_in').val()); if(is_logged_in) { var customer_name = $('.login_for_comment .logged_in').html(); $('.comment_actions .post_comment').html("Post as "+customer_name); }else $('.comment_actions .post_comment').html("Login and Post"); }, showLoginRegisterForm: function () { // just open model if already present if($('.HsnCommentsLoginRegisterForms').length) { $('.HsnCommentsLoginRegisterForms').modal('show', {backdrop: 'static'}); }else { // show a modal dialog using ajax, this also creates a token on the server letting it know to expect a saved image in return // Getting quickview data var postData = ''; var actionUrl = config.ShopPath + '/hsncommentsroot.php?AjaxAction=showLoginRegisterForm'; $('#AjaxLoading').show(); $.ajax({ type: "POST", url: actionUrl, data: postData, success: function(response){ //response = response.replace(".live", ".on"); $('body').append(response); $('#ship_to_billing_new').closest('dd').hide(); $('#ship_to_billing_new').closest('dd').prev('dt').hide(); $('.billingButton').val('Submit'); $('.zone_field').show(); $('.HsnCommentsLoginRegisterForms').modal('show', {backdrop: 'static'}); $('#AjaxLoading').hide(); $('.country_field').trigger('change'); HsnComments.HideLoadingIndicators(); }, error: function() { HsnComments.HideLoadingIndicators(); } }); }/* if ($('#ModalContainer').length > 0) $.iModal.close(); $.iModal({ checkHeight: false, type: 'ajax', title: 'Login or Register an account', width: 500, url: config.ShopPath + '/hsncommentsroot.php?AjaxAction=showLoginRegisterForm', closeTxt: false, class: 'HsnCommentsLoginRegister', onAjaxError: function () { HsnComments.HideLoadingIndicators(); }, onShow: function () { $('#ModalContainer').removeClass('HsnCommentsModelContainer').addClass('HsnCommentsModelContainer') $('#NewBillingAddress').attr('onsubmit', 'HsnComments.RegisterAccount();return false;'); $('.billingButton').val('Create Account'); $('#ship_to_billing_new').parent().hide(); $('#LoginButton').val('Login'); $('.FormField.zone_field').show(); HsnComments.MoveModelPopupToVisibleScreen(); }, onClose: function () { HsnComments.CloseModelPopup(); } });*/ return false; }, Login: function () { $('#CheckoutLoginError').hide(); if ($('#LoginForm #login_email').val() == '') { HsnComments.DisplayError('Please Enter Email or Phone'); $('#LoginForm #login_email').focus(); return false; } if ($('#LoginForm #login_pass').val() == '') { HsnComments.DisplayError('Please Enter Password'); $('#LoginForm #login_pass').focus(); return false; } HsnComments.HideError(); HsnComments.ShowLoadingIndicator(); $.ajax({ url: config.ShopPath+'/remote.php', type: 'post', dataType: 'json', data: 'w=expressCheckoutLogin&isFastCart=1&' + $('#LoginForm').serialize(), success: function (response) { HsnComments.handleResponse(response); if (response.status) { HsnComments.ProcessCustomerLoggedIn(); if ($('#ModalContainer').length > 0) $.iModal.close(); $('.HsnCommentsLoginRegisterForms').modal('hide'); HsnComments.PostComment(); } } }); return false; }, PostComment: function (buttonClicked) { if (typeof buttonClicked == 'undefined') buttonClicked = $('button.post_comment.comment_to_post'); var comment_form = $(buttonClicked).closest('form.comment_box'); var comment_box = comment_form.find('textarea[name="comment_text"]'); if (!comment_box.val() || comment_box.val() == ' ' || comment_box.val() == '') { if($('.comment_to_post').length) { HsnComments.showMessage('', 'Please enter some text in comment box', 'Error', 'error'); comment_box.focus(); HsnComments.StopCommentPost(); } return false; } var comment_type = $('.comment_type').val(); var entity_id = $('.entity_id').val(); HsnComments.StopCommentPost(); HsnComments.StartCommentPost(buttonClicked); // Check If customer is logged in var is_logged_in = parseInt($('.is_signed_in').val()); // login/register customer and post comment if (!is_logged_in) { HsnComments.showLoginRegisterForm() return false; } // Get attached image files var total_images = comment_form.find('.dz-image img').length if (total_images > 0) { $('.files_to_be_uploaded').remove(); for (i = 0; i < total_images; i++) { current_image = comment_form.find('.dz-image img').eq(i); var hiddenInput = document.createElement('input'); $(hiddenInput).attr('type', 'hidden'); $(hiddenInput).attr('name', 'uploaded_files[]'); $(hiddenInput).val(current_image.attr('src')); $(hiddenInput).addClass('files_to_be_uploaded'); comment_form.append(hiddenInput); var hiddenInput1 = document.createElement('input'); $(hiddenInput1).attr('type', 'hidden'); $(hiddenInput1).attr('name', 'uploaded_file_names[]'); $(hiddenInput1).val(current_image.attr('alt')); $(hiddenInput1).addClass('files_to_be_uploaded'); comment_form.append(hiddenInput1); } } $.ajax({ url: '/hsncommentsroot.php', type: 'post', dataType: 'json', data: comment_form.serialize() + '&AjaxAction=postComment&comment_type=' + comment_type + '&entity_id=' + entity_id, success: function (response) { HsnComments.handleResponse(response); HsnComments.EmptyCommentBox(); HsnComments.StopCommentPost(); } }); }, loadComments: function (sort) { var comment_type = $('.comment_type').val(); var entity_id = $('.entity_id').val(); if(typeof sort == 'undefined') sort = 'Newest'; $.ajax({ url: '/hsncommentsroot.php', type: 'post', dataType: 'json', data: 'AjaxAction=loadComments&comment_type=' + comment_type + '&entity_id=' + entity_id + '&sort=' + sort, success: HsnComments.handleResponse }); }, updateVote: function (active_link, comment_id) { var vote_type = $(active_link).attr('data-type'); var comment_type = $('.comment_type').val(); var entity_id = $('.entity_id').val(); $.ajax({ url: '/hsncommentsroot.php', type: 'post', dataType: 'json', data: 'AjaxAction=updateVote&comment_id=' + comment_id + '&entity_id=' + entity_id + '&comment_type=' + comment_type + '&vote_type=' + vote_type, success: function (response) { HsnComments.handleResponse(response); if (response.status) { $(active_link).parent().find('span.count').html(response.totalVotes) } } }); return false; }, recommendDiscussion: function () { var comment_type = $('.comment_type').val(); var entity_id = $('.entity_id').val(); $.ajax({ url: '/hsncommentsroot.php', type: 'post', dataType: 'json', data: 'AjaxAction=recommendDiscussion&entity_id=' + entity_id + '&comment_type=' + comment_type, success: function (response) { HsnComments.handleResponse(response); if (response.status) { if (parseInt(response.totalRecommended)) { $('.total_recommended').html(response.totalRecommended).show(); $('.recommend_text').html('Recommended'); } else { $('.total_recommended').hide(); $('.recommend_text').html('Recommend'); } } } }); return false; }, handleResponse: function (response) { HsnComments.HideLoadingIndicators(); HsnComments.HideError(); if (response.hasOwnProperty('LoggedIn') && !response.LoggedIn) { $('.is_signed_in').val(0); } if (!response.hasOwnProperty('commentsLoaded') || !response.commentsLoaded) $('.error_messages_container .comment_alert').removeClass('succecommentsLoaded').hide(); if (response.status == 0) { if (response.errorContainer) { var errorMessage = response.errorMessage if (errorMessage.indexOf('click here to create a new account') != -1) { errorMessage = errorMessage.substring(0, errorMessage.lastIndexOf(' or ')) + '.'; } HsnComments.DisplayError(errorMessage); } else if (response.changeStep == 'BillingAddress') { HsnComments.DisplayError(response.errorMessage); } else { HsnComments.showMessage('', response.errorMessage, 'Some error(s) occured', 'error'); } HsnComments.MoveModelPopupToVisibleScreen(); } else { if (typeof response.updateMessage != 'undefined') { HsnComments.showMessage('', response.updateMessage, response.updateTitle, response.messageType); } /* if($('#ModalContainer').length > 0) $.iModal.close(); if(!response.hasOwnProperty('donotreload') || (response.hasOwnProperty('donotreload') && !response.donotreload)) location.reload(); */ if (response.loadComments) HsnComments.loadComments(); if (response.hasOwnProperty('total_comments')) { $('.total_comments span').html(response.total_commetns) } if (response.hasOwnProperty('populateComments') && response.populateComments) { $('.comments_container').html(response.populateComments); // initiate tooltips /* $(window.document).tooltip({ items: ".in_reply_to span, .timepassed", content: function() { var element = $(this); return element.attr( "title" ); } }); */ $( ".in_reply_to span, .timepassed" ).tooltip({ show: { effect: "slideDown", delay: 250 } }); } } // Set focus to a particular field if (response.focus) { try { $(response.focus).focus().select(); } catch (e) { } } }, showMessage: function (container, message, alertTitle, message_type) { if(typeof message_type == 'undefined') message_type = 'update'; if (typeof alertTitle !== 'undefined' && alertTitle) { $('.comment_message_container').modal('hide'); $('.comment_message_container').remove(); var str = '
'; $('body').append(str); $('.comment_message_container').modal('show', {backdrop: 'static'}); HsnComments.MoveModelPopupToVisibleScreen(); } else { $(container).find('.message_text').html(message); $(container).slideDown('slow'); } }, ShowLoadingIndicator: function () {}, StartCommentPost: function (buttonClicked) { if (typeof(buttonClicked) == 'undefined') { buttonClicked = 0; } if (buttonClicked) { var button_text = $(buttonClicked).html(); $(buttonClicked).html('Posting...'); $(buttonClicked).attr('disabled', true); $(buttonClicked).attr('data-original_text', button_text); $(buttonClicked).addClass('comment_to_post'); } }, HideLoadingIndicators: function () { HideLoadingIndicator(); $('.LoadingIndicator').hide(); $('body').css('cursor', 'default'); }, StopCommentPost: function () { var buttonClicked = $('button.post_comment.comment_to_post'); buttonClicked.html(buttonClicked.attr('data-original_text')); buttonClicked.attr('disabled', false); var comment_form = buttonClicked.closest('form.comment_box'); var comment_box = comment_form.find('textarea[name="comment_text"]'); $('button.post_comment').removeClass('comment_to_post'); }, EmptyCommentBox: function() { var buttonClicked = $('button.post_comment.comment_to_post'); var comment_form = buttonClicked.closest('form.comment_box'); var comment_box = comment_form.find('textarea[name="comment_text"]'); comment_box.val('').focus(); }, ValidateNewAccount: function () { HsnComments.HideError(); var password, confirmPassword, formfield = FormField.GetValues(CustomCheckoutFormNewAccount); for (var i = 0; i < formfield.length; i++) { // Check email if (formfield[i].privateId == 'EmailAddress') { if (FastCartExpressCheckout.validateEmailAddress(formfield[i].value) == false) { HsnComments.DisplayError(lang.LoginEnterValidEmail); FormField.Focus(formfield[i].field); return false; } } if (formfield[i].privateId == 'Password') { if (!FastCartExpressCheckout.createAccount) { continue; } password = formfield[i]; } else if (formfield[i].privateId == 'ConfirmPassword') { if (!FastCartExpressCheckout.createAccount) { continue; } confirmPassword = formfield[i]; } var rtn = FormField.Validate(formfield[i].field); if (!rtn.status) { HsnComments.DisplayError(rtn.msg); FormField.Focus(formfield[i].field); return false; } } // Compare the passwords if (FastCartExpressCheckout.createAccount && password && password.value !== confirmPassword.value) { HsnComments.DisplayError(lang.AccountPasswordsDontMatch); FormField.Focus(confirmPassword.field); return false; } HsnComments.HideError(); return true; }, BuildAddressLine: function (type) { var fieldList = { 'FirstName': '', 'LastName': '', 'Company': '', 'AddressLine1': '', 'City': '', 'State': '', 'Zip': '', 'Country': '' }; if (type == 'billing') { var formId = CustomCheckoutFormBillingAddress; } else { var formId = CustomCheckoutFormShippingAddress; } var formfields = FormField.GetValues(formId); var addressLine = ''; for (var i = 0; i < formfields.length; i++) { fieldList[formfields[i].privateId] = formfields[i].value; } for (var i in fieldList) { var val = fieldList[i]; if (val !== '') { if (addressLine != '' && i != 'LastName') { addressLine += ', '; } else if (i == 'LastName') { addressLine += ' '; } addressLine += val; } } ; return addressLine; }, RegisterAccount: function () { // A new address will be sent for registration // If creating a new account, validate the account fields as well if (!HsnComments.ValidateNewAccount(true)) { return false; } if (!HsnComments.ValidateNewAddress('billing')) { return false; } addressType = 'new'; createAppend = '&createAccount=1'; // ISC-1214: no script issue in webkit browser, with serialized form submission $('noscript').remove(); $.ajax({ url: config.ShopPath + '/hsncommentsroot.php', type: 'post', dataType: 'json', data: 'AjaxAction=RegisterAccount&' + $('#NewBillingAddress').serialize() + '&BillingAddressType=' + addressType + createAppend, success: function (response) { HsnComments.handleResponse(response); // account has been registerd and customer is logged in if (response.status && response.account_registered) { $('input.is_signed_in').val('1'); $('.hsn_comments .row4').remove(); $('.hsn_comments .login_for_comment').html(); if ($('#ModalContainer').length > 0) $.iModal.close(); HsnComments.ProcessCustomerLoggedIn(); HsnComments.PostComment(); } } }); return false; }, ValidateNewAddress: function (lowerType, resultOnly) { if (resultOnly !== true) { resultOnly = false; } if (lowerType == 'billing') { var formId = CustomCheckoutFormBillingAddress; } else { var formId = CustomCheckoutFormShippingAddress; } var formfields = FormField.GetValues(formId); var hasErrors = false; for (var i = 0; i < formfields.length; i++) { var rtn = FormField.Validate(formfields[i].field); if (!rtn.status) { if (!resultOnly) { HsnComments.DisplayError(rtn.msg); } FormField.Focus(formfields[i].field); hasErrors = true; return false; } } if (hasErrors == true) { return false; } else { return true; } }, validateEmailAddress: function (email) { if (email.indexOf('@') == -1 || email.indexOf('.') == -1) { return false; } return true; }, ValidateAddresses: function () { var state = $('.BillingDetails .city_state_zip .state').html(); var phone = $('.BillingDetails .phone').html(); var address = $('.BillingDetails .address_lines').html(); if (!state.trim() || !phone.trim() || !address.trim()) { HsnComments.DisplayError('Invalid Billing address supplied. please update billing address'); return false; } var state = $('.ShippingDetails .city_state_zip .state').html(); var phone = $('.ShippingDetails .phone').html(); var address = $('.ShippingDetails .address_lines').html(); if (!state.trim() || !phone.trim() || !address.trim()) { HsnComments.DisplayError('Invalid Shipping address supplied. please update shipping address'); return false; } HsnComments.HideError(); return true; }, DisplayError: function (message) { if (typeof message === undefined) message = "Something went wrong, Please try again."; $('.ErrorMessage.hsn_comments_error').remove(); var error_container = document.createElement('div'); $(error_container).addClass('ErrorMessage hsn_comments_error'); $(error_container).html(message); $('#HsnCommentsLoginRegisterContainer').before(error_container); }, HideError: function () { $('.hsn_comments_error').remove(); }, ShowReplyBox: function (activeLink) { $(activeLink).closest('.hsn_comment').find('.comment_reply').eq(0).slideToggle('slow'); return false; }, TextAreaFocused: function (element) { var jqElement = $(element); jqElement.next().next().show(); jqElement.parent().find('.comment_text_placeholder').remove(); jqElement.css('border-bottom', 'inherit'); jqElement.css('border-bottom', 'inherit'); jqElement.css('border-bottom-right-radius', '0'); jqElement.css('border-bottom-left-radius', '0'); if(parseInt($('input.is_signed_in').val())) { $('.hsn_comments .row4').remove(); }else { jqElement.parent().parent().parent().next('.row4').show(); jqElement.parent().parent().parent().find('.row4').show(); } }, TextAreaBlurt: function (element) { var jqElement = $(element); if(jqElement.val() == '' || jqElement.val() == ' ') jqElement.parent().prepend(''+jqElement.attr('data-placeholder')+'') }, InitiateDropZone: function(element){ // Check for dropzone var files_upload_area = $(element).parent().parent().find('.files_upload_area'); files_upload_area.show(); if (!files_upload_area.hasClass('dz-clickable')) { dropzoneid = files_upload_area.attr('id');// console.log('Applying dropzone'); var myDropzoneTheFirst = new Dropzone( '#' + dropzoneid, //id of drop zone element { url: 'https://homeshopping.pk/hsncommentsroot.php?AjaxAction=attachCommentPicture&zone=' + dropzoneid, maxFilesize: 2, // MB dictDefaultMessage: 'Drop/click here to attach file(s)', maxFiles: 5, addRemoveLinks: true, acceptedFiles: '.jpeg,.jpg,.png,.gif',// thumbnailWidth: 150,// thumbnailHeight: 60, previewsContainer: '.previewsContainer', dictRemoveFile: 'X', dictCancelUpload: 'Cancel', accept: function (file, done) {// console.log(file); done(); }, success: function (settings, response) {// console.log(response); }, init: function () { var thisDropZone = this; /* $.get('https://homeshopping.pk/hsncommentsroot.php?AjaxAction=getAttachments', function (data) { console.log('Get Picture'); console.log(data); if (typeof data.files !== undefined) { $.each(data.files, function (key, value) { var file = {serverId: value.name, size: value.size}; thisDropZone.options.addedfile.call(thisDropZone, file); thisDropZone.options.thumbnail.call(thisDropZone, file, data.img_dir + "/" + value.name); }); if (data.fb_image) { var file = {serverId: 'FacebookProfilePicture', size: '2'}; thisDropZone.options.addedfile.call(thisDropZone, file); thisDropZone.options.thumbnail.call(thisDropZone, file, data.file_url); } $('.dz-success-mark, .dz-error-mark, .dz-filename, .dz-size').remove() } }); */ this.on("success", function (file, serverFileName) {// fileList[i] = {"serverFileName" : serverFileName, "fileName" : file.name,"fileId" : i };// i++;// console.log('File detail');// console.log(file);// console.log(serverFileName); }); this.on("addedfile", function (file) { $('.dz-success-mark, .dz-error-mark, .dz-filename, .dz-size').remove() $('.previewsContainer').find('.clearDive').remove(); $('.previewsContainer').append('
'); }); this.on("error", function (file, message) {// console.log('invalid file')// console.log(file) if (!file.accepted) thisDropZone.removeFile(file); alert('Error: ' + message); }); } } ); } files_upload_area.trigger('click'); }, FbLogin: function() { FBLogin('fb_success_function=HsnCommentsFbLoggedIn&form_cancel_function=HsnComments.CloseModelPopup();'); }, MoveModelPopupToVisibleScreen: function() { //$("#ModalContainer").css('position', 'absolute'); //$("#ModalContainer").css('top', ($(document).scrollTop()+50)+"px"); }, ProcessCustomerLoggedIn: function() { $('.is_signed_in').val(1); $('.hsn_comments .row4').remove(); $('.hsn_comments .login_for_comment').html(); // Get and populate customer name $.ajax({ url: '/hsncommentsroot.php', type: 'post', dataType: 'json', data: 'AjaxAction=GetCustomerInformation', success: function (response) { if(response.customer_name) { $('.login_for_comment').html(response.customer_name) HsnComments.updatePostButton(); } // Also update picture $('.comment_profile_image').eq(0).find('img').attr('src',response.CustomerImage); } }); }, CloseModelPopup: function(){ HsnComments.HideLoadingIndicators(); HsnComments.HideError(); HsnComments.EmptyCommentBox(); HsnComments.StopCommentPost(); $('.HsnCommentsLoginRegisterForms').modal('hide'); }, CollapseExpand: function(element){ var comment_id = $(element).attr('data-cid'); if($(element).hasClass('collapsed')) { // This content is collasped open it $('.comment_'+comment_id+' > .comment_replies_container').show(); $('.comment_'+comment_id+' > .comment_details_container > .post-body > .post-body-inner').show(); $('.comment_'+comment_id+' > .comment_details_container > .post-body > footer').show(); $(element).removeClass('collapsed'); $(element).html('_') $(element).css('top', '-24px') }else { // This content is expanded collapse it $('.comment_'+comment_id+' > .comment_replies_container').hide(); $('.comment_'+comment_id+' > .comment_details_container > .post-body > .post-body-inner').hide(); $('.comment_'+comment_id+' > .comment_details_container > .post-body > footer').hide(); $(element).addClass('collapsed'); $(element).html('+') $(element).css('top', '-14px') } }, ReportComment: function(element){ } }; $('body').on('click', '.comment_text_placeholder', function(){ $(this).next('textarea').focus(); }); function HsnCommentsFbLoggedIn(){// console.log('Facebook login passed'); HsnComments.ProcessCustomerLoggedIn(); if ($('#ModalContainer').length > 0) $.iModal.close(); HsnComments.PostComment(); } function text_area_auto_height(e) {// console.log($(e).val()) if(!$(e).val()) $(e).css({'height':'inherit'}) else $(e).css({'height':'auto','overflow-y':'hidden'}).height((e.scrollHeight)-16); } var CustomCheckoutFormNewAccount = '1'; var CustomCheckoutFormBillingAddress = '2'; var CustomCheckoutFormShippingAddress = '3'; lang.LoginEnterValidEmail = "Please type in a valid email address, such as joe@aol.com"; lang.LoginEnterPassword = "Please type in your password."; lang.AccountEnterPassword = "Please type in a password."; lang.AccountPasswordsDontMatch = "Your passwords don't match."; lang.AccountEnterFirstName = "Please type in your first name."; lang.AccountEnterLastName = "Please type in your last name."; lang.EnterShippingFirstName = 'Please type in your first name.'; lang.EnterShippingLastName = 'Please type in your last name.'; lang.EnterShippingAddress = "Please type in an address."; lang.EnterShippingCity = "Please type in your suburb/city."; lang.ChooseShippingCountry = "Please choose your country."; lang.ChooseShippingState = "Please choose a state/province."; lang.EnterShippingZip = "Please type in your zip/postcode."; lang.ExpressCheckoutStepBillingAddress = "Billing Details"; lang.ExpressCheckoutStepBillingAccountDetails = "Billing & Account Details"; lang.ExpressCheckoutLoadError = "There was an error loading this step of the checkout. Please try again."; lang.ExpressCheckoutCheckingOutAsGuest = "Checking out as a guest"; lang.ExpressCheckoutCreatingAnAccount = "Creating an account"; lang.ExpressCheckoutChooseBilling = "Please select the address you'd like to use as your billing address for this order."; lang.ExpressCheckoutChooseShipping = "Please select the address you'd like to use as your shipping address for this order."; lang.ExpressCheckoutChooseShipper = "Please select the shipping method you'd like to use for your order."; lang.ExpressCheckoutFor = "for"; lang.ExpressCheckoutLoading = "Loading..."; lang.ShippingMethodCombined = "Multiple Shipping Methods"; lang.EnterShippingPhone = "Please enter your phone number." lang.EnterCouponCode = "Please enter your coupon code."; lang.BillAndShipToAddress = "Bill & Ship to this Address"; lang.BillToThisAddress = "Bill to this address"; lang.ShipToThisAddress = "Ship to this address"; lang.CheckingOutAs = "Checking Out As"; lang.EnterCouponCode = "Please enter your coupon code."; lang.InvalidQuantity = "Please enter a valid product quantity."; lang.Calculating = "Estimating..." lang.CalculateShipping = "Estimate Shipping & Tax" lang.ChooseShippingMethod = "Please choose a shipping method." lang.CartRemoveConfirm = 'Are you sure you want to remove this item from your cart?'; lang.ConfirmRemoveGiftWrapping = 'Are you sure you want to remove the gift wrapping from this item?'; lang.SelectCountry = 'Please choose your country.'; lang.SelectState = 'Please choose a state/province.'; lang.EnterZip = 'Please type in your zip/postcode.'; $(function () { HsnComments.init(); $("body").on('click', ".hsn_comments .dropdown dt a", function () { $(this).parent().parent().find('dd ul').toggle() }); $(document).bind('click', function (e) { var $clicked = $(e.target); if (!$clicked.parents().hasClass("dropdown")) $(".hsn_comments .dropdown dd ul").hide(); }); $("body").on('click', ".hsn_comments .sort_by ul li a", function () { var sort_type = $(this).attr('data-sort_text'); $(this).parent().parent().parent().find('.fa-check').remove(); var i = document.createElement('i'); $(i).addClass('fa fa-check'); $(this).append(i); $('.SortText').html('Sort by '+sort_type); HsnComments.loadComments(sort_type); return false; }); $("body").on('click', ".hsn_comments a.share_links", function () { if($(this).hasClass('facebook_share')) { window.open( 'https://www.facebook.com/sharer/sharer.php?u='+encodeURIComponent(location.href), 'facebook-share-dialog', 'width=626,height=436'); } if($(this).hasClass('twitter_share')) { window.open( 'https://twitter.com/intent/tweet?via=homeshoppingpk&tw_p=tweetbutton&original_referer='+encodeURIComponent(location.href)+'&url='+encodeURIComponent(location.href)+'&ref_src=twsrc%5Etfw&text='+encodeURIComponent('DELL Latitude 15 3520 11th Gen i5-1135G7 2.4 Ghz, 8 GB, 256 GB SSD, 15.6" FHD Display , Intel IRIS XE Graphics , Numpad, FREE DOS - Black (1 Year DELL Local Warranty)'), 'twitter-share-dialog', 'width=626,height=436'); } return false; }); })