-
-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Trying to resolve issue with 404 on chrome driver installation (…
- Loading branch information
1 parent
89812b4
commit a5ec233
Showing
3 changed files
with
76 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
<!-- ChatGPT did this --> | ||
<!DOCTYPE html> | ||
<html> | ||
|
||
<head> | ||
<style> | ||
body { | ||
font-family: Arial, sans-serif; | ||
} | ||
|
||
.tabs { | ||
display: flex; | ||
} | ||
|
||
.tab-button { | ||
border: 1px solid #ccc; | ||
padding: 10px; | ||
cursor: pointer; | ||
flex: 1; | ||
text-align: center; | ||
background-color: #f0f0f0; | ||
} | ||
|
||
.tab-button.active { | ||
background-color: #fff; | ||
} | ||
|
||
.tab-content { | ||
border: 1px solid #ccc; | ||
padding: 10px; | ||
display: none; | ||
} | ||
|
||
.tab-content.active { | ||
display: block; | ||
} | ||
</style> | ||
</head> | ||
|
||
<body> | ||
<div class="tabs"> | ||
<div id="tab1" class="tab-button active" tabindex="0">Tab 1</div> | ||
<div id="tab2" class="tab-button" tabindex="1">Tab 2</div> | ||
<div id="tab3" class="tab-button" tabindex="2">Tab 3</div> | ||
</div> | ||
<div id="content1" class="tab-content active">Content 1</div> | ||
<div id="content2" class="tab-content">Content 2</div> | ||
<div id="content3" class="tab-content">Content 3</div> | ||
|
||
<script> | ||
let tabs = document.querySelectorAll('.tab-button'); | ||
let contents = document.querySelectorAll('.tab-content'); | ||
|
||
tabs.forEach((tab, index) => { | ||
tab.addEventListener('focus', () => { | ||
tabs.forEach(t => t.classList.remove('active')); | ||
contents.forEach(c => c.classList.remove('active')); | ||
|
||
tab.classList.add('active'); | ||
contents[index].classList.add('active'); | ||
}); | ||
}); | ||
</script> | ||
</body> | ||
|
||
</html> |