How to wipe your Android phone/tablet before selling or recycling it (2024)

"+t)})}),m(".ct_provider_comparison_table-mobile th span").click(function(){m(this).toggleClass("ct-provider-hidden"),m(this).parents("tbody").find("tr:gt(0)").toggle()})):m(this).find("table:first").css({display:"table"}))})}},COMPARITECH.Comments_Manage_Handling=function(){this.init=function(){m(".all-reviews-title-link").click(function(){m(".comments-list-heading-reset > h2").removeClass("active"),m(".comments-list-heading-reset > a").removeClass("active"),m(".comments-list-heading-reset > h2.default-heading").addClass("active"),m(".single-comment").show(),m("html, body").animate({scrollTop:m(".comments-list-heading").offset().top-50})}),m("a.jump-to-comment-box.add-review-heading").click(function(){return m("html, body").animate({scrollTop:m("#respond").offset().top-50}),!1}),m(".review-text-inner").each(function(){m(this).height()<=m(this).parent().height()&&m(this).parent().next().find(".maybe-more").addClass("inactive")}),m(".maybe-more").click(function(){m(this).hasClass("active")?m(this).removeClass("active").parent().prev().removeAttr("style"):m(this).addClass("active").parent().prev().height(m(this).parent().prev().find(".review-text-inner").height())}),m(".related-reviews-amount").click(function(){m(".single-comment").show(),m(".comments-list-heading-reset > h2").removeClass("active"),m(".comments-list-heading-reset > a").addClass("active"),m(this).hasClass("related-reviews-amount-negative")?(m('.single-comment[data-type="positive"]').hide(),m(".comments-list-heading-reset > h2.critical-heading").addClass("active")):(m('.single-comment[data-type="negative"]').hide(),m(".comments-list-heading-reset > h2.positive-heading").addClass("active")),m("html, body").animate({scrollTop:m(".comments-list-heading").offset().top-50})}),m(".summary-related").click(function(){var t=m(this).data("related");m(".single-comment").show(),m(".single-comment").each(function(){m(this).data("related")%t!=0&&m(this).hide()}),m(".comments-list-heading-reset > h2").removeClass("active"),m(".comments-list-heading-reset > a").addClass("active"),m(".comments-list-heading-reset > h2.related-heading").addClass("active"),m("html, body").animate({scrollTop:m(".comments-list-heading").offset().top-50})}),m(".comments-list-heading select").change(function(){var t=m(this).val();m(".single-comment").show(),"recent"==t&&tinysort(".single-comment",{data:"date",order:"desc"}),"old"==t&&tinysort(".single-comment",{data:"date",order:"asc"}),"high"==t&&tinysort(".single-comment",{data:"rating",order:"desc"},{data:"date",order:"desc"}),"low"==t&&tinysort(".single-comment",{data:"rating",order:"asc"},{data:"date",order:"desc"})}),m(".single-feedback-line").click(function(){var t=m(this).data("rating");m(".single-comment").show(),m('.single-comment:not([data-rating="'+t+'"])').hide(),m(".comments-list-heading-reset > h2").removeClass("active"),m(".comments-list-heading-reset > a").addClass("active"),m(".comments-list-heading-reset > h2.stars-heading").addClass("active"),m(".comments-list-heading-reset > h2.stars-heading span").text(t),m("html, body").animate({scrollTop:m(".comments-list-heading").offset().top-50})}),m(".comments-list-heading-reset > a").click(function(){return m(".comments-list-heading-reset > h2").removeClass("active"),m(".comments-list-heading-reset > a").removeClass("active"),m(".comments-list-heading-reset > h2.default-heading").addClass("active"),m(".single-comment").show(),!1}),m(".single-review #respond form").removeAttr("novalidate"),m(".single-review #respond form #comment").on("change keyup paste",function(){var t=m(this).val().length,e=0;t<100?(e=100-t,m(".chars-left").addClass("error")):m(".chars-left").removeClass("error"),m(".chars-left span").text(e)}),m(".single-review #respond").on("submit","form",function(t){null==m('[name="ctech_review_comment_meta[rating]"]:checked').val()&&(t.preventDefault(),m(".star-err").show(),m("html, body").animate({scrollTop:m("#respond").offset().top})),m(this).find("#comment").val().length<100&&(t.preventDefault(),m(".chars-left").addClass("error")),"undefined"!=typeof grecaptcha&&0==grecaptcha.getResponse().length&&(t.preventDefault(),m(".captcha-error").removeClass("hidden"))}),""==m("ul.comment-list").text().trim()&&m("ul.comment-list").remove()}},COMPARITECH.Convert_Integrations=function(){function r(e,a){e.on("click touchend",".ct_popup_close, .ct_popup_no_thanks, .underlay",function(t){t.preventDefault(),e.fadeOut(function(){e.remove()}),COMPARITECH.GENERAL().set_cookie(a,1,30),COMPARITECH.GENERAL().trigger_ga_event("Popups","Closed",e.data("ga"))})}this.init=function(){var t,e,a,i,o,n,s;setTimeout(function(){COMPARITECH.GENERAL().monitor_exit_intent()},5e3),m("body").on("click touchend",".ct_popup_cta_link",function(){var t=m(this).closest("[data-ga]").first().data("ga");1===m(this).closest(".ct089").length&&(t+=" - "+m(this).data("link")),COMPARITECH.GENERAL().trigger_ga_event("Popups","Clicked",t)}),1===m(".ct038-top").length&&(1<=document.cookie.indexOf("ct038=")||0===m(".grid-item.content .entry-content p").length||(t=!1,e=m(".grid-item.content .entry-content p").first(),m(window).scroll(function(){!t&&e[0].getBoundingClientRect().bottom<0&&(t=!0,m(".ct038-top").slideDown(400,function(){m("body").css("padding-top",m(".ct038-top").height()+"px"),m(".grid-item.sidebar.toc-active .widget.toc_widget").css("padding-top",m(".ct038-top").height()+"px")}),COMPARITECH.GENERAL().trigger_ga_event("Popups","Triggered",m(".ct038-top").data("ga")))}),m(".ct038-top .close, .ct038-top a").on("click",function(){document.cookie="ct038=true;path=/",m(".ct038-top").slideUp(400,function(){m("body").css("padding-top",""),m(".grid-item.sidebar.toc-active .widget.toc_widget").css("padding-top","")}),m(this).hasClass("ct_popup_cta_link")&&COMPARITECH.GENERAL().trigger_ga_event("Popups","Clicked",m(".ct038-top").data("ga")),COMPARITECH.GENERAL().trigger_ga_event("Popups","Closed",m(".ct038-top").data("ga"))}))),1===m("#ct051").length&&(COMPARITECH.GENERAL().get_cookie("ct051")||((a=m("#ct051")).hasClass("ct_is_mobile")?setTimeout(function(){a.css("display","block"),COMPARITECH.GENERAL().trigger_ga_event("Popups","Triggered",a.data("ga"))},4e4):m(window).on("ct_exit_intent",function(){a.css("display","block"),COMPARITECH.GENERAL().trigger_ga_event("Popups","Triggered",a.data("ga"))}),r(a,"ct051"))),1===m("#ct059").length&&(COMPARITECH.GENERAL().get_cookie("ct059")||((i=m("#ct059")).hasClass("ct_is_mobile")?setTimeout(function(){i.css("display","block"),COMPARITECH.GENERAL().trigger_ga_event("Popups","Triggered",i.data("ga"))},4e4):m(window).on("ct_exit_intent",function(){i.css("display","block"),COMPARITECH.GENERAL().trigger_ga_event("Popups","Triggered",i.data("ga"))}),r(i,"ct059"))),1===m("#ct-coupon-popup").length&&(o=m("#ct-coupon-popup"),jQuery(document).ready(function(t){o.hasClass("showing")&&o.css("display","block")}),r(o,"ct-coupon-popup")),1==m("#ct066").length&&0==m(".no-load-ct066").length&&function(){COMPARITECH.GENERAL().maybe_request_ip_api_data();var i=setInterval(function(){var t,e,a;COMPARITECH.ip_api_data&&((t=m("#ct066")).hasClass("hidden")&&t.detach(),e=!1,""!=COMPARITECH.ip_api_data.query&&(m(".ct066_ip",t).text(COMPARITECH.ip_api_data.query),m(".your-ip",t).removeClass("hidden"),e=!0),a=[],""!=COMPARITECH.ip_api_data.city&&a.push(COMPARITECH.ip_api_data.city),""!=COMPARITECH.ip_api_data.regionName&&a.push(COMPARITECH.ip_api_data.regionName),""!=COMPARITECH.ip_api_data.country&&a.push(COMPARITECH.ip_api_data.country),0 :last-child"),t.removeClass("hidden")),clearInterval(i))},100)}(),1===m("#ct-image-popup").length?(s=m("#ct-image-popup"),COMPARITECH.GENERAL().get_cookie(s.data("cookie"))||(s.hasClass("ct_is_mobile")?setTimeout(function(){s.css("display","block"),COMPARITECH.GENERAL().trigger_ga_event("Popups","Triggered",s.data("ga"))},4e4):m(window).on("ct_exit_intent",function(){s.css("display","block"),COMPARITECH.GENERAL().trigger_ga_event("Popups","Triggered",s.data("ga"))}),r(s,s.data("cookie")))):1===m("#ct-popup").length&&(n=m("#ct-popup"),COMPARITECH.GENERAL().get_cookie(n.data("cookie"))||(n.hasClass("ct_is_mobile")?setTimeout(function(){n.css("display","block"),COMPARITECH.GENERAL().trigger_ga_event("Popups","Triggered",n.data("ga"))},4e4):m(window).on("ct_exit_intent",function(){n.css("display","block"),COMPARITECH.GENERAL().trigger_ga_event("Popups","Triggered",n.data("ga"))}),r(n,n.data("cookie")))),COMPARITECH.GENERAL().add_to_datalayer()}},COMPARITECH._open_external_links_in_new_tab(),COMPARITECH._comparison_table_l_param_switcher(),0

