Skip to content

Commit

Permalink
change method for calling analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
TAJD committed Feb 10, 2024
1 parent aa9dec6 commit 618d72c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

3-DOF Velocity Prediction Program based on the [ORC](https://www.orc.org/index.asp?id=21) aero and hydro dynamic models.

Please see the demo hosted at [https://yacht-vpp.streamlit.app/](https://yacht-vpp.streamlit.app/) and go for a test sail!

## Using the code

To use the code, first clone or download this repository then install the required dependencies (see below).
Expand Down
2 changes: 1 addition & 1 deletion demos/readme.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Demos

This directory contains a VPP demo that is currently deployed here ...
This directory contains a VPP demo that is currently deployed at [https://yacht-vpp.streamlit.app/](https://yacht-vpp.streamlit.app/)

11 changes: 7 additions & 4 deletions demos/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,13 @@
def header():
header = """
<script>
// Make sure this is *before* you load the count.js script; otherwise
// the pageview may get sent before this is loaded and this will just
// overwrite the object.
window.goatcounter = {allow_local: true}
window.goatcounter = {no_onload: true}
window.addEventListener('hashchange', function(e) {
window.goatcounter.count({
path: location.pathname + location.search + location.hash,
})
})
</script>
<script data-goatcounter="https://yacht-vpp.goatcounter.com/count"
async src="//gc.zgo.at/count.js"></script>
Expand Down

0 comments on commit 618d72c

Please sign in to comment.