You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
925 B
24 lines
925 B
<script type="text/javascript">
|
|
$(document).ready(function(){
|
|
$("#bing").load("https://raw.githubusercontent.com/meisnate12/PMM-Image-Sets/master/movies/readme.md", function () {
|
|
$(".image-accordion").click(function () {
|
|
this.classList.toggle("image-active");
|
|
var parent = this.parentElement;
|
|
var panel = this.nextElementSibling;
|
|
if (panel.style.maxHeight) {
|
|
panel.style.maxHeight = null;
|
|
} else {
|
|
panel.style.maxHeight = parseInt(panel.scrollHeight) + 10 + "px";
|
|
parent.style.maxHeight = parseInt(parent.style.maxHeight) + panel.scrollHeight + "px";
|
|
}
|
|
if (panel.style.paddingBottom) {
|
|
panel.style.paddingBottom = null;
|
|
} else {
|
|
panel.style.paddingBottom = "10px";
|
|
}
|
|
});
|
|
});
|
|
});
|
|
</script>
|
|
|
|
<div id="bing"></div> |