@@ -50,11 +50,31 @@ function initFooterDelay() {
5050 ` ;
5151 document . body . appendChild ( debugIndicator ) ;
5252
53- // Remove debug indicator after 3 seconds
53+ // Add touch capability indicator
54+ const touchIndicator = document . createElement ( 'div' ) ;
55+ touchIndicator . innerHTML = '👆 Touch events enabled' ;
56+ touchIndicator . style . cssText = `
57+ position: fixed;
58+ top: 10px;
59+ left: 10px;
60+ background: rgba(0,100,100,0.8);
61+ color: white;
62+ padding: 8px 12px;
63+ border-radius: 4px;
64+ font-size: 12px;
65+ z-index: 9999;
66+ font-family: monospace;
67+ ` ;
68+ document . body . appendChild ( touchIndicator ) ;
69+
70+ // Remove debug indicators after 3 seconds
5471 setTimeout ( ( ) => {
5572 if ( debugIndicator . parentNode ) {
5673 debugIndicator . parentNode . removeChild ( debugIndicator ) ;
5774 }
75+ if ( touchIndicator . parentNode ) {
76+ touchIndicator . parentNode . removeChild ( touchIndicator ) ;
77+ }
5878 } , 3000 ) ;
5979
6080 const footerLinks = document . querySelectorAll ( '.footer a[href]' ) ;
@@ -82,7 +102,8 @@ function initFooterDelay() {
82102 } , 2000 ) ;
83103
84104 footerLinks . forEach ( link => {
85- link . addEventListener ( 'click' , function ( e ) {
105+ // Add both click and touchstart events for mobile
106+ const handleInteraction = function ( e ) {
86107 // Show click indicator
87108 const clickIndicator = document . createElement ( 'div' ) ;
88109 clickIndicator . innerHTML = `👆 Clicked: ${ this . getAttribute ( 'href' ) } ` ;
@@ -243,6 +264,14 @@ function initFooterDelay() {
243264
244265 window . location . href = href ;
245266 } , 800 ) ; // 800ms delay
267+ } ;
268+
269+ // Add both click and touch events
270+ link . addEventListener ( 'click' , handleInteraction ) ;
271+ link . addEventListener ( 'touchstart' , function ( e ) {
272+ // Prevent default touch behavior and call our handler
273+ e . preventDefault ( ) ;
274+ handleInteraction . call ( this , e ) ;
246275 } ) ;
247276 } ) ;
248277}
0 commit comments