QuantumLearner commited on
Commit
544c74e
·
verified ·
1 Parent(s): 0f64b14

Create custom.js

Browse files
Files changed (1) hide show
  1. public/custom.js +21 -0
public/custom.js ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /* custom.js */
2
+
3
+ Wait until the DOM is fully loaded
4
+ document.addEventListener('DOMContentLoaded', function () {
5
+ // Target all links and buttons
6
+ const links = document.querySelectorAll('a');
7
+
8
+ links.forEach(link => {
9
+ // Suppress the display of URLs in the browser status bar
10
+ link.addEventListener('mouseover', function (event) {
11
+ event.preventDefault();
12
+ window.status = ''; // Clear the status bar
13
+ });
14
+
15
+ // Optionally disable pointer events for all links (comment this out if not needed)
16
+ // link.style.pointerEvents = 'none';
17
+ // link.style.cursor = 'default';
18
+ });
19
+
20
+ //console.log('Custom JS applied: URL hover behavior modified.');
21
+ });