Changelog: https://roxy-wi.org/changelog#7.0.0
pull/364/head v7.0.0.0
Aidaho 2023-10-14 10:47:37 +03:00
parent 813e341988
commit 9a4d29076e
2 changed files with 7 additions and 9 deletions

View File

@ -1,6 +1,6 @@
<script> <script>
function Intro() { function Intro() {
var intro = introJs(); let intro = introJs();
intro.setOptions({ intro.setOptions({
steps: [ steps: [
{ {
@ -95,16 +95,16 @@
let intro = introJs(); let intro = introJs();
intro.setOptions({ intro.setOptions({
hints: [ hints: [
{ hint: 'A new way for Groups and Roles. Try it!', element: '#user-group-role-th' }, { hint: 'Looking for Services? They\'re here, now it\'s called Tools', element: '#ui-id-7' },
] ]
}); });
intro.onhintclose(function() { intro.onhintclose(function() {
localStorage.setItem('introHintAdminRoles', 1); localStorage.setItem('introHintAdminTools', '1');
localStorage.removeItem('introHintAdminRoles');
}); });
return intro; return intro;
} }
// setTimeout(() => { var intro_temp = Intro(); startIntro(intro_temp); }, 3000); if (!localStorage.getItem('introHintAdminTools')) {
if (!localStorage.getItem('introHintAdminRoles')) {
setTimeout(() => { setTimeout(() => {
var intro_temp = introHints(); var intro_temp = introHints();
intro_temp.addHints(); intro_temp.addHints();

View File

@ -1,6 +1,6 @@
<script> <script>
function Intro() { function Intro() {
var intro = introJs(); let intro = introJs();
intro.setOptions({ intro.setOptions({
steps: [ steps: [
{ {
@ -82,12 +82,10 @@
}, },
{ {
element: document.querySelector('.menu'), element: document.querySelector('.menu'),
intro: "7 more sections left to discover. Meet you there :)", intro: "9 more sections left to discover. Meet you there :)",
} }
] ]
}); });
return intro; return intro;
} }
// setTimeout(() => { var intro_temp = Intro(); startIntro(intro_temp); }, 3000);
</script> </script>