PageSourceSearch

https://www.telular.com/-/media/themes/ameteksxa/basesite/basewebs…/scripts/download-media-cookie.js?thm=1

js telular.com collected 2026-10-08 19:14:33 UTC 3,156 bytes, 87 lines download raw bytes

1    
2     $(document).ready(function () {
3         // $('.downloadMediaCookie').each(function(){
4         //    var formAttr = $(this).attr("data-form");
5         //        if (formAttr == "") {
6         //            $(this).removeClass('downloadMediaCookie');
7         //        }            
8         // });
9         
10         
11        $('body').on('click', '.downloadMediaCookie', function (e) {	
12         //   e.preventDefault();
13            var passID = $(this).attr("href"),
14                formAttr = $(this).attr("data-form");
15            
16            if (formAttr !== '') {
17                $.ajax({
18                    type: "POST",
19                    url: "/api/sitecore/Product/PdfDownload",
20                    data: { 'InputPdf': passID },
21                    success: function (response) {
22                        var obj = JSON.parse(response);
23                        var PdfTitle = obj.Title;
24                        var pdfUrl = obj.url;
25                        var a = document.createElement('a');
26                        var url = window.location.protocol + "/" + window.location.hostname + "/" + pdfUrl.slice(1, -1);
27
28                        a.href = url;
29                        a.download = PdfTitle//'myfile.pdf';
30                        var documentBody=$('.download');
31                        documentBody.append(a);                   
32                        a.click();
33                        a.remove();
34                        window.URL.revokeObjectURL(url);
35                    },
36                });
37                return false;
38            }
39        });
40    });
41    
42    
43
44    $(document).ready(function () {
45        $('a.downloadFormCTA').click(function (e) {
46            e.preventDefault();
47            var formAttr = $(this).attr("data-form");
48            if (formAttr == "savedata") {
49                var passID = $(this).attr("href");
50                $.ajax({
51                    type: "POST",
52                    url: "/api/sitecore/Product/PdfDownload",
53                    data: { 'InputPdf': passID },
54                    success: function (response) {
55                        var obj = JSON.parse(response);
56                        var PdfTitle = obj.Title;
57                        var pdfUrl = obj.url;
58                        var a = document.createElement('a');
59                        var url = window.location.protocol + "/" + window.location.hostname + "/" + pdfUrl.slice(1, -1);
60                        a.href = url;
61                        a.download = PdfTitle//'myfile.pdf';
62                        var documentBody=$('#downloadCTACustom');
63                        documentBody.append(a);
64                        a.click();                        
65                        window.URL.revokeObjectURL(url);
66                        a.remove();
67                    }
68                });
69            }
70            else {
71                var redirectUrl = $(this).attr("href");
72                window.location.href = redirectUrl;
73            }
74        });
75    });
76
77    
78    
79    
80    
81    
82    
83    
84    
85    
86    
87    

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.