ASX Latest Accidents: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 2: | Line 2: | ||
<head> | <head> | ||
<style> | <style> | ||
.collapse-wrapper { | |||
width: 820px; | |||
} | |||
.collapse-container { | .collapse-container { | ||
position: relative; | position: relative; | ||
width: 820px; | width: 820px; | ||
height: 200px | height: 200px; | ||
overflow: hidden; | overflow: hidden; | ||
transition: height 0.4s ease-in-out; | |||
} | } | ||
.collapse-container.expanded { | .collapse-container.expanded { | ||
height: 600px; | height: 600px; | ||
} | } | ||
.overlay-image { | |||
position: absolute; | |||
top: 0px; | |||
left: 0px; | |||
width: 800px; | |||
height: 60px; | |||
z-index: 999; | |||
pointer-events: none; | |||
} | |||
.iframe-content { | |||
position: absolute; | |||
top: 0; | |||
left: 0; | |||
width: 800px; | |||
height: 580px; | |||
border: none; | |||
z-index: 1; | |||
} | |||
.toggle-button { | .toggle-button { | ||
margin-bottom: 10px; | margin-bottom: 10px; | ||
Line 17: | Line 43: | ||
font-family: Arial, sans-serif; | font-family: Arial, sans-serif; | ||
font-size: 14px; | font-size: 14px; | ||
background-color: # | background-color: #222; | ||
color: #fff; | color: #fff; | ||
padding: 6px 12px; | padding: 6px 12px; | ||
Line 24: | Line 50: | ||
} | } | ||
</style> | </style> | ||
<script> | <script> | ||
function toggleCollapse() { | function toggleCollapse() { | ||
const container = document.getElementById(" | const container = document.getElementById("asxContainer"); | ||
container.classList.toggle("expanded"); | container.classList.toggle("expanded"); | ||
} | } | ||
</script> | </script> | ||
</head> | </head> | ||
<body> | <body> | ||
<button class="toggle-button" onclick="toggleCollapse()">Toggle View</button | <div class="collapse-wrapper"> | ||
<button class="toggle-button" onclick="toggleCollapse()">Toggle View</button> | |||
<div id="asxContainer" class="collapse-container"> | |||
<img class="overlay-image" src="https://wiki.alsresume.com/images/a/a8/Think4.jpg"> | |||
<iframe class="iframe-content" src="https://www.alsresume.com/asx-latest-accidents2/" scrolling="yes"></iframe> | |||
</div> | |||
</div> | </div> | ||
</body> | </body> | ||
</html> | </html> | ||
Revision as of 10:57, 22 April 2025

