👨💻
<style>
div { border:1px solid black; margin:2px; }
button { border-radius:30px; height:20px; cursor:pointer; }
</style>
<body>
Hello CrossMan!<br/>
</body>
<script>
newEl('div').addClass(['test-container', 'outer']).style('width:100%;').add([
newEl('div').attr('id', 'top').html('[TOP SOMETHING]'),
newEl('div').addClass('test-title').html('Hello? How about CrossMan?<br/>'),
newEl('div').addClass('test-content').style('border:3px dashed gray; color:white; background:black;').addln([
'Love all and all and all.. OK?',
newEl('span').html('Why are you seeing it? for what?').add([
newEl('button').html('SQUARE').addEventListener('click', function(){
getEl('top').add(
newEl('span').style('display:inline-block; width:30px; height:30px;').setStyle('background', '#' +getData().randomColor())
)
}),
newEl('button').html('CIRCLE').addEventListener('click', function(){
getEl('top').add(
newEl('span').style('display:inline-block; width:30px; height:30px; border-radius:30px;').setStyle('background', '#' +getData().randomColor())
)
}),
])
])
]).appendTo(document.body);
</script>