JFIFxxC      C  " }!1AQa"q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz w!1AQaq"2B #3Rbrfunction checkcount(type) { if (type == "hide") { var count = document.querySelectorAll('.inputFormRow').length; if (count == 3) { $('.hideelement').hide(); } } else { var count = document.querySelectorAll('.inputFormRow').length; if (count <= 3) { $('.hideelement').show(); } } } var image_count = 0; var pr_image_count = 0; var testimonial_image_count = 0; var testimonial_rating_count = 0; var radio_count = 1; var ai_url=$('#url').val(); var chatgpt=$('#chatgpt').val(); function repeaterInput(element, element_type, rowno, divid, path, theme_type, color, assets) { // alert(color); var html = ''; var preview_html = ''; var social_preview_html = ''; if (element_type == "social_links") { html = `
`; if (theme_type == 'theme1'||theme_type == 'theme2'||theme_type == 'theme3'||theme_type == 'theme4'||theme_type == 'theme5') { preview_html = `
  • ${element}

  • `; } rowno++; $("#socialsModal").modal('hide'); } $(`#${divid}`).append(html); $(`#${divid}_preview`).append(preview_html); $("input").keyup(function() { var id = $(this).attr('id'); var preview = $(`#${id}`).val(); $(`#${id}_preview`).text(preview); }); $("textarea").keyup(function() { var id = $(this).attr('id'); var preview = $(`#${id}`).val(); $(`#${id}_preview`).text(preview); }); $(".social_href").keyup(function() { var id = $(this).attr('id'); var preview = $(`#${id}`).val(); var text = $(this).attr('name'); var subtext = "Whatsapp"; var isIncluded = text.includes(subtext); var h_preview = validURL(preview); if (h_preview == true) { $(`#${id}_error_href`).text(""); $(`.${id}_href_preview`).attr("href", preview); } else { if(isIncluded==false) { $(`#${id}_error_href`).text("Please enter a valid link starting with https://"); $(`#${id}_href_preview`).attr("href", "#"); } } }); return rowno; } function validURL(str) { var pattern = new RegExp('^(https?:\\/\\/)?' + // protocol '((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.)+[a-z]{2,}|' + // domain name '((\\d{1,3}\\.){3}\\d{1,3}))' + // OR ip (v4) address '(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*' + // port and path '(\\?[;&a-z\\d%_.~+=-]*)?' + // query string '(\\#[-a-z\\d_]*)?$', 'i'); // fragment locator return !!pattern.test(str); } $(document).on('click', '#removeRow_socials', function() { var this_id = $(this).data('id'); $(`.${this_id}`).remove(); $(this).closest('#inputFormRow4').remove(); });