Skip to content

Commit

Permalink
BKDK-476
Browse files Browse the repository at this point in the history
  • Loading branch information
hjemmesidekongen committed Jun 10, 2021
1 parent ac96b01 commit 7b07b33
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 14 deletions.
13 changes: 6 additions & 7 deletions web/themes/custom/fds_ballerup_theme/dist/javascripts/app.js

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ styles:

javascripts:
js:
"https://unpkg.com/@popperjs/core@2": { type: external }
"https://unpkg.com/tippy.js@6": { type: external }
dist/javascripts/app.js: {}
dist/javascripts/modernizr.js: {}
dependencies:
Expand Down
13 changes: 13 additions & 0 deletions web/themes/custom/fds_ballerup_theme/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion web/themes/custom/fds_ballerup_theme/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
"dependencies": {
"dkfds": "^6.1.1",
"font-awesome": "^4.7.0",
"material-design-icons": "^3.0.1"
"material-design-icons": "^3.0.1",
"tippy.js": "^6.3.1"
},
"devDependencies": {
"browser-sync": "^2.26.12",
Expand Down
11 changes: 5 additions & 6 deletions web/themes/custom/fds_ballerup_theme/src/javascripts/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,10 +138,9 @@ document.addEventListener('DOMContentLoaded', function() {
(function() {
var links = document.querySelectorAll('a[href^="mailto:"]');

for (var i = 0; i < links.length; i += 1) {
var link = links[i];

link.setAttribute('data-tooltip', 'Du er nu ved at sende en almindelig e-mail. Hvis din besked indeholder personoplysninger, bør du i stedet sende den som en <u>sikker besked</u>');
link.classList.add('js-tooltip');
}
tippy(links, {
content: '<div style="text-align: center;">Du er nu ved at sende en almindelig e-mail. <br />Hvis din besked indeholder personoplysninger, bør du i stedet sende den som en <br /><a href="/sikkerbesked" style="color: #fff;">sikker besked</a></div>',
allowHTML: true,
interactive: true,
});
}());

0 comments on commit 7b07b33

Please sign in to comment.