<!--notification starts here-->
<div class="flex justify-center w-8">
<div class="flex justify-center w-8">
<div class="dropdown relative">
<i class="fas fa-bell dropbtn text-2xl text-gray-800 cursor-pointer" onclick="myFunction()"></i>
<div id="myDropdown" class="dropdown-content absolute hidden z-50" style="width: 20rem;">
<div class="w-full flex flex-col bg-gray-100 -ml-64 mt-5 rounded-md shadow-md overflow-hidden">
<!--noti header-->
<div class="w-full flex justify-center p-3 font-semibold box-border border-b ">
You have 10 New Notifications
</div>
<!--noti content-->
<div class="w-full flex flex-col overflow-auto h-64">
<div class="w-full flex items-center px-2 py-3 hover:bg-gray-100 hover:shadow-md">
<div class="w-12">
<img src="{{user.profile.profile_pic.url}}" alt="profile"
class="h-12 w-12 rounded-full">
</div>
<div class="flex-1 flex flex-col ml-4">
<span class="text-gray-800">
Sushan has purchases the BMW
</span>
<p class="text-gray-700 text-sm font-semibold">
just now
</p>
</div>
</div>
</div>
<a href="#" class="block bg-gray-800 text-white text-center font-bold py-2">See all
notifications</a>
</div>
</div>
</div>
</div>
<script>
/* When the user clicks on the button,
toggle between hiding and showing the dropdown content */
function myFunction() {
document.getElementById("myDropdown").classList.toggle("show");
}
// Close the dropdown if the user clicks outside of it
window.onclick = function (event) {
if (!event.target.matches('.dropbtn')) {
var dropdowns = document.getElementsByClassName("dropdown-content");
var i;
for (i = 0; i < dropdowns.length; i++) {
var openDropdown = dropdowns[i];
if (openDropdown.classList.contains('show')) {
openDropdown.classList.remove('show');
}
}
}
}
</script>
</div>
<!--notification end here-->
{"html5":"htmlmixed","css":"css","javascript":"javascript","php":"php","python":"python","ruby":"ruby","lua":"text\/x-lua","bash":"text\/x-sh","go":"go","c":"text\/x-csrc","cpp":"text\/x-c++src","diff":"diff","latex":"stex","sql":"sql","xml":"xml","apl":"apl","asterisk":"asterisk","c_loadrunner":"text\/x-csrc","c_mac":"text\/x-csrc","coffeescript":"text\/x-coffeescript","csharp":"text\/x-csharp","d":"d","ecmascript":"javascript","erlang":"erlang","groovy":"text\/x-groovy","haskell":"text\/x-haskell","haxe":"text\/x-haxe","html4strict":"htmlmixed","java":"text\/x-java","java5":"text\/x-java","jquery":"javascript","mirc":"mirc","mysql":"sql","ocaml":"text\/x-ocaml","pascal":"text\/x-pascal","perl":"perl","perl6":"perl","plsql":"sql","properties":"text\/x-properties","q":"text\/x-q","scala":"scala","scheme":"text\/x-scheme","tcl":"text\/x-tcl","vb":"text\/x-vb","verilog":"text\/x-verilog","yaml":"text\/x-yaml","z80":"text\/x-z80"}