Fix highlight first solve
This commit is contained in:
parent
fd4b78178f
commit
e07fdc318f
1 changed files with 3 additions and 11 deletions
|
@ -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>
|
Loading…
Reference in a new issue