forked from vineethtrv/css-loader
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
118 lines (104 loc) · 5.66 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
<!DOCTYPE html>
<html lang="en" color-scheme="light">
<head>
<meta charset="UTF-8">
<link rel="apple-touch-icon" sizes="180x180" href="images/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="images/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="images/favicon-16x16.png">
<link rel="manifest" href="site.webmanifest">
<link rel="mask-icon" href="images/safari-pinned-tab.svg" color="#ffffff">
<meta name="msapplication-TileColor" content="#da532c">
<meta name="theme-color" content="#ffffff">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>CSS loaders and Spinners</title>
<!-- Search Engine -->
<meta name="title" content="CSS loaders and spinner">
<meta name="description" content="CSS Loader is a collection of different types of loaders, spinners and their source code. There are no image dependencies in this. It's is done using pure CSS. Hence it is easily customization too.">
<meta name="keywords" content="css, loader, spinners , loading , waiting, css loading, cssloaders, css loaders, css3 loaders, css spinners, css3spinners, , css3 spinners, , cssspinners, HTML, CSS3">
<meta name="author" content="Vineeth TR">
<!-- Schema.org for Google -->
<meta itemprop="name" content="CSS loaders and spinner">
<meta itemprop="description" content="CSS Loader is a collection of different types of loaders, spinners and their source code. There are no image dependencies in this. It's is done using pure CSS. Hence it is easily customization too.">
<meta name="image" content="https://cssloaders.github.io/images/Loader-screen.png">
<!-- Open Graph general (Facebook, Pinterest & Google+) -->
<meta name="og:title" content="CSS loaders and spinners">
<meta name="og:description" content="CSS Loader is a collection of different types of loaders, spinners and their source code. There are no image dependencies in this. It's is done using pure CSS. Hence it is easily customization too.">
<meta name="og:image" content="https://cssloaders.github.io/images/Loader-screen.png">
<meta name="og:url" content="https://cssloaders.github.io/">
<meta name="og:site_name" content="CSS loaders and spinners">
<meta name="fb:admins" content="https://www.facebook.com/vinithtrv">
<meta name="og:type" content="website">
<!-- Twitter -->
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="CSS loaders and spinners">
<meta name="twitter:description" content="CSS Loader is a collection of different types of loaders, spinners and their source code. There are no image dependencies in this. It's is done using pure CSS. Hence it is easily customization too.">
<meta property="twitter:url" content="https://cssloaders.github.io/">
<meta name="twitter:creator" content="@vineethtrv">
<meta name="twitter:image:src" content="https://cssloaders.github.io/images/Loader-screen.png">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/remixicon/fonts/remixicon.css">
<link rel="stylesheet" href="css/styles.css?v1.1">
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-4F1SESL3HZ"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() { dataLayer.push(arguments); }
gtag('js', new Date());
gtag('config', 'G-4F1SESL3HZ');
</script>
</head>
<body>
<header>
<span class="brand">L aders</span>
<nav>
<a class="nav-btn codepen" target="_blank" href="https://codepen.io/vineethtrv/pen/NWxZqMM"><i class="ri-codepen-fill"></i></a>
<a class="nav-btn git" target="_blank" href="https://github.com/vineethtrv/css-loader"><i class="ri-github-fill"></i></a>
<a class="nav-btn theme" href="javascript:void(0)" onclick="toggleTheme()"><i id="theme-icon" class="ri-sun-fill"></i></a>
</nav>
</header>
<main id="main"></main>
<footer>
<a href="https://vineethtrv.github.io/" target="_blank" >
<span>👨‍💻</span>
Vineeth TR
</a>
</footer>
<div class="overlay">
<div class="popup" id="popup">
<button class="btn-close">×</button>
<div class="showcase"></div>
<div class="code-content">
<div class="code-area">
<div class="code-header">
HTML
<button class="copy" data-id="markup">Copy</button>
</div>
<code id="markup"></code>
</div>
<div class="code-area">
<div class="code-header">
CSS
<button class="copy" data-id="css">Copy</button>
</div>
<code id='css'></code>
</div>
</div>
</div>
</div>
<script>
const themes = ['light', 'dark', 'dim'];
const icons = ['ri-sun-fill', 'ri-moon-fill', 'ri-contrast-fill']; // Light, Dark, Dim Unicons
let currentThemeIndex = 0;
function toggleTheme() {
// Update theme index
currentThemeIndex = (currentThemeIndex + 1) % themes.length;
const selectedTheme = themes[currentThemeIndex];
// Update color-scheme
document.documentElement.setAttribute('color-scheme', selectedTheme);
// Update icon
const themeIcon = document.getElementById('theme-icon');
themeIcon.className = `uil ${icons[currentThemeIndex]}`;
}
</script>
<script type="module" src="./js/app.js"></script>
</body>
</html>