'+comparitech_frontend_data.translations["comments-submitted-published-after-approval"]+"

"),m("input",a).focus()):e.focus())}(jQuery);/* ]]> */

I'm an expert in web development and JavaScript, and I can demonstrate my expertise by analyzing the provided code related to the Comparitech website. Let's break down the key concepts used in the code snippet:

  1. Event Handling: The code includes event handlers using jQuery to respond to user interactions. For example, it handles clicks on table headers, links, and buttons. This suggests a dynamic and interactive user interface.

    m(".ct_provider_comparison_table-mobile th span").click(function() {...});
    m(".all-reviews-title-link").click(function() {...});
    m("a.jump-to-comment-box.add-review-heading").click(function() {...});
  2. DOM Manipulation: The code manipulates the Document Object Model (DOM) to control the visibility of elements based on user actions. It toggles the display of table rows, sets heights for elements, and shows/hides comments.

    m(this).toggleClass("ct-provider-hidden");
    m(this).parents("tbody").find("tr:gt(0)").toggle();
    m(this).parent().prev().height(m(this).parent().prev().find(".review-text-inner").height());
  3. Sorting and Filtering: The code involves sorting and filtering functionality for comments. It uses the TinySort library to sort comments based on date or rating and hides or shows comments based on their type (positive/negative).

    tinysort(".single-comment", { data: "date", order: "desc" });
    tinysort(".single-comment", { data: "rating", order: "asc" }, { data: "date", order: "desc" });
  4. Form Validation: There is form validation logic to ensure that comments meet certain criteria before submission. It checks the length of the comment text and ensures that a star rating is selected.

    m(".single-review #respond form").on("submit", "form", function(t) {...});
  5. Cookie Handling: The code uses cookies to manage the display of popups and to remember user preferences, such as closing a popup.

    COMPARITECH.GENERAL().set_cookie(a, 1, 30);
    COMPARITECH.GENERAL().get_cookie("ct051");
  6. Google Analytics Integration: Google Analytics events are triggered based on user interactions with popups, providing insights into user behavior.

    COMPARITECH.GENERAL().trigger_ga_event("Popups", "Clicked", t);
  7. Exit Intent Monitoring: The code includes functionality to monitor exit intent and trigger popups accordingly.

    COMPARITECH.GENERAL().monitor_exit_intent();
  8. IP Data Retrieval: There's a function that retrieves and displays information about the user's IP address, likely for informative or personalization purposes.

    COMPARITECH.GENERAL().maybe_request_ip_api_data();
  9. Responsive Design Handling: The code considers the display on mobile devices and adjusts the layout or triggers events accordingly.

    if (a.hasClass("ct_is_mobile")) { /* mobile-specific handling */ }

This code snippet suggests a comprehensive implementation of a user interface with interactive features, form validation, and integration with external services like Google Analytics. The usage of cookies and exit intent monitoring indicates a focus on user experience and engagement.

How to wipe your Android phone/tablet before selling or recycling it (2024)
Top Articles
Latest Posts
Article information

Author: Kimberely Baumbach CPA

Last Updated:

Views: 6137

Rating: 4 / 5 (61 voted)

Reviews: 84% of readers found this page helpful

Author information

Name: Kimberely Baumbach CPA

Birthday: 1996-01-14

Address: 8381 Boyce Course, Imeldachester, ND 74681

Phone: +3571286597580

Job: Product Banking Analyst

Hobby: Cosplaying, Inline skating, Amateur radio, Baton twirling, Mountaineering, Flying, Archery

Introduction: My name is Kimberely Baumbach CPA, I am a gorgeous, bright, charming, encouraging, zealous, lively, good person who loves writing and wants to share my knowledge and understanding with you.