index.html 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. <!DOCTYPE html>
  2. <head>
  3. <!-- <link async rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css"
  4. integrity="sha384-HSMxcRTRxnN+Bdg0JdbxYKrThecOKuH5zCYotlSAcp1+c8xmyTe9GYg1l9a69psu" crossorigin="anonymous"> -->
  5. <script type="text/javascript" src="../js/jquery.min.js" crossorigin="anonymous"></script>
  6. <link rel="stylesheet" href="../css/bootstrap.min.css" crossorigin="anonymous">
  7. <script type="text/javascript" src="../js/bootstrap.min.js" crossorigin="anonymous"></script>
  8. <link rel="stylesheet" href="../css/style.css">
  9. <link rel="preconnect" href="https://fonts.gstatic.com">
  10. <link href="https://fonts.loli.net/css2?family=Anonymous+Pro:ital,wght@0,400;0,700;1,400;1,700
  11. &family=Noto+Serif+SC:wght@300;400;500;600;700&display=swap" rel="stylesheet">
  12. <title>日志</title>
  13. <style>
  14. * {
  15. transition-duration: 300ms;
  16. }
  17. .btn {
  18. text-shadow: rgb(85, 85, 85) 3px 2px 4px;
  19. display: inline-block;
  20. }
  21. .btn-xs.gee {
  22. background-color: rgb(70, 59, 150);
  23. color: white;
  24. }
  25. .btn-info.gee {
  26. color: #fff;
  27. background-color: #027396;
  28. border-color: #46b8da;
  29. }
  30. code.gee {
  31. background-color: rgb(70, 59, 150);
  32. }
  33. .noshadow {
  34. text-shadow: none;
  35. }
  36. .gee ::selection {
  37. color: white;
  38. text-decoration: underline wavy #FF3028;
  39. text-shadow: 1px 1px 2px red, 0 0 1em blue, 0 0 0.2em blue;
  40. background-color: black;
  41. }
  42. .gee {
  43. color: white;
  44. background-color: black;
  45. }
  46. .btn-dang {
  47. transition-duration: 1000ms;
  48. }
  49. .btn-dang.gee {
  50. outline: 10px transparent
  51. }
  52. .btn-dang:is(:hover, :hover:focus) {
  53. outline: 15px solid rgba(58, 58, 58, 0.8)
  54. }
  55. .btn-dang.gee:hover {
  56. outline: 4000px solid rgba(0, 0, 0, 0.1)
  57. }
  58. .btn-dang:is(:hover:active:focus, :active) {
  59. scale: 80%;
  60. transform: translate(-7px, -7px);
  61. outline: 150px double rgba(162, 6, 6, 0.5)
  62. }
  63. </style>
  64. <script>
  65. $().ready(function () {
  66. $('.btn-danger').on('click', function (e) {
  67. $('body,.btn,.btn-xs,code').toggleClass('gee')
  68. console.log(e)
  69. })
  70. })
  71. </script>
  72. </head>
  73. <body>
  74. <a class="btn btn-info" href="/"><span class="glyphicon glyphicon-home" aria-hidden="true"></span>&nbsp;返回</a>
  75. <div class="page-header">
  76. <h1>网站日志</h1>
  77. </div>
  78. <h3>
  79. 2022.12.4
  80. <small>dark</small>
  81. </h3>
  82. <p>在首页加上了黑暗模式,以及非常愚蠢的秘密消息。</p>
  83. <p>进一步完善按钮样式。</p>
  84. <hr>
  85. <h3>
  86. 2022.12.3
  87. <small><a href="/chem">chem</a></small>
  88. </h3>
  89. <p>把化学式配平、相对质量计算的网页实现出来了,接下来还要加上 MySQL 的上传。</p>
  90. <p>为所有按钮加上了好玩的悬浮样式。这可真不容易,为了去掉浏览器自带的丑陋黑色边框,我进行了不懈的斗争,最后发现是除了 <code>:focus</code><code>:active</code> 选择器,还得写上
  91. <code>:focus:active</code>
  92. </p>
  93. <button class="btn btn-info">看看</button>&nbsp;&nbsp;&nbsp;&nbsp;
  94. <button class="btn btn-info"
  95. style="outline: 10px double rgba(95, 177, 221, 0.5);">悬浮</button>&nbsp;&nbsp;&nbsp;&nbsp;
  96. <button class="btn btn-info" style="outline: 5px dashed rgba(95, 177, 221, 0.5);">聚焦</button>
  97. <hr>
  98. <h3>
  99. 2022.12.2
  100. <small>MySQL</small>
  101. </h3>
  102. <p>近日研究了 Bootstrap 框架很多不错的设计,如按钮组团等,进行了应用。</p>
  103. <p>今天开始尝试在本地搭建 MySQL 数据库。希望是日后能建起一个存放中学化学式的数据库。</p>
  104. <hr>
  105. <h3>
  106. 2022.11.30
  107. <small>WebSocket</small>
  108. </h3>
  109. <p>有了小崔给的主机,开辟了很多新领域。</p>
  110. <p>不用暴力地琢磨纯静态页面了,可以开始自己开发网页后端。刚起步,先用 Node.js+Express 做后端。写了个配平化学式的接口(<a class="btn-xs btn-default noshadow"
  111. href="/chemist?H2+O2=H2O">/chemist?H2+O2=H2O</a>)。</p>
  112. <p>用 WebSocket 可以实现服务器与客户端的即时通讯,原先搭载在 LeanCloud 上的五子棋计算部分可以迁移到本地了。</p>
  113. <hr>
  114. <p>开始记录。</p>
  115. <hr>
  116. <p><button class="btn btn-danger btn-dang"><span class="glyphicon glyphicon-off" aria-hidden="true"></span></button>
  117. </p>
  118. </body>
  119. </html>