1window.addEventListener("load", function () { 2 jQuery("body").on( 3 "click", 4 ".wpm-6310-custom-field-mail-link-cls", 5 function (event) { 6 var customField = jQuery(this).attr("wpm-data-custom-field"); 7 if (customField != undefined) { 8 window.open(customField, "_blank").focus(); 9 event.preventDefault(); 10 11 var closest = jQuery(this).closest(".wpm_main_template"); 12 if (Number(closest.attr("wpm-6310-google-tag"))) { 13 if (!window.dataLayer) { 14 window.dataLayer = window.dataLayer || []; 15 } 16 var text = jQuery(this) 17 .closest(".wpm-6310-custom-field-mail-link-cls") 18 .attr("wpm-data-custom-field"); 19 var dataSet = { 20 event: "click", 21 eventAction: "Click", 22 eventUrl: text, 23 elementText: text, 24 elementLabel: text, 25 eventText: text, 26 eventLabel: text, 27 }; 28 console.log("dataSet", dataSet); 29 window.dataLayer.push(dataSet); 30 } 31 return false; 32 } 33 } 34 ); 35 var modalId = ""; 36 jQuery("body").on( 37 "click", 38 ".wpm_6310_team_member_info, .wpm_6310_team_member_internal_link", 39 function (event) { 40 var linkActive = jQuery(this).attr("wpm-6310-link-active"); 41 var closest = jQuery(this).closest(".wpm_main_template"); 42 var memberInfo = jQuery(this).closest(".wpm_6310_team_member_info"); 43 var memberSelector = jQuery(this).closest( 44 ".wpm_6310_team_style_" + closest.attr("wpm-6310-carousel-id") 45 ); 46 if (typeof linkActive !== "undefined" && linkActive !== false) { 47 return; 48 } 49 var allModal = jQuery(".wpm_6310_modal"); 50 allModal.each(function () { 51 jQuery(this).remove(); 52 }); 53 54 if (Number(closest.attr("wpm-6310-google-tag"))) { 55 if (!window.dataLayer) { 56 window.dataLayer = window.dataLayer || []; 57 } 58 var text = 59 memberSelector.find('[class$="_title"]').text() + 60 " - " + 61 memberSelector.find('[class$="_designation"]').text(); 62 63 var dataSet = { 64 event: "click", 65 eventAction: "Click", 66 eventUrl: memberInfo.attr("link-url") || "modal open", 67 elementText: text, 68 elementLabel: text, 69 eventText: text, 70 eventLabel: text, 71 }; 72 console.log("dataSet", dataSet); 73 window.dataLayer.push(dataSet); 74 } 75 76 modalId = parseInt(jQuery(this).attr("team-id")); 77 var linkId = parseInt(jQuery(this).attr("link-id")); 78 var linkUrl = jQuery(this).attr("data-wpm-link-url"); 79 80 if (linkId > 0) { 81 event.preventDefault(); 82 if (jQuery(this).attr("target") == "1") { 83 window.open(jQuery(this).attr("link-url"), "_blank").focus(); 84 } else { 85 window.open(jQuery(this).attr("link-url"), "_parent").focus(); 86 } 87 return false; 88 } else if (linkUrl) { 89 window.location.href = linkUrl; 90 } else if (modalId > 0) { 91 var mId = Number(closest.attr("wpm-6310-modal-template")); 92 var tId = Number(closest.attr("wpm-6310-carousel-id")); 93 94 var modal_02_custom_text = closest 95 .find(".wpm-6310-modal-02-custom-text") 96 .val(); 97 var modal_03_custom_text = closest 98 .find(".wpm-6310-modal-03-custom-text") 99 .val(); 100 var modal_03_custom_tooltip = closest 101 .find(".wpm-6310-modal-03-custom-tooltip") 102 .val(); 103 var modal_05_custom_tooltip = closest 104 .find(".wpm-6310-modal-05-custom-tooltip") 105 .val(); 106 107 if (modal_03_custom_tooltip) { 108 modal_03_custom_tooltip = 109 '<div class="wpm_6310_modal_preword"> <div class="wpm_6310_modal_pre_title"> ' + 110 modal_03_custom_tooltip + 111 "</div></div>"; 112 } 113 114 var html = 115 '<div id="mywpm_6310_modal" class="wpm_6310_modal wpm_6310_mmt_' + 116 tId + 117 '"> <div class="wpm_6310_modal-content"> <span class="wpm-6310-close">×</span><div class="wpm_6310_modal_template_before"></div><div class="wpm_6310_modal_template_after"></div>'; 118 if (mId == 2) { 119 html += 120 '<div class="wpm_6310_modal_template wpm_6310_modal_template_2"><div class="wpm_6310_modal_body_picture_content"> <div class="wpm_6310_modal_body_picture"> <img src="" class="wpm_6310_modal_img"/> <img src="" class="wpm_6310_modal_hover_img"/> </div><div class="wpm_6310_modal_social"></div></div><div class="wpm_6310_modal_body_content"> <div class="wpm_6310_modal_title"> ' + 121 modal_02_custom_text + 122 '<div class="wpm_6310_modal_name"></div></div><div class="wpm_6310_modal_designation"></div><div class="wpm_6310_modal_category"></div><div class="wpm_6310_modal_details"></div><div class="wpm_6310_modal_contact"></div><div class="wpm_6310_member_skills_wrapper"></div></div></div>'; 123 } else if (mId == 3) { 124 html += 125 '<div class="wpm_6310_modal_template wpm_6310_modal_template_3"><div class="wpm_6310_modal_body_picture_content"> <div class="wpm_6310_modal_body_picture"> <img src="" class="wpm_6310_modal_img" alt=""> <img src="" class="wpm_6310_modal_hover_img"/> </div></div><div class="wpm_6310_modal_body_content"> ' + 126 modal_03_custom_tooltip + 127 '<div class="wpm_6310_modal_title">' + 128 modal_03_custom_text + 129 '<div class="wpm_6310_modal_name"></div></div><div class="wpm_6310_modal_designation"></div><div class="wpm_6310_modal_category"></div><div class="wpm_6310_modal_hr"> </div><div class="wpm_6310_modal_details"></div><div class="wpm_6310_modal_contact"></div><div class="wpm_6310_member_skills_wrapper"></div><div class="wpm_6310_modal_footer"> <div class="wpm_6310_modal_social"></div></div></div></div>'; 130 } else if (mId == 4) { 131 html += 132 ' <div class="wpm_6310_modal_template wpm_6310_modal_template_4"><div class="wpm_6310_modal_upper"> <div class="wpm_6310_modal_upper_right"> <div class="wpm_6310_modal_upper_right_img"> <img src="" class="wpm_6310_modal_img" alt=""> <img src="" class="wpm_6310_modal_hover_img"/> </div></div><div class="wpm_6310_modal_upper_left"> <div class="wpm_6310_modal_name"></div><div class="wpm_6310_modal_designation"></div><div class="wpm_6310_modal_category"></div><div class="wpm_6310_modal_contact"></div><div class="wpm_6310_modal_social"></div></div></div><div class="wpm_6310_modal_about"> <div class="wpm_6310_modal_details"></div></div><div class="wpm_6310_member_skills_section"> <div class="wpm_6310_member_skills_wrapper"></div></div></div>'; 133 } else if (mId == 5) { 134 html += 135 '<div class="wpm_6310_modal_template wpm_6310_modal_template_5"><div class="wpm_6310_modal_left_col"> <div class="wpm_6310_modal_profile_pic"> <img src="" class="wpm_6310_modal_img" alt=""> <img src="" class="wpm_6310_modal_hover_img"/> </div><div class="wpm_6310_modal_name"></div><div class="wpm_6310_modal_designation"></div><div class="wpm_6310_modal_category"></div><div class="wpm_6310_modal_social"></div></div><div class="wpm_6310_modal_right_col"> <div class="wpm_6310_modal_title">' + 136 modal_05_custom_tooltip + 137 '</div><div class="wpm_6310_modal_details"></div><div class="wpm_6310_modal_hr"></div><div class="wpm_6310_modal_contact"></div><div class="wpm_6310_member_skills_wrapper"></div></div></div>'; 138 } else if (mId == 6) { 139 html += 140 '<div class="wpm_6310_modal_template wpm_6310_modal_template_6"><div class="wpm_6310_modal_profile_pic"> <img src="" class="wpm_6310_modal_img" alt=""> <img src="" class="wpm_6310_modal_hover_img"/> </div><div class="wpm_6310_modal_top"> <div class="wpm_6310_modal_name"></div><div class="wpm_6310_modal_designation"></div><div class="wpm_6310_modal_category"></div><div class="wpm_6310_modal_social"></div></div><div class="wpm_6310_modal_hr"></div><div class="wpm_6310_modal_details"></div><div class="wpm_6310_modal_hr2"></div><div class="wpm_6310_modal_contact"></div><div class="wpm_6310_member_skills_section"> <div class="wpm_6310_member_skills_wrapper"></div></div></div>'; 141 } else { 142 html += 143 '<div class="wpm_6310_modal_template wpm_6310_modal_template_1"><div class="wpm_6310_modal_body_picture_content"> <div class="wpm_6310_modal_body_picture"> <img src="" class="wpm_6310_modal_img"/> <img src="" class="wpm_6310_modal_hover_img"/> </div></div><div class="wpm_6310_modal_body_content"> <div class="wpm_6310_modal_designation"></div><div class="wpm_6310_modal_name"></div><div class="wpm_6310_modal_category"></div><div class="wpm_6310_modal_details"></div><br><br><div class="wpm_6310_modal_contact"></div><div class="wpm_6310_member_skills_wrapper"></div><div class="wpm_6310_modal_social"></div></div><br class="wpm_6310_clear"/> </div>'; 144 } 145 146 html += 147 '<br class="wpm_6310_clear"/> </div><br class="wpm_6310_clear"/> </div>'; 148 jQuery("body").prepend(html); 149 150 jQuery( 151 ".wpm_6310_loading_" + closest.attr("wpm-6310-carousel-id") 152 ).show(); 153 jQuery("body").css({ 154 overflow: "hidden", 155 }); 156 157 var dataList = { 158 action: "wpm_6310_team_member_details", 159 ids: modalId, 160 styleId: closest.attr("wpm-6310-carousel-id"), 161 categoryStatus: closest.attr("wpm-6310-category-active"), 162 selectedCategory: closest.attr("wpm-6310-selected-category"), 163 clicked: "", 164 progress_bar_animation: closest.attr( 165 "wpm_6310_progress_bar_animation" 166 ), 167 progress_bar_border_radius: closest.attr( 168 "wpm_6310_progress_bar_border_radius" 169 ), 170 }; 171 wpm_6310_load_modal(dataList); 172 } 173 } 174 ); 175 176 jQuery("body").on("click", ".wpm_6310_modal_template_before", function () { 177 var datas = { 178 action: "wpm_6310_team_member_details", 179 ids: jQuery(".wpm_6310_modal").attr("wpm-6310-member-id"), 180 styleId: jQuery(this) 181 .closest(".wpm_6310_modal") 182 .attr("wpm-6310-carousel-id"), 183 categoryStatus: jQuery(this) 184 .closest(".wpm_6310_modal") 185 .attr("wpm-6310-category-active"), 186 selectedCategory: jQuery(this) 187 .closest(".wpm_6310_modal") 188 .attr("wpm-6310-selected-category"), 189 clicked: "prev", 190 progress_bar_animation: jQuery(this) 191 .closest(".wpm_6310_modal") 192 .attr("wpm_6310_progress_bar_animation"), 193 progress_bar_border_radius: jQuery(this) 194 .closest(".wpm_6310_modal") 195 .attr("wpm_6310_progress_bar_border_radius"), 196 }; 197 jQuery( 198 ".wpm_6310_loading_" + 199 jQuery(this).closest(".wpm_6310_modal").attr("wpm-6310-carousel-id") 200 ).show(); 201 jQuery(".wpm_6310_modal").hide(); 202 wpm_6310_load_modal(datas); 203 }); 204 205 jQuery("body").on("click", ".wpm_6310_modal_template_after", function () { 206 var datas = { 207 action: "wpm_6310_team_member_details", 208 ids: jQuery(".wpm_6310_modal").attr("wpm-6310-member-id"), 209 styleId: jQuery(this) 210 .closest(".wpm_6310_modal") 211 .attr("wpm-6310-carousel-id"), 212 categoryStatus: jQuery(this) 213 .closest(".wpm_6310_modal") 214 .attr("wpm-6310-category-active"), 215 selectedCategory: jQuery(this) 216 .closest(".wpm_6310_modal") 217 .attr("wpm-6310-selected-category"), 218 clicked: "next", 219 progress_bar_animation: jQuery(this) 220 .closest(".wpm_6310_modal") 221 .attr("wpm_6310_progress_bar_animation"), 222 progress_bar_border_radius: jQuery(this) 223 .closest(".wpm_6310_modal") 224 .attr("wpm_6310_progress_bar_border_radius"), 225 }; 226 jQuery( 227 ".wpm_6310_loading_" + 228 jQuery(this).closest(".wpm_6310_modal").attr("wpm-6310-carousel-id") 229 ).show(); 230 jQuery(".wpm_6310_modal").hide(); 231 wpm_6310_load_modal(datas); 232 }); 233}); 234 235function wpm_6310_load_modal(dataList) { 236 jQuery.ajax({ 237 type: "GET", 238 dataType: "json", 239 url: my_ajax_object.ajax_url, 240 data: dataList, 241 success: function (data) { 242 jQuery(".wpm_6310_loading").hide(); 243 jQuery(".wpm_6310_modal-content").css({ 244 "animation-name": "wpm-animate" + data["styledata"]["effect"], 245 }); 246 jQuery(".wpm_6310_modal").show(); 247 jQuery(".wpm_6310_modal").attr( 248 "wpm-6310-member-id", 249 data["styledata"]["id"] 250 ); 251 jQuery(".wpm_6310_modal").attr({ 252 "wpm-6310-carousel-id": dataList["styleId"], 253 "wpm-6310-category-active": dataList["categoryStatus"], 254 "wpm-6310-selected-category": dataList["selectedCategory"], 255 }); 256 jQuery(".wpm_6310_modal").attr( 257 "wpm_6310_progress_bar_animation", 258 dataList["progress_bar_animation"] 259 ); 260 jQuery(".wpm_6310_modal").attr( 261 "wpm_6310_progress_bar_border_radius", 262 dataList["progress_bar_border_radius"] 263 ); 264 jQuery(".wpm_6310_modal_img").attr( 265 "src", 266 data["styledata"]["image"] 267 ? data["styledata"]["image"] 268 : data["styledata"]["hover_image"] 269 ); 270 jQuery(".wpm_6310_modal_hover_img").attr( 271 "src", 272 data["styledata"]["hover_image"] 273 ? data["styledata"]["hover_image"] 274 : data["styledata"]["image"] 275 ); 276 jQuery(".wpm_6310_modal_designation").text( 277 data["styledata"]["designation"] 278 ); 279 jQuery(".wpm_6310_modal_name").text(data["styledata"]["name"]); 280 jQuery(".wpm_6310_modal_category").text( 281 data["styledata"]["categoryList"] 282 ); 283 jQuery(".wpm_6310_modal_contact").html(""); 284 jQuery(".wpm_6310_modal_contact").append(data["contact"]); 285 jQuery(".wpm_6310_modal_social").html(""); 286 jQuery(".wpm_6310_modal_social").append(data["link"]); 287 jQuery(".wpm_6310_modal_details").html( 288 data["styledata"]["profile_details"] 289 .replace(/\n/g, "<br>") 290 .replace(/</g, "<") 291 .replace(/>/g, ">") 292 ); 293 jQuery(".wpm_6310_member_skills_wrapper").html(""); 294 jQuery(".wpm_6310_member_skills_wrapper").append(data["skills"]); 295 }, 296 }); 297}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.