Files
tailShape/public/componets/skeleton/skeleton.html
2022-03-04 22:10:05 +06:00

518 lines
26 KiB
HTML

<!DOCTYPE html>
<html lang="en" class="dark">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="./../../../dist/tailshape.css">
<link rel="stylesheet" href="https://demos.creative-tim.com/notus-js/assets/vendor/@fortawesome/fontawesome-free/css/all.min.css">
<script src="https://cdn.jsdelivr.net/gh/alpinejs/alpine@v2.8.2/dist/alpine.min.js" defer></script>
<title>Skeleton</title>
</head>
<body>
<button class="dark_mode_button_custom_style" id="dark_mood_toogler">
d
</button>
<!-- skeleton 1 start -->
<section class="section_divider">
<div>Skeleton 1</div>
</section>
<div class="max-w-sm p-4 m-10 mx-auto border border-gray-300 dark:bg-gray-800 rounded-md shadow max-h-md">
<div class="flex space-x-4 animate-pulse">
<div class="flex-1 py-1 space-y-4">
<div class="w-full h-40 bg-gray-400 rounded"></div>
<div class="space-y-2">
<div class="h-4 bg-gray-400 rounded"></div>
<div class="w-5/6 h-4 bg-gray-400 rounded"></div>
</div>
</div>
</div>
</div>
<!-- skeleton 1 end -->
<!-- skeleton 2 start -->
<section class="section_divider">
<div>Skeleton 2</div>
</section>
<div class="flex mx-auto flex-col m-8 rounded shadow-md w-60 sm:w-80 animate-pulse h-96">
<div class="h-48 rounded-t dark:bg-gray-700"></div>
<div class="flex-1 px-4 py-8 space-y-4 sm:p-8 dark:bg-gray-900">
<div class="w-full h-6 rounded dark:bg-gray-700"></div>
<div class="w-full h-6 rounded dark:bg-gray-700"></div>
<div class="w-3/4 h-6 rounded dark:bg-gray-700"></div>
</div>
</div>
<!-- skeleton 2 end -->
<!-- skeleton 3 start -->
<section class="section_divider">
<div>Skeleton 3</div>
</section>
<div class="py-4 mx-auto my-10 rounded shadow-md w-60 sm:w-80 animate-pulse dark:bg-gray-900">
<div class="flex p-4 space-x-4 sm:px-8">
<div class="flex-shrink-0 w-16 h-16 rounded-full dark:bg-gray-700"></div>
<div class="flex-1 py-2 space-y-4">
<div class="w-full h-3 rounded dark:bg-gray-700"></div>
<div class="w-5/6 h-3 rounded dark:bg-gray-700"></div>
</div>
</div>
<div class="p-4 space-y-4 sm:px-8">
<div class="w-full h-4 rounded dark:bg-gray-700"></div>
<div class="w-full h-4 rounded dark:bg-gray-700"></div>
<div class="w-3/4 h-4 rounded dark:bg-gray-700"></div>
</div>
</div>
<!-- skeleton 3 end -->
<!-- skeleton 4 start -->
<section class="section_divider">
<div>Skeleton 4</div>
</section>
<!-- This is an example component -->
<div class="w-full flex items-center flex-col bg-white">
<div class="flex flex-col bg-white shadow-md rounded-md items-center">
<div class="flex items-center p-4">
<div data-placeholder class="mr-2 h-10 w-10 rounded-full overflow-hidden relative bg-gray-200">
</div>
<div class="flex flex-col justify-between items-center">
<div data-placeholder class="mb-2 h-5 w-40 overflow-hidden relative bg-gray-200">
</div>
</div>
</div>
<div data-placeholder class="h-52 w-full overflow-hidden relative bg-gray-200"></div>
<div class="flex flex-col p-4">
<div class="flex">
<div data-placeholder class=" flex h-5 w-5 overflow-hidden relative bg-gray-200 mr-1"></div>
<div data-placeholder class="flex h-5 w-48 overflow-hidden relative bg-gray-200"></div>
</div>
<div class="flex mt-1">
<div data-placeholder class="flex h-5 w-5 overflow-hidden relative bg-gray-200 mr-1"></div>
<div data-placeholder class="flex h-5 w-48 overflow-hidden relative bg-gray-200"></div>
</div>
</div>
<div class="w-full h-px overflow-hidden relative bg-gray-200 m-4"></div>
<div class="flex justify-between items-center p-4 w-full">
<div data-placeholder class="mr-2 h-10 w-16 overflow-hidden relative bg-gray-200">
</div>
<div data-placeholder class="mb-2 h-5 w-20 overflow-hidden relative bg-gray-200">
</div>
</div>
</div>
</div>
<style>
[data-placeholder]::after {
content: "test ";
box-shadow: 0 0 50px 9px rgb(149, 12, 12);
position: absolute;
top: 0;
left: -100%;
height: 100%;
animation: load 1s infinite;
}
@keyframes load {
0%{ left: -100%}
100%{ left: 150%}
}
</style>
<!-- skeleton 4 end -->
<!-- skeleton 5 start -->
<section class="section_divider">
<div>Skeleton 5</div>
</section>
<section class="text-gray-700 body-font">
<div class="container px-5 py-24 mx-auto">
<div class="flex flex-wrap -m-4">
<div class="p-4 md:w-1/3">
<div class="h-full border-2 border-gray-200 rounded-lg overflow-hidden">
<div class="lg:h-48 bg-gray-400 md:h-36 w-full object-cover object-center"></div>
<div class="p-6">
<h2 class="bg-gray-400 animate-pulse h-4 w-1/4 mb-2"></h2>
<h1 class="w-1/2 mb-4 h-6 animate-pulse bg-gray-500"></h1>
<p class="leading-relaxed mb-3 w-full h-3 animate-pulse bg-gray-400"></p>
<p class="leading-relaxed mb-3 w-2/3 h-3 animate-pulse bg-gray-400"></p>
<p class="leading-relaxed mb-3 w-1/2 h-3 animate-pulse bg-gray-400"></p>
<div class="flex items-center flex-wrap ">
<a class="bg-indigo-300 h-4 animate-pulse mt-2 w-32 inline-flex items-center md:mb-2 lg:mb-0">
</a>
<span class="bg-indigo-300 w-16 mt-2 h-4 animate-pulse mr-3 px-2 inline-flex items-center ml-auto leading-none text-sm pr-5 py-1">
</span>
</div>
</div>
</div>
</div>
<div class="p-4 md:w-1/3">
<div class="h-full border-2 border-gray-200 rounded-lg overflow-hidden">
<img class="lg:h-48 md:h-36 w-full object-cover object-center" src="https://images.unsplash.com/photo-1520607162513-77705c0f0d4a?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1049&q=80" alt="blog">
<div class="p-6">
<h2 class="tracking-widest text-xs title-font font-medium text-gray-500 mb-1">CATEGORY</h2>
<h1 class="title-font text-lg font-medium text-gray-900 mb-3">The Catalyzer</h1>
<p class="leading-relaxed mb-3">Photo booth fam kinfolk cold-pressed sriracha leggings jianbing microdosing tousled waistcoat.</p>
<div class="flex items-center flex-wrap ">
<a class="text-indigo-500 inline-flex items-center md:mb-2 lg:mb-0">Learn More
<svg class="w-4 h-4 ml-2" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round">
<path d="M5 12h14"></path>
<path d="M12 5l7 7-7 7"></path>
</svg>
</a>
<span class="text-gray-600 mr-3 inline-flex items-center lg:ml-auto md:ml-0 ml-auto leading-none text-sm pr-3 py-1 border-r-2 border-gray-300">
<svg class="w-4 h-4 mr-1" stroke="currentColor" stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round" viewBox="0 0 24 24">
<path d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"></path>
<circle cx="12" cy="12" r="3"></circle>
</svg>1.2K
</span>
<span class="text-gray-600 inline-flex items-center leading-none text-sm">
<svg class="w-4 h-4 mr-1" stroke="currentColor" stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round" viewBox="0 0 24 24">
<path d="M21 11.5a8.38 8.38 0 01-.9 3.8 8.5 8.5 0 01-7.6 4.7 8.38 8.38 0 01-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 01-.9-3.8 8.5 8.5 0 014.7-7.6 8.38 8.38 0 013.8-.9h.5a8.48 8.48 0 018 8v.5z"></path>
</svg>6
</span>
</div>
</div>
</div>
</div>
<div class="p-4 md:w-1/3">
<div class="h-full border-2 border-gray-200 rounded-lg overflow-hidden">
<div class="lg:h-48 bg-gray-400 md:h-36 w-full object-cover object-center"></div>
<div class="p-6">
<h2 class="bg-gray-400 animate-pulse h-4 w-1/4 mb-2"></h2>
<h1 class="w-1/2 mb-4 h-6 animate-pulse bg-gray-500"></h1>
<p class="leading-relaxed mb-3 w-full h-3 animate-pulse bg-gray-400"></p>
<p class="leading-relaxed mb-3 w-2/3 h-3 animate-pulse bg-gray-400"></p>
<p class="leading-relaxed mb-3 w-1/2 h-3 animate-pulse bg-gray-400"></p>
<div class="flex items-center flex-wrap ">
<a class="bg-indigo-300 h-4 animate-pulse mt-2 w-32 inline-flex items-center md:mb-2 lg:mb-0">
</a>
<span class="bg-indigo-300 w-16 mt-2 h-4 animate-pulse mr-3 px-2 inline-flex items-center ml-auto leading-none text-sm pr-5 py-1">
</span>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
<section class="text-gray-700 body-font">
<div class="container px-5 py-24 mx-auto">
<div class="ext-md text-center mt-5 font-extrabold border-b border-black p-5 mb-5">Loading</div>
<div class="flex flex-wrap -m-4">
<div class="p-4 md:w-1/3">
<div class="h-full border-2 border-gray-200 rounded-lg overflow-hidden">
<div class="lg:h-48 bg-gray-400 md:h-36 w-full object-cover object-center"></div>
<div class="p-6">
<h2 class="bg-gray-400 animate-pulse h-4 w-1/4 mb-2"></h2>
<h1 class="w-1/2 mb-4 h-6 animate-pulse bg-gray-500"></h1>
<p class="leading-relaxed mb-3 w-full h-3 animate-pulse bg-gray-400"></p>
<p class="leading-relaxed mb-3 w-2/3 h-3 animate-pulse bg-gray-400"></p>
<p class="leading-relaxed mb-3 w-1/2 h-3 animate-pulse bg-gray-400"></p>
<div class="flex items-center flex-wrap ">
<a class="bg-indigo-300 h-4 animate-pulse mt-2 w-32 inline-flex items-center md:mb-2 lg:mb-0">
</a>
<span class="bg-indigo-300 w-16 mt-2 h-4 animate-pulse mr-3 px-2 inline-flex items-center ml-auto leading-none text-sm pr-5 py-1">
</span>
</div>
</div>
</div>
</div>
<div class="p-4 md:w-1/3">
<div class="h-full border-2 border-gray-200 rounded-lg overflow-hidden">
<div class="lg:h-48 bg-gray-400 md:h-36 w-full object-cover object-center"></div>
<div class="p-6">
<h2 class="bg-gray-400 animate-pulse h-4 w-1/4 mb-2"></h2>
<h1 class="w-1/2 mb-4 h-6 animate-pulse bg-gray-500"></h1>
<p class="leading-relaxed mb-3 w-full h-3 animate-pulse bg-gray-400"></p>
<p class="leading-relaxed mb-3 w-2/3 h-3 animate-pulse bg-gray-400"></p>
<p class="leading-relaxed mb-3 w-1/2 h-3 animate-pulse bg-gray-400"></p>
<div class="flex items-center flex-wrap ">
<a class="bg-indigo-300 h-4 animate-pulse mt-2 w-32 inline-flex items-center md:mb-2 lg:mb-0">
</a>
<span class="bg-indigo-300 w-16 mt-2 h-4 animate-pulse mr-3 px-2 inline-flex items-center ml-auto leading-none text-sm pr-5 py-1">
</span>
</div>
</div>
</div>
</div>
<div class="p-4 md:w-1/3">
<div class="h-full border-2 border-gray-200 rounded-lg overflow-hidden">
<div class="lg:h-48 bg-gray-400 md:h-36 w-full object-cover object-center"></div>
<div class="p-6">
<h2 class="bg-gray-400 animate-pulse h-4 w-1/4 mb-2"></h2>
<h1 class="w-1/2 mb-4 h-6 animate-pulse bg-gray-500"></h1>
<p class="leading-relaxed mb-3 w-full h-3 animate-pulse bg-gray-400"></p>
<p class="leading-relaxed mb-3 w-2/3 h-3 animate-pulse bg-gray-400"></p>
<p class="leading-relaxed mb-3 w-1/2 h-3 animate-pulse bg-gray-400"></p>
<div class="flex items-center flex-wrap ">
<a class="bg-indigo-300 h-4 animate-pulse mt-2 w-32 inline-flex items-center md:mb-2 lg:mb-0">
</a>
<span class="bg-indigo-300 w-16 mt-2 h-4 animate-pulse mr-3 px-2 inline-flex items-center ml-auto leading-none text-sm pr-5 py-1">
</span>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
<hr>
<section class="text-gray-700 body-font">
<div class="container px-5 py-24 mx-auto">
<div class="text-md text-center mt-5 font-extrabold border-b border-black p-5 mb-5">After Loading</div>
<div class="flex flex-wrap -m-4">
<div class="p-4 md:w-1/3">
<div class="h-full border-2 border-gray-200 rounded-lg overflow-hidden">
<img class="lg:h-48 md:h-36 w-full object-cover object-center" src="https://images.unsplash.com/photo-1520607162513-77705c0f0d4a?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1049&q=80" alt="blog">
<div class="p-6">
<h2 class="tracking-widest text-xs title-font font-medium text-gray-500 mb-1">CATEGORY</h2>
<h1 class="title-font text-lg font-medium text-gray-900 mb-3">The Catalyzer</h1>
<p class="leading-relaxed mb-3">Photo booth fam kinfolk cold-pressed sriracha leggings jianbing microdosing tousled waistcoat.</p>
<div class="flex items-center flex-wrap ">
<a class="text-indigo-500 inline-flex items-center md:mb-2 lg:mb-0">Learn More
<svg class="w-4 h-4 ml-2" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round">
<path d="M5 12h14"></path>
<path d="M12 5l7 7-7 7"></path>
</svg>
</a>
<span class="text-gray-600 mr-3 inline-flex items-center lg:ml-auto md:ml-0 ml-auto leading-none text-sm pr-3 py-1 border-r-2 border-gray-300">
<svg class="w-4 h-4 mr-1" stroke="currentColor" stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round" viewBox="0 0 24 24">
<path d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"></path>
<circle cx="12" cy="12" r="3"></circle>
</svg>1.2K
</span>
<span class="text-gray-600 inline-flex items-center leading-none text-sm">
<svg class="w-4 h-4 mr-1" stroke="currentColor" stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round" viewBox="0 0 24 24">
<path d="M21 11.5a8.38 8.38 0 01-.9 3.8 8.5 8.5 0 01-7.6 4.7 8.38 8.38 0 01-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 01-.9-3.8 8.5 8.5 0 014.7-7.6 8.38 8.38 0 013.8-.9h.5a8.48 8.48 0 018 8v.5z"></path>
</svg>6
</span>
</div>
</div>
</div>
</div>
<div class="p-4 md:w-1/3">
<div class="h-full border-2 border-gray-200 rounded-lg overflow-hidden">
<img class="lg:h-48 md:h-36 w-full object-cover object-center" src="https://images.unsplash.com/photo-1497366754035-f200968a6e72?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1050&q=80" alt="blog">
<div class="p-6">
<h2 class="tracking-widest text-xs title-font font-medium text-gray-500 mb-1">CATEGORY</h2>
<h1 class="title-font text-lg font-medium text-gray-900 mb-3">The 400 Blows</h1>
<p class="leading-relaxed mb-3">Photo booth fam kinfolk cold-pressed sriracha leggings jianbing microdosing tousled waistcoat.</p>
<div class="flex items-center flex-wrap">
<a class="text-indigo-500 inline-flex items-center md:mb-2 lg:mb-0">Learn More
<svg class="w-4 h-4 ml-2" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round">
<path d="M5 12h14"></path>
<path d="M12 5l7 7-7 7"></path>
</svg>
</a>
<span class="text-gray-600 mr-3 inline-flex items-center lg:ml-auto md:ml-0 ml-auto leading-none text-sm pr-3 py-1 border-r-2 border-gray-300">
<svg class="w-4 h-4 mr-1" stroke="currentColor" stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round" viewBox="0 0 24 24">
<path d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"></path>
<circle cx="12" cy="12" r="3"></circle>
</svg>1.2K
</span>
<span class="text-gray-600 inline-flex items-center leading-none text-sm">
<svg class="w-4 h-4 mr-1" stroke="currentColor" stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round" viewBox="0 0 24 24">
<path d="M21 11.5a8.38 8.38 0 01-.9 3.8 8.5 8.5 0 01-7.6 4.7 8.38 8.38 0 01-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 01-.9-3.8 8.5 8.5 0 014.7-7.6 8.38 8.38 0 013.8-.9h.5a8.48 8.48 0 018 8v.5z"></path>
</svg>6
</span>
</div>
</div>
</div>
</div>
<div class="p-4 md:w-1/3">
<div class="h-full border-2 border-gray-200 rounded-lg overflow-hidden">
<img class="lg:h-48 md:h-36 w-full object-cover object-center" src="https://images.unsplash.com/photo-1593642703055-4b72c180d9b5?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1050&q=80" alt="blog">
<div class="p-6">
<h2 class="tracking-widest text-xs title-font font-medium text-gray-500 mb-1">CATEGORY</h2>
<h1 class="title-font text-lg font-medium text-gray-900 mb-3">Shooting Stars</h1>
<p class="leading-relaxed mb-3">Photo booth fam kinfolk cold-pressed sriracha leggings jianbing microdosing tousled waistcoat.</p>
<div class="flex items-center flex-wrap ">
<a class="text-indigo-500 inline-flex items-center md:mb-2 lg:mb-0">Learn More
<svg class="w-4 h-4 ml-2" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round">
<path d="M5 12h14"></path>
<path d="M12 5l7 7-7 7"></path>
</svg>
</a>
<span class="text-gray-600 mr-3 inline-flex items-center lg:ml-auto md:ml-0 ml-auto leading-none text-sm pr-3 py-1 border-r-2 border-gray-300">
<svg class="w-4 h-4 mr-1" stroke="currentColor" stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round" viewBox="0 0 24 24">
<path d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"></path>
<circle cx="12" cy="12" r="3"></circle>
</svg>1.2K
</span>
<span class="text-gray-600 inline-flex items-center leading-none text-sm">
<svg class="w-4 h-4 mr-1" stroke="currentColor" stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round" viewBox="0 0 24 24">
<path d="M21 11.5a8.38 8.38 0 01-.9 3.8 8.5 8.5 0 01-7.6 4.7 8.38 8.38 0 01-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 01-.9-3.8 8.5 8.5 0 014.7-7.6 8.38 8.38 0 013.8-.9h.5a8.48 8.48 0 018 8v.5z"></path>
</svg>6
</span>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- skeleton 5 end -->
<!-- skeleton 6 start -->
<section class="section_divider">
<div>Skeleton 6 </div>
</section>
<section class="m-10">
<div class="w-60 h-24 border-2 rounded-md mx-auto">
<div class="flex animate-pulse flex-row items-center h-full justify-center space-x-5">
<div class="w-12 bg-gray-300 h-12 rounded-full ">
</div>
<div class="flex flex-col space-y-3">
<div class="w-36 bg-gray-300 h-6 rounded-md ">
</div>
<div class="w-24 bg-gray-300 h-6 rounded-md ">
</div>
</div>
</div>
</div>
</section>
<!-- skeleton 6 end -->
<!-- skeleton 7 start -->
<section class="section_divider">
<div>Skeleton 7</div>
</section>
<section class="m-10">
<div class="bg-white w-96 mx-auto rounded-2xl shadow-lg">
<div class="bg-gray-200 h-48 p-3 overflow-hidden animate-pulse">
</div>
<div class="h- p-3">
<div class="grid grid-cols-3 gap-4 mt-2">
<div class="h-8 bg-gray-200 rounded animate-pulse">
</div>
<div class="h-8 bg-gray-200 rounded animate-pulse">
</div>
<div class="h-8 bg-gray-200 rounded animate-pulse">
</div>
<div class="h-8 col-span-2 bg-gray-200 rounded animate-pulse">
</div>
<div class=" h-8 bg-gray-200 rounded animate-pulse">
</div>
<div class="...">
</div>
<div class="col-span-2 ...">
</div>
</div>
</div>
</div>
</section>
<!-- skeleton 7 end -->
<!-- skeleton 8 start -->
<section class="section_divider">
<div>Skeleton 8</div>
</section>
<section class="m-10">
<div class="bg-white w-1/2 mx-auto p-2 sm:p-4 sm:h-64 rounded-2xl shadow-lg flex flex-col sm:flex-row gap-5 select-none ">
<div class="h-52 sm:h-full sm:w-72 rounded-xl bg-gray-200 animate-pulse">
</div>
<div class="flex flex-col flex-1 gap-5 sm:p-2">
<div class="flex flex-1 flex-col gap-3">
<div class="bg-gray-200 w-full animate-pulse h-14 rounded-2xl">
</div>
<div class="bg-gray-200 w-full animate-pulse h-3 rounded-2xl">
</div>
<div class="bg-gray-200 w-full animate-pulse h-3 rounded-2xl">
</div>
<div class="bg-gray-200 w-full animate-pulse h-3 rounded-2xl">
</div>
<div class="bg-gray-200 w-full animate-pulse h-3 rounded-2xl">
</div>
</div>
<div class="mt-auto flex gap-3">
<div class="bg-gray-200 w-20 h-8 animate-pulse rounded-full">
</div>
<div class="bg-gray-200 w-20 h-8 animate-pulse rounded-full">
</div>
<div class="bg-gray-200 w-20 h-8 animate-pulse rounded-full ml-auto">
</div>
</div>
</div>
</div>
</section>
<!-- skeleton 8 end -->
<!-- start of script section -->
<script type="text/javascript">
let toogler = document.getElementById("dark_mood_toogler");
let doc_html_el = document.getElementsByTagName('html')[0];
doc_html_el.addEventListener('keyup',(e)=>{
// key 220 is the backward slash , need to press ctrl+ \ to activate or deactivate darkmode
if(e.ctrlKey && e.keyCode =='220'){
doc_html_el.className =='' ? doc_html_el.classList.add('dark'):doc_html_el.classList.remove('dark');
}
})
doc_html_el.addEventListener('keyup',(e)=>{
// key 191 is the forward slash , need to press ctrl+ / to show or hide the darkmode button
if(e.ctrlKey && e.keyCode =='191'){
toogler.style.display =='block'? toogler.style.display = 'none':toogler.style.display ='block';
}
})
toogler.addEventListener('click',()=>{
doc_html_el.className =='' ? doc_html_el.classList.add('dark'):doc_html_el.classList.remove('dark');
console.log(doc_html_el.className);
})
</script>
<!-- end of script section -->
</body>
</html>