mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-04 04:51:16 +08:00
small change
This commit is contained in:
parent
60b580f430
commit
727263fc54
1 changed files with 13 additions and 42 deletions
|
@ -54,42 +54,13 @@
|
|||
justify-content: center;
|
||||
display: flex;
|
||||
}
|
||||
.tooltip {
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
border-bottom: 1px dotted black;
|
||||
}
|
||||
|
||||
.tooltip .tooltiptext {
|
||||
visibility: hidden;
|
||||
width: 120px;
|
||||
bottom: 120%;
|
||||
left: 70%;
|
||||
margin-left: -60px;
|
||||
background-color: black;
|
||||
color: #fff;
|
||||
text-align: center;
|
||||
border-radius: 6px;
|
||||
padding: 5px 0;
|
||||
|
||||
position: absolute;
|
||||
z-index: 2;
|
||||
}
|
||||
.tooltip .tooltiptext::after {
|
||||
content: " ";
|
||||
position: absolute;
|
||||
top: 100%;
|
||||
left: 50%;
|
||||
margin-left: -5px;
|
||||
border-width: 5px;
|
||||
border-style: solid;
|
||||
border-color: black transparent transparent transparent;
|
||||
}
|
||||
|
||||
.tooltip:hover .tooltiptext {
|
||||
visibility: visible;
|
||||
}
|
||||
</style>
|
||||
<script defer>
|
||||
function copyUserName() {
|
||||
navigator.clipboard.writeText("Miodec#1512");
|
||||
// alert("Copied To Clipboard!");
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
@ -315,13 +286,13 @@
|
|||
</div> -->
|
||||
|
||||
Discord:
|
||||
<button aria-label="Click To Copy" data-balloon-pos="up" onclick="copyUserName()">Miodec#1512</button>
|
||||
<script>
|
||||
function copyUserName() {
|
||||
navigator.clipboard.writeText("Miodec#1512");
|
||||
alert("Copied To Clipboard!");
|
||||
}
|
||||
</script>
|
||||
<span
|
||||
aria-label="Click To Copy"
|
||||
data-balloon-pos="up"
|
||||
onclick="copyUserName()"
|
||||
>
|
||||
Miodec#1512
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
|
|
Loading…
Reference in a new issue