Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 15 additions & 2 deletions service-providers.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ <h1>Service Providers</h1>




<div class="wrapper">


Expand Down Expand Up @@ -143,4 +142,18 @@ <h1>Service Providers</h1>
show_bpmn_training.addEventListener('change', filter_table)
show_consulting.addEventListener('change', filter_table)
show_support.addEventListener('change', filter_table)
</script>

// Shuffle the table rows on page load for every visitor
document.addEventListener('DOMContentLoaded', () => {
const tbody = document.getElementById('results');
const rows = Array.from(tbody.querySelectorAll('tr'));

// Fisher-Yates shuffle algorithm for a fair shuffle
for (let i = rows.length - 1; i > 0; i--) {
const j = Math.floor(Math.random() * (i + 1));
[rows[i], rows[j]] = [rows[j], rows[i]];
}

rows.forEach(row => tbody.appendChild(row));
});
</script>