I have managed to perform a function in the first click
function s(){
$('div').addClass('s');
$('div').css({display:"block"});
console.log("click");
}
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<button onclick="s()">Haz Click!</button>
But I do not know how to detect the second click