PageSourceSearch

https://www.cartabcc.it/Style%20Library/JSLink/CBCC_DocumentiVanta…=1790306272&ctag=11352$$16.0.19725.20522

js cartabcc.it collected 2026-09-25 03:18:48 UTC 1,963 bytes, 41 lines download raw bytes

1var vantaggiDocumentiElems = "";
2var headerDocumentiVantaggi = "<div class='row vcenter border'><div class='wrapper-width'>";
3var footerDocumentiVantaggi = "</div></div>";
4
5function TemplateDocumentiVantaggi(baseViewID, listTemplateType) {
6    var overrideContext = {};
7    overrideContext.BaseViewID = baseViewID;
8    overrideContext.ListTemplateType = listTemplateType;
9    overrideContext.Templates = {};
10    overrideContext.Templates.Header = "";
11    overrideContext.Templates.Item = customItemDocumentiVantaggi;
12    overrideContext.Templates.Footer = "";
13
14    SPClientTemplates.TemplateManager.RegisterTemplateOverrides(overrideContext);
15}
16
17function customItemDocumentiVantaggi(ctx) {
18    var tokens = $(location).attr('pathname').split('/');
19    var pageName = tokens[tokens.length-1];
20    //var pageUrl ='/Documents/' + (tokens[tokens.length -1].split('#')[0]).replace('.aspx','');
21    var pageUrl = '/Documents/' +  pageName.replace(pageName.substr(pageName.indexOf('.aspx')),'');
22    
23    
24    if (ctx.CurrentItem.FileRef.toLowerCase().indexOf(pageUrl.toLowerCase()) > 0)
25    {    
26    vantaggiDocumentiElems += "<div class='col-sm-12 col-md-4'>";
27    vantaggiDocumentiElems += "<div class='content'>";
28    vantaggiDocumentiElems += "<h3>" + ctx.CurrentItem.Title + "</h3>";
29    vantaggiDocumentiElems += "<span class='icon-document'></span><span>"+(ctx.CurrentItem['Descrizione']!=null?ctx.CurrentItem['Descrizione']:'')+"</span>";
30    vantaggiDocumentiElems += "<a href='" + ctx.CurrentItem.FileRef + "' class='button'>Scarica ora</a>";
31    vantaggiDocumentiElems += "</div>";
32    vantaggiDocumentiElems += "</div>";
33   	}
34    return "";
35}
36
37TemplateDocumentiVantaggi(1,101);
38$(document).ready(function () {	
39    var completeDocumentiVantaggiTag = headerDocumentiVantaggi + vantaggiDocumentiElems + footerDocumentiVantaggi;
40    TemplateBefore("DocumentiVantaggiOverlayCss", completeDocumentiVantaggiTag);
41});

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.