1/* 2 * This script file contains all javascript code 3 * to be associated with any placement in DMP. 4 * 5 * Naming Standard: 6 * All placement specific function names should be 7 * prefixed with the corresponding wscr number to avoid conflicts 8 * 9 * This file is uinque for each application 10 */ 11(function(){ 12window.discover = window.discover || {}; 13discover.dmp_scripts = (function(){ 14 15 var scripts= {}; 16 17//CR170203-04 WT 3_2016_DMP_5 Percent 2Q_2017_Pre-Enroll 18 $(document).on("click tap",".left-box",function(){ 19 $(this).parent().find("a")[0].click(); 20 }); 21 $(document).on("click tap",".dmp-img-link",function(){ 22 $(this).closest(".dmp-slide").find(".dmp-link")[0].click(); 23 }); 24//CR170203-04 WT 3_2016_DMP_5 Percent 2Q_2017_Pre-Enroll 25 26//CR170404-04 : DMP NCD239_DSL_Cross-Sell_2017_LOG_OFF & D.Com - MAY 27 scripts.CR170404_04_ImageToLink = function(){ 28 //console.log("inside CR170404_04_ImageToLink"); 29 $("#middleBox").click(function() { 30 var href = $(this).parent().find("a").attr("href"); 31 window.location.href = href; 32 }); 33 }, 34 scripts.adobe_deepBTPOC = function(){ 35 $(document).on('click','.adobe-deep',function(){ 36 $(".dmp-track").click(); 37 var deepLink = $(".adobe-deep-link"); 38 if(deepLink.length > 0){ 39 var isQuestionMark = $(".login-box-modal .login-container").find("form").attr("action").indexOf("?"); 40 if(isQuestionMark < 0 ){ 41 var returnUrl=deepLink.val(); 42 setTimeout(function(){$(".login-box-modal .login-container").find("form").attr("action", $(".login-box-modal .login-container").find("form").attr("action") + "?link=" + returnUrl)}, 250); 43 } 44 else{ 45 var returnUrl=deepLink.val(); 46 setTimeout(function(){$(".login-box-modal .login-container").find("form").attr("action", $(".login-box-modal .login-container").find("form").attr("action") + "&link=" + returnUrl)}, 250); 47 } 48 } 49 }); 50} 51//CR170404-04 : DMP NCD239_DSL_Cross-Sell_2017_LOG_OFF & D.Com - MAY 52 53 /* End placement specific functions */ 54 55/*Do not modify below this line */ 56 function init(){ 57 // console.log("in init"); 58 //find all elements that has a script defined 59 $("[data-omu-script]").each(function(){ 60 var fnName = this.getAttribute("data-omu-script"); 61 //console.log("identified " + fnName); 62 if(fnName && fnName!=="" && scripts[fnName]){ 63 scripts[fnName](); 64 }; 65 }) 66 } 67 68 return {init:init}; 69})(); 70})();
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.