Skip to content

Commit

Permalink
feat: 添加编辑按钮
Browse files Browse the repository at this point in the history
  • Loading branch information
MikuSugar committed Dec 29, 2023
1 parent 62e1d19 commit ac674b0
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions src/main/resources/example.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,27 @@
<html lang="zh">

<head>
<style>
.github-edit-button {
position: fixed;
bottom: 20px;
right: 20px;
z-index: 999; /* 确保按钮在其他元素上面 */
display: inline-block;
padding: 10px 20px;
background-color: #3498db;
color: #fff;
text-decoration: none;
border-radius: 4px;
border: none;
font-size: 16px;
transition: background-color 0.3s ease;
}

.github-edit-button:hover {
background-color: #2980b9;
}
</style>
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js">
</script>
<script>
Expand Down Expand Up @@ -203,6 +224,9 @@ <h4 class="text-gray linecons-tag" style="margin-right: 7px;" th:text="${site.id
<script src="../assets/js/xenon-toggles.js"></script>
<!-- JavaScripts initializations and stuff -->
<script src="../assets/js/xenon-custom.js"></script>
<a href="https://github.com/MikuSugar/SugarHome/edit/master/src/main/resources/in.json" class="github-edit-button">
编辑
</a>
</body>

</html>

0 comments on commit ac674b0

Please sign in to comment.