Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Junior Milestones #1

Open
markbeech opened this issue Feb 28, 2024 · 0 comments
Open

Junior Milestones #1

markbeech opened this issue Feb 28, 2024 · 0 comments

Comments

@markbeech
Copy link

markbeech commented Feb 28, 2024

I have hacked a copy of this to replace the 5K milestones with the Junior parkrun milestones by changing a couple of lines in script.js

meta.milestones.official = { 11: [], 21: [], 50: [], 100: [], 250: []};
and
{ label: '250', value: meta.milestones.official[250].length, color: '#ffff00' }, { label: '100', value: meta.milestones.official[100].length, color: '#7f7f7f' }, { label: 'ultra marathon', value: meta.milestones.official[50].length, color: '#ffa401' }, { label: 'marathon', value: meta.milestones.official[21].length, color: '#c1cf00' }, { label: 'half marathon', value: meta.milestones.official[11].length, color: '#98d6ec' },

It is beyond me, but I was wondering if it would be possible to have both the 5K and 2K/Jr milestones but switch between them based on the existance of the string -juniors in the URL?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant