From b858d069c5b094f5a992209aa867529a0ae0a1ab Mon Sep 17 00:00:00 2001 From: cproudlock Date: Wed, 17 Dec 2025 15:31:59 -0500 Subject: [PATCH] Standardize share toast notifications and fix PC scanning/editing MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Share Toast Notifications: - Unified toast style across all pages (purple gradient, top-right position) - Updated displayapplication.asp, displaytopic.asp, displayudc.asp - Updated printerlinksgenerator.asp (replaced alert with toast) - Same text: "Link Copied!" / "This link will show the search term..." PC Scanning/Editing Fixes: - savedevicedirect.asp: Use machinetypeid=33 to detect PCs (not pctypeid) - savedevicedirect.asp: Use new Dell TBD model (ID 110) for new PCs - editpc.asp: Model dropdown includes current model even if vendor ispc=0 - editpc.asp: Fixed vendor query to use ispc=1 instead of ismachine=1 Database changes (manual): - Set ispc=1 for Dell, Dell Inc., DellInc., HP vendors - Created Dell TBD model (ID 110) as default PC model 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- displayapplication.asp | 69 +++++++++++++++++++++++++----- displaytopic.asp | 89 +++++++++++++++++---------------------- displayudc.asp | 54 ++++++++++++++++++++++-- editpc.asp | 7 +-- printerlinksgenerator.asp | 27 +++++++++--- savedevicedirect.asp | 14 +++--- 6 files changed, 180 insertions(+), 80 deletions(-) diff --git a/displayapplication.asp b/displayapplication.asp index a17f4b6..f242f63 100644 --- a/displayapplication.asp +++ b/displayapplication.asp @@ -105,9 +105,54 @@ .lightbox-close:hover { opacity: 1; } +/* Share toast notification */ +#shareToast { + position: fixed; + top: 80px; + right: 20px; + z-index: 9999; + min-width: 300px; + background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); + color: white; + padding: 15px 20px; + border-radius: 8px; + box-shadow: 0 4px 20px rgba(0,0,0,0.3); + display: none; +} +@keyframes toastSlideIn { + from { + transform: translateX(100%); + opacity: 0; + } + to { + transform: translateX(0); + opacity: 1; + } +} +@keyframes toastSlideOut { + from { + transform: translateX(0); + opacity: 1; + } + to { + transform: translateX(100%); + opacity: 0; + } +} + +
+
+ +
+ Link Copied! + This link will show the search term and highlight the result +
+
+
+
@@ -633,17 +678,21 @@ document.execCommand('copy'); document.body.removeChild(temp); - // Show feedback - var btn = event.currentTarget; - var originalHTML = btn.innerHTML; - btn.innerHTML = ''; - btn.classList.remove('btn-outline-secondary'); - btn.classList.add('btn-success'); + // Show toast notification + showToast(); + } + + function showToast() { + var toast = document.getElementById('shareToast'); + toast.style.display = 'block'; + toast.style.animation = 'toastSlideIn 0.3s ease-out'; + setTimeout(function() { - btn.innerHTML = originalHTML; - btn.classList.remove('btn-success'); - btn.classList.add('btn-outline-secondary'); - }, 1500); + toast.style.animation = 'toastSlideOut 0.3s ease-out'; + setTimeout(function() { + toast.style.display = 'none'; + }, 300); + }, 2500); } $(document).ready(function() { diff --git a/displaytopic.asp b/displaytopic.asp index 2853632..911eb90 100644 --- a/displaytopic.asp +++ b/displaytopic.asp @@ -158,79 +158,66 @@ + +
+
+ +
+ Link Copied! + This link will show the search term and highlight the result +
+
+
+