mirror of
https://github.com/hacks-guide/Guide_3DS.git
synced 2025-08-29 19:29:51 +02:00
Delete text-expand.html (not a necessary include)
This commit is contained in:
@@ -1,16 +0,0 @@
|
|||||||
<script>
|
|
||||||
|
|
||||||
var elements = document.querySelectorAll('p');
|
|
||||||
Array.prototype.forEach.call(elements, function(el, i){
|
|
||||||
if(el.innerHTML=='[expand]') {
|
|
||||||
var parentcontent = el.parentNode.innerHTML.replace('<p>[expand]</p>','<div class="expand" style="display: none; height: 0; overflow: hidden;">').replace('<p>[/expand]</p>','</div>');
|
|
||||||
el.parentNode.innerHTML = parentcontent;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
var elements = document.querySelectorAll('div.expand');
|
|
||||||
Array.prototype.forEach.call(elements, function(el, i){
|
|
||||||
el.previousElementSibling.innerHTML = el.previousElementSibling.innerHTML + '<span>.. <a href="#" style="cursor: pointer;" onclick="this.parentNode.parentNode.nextElementSibling.style.display = \'block\'; this.parentNode.parentNode.nextElementSibling.style.height = \'auto\'; this.parentNode.style.display = \'none\';">read more →</a></span>';
|
|
||||||
});
|
|
||||||
|
|
||||||
</script>
|
|
Reference in New Issue
Block a user