DLL Group| My Account Access – DLL (2024)

'; $('#SalesforceFeedbackForm').wrap(actionurl); } else if ($('#modalpopup_1_actionurl').val() != undefined && $('#modalpopup_1_actionurl').val() != "") { var formactionurl = $('#modalpopup_1_actionurl').val(); var actionurl = '

'; $('#SalesforceFeedbackForm').wrap(actionurl); } //if ($('#modalpopup_0_captchasitekey').val() != "" && $('#modalpopup_0_captchasitekey').val() != undefined) { // $('.g-recaptcha').attr("data-sitekey", $('#modalpopup_0_captchasitekey').val()); //} //if ($('#modalpopup_1_captchasitekey').val() != "" && $('#modalpopup_1_captchasitekey').val() != undefined) { // $('.g-recaptcha').attr("data-sitekey", $('#modalpopup_1_captchasitekey').val()); //} if (hdnSuccessful == 1) { showqFThkYou(); } else if (hdnSuccessful == 2) { showQuickFeedback(); }; if (getStorage("Thankyou-Popup") == "true") { setStorage("Thankyou-Popup", "false"); showqFThkYou(); } //loading the Sub-type dropdown values when change the type dropdown $('#modalpopup_0_ddlnewType').change(function () { if ($('#modalpopup_0_ddlnewType option:selected').text() == "Select" || $('#modalpopup_0_ddlnewType option:selected').text() == "Sélectionnez") { $("#modalpopup_0_SubType option[value='Select']").attr("selected", null); $("#modalpopup_0_SubType option[value='Select']").attr("selected", "selected"); $("#modalpopup_0_SubType").attr("disabled", true); return false; } else { $("#modalpopup_0_SubType option[value='Select']").attr("selected", null); $("#modalpopup_0_SubType option[value='Select']").attr("selected", "selected"); var ddltypes = $('#modalpopup_0_ddlnewType option:selected').val(); $("#modalpopup_0_SubType").children('option').hide(); $("#modalpopup_0_SubType option[value='" + ddltypes + "']").show(); $("#modalpopup_0_SubType option[value='Select']").show(); $("#modalpopup_0_SubType").attr("disabled", false); return true; } }); $('#modalpopup_1_ddlnewType').change(function () { if ($('#modalpopup_1_ddlnewType option:selected').text() == "Select" || $('#modalpopup_1_ddlnewType option:selected').text() == "Sélectionnez") { $("#modalpopup_1_SubType option[value='Select']").attr("selected", null); $("#modalpopup_1_SubType option[value='Select']").attr("selected", "selected"); $("#modalpopup_1_SubType").attr("disabled", true); return false; } else { $("#modalpopup_1_SubType option[value='Select']").attr("selected", null); $("#modalpopup_1_SubType option[value='Select']").attr("selected", "selected"); var ddltypes = $('#modalpopup_1_ddlnewType option:selected').val(); $("#modalpopup_1_SubType").children('option').hide(); $("#modalpopup_1_SubType option[value='" + ddltypes + "']").show(); $("#modalpopup_1_SubType option[value='Select']").show(); $("#modalpopup_1_SubType").attr("disabled", false); return true; } }); $('#modalpopup_0_contract_number').focusout(function () { if ($('#modalpopup_0_contract_number').val() != "" && $('#modalpopup_0_contract_number').val() != "undefined" && $('#modalpopup_0_contract_number').val() != undefined) { if (contractIDregex.test($('#modalpopup_0_contract_number').val()) == false) { $('#modalpopup_0_contract_number').addClass("errorField"); $('#modalpopup_0_contract_numberInvaliderror').removeClass("hidden"); $('#modalpopup_0_contract_numberInvaliderror').removeClass("font16"); $('#modalpopup_0_contract_numberInvaliderror').addClass("font14"); $('#modalpopup_1_contract_number').addClass("errorField"); $('#modalpopup_1_contract_numberInvaliderror').removeClass("hidden"); $('#modalpopup_1_contract_numberInvaliderror').removeClass("font16"); $('#modalpopup_1_contract_numberInvaliderror').addClass("font14"); return false; } else { $('#modalpopup_0_contract_number').removeClass("errorField"); $('#modalpopup_0_contract_numberInvaliderror').addClass("hidden"); $('#modalpopup_0_contract_numberInvaliderror').addClass("font16"); $('#modalpopup_0_contract_numberInvaliderror').removeClass("font14"); $('#modalpopup_1_contract_number').removeClass("errorField"); $('#modalpopup_1_contract_numberInvaliderror').addClass("hidden"); $('#modalpopup_1_contract_numberInvaliderror').addClass("font16"); $('#modalpopup_1_contract_numberInvaliderror').removeClass("font14"); return true; } } else if ($('#modalpopup_0_contract_number').val() == "") { $('#modalpopup_0_contract_number').removeClass("errorField"); $('#modalpopup_0_contract_numberInvaliderror').addClass("hidden"); $('#modalpopup_0_contract_numberInvaliderror').addClass("font16"); $('#modalpopup_0_contract_numberInvaliderror').removeClass("font14"); $('#modalpopup_1_contract_number').removeClass("errorField"); $('#modalpopup_1_contract_numberInvaliderror').addClass("hidden"); $('#modalpopup_1_contract_numberInvaliderror').addClass("font16"); $('#modalpopup_1_contract_numberInvaliderror').removeClass("font14"); return true; } }); $('#modalpopup_1_contract_number').focusout(function () { if ($('#modalpopup_1_contract_number').val() != "" && $('#modalpopup_1_contract_number').val() != "undefined" && $('#modalpopup_1_contract_number').val() != undefined) { if (contractIDregex.test($('#modalpopup_1_contract_number').val()) == false) { $('#modalpopup_0_contract_number').addClass("errorField"); $('#modalpopup_0_contract_numberInvaliderror').removeClass("hidden"); $('#modalpopup_0_contract_numberInvaliderror').removeClass("font16"); $('#modalpopup_0_contract_numberInvaliderror').addClass("font14"); $('#modalpopup_1_contract_number').addClass("errorField"); $('#modalpopup_1_contract_numberInvaliderror').removeClass("hidden"); $('#modalpopup_1_contract_numberInvaliderror').removeClass("font16"); $('#modalpopup_1_contract_numberInvaliderror').addClass("font14"); return false; } else { $('#modalpopup_0_contract_number').removeClass("errorField"); $('#modalpopup_0_contract_numberInvaliderror').addClass("hidden"); $('#modalpopup_0_contract_numberInvaliderror').addClass("font16"); $('#modalpopup_0_contract_numberInvaliderror').removeClass("font14"); $('#modalpopup_1_contract_number').removeClass("errorField"); $('#modalpopup_1_contract_numberInvaliderror').addClass("hidden"); $('#modalpopup_1_contract_numberInvaliderror').addClass("font16"); $('#modalpopup_1_contract_numberInvaliderror').removeClass("font14"); return true; } } else if ($('#modalpopup_1_contract_number').val() == "") { $('#modalpopup_0_contract_number').removeClass("errorField"); $('#modalpopup_0_contract_numberInvaliderror').addClass("hidden"); $('#modalpopup_0_contract_numberInvaliderror').addClass("font16"); $('#modalpopup_0_contract_numberInvaliderror').removeClass("font14"); $('#modalpopup_1_contract_number').removeClass("errorField"); $('#modalpopup_1_contract_numberInvaliderror').addClass("hidden"); $('#modalpopup_1_contract_numberInvaliderror').addClass("font16"); $('#modalpopup_1_contract_numberInvaliderror').removeClass("font14"); return true; } }); $('#modalpopup_0_first_name').attr("size", "50"); $('#modalpopup_0_last_name').attr("size", "50"); $('#modalpopup_0_phone').attr("size", "20"); $('#modalpopup_0_contract_number').attr("wrap", "soft"); $('#modalpopup_1_first_name').attr("size", "50"); $('#modalpopup_1_last_name').attr("size", "50"); $('#modalpopup_1_contract_number').attr("wrap", "soft"); $('#modalpopup_1_phone').attr("size", "20"); }); //to set the ts value of captcha after run the DOM element/html code // $(window).on("load", function () { //setInterval(timestamp, 500); //timestamp(); //}); //to close the pop up window function fncclose() { $("[id*=btnCloseQFWindow]").click(); } //onclick submit button event to check the validation and call the form action function fncsumbit() { var isvalid = "true"; if ($('#modalpopup_0_contract_number').val() != "" && $('#modalpopup_0_contract_number').val() != "undefined" && $('#modalpopup_0_contract_number').val() != undefined) { if (contractIDregex.test($('#modalpopup_0_contract_number').val()) == false) { isvalid = "false"; $('#modalpopup_0_contract_number').addClass("errorField"); $('#modalpopup_0_contract_numberInvaliderror').removeClass("hidden"); $('#modalpopup_0_contract_numberInvaliderror').removeClass("font16"); $('#modalpopup_0_contract_numberInvaliderror').addClass("font14"); $('#modalpopup_1_contract_number').addClass("errorField"); $('#modalpopup_1_contract_numberInvaliderror').removeClass("hidden"); $('#modalpopup_1_contract_numberInvaliderror').removeClass("font16"); $('#modalpopup_1_contract_numberInvaliderror').addClass("font14"); } else { $('#modalpopup_0_contract_number').removeClass("errorField"); $('#modalpopup_0_contract_numberInvaliderror').addClass("hidden"); $('#modalpopup_0_contract_numberInvaliderror').addClass("font16"); $('#modalpopup_0_contract_numberInvaliderror').removeClass("font14"); $('#modalpopup_1_contract_number').removeClass("errorField"); $('#modalpopup_1_contract_numberInvaliderror').addClass("hidden"); $('#modalpopup_1_contract_numberInvaliderror').addClass("font16"); $('#modalpopup_1_contract_numberInvaliderror').removeClass("font14"); } } if ($('#modalpopup_1_contract_number').val() != "" && $('#modalpopup_1_contract_number').val() != "undefined" && $('#modalpopup_1_contract_number').val() != undefined) { if (contractIDregex.test($('#modalpopup_1_contract_number').val()) == false) { isvalid = "false"; $('#modalpopup_0_contract_number').addClass("errorField"); $('#modalpopup_0_contract_numberInvaliderror').removeClass("hidden"); $('#modalpopup_0_contract_numberInvaliderror').removeClass("font16"); $('#modalpopup_0_contract_numberInvaliderror').addClass("font14"); $('#modalpopup_1_contract_number').addClass("errorField"); $('#modalpopup_1_contract_numberInvaliderror').removeClass("hidden"); $('#modalpopup_1_contract_numberInvaliderror').removeClass("font16"); $('#modalpopup_1_contract_numberInvaliderror').addClass("font14"); } else { $('#modalpopup_0_contract_number').removeClass("errorField"); $('#modalpopup_0_contract_numberInvaliderror').addClass("hidden"); $('#modalpopup_0_contract_numberInvaliderror').addClass("font16"); $('#modalpopup_0_contract_numberInvaliderror').removeClass("font14"); $('#modalpopup_1_contract_number').removeClass("errorField"); $('#modalpopup_1_contract_numberInvaliderror').addClass("hidden"); $('#modalpopup_1_contract_numberInvaliderror').addClass("font16"); $('#modalpopup_1_contract_numberInvaliderror').removeClass("font14"); } } if ($('#modalpopup_1_contract_number').val() == "" || $('#modalpopup_0_contract_number').val() == "") { $('#modalpopup_0_contract_number').removeClass("errorField"); $('#modalpopup_0_contract_numberInvaliderror').addClass("hidden"); $('#modalpopup_0_contract_numberInvaliderror').addClass("font16"); $('#modalpopup_0_contract_numberInvaliderror').removeClass("font14"); $('#modalpopup_1_contract_number').removeClass("errorField"); $('#modalpopup_1_contract_numberInvaliderror').addClass("hidden"); $('#modalpopup_1_contract_numberInvaliderror').addClass("font16"); $('#modalpopup_1_contract_numberInvaliderror').removeClass("font14"); } if ($('#modalpopup_0_first_name').val() == "" || $('#modalpopup_1_first_name').val() == "") { isvalid = "false"; $('#modalpopup_0_first_name').addClass("errorField"); $('#modalpopup_0_first_nameerror').removeClass("hidden"); $('#modalpopup_0_first_nameerror').removeClass("font16"); $('#modalpopup_0_first_nameerror').addClass("font14"); $('#modalpopup_1_first_name').addClass("errorField"); $('#modalpopup_1_first_nameerror').removeClass("hidden"); $('#modalpopup_1_first_nameerror').removeClass("font16"); $('#modalpopup_1_first_nameerror').addClass("font14"); } else { $('#modalpopup_0_first_name').removeClass("errorField"); $('#modalpopup_0_first_nameerror').addClass("hidden"); $('#modalpopup_0_first_nameerror').addClass("font16"); $('#modalpopup_0_first_nameerror').removeClass("font14"); $('#modalpopup_1_first_name').removeClass("errorField"); $('#modalpopup_1_first_nameerror').addClass("hidden"); $('#modalpopup_1_first_nameerror').addClass("font16"); $('#modalpopup_1_first_nameerror').removeClass("font14"); } if ($('#modalpopup_0_last_name').val() == "" || $('#modalpopup_1_last_name').val() == "") { isvalid = "false"; $('#modalpopup_0_last_name').addClass("errorField"); $('#modalpopup_0_last_nameerror').removeClass("hidden"); $('#modalpopup_0_last_nameerror').removeClass("font16"); $('#modalpopup_0_last_nameerror').addClass("font14"); $('#modalpopup_1_last_name').addClass("errorField"); $('#modalpopup_1_last_nameerror').removeClass("hidden"); $('#modalpopup_1_last_nameerror').removeClass("font16"); $('#modalpopup_1_last_nameerror').addClass("font14"); } else { $('#modalpopup_0_last_name').removeClass("errorField"); $('#modalpopup_0_last_nameerror').addClass("hidden"); $('#modalpopup_0_last_nameerror').addClass("font16"); $('#modalpopup_0_last_nameerror').removeClass("font14"); $('#modalpopup_1_last_name').removeClass("errorField"); $('#modalpopup_1_last_nameerror').addClass("hidden"); $('#modalpopup_1_last_nameerror').addClass("font16"); $('#modalpopup_1_last_nameerror').removeClass("font14"); } if ($('#modalpopup_0_email').val() == "" || $('#modalpopup_1_email').val() == "") { isvalid = "false"; $('#modalpopup_0_email').addClass("errorField"); $('#modalpopup_0_emailerror').removeClass("hidden"); $('#modalpopup_0_emailerror').removeClass("font16"); $('#modalpopup_0_emailerror').addClass("font14"); $('#modalpopup_1_email').addClass("errorField"); $('#modalpopup_1_emailerror').removeClass("hidden"); $('#modalpopup_1_emailerror').removeClass("font16"); $('#modalpopup_1_emailerror').addClass("font14"); } else { $('#modalpopup_0_email').removeClass("errorField"); $('#modalpopup_0_emailerror').addClass("hidden"); $('#modalpopup_0_emailerror').addClass("font16"); $('#modalpopup_0_emailerror').removeClass("font14"); $('#modalpopup_1_email').removeClass("errorField"); $('#modalpopup_1_emailerror').addClass("hidden"); $('#modalpopup_1_emailerror').addClass("font16"); $('#modalpopup_1_emailerror').removeClass("font14"); } if ($("#modalpopup_0_ddlnewType option:selected").text() == "Select" || $("#modalpopup_1_ddlnewType option:selected").text() == "Select" || $("#modalpopup_0_ddlnewType option:selected").text() == "Sélectionnez" || $("#modalpopup_1_ddlnewType option:selected").text() == "Sélectionnez") { isvalid = "false"; $('#modalpopup_0_ddlnewType').addClass("errorField"); $('#modalpopup_0_ddlnewTypeerror').removeClass("hidden"); $('#modalpopup_0_ddlnewTypeerror').removeClass("font16"); $('#modalpopup_0_ddlnewTypeerror').addClass("font14"); $('#modalpopup_1_ddlnewType').addClass("errorField"); $('#modalpopup_1_ddlnewTypeerror').removeClass("hidden"); $('#modalpopup_1_ddlnewTypeerror').removeClass("font16"); $('#modalpopup_1_ddlnewTypeerror').addClass("font14"); } else { $('#modalpopup_0_ddlnewType').removeClass("errorField"); $('#modalpopup_0_typeerror').addClass("hidden"); $('#modalpopup_0_typeerror').addClass("font16"); $('#modalpopup_0_typeerror').removeClass("font14"); $('#modalpopup_1_ddlnewType').removeClass("errorField"); $('#modalpopup_1_typeerror').addClass("hidden"); $('#modalpopup_1_typeerror').addClass("font16"); $('#modalpopup_1_typeerror').removeClass("font14"); } if ($("#modalpopup_0_SubType option:selected").text() == "Select" || $("#modalpopup_1_SubType option:selected").text() == "Select" || $("#modalpopup_0_SubType option:selected").text() == "Sélectionnez" || $("#modalpopup_1_SubType option:selected").text() == "Sélectionnez") { isvalid = "false"; $('#modalpopup_0_SubType').addClass("errorField"); $('#modalpopup_0_SubTypeerror').removeClass("hidden"); $('#modalpopup_0_SubTypeerror').removeClass("font16"); $('#modalpopup_0_SubTypeerror').addClass("font14"); $('#modalpopup_1_SubType').addClass("errorField"); $('#modalpopup_1_SubTypeerror').removeClass("hidden"); $('#modalpopup_1_SubTypeerror').removeClass("font16"); $('#modalpopup_1_SubTypeerror').addClass("font14"); } else { $('#modalpopup_0_SubType').removeClass("errorField"); $('#modalpopup_0_SubTypeerror').addClass("hidden"); $('#modalpopup_0_SubTypeerror').addClass("font16"); $('#modalpopup_0_SubTypeerror').removeClass("font14"); $('#modalpopup_1_SubType').removeClass("errorField"); $('#modalpopup_1_SubTypeerror').addClass("hidden"); $('#modalpopup_1_SubTypeerror').addClass("font16"); $('#modalpopup_1_SubTypeerror').removeClass("font14"); } if ($('#modalpopup_0_Description').val() == "" || $('#modalpopup_1_Description').val() == "") { isvalid = "false"; $('#modalpopup_0_Description').addClass("errorField"); $('#modalpopup_0_Descriptionerror').removeClass("hidden"); $('#modalpopup_0_Descriptionerror').removeClass("font16"); $('#modalpopup_0_Descriptionerror').addClass("font14"); $('#modalpopup_1_Description').addClass("errorField"); $('#modalpopup_1_Descriptionerror').removeClass("hidden"); $('#modalpopup_1_Descriptionerror').removeClass("font16"); $('#modalpopup_1_Descriptionerror').addClass("font14"); } else { $('#modalpopup_0_Description').removeClass("errorField"); $('#modalpopup_0_Descriptionerror').addClass("hidden"); $('#modalpopup_0_Descriptionerror').addClass("font16"); $('#modalpopup_0_Descriptionerror').removeClass("font14"); $('#modalpopup_1_Description').removeClass("errorField"); $('#modalpopup_1_Descriptionerror').addClass("hidden"); $('#modalpopup_1_Descriptionerror').addClass("font16"); $('#modalpopup_1_Descriptionerror').removeClass("font14"); } //if (grecaptcha.getResponse() == "") { // isvalid = "false"; // $('#modalpopup_0_ErrorCaptcha').removeClass("hidden"); // $('#modalpopup_0_ErrorCaptcha').removeClass("font16"); // $('#modalpopup_0_ErrorCaptcha').addClass("font14"); // $('#modalpopup_1_ErrorCaptcha').removeClass("hidden"); // $('#modalpopup_1_ErrorCaptcha').removeClass("font16"); // $('#modalpopup_1_ErrorCaptcha').addClass("font14"); //} //else { // $('#modalpopup_0_ErrorCaptcha').addClass("hidden"); // $('#modalpopup_0_ErrorCaptcha').addClass("font16"); // $('#modalpopup_0_ErrorCaptcha').removeClass("font14"); // $('#modalpopup_1_ErrorCaptcha').addClass("hidden"); // $('#modalpopup_1_ErrorCaptcha').addClass("font16"); // $('#modalpopup_1_ErrorCaptcha').removeClass("font14"); //} if (isvalid == "true") { $('#modalpopup_0_first_name').attr("name", "00Nf400000Uf9Io"); $('#modalpopup_0_last_name').attr("name", "00Nf400000Uf9Ip"); $('#modalpopup_0_email').attr("name", "email"); $('#modalpopup_0_phone').attr("name", "00Nf400000Uf9Iq"); $('#modalpopup_0_contract_number').attr("name", "00Nf400000VBa1Q"); $('#modalpopup_0_ddlnewType').attr("name", "type"); $('#modalpopup_0_ddlnewType').attr("id", "type"); $('#modalpopup_0_SubType').attr("name", "00Nf400000Uf9J6"); $('#modalpopup_0_SubType').attr("id", "00Nf400000Uf9J6"); $('#modalpopup_0_Description').attr("name", "description"); // $('#modalpopup_0_captcha_settings').attr("name", "captcha_settings"); $('#modalpopup_0_orgid').attr("name", "orgid"); $('#modalpopup_0_recordType').attr("name", "recordType"); $('#modalpopup_0_Origin').attr("name", "Origin"); $('#modalpopup_0_Location__c').attr("name", "Location__c"); $('#modalpopup_0_Sub_Location__c').attr("name", "Sub_Location__c"); $('#modalpopup_0_Associated_Joint_Venture__c').attr("name", "Associated_Joint_Venture__c"); $('#modalpopup_1_first_name').attr("name", "00Nf400000Uf9Io"); $('#modalpopup_1_last_name').attr("name", "00Nf400000Uf9Ip"); $('#modalpopup_1_email').attr("name", "email"); $('#modalpopup_1_phone').attr("name", "00Nf400000Uf9Iq"); $('#modalpopup_1_contract_number').attr("name", "00Nf400000VBa1Q"); $('#modalpopup_1_ddlnewType').attr("name", "type"); $('#modalpopup_1_ddlnewType').attr("id", "type"); $('#modalpopup_1_SubType').attr("name", "00Nf400000Uf9J6"); $('#modalpopup_1_SubType').attr("id", "00Nf400000Uf9J6"); $('#modalpopup_1_Description').attr("name", "description"); // $('#modalpopup_1_captcha_settings').attr("name", "captcha_settings"); $('#modalpopup_1_orgid').attr("name", "orgid"); $('#modalpopup_1_recordType').attr("name", "recordType"); $('#modalpopup_0_brandname').attr("name", $('#modalpopup_0_associateventureid').val()); //loading Associate joint venture as dynamic "00N1700000O2mGv" $('#modalpopup_1_brandname').attr("name", $('#modalpopup_1_associateventureid').val()); $("#type option:selected").val($("#type option:selected").val()); //Override the subtype dropdown value for french content of Agco finance site, while submitting the feedback form, the dropdown value should be in english. $("#00Nf400000Uf9J6 option:selected").val($("#00Nf400000Uf9J6 option:selected").attr("name")); $('#retURL').val(window.location.href); // load the return url as dynamically setStorage("Thankyou-Popup", "true"); // set the value as "true" in local stoarage to show Thank you pop up after form submission. document.getElementById("Feedback-form").submit(); return true; } else { return false; } } //Timestamp function to load the ts value of catcha settings //function timestamp() { // if (window.location.pathname != "/") { // currentTimestamp += 500; // var response = document.getElementById("g-recaptcha-response"); // if (response == null || response.value.trim() == "") { // if ($('#modalpopup_0_captcha_settings').val() != "" && $('#modalpopup_0_captcha_settings').val() != undefined) { // var elems = JSON.parse($('#modalpopup_0_captcha_settings').val()); // elems["ts"] = JSON.stringify(new Date().getTime()); // $('#modalpopup_0_captcha_settings').val(JSON.stringify(elems)) // return true; // } // else if ($('#modalpopup_1_captcha_settings').val() != "" && $('#modalpopup_1_captcha_settings').val() != undefined) { // var elems = JSON.parse($('#modalpopup_1_captcha_settings').val()); // elems["ts"] = JSON.stringify(new Date().getTime()); // $('#modalpopup_1_captcha_settings').val(JSON.stringify(elems)) // return true; // } // } // } //} function removeStorage(name) { try { localStorage.removeItem(name); localStorage.removeItem(name + '_expiresIn'); } catch (e) { console.log('removeStorage: Error removing key [' + key + '] from localStorage: ' + JSON.stringify(e)); return false; } return true; } function setStorage(key, value, expires) { if (expires === undefined || expires === null) { expires = (24 * 60 * 60); // default: seconds for 1 day } else { expires = Math.abs(expires); //make sure it's positive } var now = Date.now(); //millisecs since epoch time, lets deal only with integer var schedule = now + expires * 1000; try { localStorage.setItem(key, value); localStorage.setItem(key + '_expiresIn', schedule); } catch (e) { return false; } return true; } function getStorage(key) { var now = Date.now(); //epoch time, lets deal only with integer // set expiration for storage var expiresIn = localStorage.getItem(key + '_expiresIn'); if (expiresIn === undefined || expiresIn === null) { expiresIn = 0; } if (expiresIn < now) { // Expired removeStorage(key); return null; } else { try { var value = localStorage.getItem(key); return value; } catch (e) { console.log('getStorage: Error reading key [' + key + '] from localStorage: ' + JSON.stringify(e)); return null; } } }

DLL Group| My Account Access – DLL (2024)
Top Articles
Latest Posts
Article information

Author: Manual Maggio

Last Updated:

Views: 5719

Rating: 4.9 / 5 (69 voted)

Reviews: 84% of readers found this page helpful

Author information

Name: Manual Maggio

Birthday: 1998-01-20

Address: 359 Kelvin Stream, Lake Eldonview, MT 33517-1242

Phone: +577037762465

Job: Product Hospitality Supervisor

Hobby: Gardening, Web surfing, Video gaming, Amateur radio, Flag Football, Reading, Table tennis

Introduction: My name is Manual Maggio, I am a thankful, tender, adventurous, delightful, fantastic, proud, graceful person who loves writing and wants to share my knowledge and understanding with you.