More components
Cookie message
Should be implemented right before scripts at the end of the body
element on every page. Everything else is handled automagically by JavaScript.
Stores an information capsule in localStorage.cookieMessageStatus
to keep track of accepted status.
Can also be toggled from the console by setting localStorage.cookieMessageStatus
to "accepted"
or undefined
.
<div class="cookie-message">
<p>By using this website you accept that we use information capsules. Read more about how we handle your personal information in our <a href="#">privacy statement</a>.</p>
<button class="button primary">That's okey!</button>
</div>
Map
<div class="map" data-lat="58.855319" data-lng="5.740239" data-zoom="14"></div>
Money
This component relies on Accounting.js.
<sg-currency v-bind:amount="1995.25"></sg-currency>
Add the class money-show-decimals
to show decimals.