Difference between revisions of "Widget:ApprovedMaterials"

From LNF Wiki
Jump to navigation Jump to search
(Changed google docs link, attempting to fix CORS error)
 
Line 13: Line 13:
 
     google.setOnLoadCallback(init);
 
     google.setOnLoadCallback(init);
  
     var dataSourceUrlTools = 'https://spreadsheets.google.com/tq?key=1Zte9fjJZwD9I9xH3vhPDzumTvd3adLVZmWMz4KICa5U&gid=2061549768';
+
     var dataSourceUrlTools = 'https://docs.google.com/spreadsheets/d/1Zte9fjJZwD9I9xH3vhPDzumTvd3adLVZmWMz4KICa5U/gviz/tq?gid=2061549768';
     var dataSourceUrlMaterials = 'https://spreadsheets.google.com/tq?key=1Zte9fjJZwD9I9xH3vhPDzumTvd3adLVZmWMz4KICa5U&gid=821540815';
+
     var dataSourceUrlMaterials = 'https://docs.google.com/spreadsheets/d/1Zte9fjJZwD9I9xH3vhPDzumTvd3adLVZmWMz4KICa5U/gviz/tq?gid=821540815';
  
  

Latest revision as of 08:24, 28 July 2020

This widget will display the approved and restricted materials for a tool based on its toolid. Use the following code:

{{#widget:ApprovedMaterials|toolid=#####|header=Y/N}}