Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
formula student elo
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
GET racing FOSS
formula student elo
Commits
67f323b3
Commit
67f323b3
authored
1 month ago
by
maeries
Browse files
Options
Downloads
Patches
Plain Diff
added analytics script
parent
fe894597
No related branches found
No related tags found
No related merge requests found
Pipeline
#277853
passed
1 month ago
Stage: test
Stage: deploy
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
header-snippet.html
+1
-0
1 addition, 0 deletions
header-snippet.html
main.py
+4
-0
4 additions, 0 deletions
main.py
public/index.html
+1
-0
1 addition, 0 deletions
public/index.html
with
6 additions
and
0 deletions
header-snippet.html
0 → 100644
+
1
−
0
View file @
67f323b3
<script
defer
data-domain=
"fselo.get-racing.de"
src=
"https://analytics.get-racing.de/js/script.js"
></script>
\ No newline at end of file
This diff is collapsed.
Click to expand it.
main.py
+
4
−
0
View file @
67f323b3
...
...
@@ -65,6 +65,8 @@ class EloSystem:
self
.
LINK_COLOR_HOVER
=
"
#cc3700
"
else
:
raise
with
open
(
"
header-snippet.html
"
)
as
header_snippet
:
self
.
header_snippet
=
header_snippet
.
read
()
def
load_competition_meta_data
(
self
):
if
self
.
competition_type
==
"
combustion
"
:
...
...
@@ -257,6 +259,7 @@ class EloSystem:
<meta charset=
"
UTF-8
"
>
<meta name=
"
viewport
"
content=
"
width=device-width, initial-scale=1.0
"
>
<title>Formula Student
{
self
.
competition_type
}
Elo Rankings</title>
{
self
.
header_snippet
}
<style>
body {{
display: flex;
...
...
@@ -510,6 +513,7 @@ class EloSystem:
<meta charset=
"
UTF-8
"
>
<meta name=
"
viewport
"
content=
"
width=device-width, initial-scale=1.0
"
>
<title>
{
team_name
}
- Elo Profile</title>
{
self
.
header_snippet
}
<style>
body {{
font-family: Arial, sans-serif;
...
...
This diff is collapsed.
Click to expand it.
public/index.html
+
1
−
0
View file @
67f323b3
...
...
@@ -3,6 +3,7 @@
<head>
<meta
charset=
"UTF-8"
>
<title>
Formula Student World Elo
</title>
<script
defer
data-domain=
"fselo.get-racing.de"
src=
"https://analytics.get-racing.de/js/script.js"
></script>
<style>
body
{
display
:
flex
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment