Skip to content

Commit

Permalink
feat(client): new fancy background for intro
Browse files Browse the repository at this point in the history
  • Loading branch information
st-vi committed Dec 13, 2023
1 parent c74d4bd commit 03e3af8
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion WebSocketClient/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
<head>
<meta charset="UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="split.css">
<link rel="stylesheet" href="./node_modules/intro.js/introjs.css">
<link rel="stylesheet" href="./node_modules/intro.js/themes/introjs-modern.css">
<link rel="stylesheet" href="style.css">
<title>UVL Playground</title>
</head>
<body>
Expand Down
10 changes: 10 additions & 0 deletions WebSocketClient/src/intro.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,17 @@ export const initIntroJS = () => {
intro.setOption("exitOnOverlayClick", false);
intro.setOption("overlayOpacity", 0);
intro.setOption("disableInteraction", true);
intro.setOption("highlightClass", "tmpClass");
intro.start();

var helperLayer = document.getElementsByClassName("tmpClass");
setTimeout(() => {
if(helperLayer[0] instanceof HTMLElement){
helperLayer[0].style["box-shadow"] = "rgb(255, 255, 255) 0px 0px 1px 2px, rgba(230, 230, 230, 0.44) 0px 0px 0px 5000px";
}
}, 100);


});

}

0 comments on commit 03e3af8

Please sign in to comment.