Skip to content

Commit 4d80506

Browse files
committed
Coveo: Fixed z-index issues + removed hardcoded token
1 parent 37e8fbe commit 4d80506

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

assets/css/v2/style.css

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ ol li:last-child {
435435
-webkit-backdrop-filter: blur(20px);
436436
position: sticky;
437437
top: 0;
438-
z-index: 1;
438+
z-index: 2;
439439

440440
.header-container {
441441
display: flex;
@@ -950,6 +950,8 @@ main {
950950

951951
/* Search results on content */
952952
atomic-search-interface#search-v2 {
953+
position: relative;
954+
z-index: 1;
953955
display: inline-block !important;
954956
width: 95vw;
955957
grid-column: 1 / -1;

assets/js/coveo.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,8 @@ async function getsearchObj() {
2323
async function atomicCoveo() {
2424
/* Fetch the credentials */
2525
await customElements.whenDefined('atomic-search-interface');
26-
const token =
27-
'eyJhbGciOiJIUzI1NiJ9.eyJzZWFyY2hIdWIiOiJIVUJfRVNfTmdpbnhfRG9jc19BbmRfT3JnIiwidjgiOnRydWUsInRva2VuSWQiOiJ1Ym1mejJpMzRvbmZ3c2FsaHBseHFvMmpjdSIsIm9yZ2FuaXphdGlvbiI6ImY1bmV0d29ya3Nwcm9kdWN0aW9uNXZraG4wMGgiLCJ1c2VySWRzIjpbeyJ0eXBlIjoiVXNlciIsIm5hbWUiOiJhbm9ueW1vdXMiLCJwcm92aWRlciI6IkVtYWlsIFNlY3VyaXR5IFByb3ZpZGVyIn1dLCJyb2xlcyI6WyJxdWVyeUV4ZWN1dG9yIl0sImlzcyI6IlNlYXJjaEFwaSIsImV4cCI6MTc1MzIyOTM0MCwiaWF0IjoxNzUzMTQyOTQwfQ.lsKbajGJBke_M3CzzFO8Vk6m61LpYE2gaBaFq1noqyI';
28-
const org_id = 'f5networksproduction5vkhn00h';
26+
const token = localStorage.getItem('coveo_jwt_v1');
27+
const org_id = localStorage.getItem('coveo_org_id_v1');
2928
let searchObj = { token, org_id };
3029

3130
if (token === null || org_id === null || isJwtExpired(token)) {

0 commit comments

Comments
 (0)