This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Custom rounding added prototype | |
* @param number The number to apply rounding to. Must be of type Number. | |
* @param decimals Number of decimal points to keep. Must be in the range of 0 - 20. | |
*/ | |
// Vue prototyping ES6 | |
Vue.prototype.$roundNumber = (number, decimals) => Number( | |
(`${Math.round(`${number}e${decimals}`)}e-${decimals}`), | |
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<main class="parent"> | |
<div class="child"></div> | |
<div class="gutter"></div> | |
<div class="child"></div> | |
</main> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
var messagesSent = 0; | |
window.fcSettings = { | |
token: "YOUR_FC_TOKEN", | |
host: "https://wchat.freshchat.com", | |
onInit: function() { | |
if (window.dataLayer !== undefined) { | |
window.fcWidget.on("widget:loaded", function (resp) { | |
window.fcWidget.on("widget:opened", function (resp) { | |
window.dataLayer.push({ event: "GeneralEvent", eventCategory: "freshchat", eventAction: 'Widget Open', eventLabel: window.location.href }); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$blue: ( | |
lightest: #e6f5ff, | |
lighter: #8bcdff | |
) !default; |