More tweaks

This commit is contained in:
Sam 2024-08-08 14:28:50 +01:00
parent 26c3aa3d73
commit 2653beec5c
4 changed files with 26 additions and 12 deletions

View File

@ -9,7 +9,8 @@ summary: "Growth of bitcoin businesses based on OSM data"
The following table shows bitcoin business growth around the world for the selected period in the dropdown. The chart displays yearly cumulative number of bitcoin businesses for the countries selected in the table. The following table shows bitcoin business growth around the world for the selected period in the dropdown. The chart displays yearly cumulative number of bitcoin businesses for the countries selected in the table.
Data is obtained from Openstreetmaps and is updated roughly every 2 hours. Data is obtained from Openstreetmaps and is updated roughly every 2 hours.
<br/>
<br/>
Select growth period: {{< dropdown-filter id=cumulative_period_type select="365 day,28 day,7 day,1 day" >}} Select growth period: {{< dropdown-filter id=cumulative_period_type select="365 day,28 day,7 day,1 day" >}}
{{< chart src="/js/bitcoin-business-growth-chart.js" >}} {{< chart src="/js/bitcoin-business-growth-chart.js" >}}
{{< table src="/js/bitcoin-business-growth-table.js" >}} {{< table src="/js/bitcoin-business-growth-table.js" >}}

View File

@ -19,3 +19,5 @@ title = 'baseddata.io'
ordered = false ordered = false
startLevel = 2 startLevel = 2
[markup.goldmark.renderer]
unsafe = true

View File

@ -1,6 +1,8 @@
<script src="https://cdn.jsdelivr.net/npm/echarts@5.5.1/dist/echarts.min.js"></script> <script src="https://cdn.jsdelivr.net/npm/echarts@5.5.1/dist/echarts.min.js"></script>
<div id="chart"> <section class="chart-container">
<div id="chart">
<canvas id="{{ .id }}"></canvas> <canvas id="{{ .id }}"></canvas>
<script src="{{ .src }}"></script> <script src="{{ .src }}"></script>
</div> </div>
</section>
<script src="/js/chart-params.js"></script> <script src="/js/chart-params.js"></script>

View File

@ -5,18 +5,27 @@
</div> </div>
<div class="navbar__right"> <div class="navbar__right">
<div class="navbar-links">{{ partial "navbarlinks.html" . }}</div> <div class="navbar-links">{{ partial "navbarlinks.html" . }}</div>
<!-- <div class="navbar-dropdown"> <div class="navbar-dropdown">
<button class="hamburger-dropbtn"> <button class="hamburger-dropbtn">
<img <svg
class="hamburger" xmlns="http://www.w3.org/2000/svg"
src="/hamburger-menu.svg" fill="none"
alt="description of image" viewBox="0 0 24 24"
/> stroke-width="3"
stroke="#6c757d"
class="hamburger-svg"
>
<path
stroke-linecap="round"
stroke-linejoin="round"
d="M4 6h16M4 12h16M4 18h16"
></path>
</svg>
</button> </button>
<div class="navbar-dropdown-content"> <div class="navbar-dropdown-content">
{{ partial "navbarlinks.html" . }} {{ partial "navbarlinks.html" . }}
</div> </div>
</div> --> </div>
</div> </div>
</nav> </nav>
</header> </header>