31 lines
680 B
PHP
31 lines
680 B
PHP
<!doctype html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title>Untitled Document</title>
|
|
<style>
|
|
#blogo {
|
|
|
|
|
|
width:20px;
|
|
opacity: .7;
|
|
}
|
|
.hoverme:hover #blogo{opacity:1;}
|
|
#blogo:hover{opacity:1;}
|
|
|
|
.liked{opacity:1 !important;}
|
|
</style>
|
|
<script type="text/javascript">
|
|
function myFunction() {
|
|
var img = document.getElementById("blogo");
|
|
img.classList.add("rotated-image");
|
|
}
|
|
</script>
|
|
<script src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
|
|
</head>
|
|
|
|
<body>
|
|
<a href="javascript:void(0);" onclick="jQuery(this).find('.blogo').addClass('liked');" class="hoverme">
|
|
<img id="blogo" class="blogo" src="images/like.png">Like</a>
|
|
</body>
|
|
</html> |