Discussies » Ontwikkeling

metal-archives.com(discography pages): split the "Reviews" column in two and make the table sortable

§
Geplaatst: 25-09-2014
Bijgewerkt: 22-10-2014

metal-archives.com(discography pages): split the "Reviews" column in two and make the table sortable

I'd like a script for discography pages of metal-archives.com (example).
that would do two things:

  1. split the "Reviews" column in two:
    one "Reviews(count)" and the other "Reviews Rating(average)", and
  2. make the table sortable.

The values in the "Reviews" column is like this: 3 (80%)
therefore the value before the parentheses (3) would become the first column,
and the other (80%) the second.
Then, clicking on a column header, would sort the table accordingly.

Eg.

RECORD       |  REVIEWS        
Record A ------> 1 (80%)
Record B ------> 3 (60%)
Record C ------> 2 (70%)

to become

RECORD     |    R1 | R2
Record A ------> 1 | 80%
Record B ------> 3 | 60%
Record C ------> 2 | 70%

and clicking on a column header, eg. R1 or R2 would do the sort.

§
Geplaatst: 09-10-2014
Bijgewerkt: 30-08-2015

...

§
Geplaatst: 10-10-2014
Bijgewerkt: 30-08-2015

,,,

§
Geplaatst: 13-10-2014
Bijgewerkt: 30-08-2015

...

§
Geplaatst: 15-10-2014
Bijgewerkt: 16-10-2014

I've finished the script and uploaded it here.

Reactie plaatsen

Log in om antwoord te geven.

长期地址
遇到问题?请前往 GitHub 提 Issues,或加Q群1031348184

赞助商

Fishcpy

广告

Rainyun

注册一下就行

Rainyun

一年攒够 12 元