Skip to content
Snippets Groups Projects
Commit 898b0ac4 authored by HouTeng Chan's avatar HouTeng Chan
Browse files

Update file human-practices.html

parent a79e01f4
No related branches found
No related tags found
No related merge requests found
......@@ -757,16 +757,20 @@
</div>
<script>
function toggleContent(element) {
const content = element.querySelector('.expert-content');
if (content.style.display === 'none' || content.style.display === '') {
content.style.display = 'block';
} else {
content.style.display = 'none';
}
}
</script>
<script>
function toggleContent(card) {
var content = card.querySelector('.expert-content');
var clickForMore = card.querySelector('.click-for-more');
if (content.style.display === 'none' || content.style.display === '') {
content.style.display = 'block';
clickForMore.textContent = 'Click to collapse';
} else {
content.style.display = 'none';
clickForMore.textContent = 'Click for more';
}
}
</script>
</body>
</html>
{% endblock %}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment