Fix highlight first solve

This commit is contained in:
cuom1999 2022-06-13 11:35:02 +07:00
parent fd4b78178f
commit e07fdc318f

View file

@ -24,9 +24,9 @@
// get information // get information
$('td a').each(function() { $('td a').each(function() {
let td = $(this)[0] var td = $(this)[0];
let link = td['attributes']['href']['value'] var link = $(this).attr('data-featherlight');
if (link.includes('submissions')) { if (link && link.includes('submissions')) {
let scoreAndTime = (td.innerText.split('\n')) let scoreAndTime = (td.innerText.split('\n'))
let linkElements = link.split('/') let linkElements = link.split('/')
@ -201,14 +201,6 @@
setInterval(update_ranking, 60 * 1000); setInterval(update_ranking, 60 * 1000);
{% endif %} {% endif %}
{% endif %} {% endif %}
// $(".problem-score-a").on('click', function(e) {
// var href = $(this).attr('href');
// if (href !== '#') return;
// e.preventDefault();
// })
}); });
</script> </script>