Difference between revisions of "Widget:GuidelinesList"
From LINKS Community Center
Line 239: | Line 239: | ||
} | } | ||
− | .data-source-img, | + | /* .data-source-img, |
.func-img { | .func-img { | ||
width: 1.2rem; | width: 1.2rem; | ||
Line 246: | Line 246: | ||
margin-bottom: .4rem; | margin-bottom: .4rem; | ||
filter: grayscale(1); | filter: grayscale(1); | ||
− | } | + | } */ |
</style> | </style> | ||
<script> | <script> | ||
Line 331: | Line 331: | ||
// Fetches platform / data source information. | // Fetches platform / data source information. | ||
− | async function getSources() { | + | // async function getSources() { |
− | + | // const IMG_KEY = 'IMAGE'; | |
− | + | // const sourceResponse = await fetch( | |
− | + | // getQueryUrl('[[Category:Social media platform]]|?' + IMG_KEY) | |
− | + | // ).then(response => response.json()); | |
− | + | // return Object.keys(sourceResponse.query.results).map(platform => { | |
− | + | // const img = sourceResponse.query.results[platform].printouts[IMG_KEY][0]; | |
− | + | // return { | |
− | + | // name: platform, | |
− | + | // image: img ? getFilePath(img.fulltext) : undefined | |
− | + | // }; | |
− | + | // }); | |
− | } | + | // } |
function applyFilters(clear) { | function applyFilters(clear) { | ||
− | |||
if (!table) return; | if (!table) return; | ||
Revision as of 12:53, 18 July 2023
Current version of the List of Guidelines.
Currently in use – do not modify!