Skip to content

Commit

Permalink
issue fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
sa-si-dev committed Feb 26, 2021
1 parent dbc6970 commit d77aaa8
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/assets/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
}

body {
font-family: 'Roboto';
font-family: 'Roboto' sans-serif;
font-size: 16px;
}

Expand Down
10 changes: 10 additions & 0 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,16 @@

<link rel="stylesheet" href="assets/tooltip.min.css" />
<link rel="stylesheet" href="assets/styles.css" />

<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-5L3LVB532V"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());

gtag('config', 'G-5L3LVB532V');
</script>
</head>
<body>
<div id="app"></div>
Expand Down
10 changes: 8 additions & 2 deletions src/tooltip.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,21 @@
window.tooltipComponentInitiated = true;
}

let $body = document.querySelector('body');
let $body;
let $tooltip;
let $currentEle;
let options = {};
let enterDelayTimeout;
let exitDelayTimeout;
let hideDurationTimeout;

addEvents();
window.addEventListener('load', initTooltip);

function initTooltip() {
$body = document.querySelector('body');

addEvents();
}

/** event methods - start */
function addEvents() {
Expand Down
2 changes: 1 addition & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const MiniCssExtractPlugin = require('mini-css-extract-plugin');
const TerserPlugin = require('terser-webpack-plugin');
const FileManagerPlugin = require('filemanager-webpack-plugin');

const banner = `Tooltip v1.0.5
const banner = `Tooltip v1.0.6
https://sa-si-dev.github.io/tooltip
Licensed under MIT (https://github.com/sa-si-dev/tooltip/blob/master/LICENSE)`;

Expand Down

0 comments on commit d77aaa8

Please sign in to comment.