|
4 | 4 | <head> |
5 | 5 | <title>Organization Chart (js only)</title> |
6 | 6 |
|
| 7 | + |
| 8 | + |
7 | 9 | <!-- Begin META-TAG Section --> |
8 | 10 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> |
9 | 11 | <meta http-equiv="Content-Security-Policy" content="script-src 'self' 'unsafe-inline'"/> |
|
20 | 22 | <!-- End META-TAG Section --> |
21 | 23 |
|
22 | 24 | <!-- Begin LINK Section --> |
23 | | - <link rel="preconnect" href="https://www.netlify.com"/> |
24 | | - <link rel="dns-prefetch" href="https://www.netlify.com"/> |
25 | 25 | <link href="images/orgchart_192x192.png" rel="apple-touch-icon" type="image/png"/> |
26 | 26 | <link rel="icon" type="image/x-icon" href="favicon.ico"/> |
27 | 27 | <link rel="manifest" id="orgchart_manifest" crossorigin="use-credentials" href="manifest.json"/> |
|
2070 | 2070 | <!-- End STYLESHEET Section --> |
2071 | 2071 |
|
2072 | 2072 | <!-- Begin JAVASCRIPT Section --> |
| 2073 | + <script> |
| 2074 | + function prefetchLargeImage() |
| 2075 | + { |
| 2076 | + let oStartingPerson = null; |
| 2077 | + let sUrl = document.location.hash; |
| 2078 | + let sPersonId = sUrl.match( /person=([^&]*)/gi ); |
| 2079 | + if( sPersonId && sPersonId [ 0 ] ) |
| 2080 | + { |
| 2081 | + sPersonId = sPersonId[ 0 ].replace( 'person=', '' ); |
| 2082 | + if( data[ sPersonId ] ) |
| 2083 | + { |
| 2084 | + oStartingPerson = sPersonId; |
| 2085 | + } |
| 2086 | + } |
| 2087 | + return `photos/${sPersonId}.webp`; |
| 2088 | + } |
| 2089 | + </script> |
| 2090 | + <link rel="preload" href="photos/quincy.acklen.webp" as="image" /> |
2073 | 2091 | <script id="serviceworker_for_PWA"> |
2074 | 2092 | const PROGRESSIVE_WEB_APP = true; // Default TRUE - set to FALSE is you want to disable the serviceworker / PWA because it can be a pain to develop with PWA mode active |
2075 | 2093 | if( PROGRESSIVE_WEB_APP && 'serviceWorker' in navigator ) |
|
2446 | 2464 | </tr> |
2447 | 2465 | <tr> |
2448 | 2466 | <td colspan="3" class="center" class="center" title="${ person.indirects || '' }"> |
2449 | | - ${ person.title }! |
| 2467 | + ${ person.title } |
2450 | 2468 | <span> |
2451 | | - ${ person.team ? ( '<br />' + person.team ) : '!!' }!!! |
| 2469 | + ${ person.team ? ( '<br />' + person.team ) : '' } |
2452 | 2470 | </span> |
2453 | 2471 | </td> |
2454 | 2472 | </tr> |
|
0 commit comments