<script src="js/includeHTML.js"></script>
<div data-src="header.html">
</div>
<script>
includeHTML('header.html', document.getElementById('header'));
includeHTML('menu.html', document.getElementById('mainMenu'));
includeHTML('green.css');
includeHTML('js/1.js');
includeHTML('log.txt','log');
</script>
<script>
includeHTML('header.html', document.getElementById('header'), function(){
includeHTML('menu.html', document.getElementById('mainMenu'));
});
</script>
<button onclick="toggleSpoilers()">Click me</button>
function toggleSpoilers() {
?>
<script type="text/javascript" charset="utf-8">
var isUnfolded = false;
buttonSpoiler = edButtons.length;
edButtons[edButtons.length] = new edButton('spoiler','spoiler','[spoiler title=\'Title\']Text[/spoiler]\n');
jQuery(document).ready(function($){
jQuery("#ed_toolbar").append('<input type="button" value="spoiler" id="ed_spoiler" class="ed_button" onclick="edInsertTag(edCanvas, buttonSpoiler);" title="Spoiler" />');
});
</script>
<?php }