summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlittleblack111 <littleblack11111@gmail.com>2023-10-06 22:48:33 +0800
committerlittleblack111 <littleblack11111@gmail.com>2023-10-06 22:48:33 +0800
commit5f5153aade61997ef7ebac16e51c3cdfa565ae23 (patch)
treeb692cf07c9d19b220f44e6c9c743e51c09b4b5fa
parentd88c54e5a714860cd8d08f6132dfe9cf031ae118 (diff)
no glare
-rw-r--r--index.html2
-rw-r--r--src/js/tilt.conf.noglare.js3
2 files changed, 4 insertions, 1 deletions
diff --git a/index.html b/index.html
index e5cc4184..a647888f 100644
--- a/index.html
+++ b/index.html
@@ -45,7 +45,7 @@
<script src="/src/js/index.js"></script>
<script src="/src/js/tilt.js"></script>
- <script src="/src/js/tilt.conf.js"></script>
+ <script src="/src/js/tilt.conf.noglare.js"></script>
<script src="/src/js/header.js"></script>
<script src="/src/js/hacktype.js"></script>
</body>
diff --git a/src/js/tilt.conf.noglare.js b/src/js/tilt.conf.noglare.js
new file mode 100644
index 00000000..a548252d
--- /dev/null
+++ b/src/js/tilt.conf.noglare.js
@@ -0,0 +1,3 @@
+VanillaTilt.init(document.querySelectorAll(".tilt"),{
+ glare: false,
+})