JSFiddle - React, Tailwind, and code Playground

by Sergey Shaliapin

HTML

<div class="div1"></div>
<div class="div2"></div>
<div class="div3"></div>
<div class="div4"></div>
<div class="div5"></div>
<div class="div6"></div>
 
<p>Hello <a href="#">John</a>, how are you doing?</p>





    
    











































<!-- EPAM LOGO © EPAM Systems Inc. jQuery course -->
<div id="epam-logo-button">
    <span id="epam-left-bracket">&lt;</span>
    <span id="epam-name-text">epam</span>
    <span id="epam-right-bracket">&gt;</span>
</div>

CSS

div {
    width: 60px;
    height: 60px;
    margin: 10px;
    float: left;
    border: 5px solid #000;
}
p {
    clear: left;
    margin: 0 10px;
    padding: 2px;
}



















































/* EPAM LOGO © EPAM Systems Inc. jQuery course */
#epam-left-bracket,
#epam-name-text,
#epam-right-bracket {
    display: inline-block !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;    
    width: initial !important;    
    height: initial !important;
    line-height: 18px !important;
    font-family: sans-serif !important;
    font-size: 16px !important;
    text-transform: none !important;
    text-decoration: none !important;
    color: rgb(58, 186, 205) !important;
    background: transparent !important;
}

#epam-name-text {
    color: rgb(255,255,255) !important;
}

#epam-logo-button {
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    width: 72px !important;
    height: initial !important;
    line-height: initial !important;
    text-align: center !important;
    position: absolute !important;
    bottom: 10px !important;
    right: 10px !important;
    background: rgb(70, 69, 71) !important;
    box-shadow: 0 0 5px 4px rgb(70, 69, 71) !important;
}

#epam-logo-button:hover {
    cursor: pointer !important;
}

JavaScript

//$( "div" ).css( "border-color", "#0000FF" ).add( "p" ).css( "background", "#FF0000" );
/*var collection = $( "div" );
collection = collection.add( $( "p" ) );
collection.css( "background", "#FF0000" );*/

//$( "div.div3" ).nextAll( "div" ).addBack().css( "background", "#FF0000" );

/*$( "p" ).contents().filter(function(){
    return this.nodeType !== 1;
}).wrap( "<b></b>" );*/

//$( ".div2" ).nextUntil( "div5" ).css( "background", "#FF0000" ).end().css( "background", "#0000FF" );















































// EPAM LOGO © EPAM Systems Inc. jQuery course
// epam shake animation
jQuery.fn.epamShake = function(intShakes, intDistance, intDuration) {
	$(this).css("position","relative"); 
	for (var x=1; x<=intShakes; x++) {
        $(this).animate({left:(intDistance*-1)}, (((intDuration/intShakes)/4)))
    		.animate({left:intDistance}, ((intDuration/intShakes)/2))
    		.animate({left:0}, (((intDuration/intShakes)/4)));
	}
	return this;
};

var epamButtonFlag = true;

$("#epam-logo-button").on("click", function(){
    if (epamButtonFlag === false) {window.open("http://www.epam.com/careers/job-listings?sort=best_match&query=JavaScript+Developer&department=all&city=all&country=Belarus");}
    epamButtonFlag = false;
    changeEpamName();
	$("#epam-left-bracket, #epam-right-bracket").epamShake( 20, 2, 50 );
    setTimeout(function(){
        changeEpamNameBack();
        epamButtonFlag = true;
    }, 1000);
});

function changeEpamName() {
	$("#epam-name-text").text("hello")
};

function changeEpamNameBack() {
	$("#epam-name-text").text("epam");
};