Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/views/pages/download.ejs

    r52fc278 r17197a9  
    2626      <p class="dl-sub"><%= _ready_sub %></p>
    2727      <p><a class="dl-go" href="<%= fileUrl %>"><%= _manual %></a></p>
    28       <%# Het script staat in assets/js/mod/download.js; de servergegevens gaan via partials/page-data.ejs (shaer-bqr). %>
     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>
    2932    <% } else { %>
    3033      <h1 class="dl-h1"><%= _download_btn %> <%= tr.title %></h1>
     
    5457  .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; }
    5558</style>
    56 <%- include('../partials/page-data', { pageData: { fileUrl: fileUrl } }) %>
Note: See TracChangeset for help on using the changeset viewer.