Changeset 52fc278 in Klonkt for src/views/pages/download.ejs
- Timestamp:
- 08/07/2026 01:38:51 PM (5 weeks ago)
- Branches:
- main
- Children:
- 156baa3
- Parents:
- 54ee51c
- git-author:
- Robin <roboburr@…> (08/07/2026 01:16:27 PM)
- git-committer:
- roboburr <roboburr@…> (08/07/2026 01:38:51 PM)
- File:
-
- 1 edited
-
src/views/pages/download.ejs (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/views/pages/download.ejs
r54ee51c r52fc278 26 26 <p class="dl-sub"><%= _ready_sub %></p> 27 27 <p><a class="dl-go" href="<%= fileUrl %>"><%= _manual %></a></p> 28 <script> 29 // Auto-start de download (zelfde-origin attachment-link). 30 setTimeout(function(){ try { window.location.href = <%- JSON.stringify(fileUrl) %>; } catch(e){} }, 600); 31 </script> 28 <%# Het script staat in assets/js/mod/download.js; de servergegevens gaan via partials/page-data.ejs (shaer-bqr). %> 32 29 <% } else { %> 33 30 <h1 class="dl-h1"><%= _download_btn %> <%= tr.title %></h1> … … 57 54 .dl-go { padding: 12px 20px; border-radius: 10px; border: none; background: var(--accent,#6b8f71); color: #fff; font-weight: 600; font-size: 15px; cursor: pointer; text-decoration: none; display: inline-block; } 58 55 </style> 56 <%- include('../partials/page-data', { pageData: { fileUrl: fileUrl } }) %>
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)