Wrapping up for the day? Now with iframe sort of support

This commit is contained in:
Scott Idem
2024-03-15 18:02:12 -04:00
parent 0400aa429b
commit 7d86a9b40f
2 changed files with 23 additions and 13 deletions

View File

@@ -244,7 +244,7 @@ export async function load({ params, url }) { // params, route, url
data_struct['ae_ds'] = ds_code_li;
console.log(`ae_root +layout.ts loaded inital DS`);
console.log(`ae_root +layout.ts loaded initial DS`);
return true;
});

View File

@@ -559,11 +559,9 @@ export let get_event_exhibit_tracking_export = async function get_event_exhibit_
<!-- <hr>
<p>Mark as logged in by using: events_loc.leads.auth_exhibit_li. This is a key (exhibit ID) and value (started datetime) pair. They can be logged into more than one exhibit at a time. Warn about log out when using the "Use License" button. Avoid "accidental" clicks.</p>
<p>Mark as logged in by using: events_loc.leads.auth_exhibit_li. This is a key (exhibit ID) and value (started datetime) pair. They can be logged into more than one exhibit at a time. Warn about log out when using the "Use License" button.</p>
<p>Check that the started datetime is still within X period and check against the tracked session timestamps. The table or object field is event_exhibit.license_sess_li.</p>
<p>Header, footer, etc can be shown/hidden</p>
<p>The header image can use md:hidden to hide when too small?</p>
<p class="variant-soft-warning">Only show exhibitors in the list that have licenses available.</p>
<p>Exhibit license authorization link: /events_leads/exhibit/[exhibit_id]?key=[license_key]&key_pass=[the_random_passcode]</p>
<hr> -->
@@ -784,12 +782,12 @@ export let get_event_exhibit_tracking_export = async function get_event_exhibit_
type="button"
on:click={() => {
console.log(`Use license: ${license.email}`);
// Use the license key to sign in
// $events_slct.exhibit_obj.url = `${data.url.origin}/events_leads/exhibit/${$events_slct.exhibit_id}?license_key=${index}&event_id=${$events_slct.event_id}`;
$events_loc.leads.auth_exhibit_kv[$events_slct.exhibit_id] = {
key: license.email,
updated_on: new Date().toISOString()
};
if (confirm('Are you sure you want to use this license?')) {
$events_loc.leads.auth_exhibit_kv[$events_slct.exhibit_id] = {
key: license.email,
updated_on: new Date().toISOString()
};
}
}}
class="btn btn-sm text-sm variant-soft-primary"
title="Sign in using this license"
@@ -886,8 +884,6 @@ export let get_event_exhibit_tracking_export = async function get_event_exhibit_
type="button"
on:click={() => {
console.log('Remove License');
if (confirm('Are you sure you want to remove this license?')) {
// This still needs to be saved to the database.
// Signal that this license should be removed from the list.
@@ -1075,6 +1071,20 @@ export let get_event_exhibit_tracking_export = async function get_event_exhibit_
{#if $events_loc?.leads.auth_exhibit_kv[$events_slct.exhibit_id]}
Turn on iframe mode:
<button
type="button"
on:click={() => {
console.log('Turn on iframe mode');
$ae_loc.iframe = !$ae_loc.iframe;
}}
class="btn btn-sm variant-soft w-48"
>
<span class="fas fa-compress mx-1"></span>
Turn {$ae_loc.iframe ? 'off' : 'on'} iframe mode
</button>
Show or hide additional details:
<button
type="button"
on:click={() => {