1new Vue({ 2 el: '#partnershipCmp-' + window.partnershipId, 3 data: function () { 4 return { 5 title: "", 6 description: "", 7 skewDownward: false, 8 pathURL: "", 9 target: "", 10 cardHasTwoLinesOnly: false, 11 cqProp_actionId: "", 12 cqProp_contextComponentTitle: "", 13 cqProp_buttonLabel: "", 14 cqProp_paramOnClick: "", 15 } 16 }, 17 mounted: function () { 18 this.title = window.title; 19 this.description = window.description; 20 this.skewDownward = window.alignment == "downward"; 21 this.pathURL = window.pathURL; 22 this.target = window.target; 23 this.cardHasTwoLinesOnly = this.stripHtmlCharacters(this.title).length < 28 && this.stripHtmlCharacters(this.description).length < 34; 24 this.cqProp_actionId = window.cqProp_actionId; 25 this.cqProp_contextComponentTitle = window.cqProp_contextComponentTitle; 26 this.cqProp_buttonLabel = window.cqProp_buttonLabel; 27 this.cqProp_paramOnClick = window.cqProp_paramOnClick; 28 }, 29 methods: { 30 onClickHandler : function(e) { 31 yorn_tealium_partnershipCard.methods.handleCardClick(this.cqProp_actionId, this.cqProp_contextComponentTitle, this.cqProp_buttonLabel); 32 if (this.pathURL) { 33 e.preventDefault(); 34 window.open(this.pathURL, this.target); 35 } 36 if(this.cqProp_paramOnClick){ 37 new Function(this.cqProp_paramOnClick)(); 38 } 39 }, 40 stripHtmlCharacters: function (text) { 41 return text.replace(/(<([^>]+)>)/gi, ""); 42 }, 43 } 44});
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.