PageSourceSearch

https://www.lapiramide.org/wp-content/plugins/dans-gdrive-viewer/j…?ver=a0febe563e3aa6643eda8e6597a7f545

js lapiramide.org collected 2026-10-02 01:07:12 UTC 2,429 bytes, 66 lines download raw bytes

1function print_file_row(data,i,api_key) {
2
3
4	var mimeType = data.files[i].mimeType; 
5	var fName = data.files[i].name;
6	var id = data.files[i].id;
7	var viewLink = '';
8
9	switch(mimeType) {
10
11		case 'application/vnd.google-apps.folder':
12			var fileType = 'Folder';
13			var dlLink = 'Folder';
14			var viewLink = '<button style=\"width:100%\" onClick=loadSub(\''+id+'\',\''+folderId+'\',\''+api_key+'\')>'+fName+'</button>';
15			var rowclass = 'dandrive-folder-row';
16			var tdclass = 'dandrive-folder-td';
17			break;
18
19		case 'application/pdf':
20			var fileType = 'PDF';
21			var dlLink = '<a href="https://drive.google.com/uc?export=download&id='+id+'" target="_blank"><button style=\"width:100%\">DL</button></a>';
22			var rowclass = 'dandrive-pdf-row';
23			var tdclass = 'dandrive-pdf-td';
24			break;
25
26		case 'application/vnd.google-apps.document':
27			var fileType = 'G Document';
28			var dlLink = '<a href="https://docs.google.com/document/d/'+id+'/export?format=doc" target="_blank"><button style=\"width:100%\">Export</button></a>';
29			var rowclass = 'dandrive-gdoc-row';
30			var tdclass = 'dandrive-gdoc-td'; 
31			break;
32
33		case 'application/vnd.google-apps.presentation':
34			var fileType = 'G Presentation';
35			var dlLink = '<a href="https://docs.google.com/presentation/d/'+id+'/export/pptx" target="_blank"><button style=\"width:100%\">Export</button></a>';
36			var rowclass = 'dandrive-gpres-row';
37			var tdclass = 'dandrive-gpres-td';
38			break;
39
40		case 'application/vnd.google-apps.spreadsheet':
41			var fileType = 'G Sheet';
42			var dlLink = '<a href="https://docs.google.com/spreadsheets/d/'+id+'/export?format=xlsx" target="_blank"><button style=\"width:100%\">Export</button></a>'; 
43			var rowclass = 'dandrive-gsheet-row';
44			var tdclass = 'dandrive-gsheet-td';
45			break;
46
47		default:
48			var fileType = 'Other';
49			var dlLink = '<a href="https://drive.google.com/uc?export=download&id='+id+'" target="_blank"><button style=\"width:100%\">DL</button></a>';
50			var rowclass = 'dandrive-other-row';
51			var tdclass = 'dandrive-other-td';
52 	}
53
54	if(viewLink == '') {
55
56		viewLink = '<a href="https://drive.google.com/file/d/'+id+'/view" target="_blank">'+fName+' (View)</a>';
57
58	} 
59
60//<td class=\''+tdclass+', dandrive-td\'>'+fileType+'</td>
61	
62 	var tempinner ='<tr class=\''+rowclass+', dandrive-row\'><td class=\''+tdclass+', dandrive-td\'>'+viewLink+'</td><td class=\''+tdclass+', dandrive-td\'>'+dlLink+'</td></tr>';
63
64	return tempinner;
65}
66

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.