[object Object]

← back to 90210 Agentabrams

Sync: Trivia + Runner share payloads link to 90210 hub

6f5142b09c502fb8c6206ae22f38ff90fe6d68ca · 2026-07-25 10:07:12 -0700 · Steve Abrams

Files touched

Diff

commit 6f5142b09c502fb8c6206ae22f38ff90fe6d68ca
Author: Steve Abrams <steve@designerwallcoverings.com>
Date:   Sat Jul 25 10:07:12 2026 -0700

    Sync: Trivia + Runner share payloads link to 90210 hub
---
 games/rodeo-runner/RodeoDriveRunner.aa | 5 +++--
 games/rodeo-runner/index.html          | 5 +++--
 games/trivia-90210/90210Trivia.aa      | 9 +++++----
 games/trivia-90210/index.html          | 9 +++++----
 4 files changed, 16 insertions(+), 12 deletions(-)

diff --git a/games/rodeo-runner/RodeoDriveRunner.aa b/games/rodeo-runner/RodeoDriveRunner.aa
index 7e003a2..d1b92ea 100644
--- a/games/rodeo-runner/RodeoDriveRunner.aa
+++ b/games/rodeo-runner/RodeoDriveRunner.aa
@@ -352,8 +352,9 @@ canvas{ display:block; width:100%; height:100%; touch-action:none; }
   function share(){
     var s=Math.round(score);
     var text="I cruised Rodeo Drive for "+s.toLocaleString()+" points in Rodeo Drive Runner. 🏎️💎 Beat me on 90210 row!";
-    if(navigator.share){ navigator.share({title:"Rodeo Drive Runner",text:text}).catch(function(){}); }
-    else if(navigator.clipboard){ navigator.clipboard.writeText(text).then(function(){ document.getElementById("shareLine").textContent="📋 Score copied."; }).catch(function(){}); }
+    var url="https://90210.agentabrams.com/#rodeo-runner";
+    if(navigator.share){ navigator.share({title:"Rodeo Drive Runner",text:text,url:url}).catch(function(){}); }
+    else if(navigator.clipboard){ navigator.clipboard.writeText(text+" "+url).then(function(){ document.getElementById("shareLine").textContent="📋 Score + link copied."; }).catch(function(){}); }
   }
 
   // ---- wire ----
diff --git a/games/rodeo-runner/index.html b/games/rodeo-runner/index.html
index 7e003a2..d1b92ea 100644
--- a/games/rodeo-runner/index.html
+++ b/games/rodeo-runner/index.html
@@ -352,8 +352,9 @@ canvas{ display:block; width:100%; height:100%; touch-action:none; }
   function share(){
     var s=Math.round(score);
     var text="I cruised Rodeo Drive for "+s.toLocaleString()+" points in Rodeo Drive Runner. 🏎️💎 Beat me on 90210 row!";
-    if(navigator.share){ navigator.share({title:"Rodeo Drive Runner",text:text}).catch(function(){}); }
-    else if(navigator.clipboard){ navigator.clipboard.writeText(text).then(function(){ document.getElementById("shareLine").textContent="📋 Score copied."; }).catch(function(){}); }
+    var url="https://90210.agentabrams.com/#rodeo-runner";
+    if(navigator.share){ navigator.share({title:"Rodeo Drive Runner",text:text,url:url}).catch(function(){}); }
+    else if(navigator.clipboard){ navigator.clipboard.writeText(text+" "+url).then(function(){ document.getElementById("shareLine").textContent="📋 Score + link copied."; }).catch(function(){}); }
   }
 
   // ---- wire ----
diff --git a/games/trivia-90210/90210Trivia.aa b/games/trivia-90210/90210Trivia.aa
index 11f8cdf..9a67ace 100644
--- a/games/trivia-90210/90210Trivia.aa
+++ b/games/trivia-90210/90210Trivia.aa
@@ -533,13 +533,14 @@ body{
     var pct = Math.round(100 * correctCount / deck.length);
     var rk = rankFor(pct, score);
     var text = "I scored " + score + " on 90210 Trivia — " + rk.t + " (" + pct + "% right). Can you beat the Zip? 🌴💎";
+    var url = "https://90210.agentabrams.com/#trivia-90210";
     if(navigator.share){
-      navigator.share({ title:"90210 Trivia", text:text }).catch(function(){});
+      navigator.share({ title:"90210 Trivia", text:text, url:url }).catch(function(){});
     } else if(navigator.clipboard && navigator.clipboard.writeText){
-      navigator.clipboard.writeText(text).then(function(){ $("shareNote").textContent = "📋 Score copied — paste it anywhere."; })
-        .catch(function(){ $("shareNote").textContent = text; });
+      navigator.clipboard.writeText(text + " " + url).then(function(){ $("shareNote").textContent = "📋 Score + link copied — paste it anywhere."; })
+        .catch(function(){ $("shareNote").textContent = text + " " + url; });
     } else {
-      $("shareNote").textContent = text;
+      $("shareNote").textContent = text + " " + url;
     }
   }
 
diff --git a/games/trivia-90210/index.html b/games/trivia-90210/index.html
index 11f8cdf..9a67ace 100644
--- a/games/trivia-90210/index.html
+++ b/games/trivia-90210/index.html
@@ -533,13 +533,14 @@ body{
     var pct = Math.round(100 * correctCount / deck.length);
     var rk = rankFor(pct, score);
     var text = "I scored " + score + " on 90210 Trivia — " + rk.t + " (" + pct + "% right). Can you beat the Zip? 🌴💎";
+    var url = "https://90210.agentabrams.com/#trivia-90210";
     if(navigator.share){
-      navigator.share({ title:"90210 Trivia", text:text }).catch(function(){});
+      navigator.share({ title:"90210 Trivia", text:text, url:url }).catch(function(){});
     } else if(navigator.clipboard && navigator.clipboard.writeText){
-      navigator.clipboard.writeText(text).then(function(){ $("shareNote").textContent = "📋 Score copied — paste it anywhere."; })
-        .catch(function(){ $("shareNote").textContent = text; });
+      navigator.clipboard.writeText(text + " " + url).then(function(){ $("shareNote").textContent = "📋 Score + link copied — paste it anywhere."; })
+        .catch(function(){ $("shareNote").textContent = text + " " + url; });
     } else {
-      $("shareNote").textContent = text;
+      $("shareNote").textContent = text + " " + url;
     }
   }
 

← ee94d51 Cross-link 90210 hub -> main Agent Abrams Arcade  ·  back to 90210 Agentabrams  ·  Sync: Runner Share button fix 1d22ac7 →