jekyll-bhautiki 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_includes/footer.html +2 -2
- data/_includes/header.html +2 -2
- data/_sass/common/feather.sass +4 -0
- data/assets/js/main.js +1 -1
- data/assets/js/main.js.map +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dd861cff9c21d90a103312190ba2a7fd46191ddbf0d23183ed5699bbd20e6b1b
|
4
|
+
data.tar.gz: 8d8289c42a7f93edc089f88f81272cdd500869d3adc8eeaa05e43e606916da38
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d3dd58f394564e82b0b13869b016cd6f0fd17f77b87cbaa613858b82665d7d99859db72c74c0e725479110eb3ced9e091c49ba26cbe4fc19915a38389b886fe9
|
7
|
+
data.tar.gz: 55a75bcc198639aeff4cd4357524a94794463ebdd0b0922d1a125fda44cb9f1e5c965a5ccfd995ddba87b5bdf999e22d391bbd58e57dd7b91c5f337cfa97bf6b
|
data/_includes/footer.html
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
<div class="grid-x grid-padding-x grid-padding-y align-center">
|
5
5
|
<div class="cell small-1 text-left">
|
6
6
|
<div data-sticky-container>
|
7
|
-
<div class="sticky" data-stick-to="bottom" data-sticky>
|
7
|
+
<div class="sticky" data-stick-to="bottom" data-sticky data-sticky-on="small">
|
8
8
|
<button id="mode" type="button">
|
9
9
|
<i data-feather="moon"></i>
|
10
10
|
</button>
|
@@ -39,7 +39,7 @@
|
|
39
39
|
<div class="cell small-1 text-right">
|
40
40
|
<a href="#top" data-smooth-scroll>
|
41
41
|
<div data-sticky-container>
|
42
|
-
<div class="sticky" data-stick-to="bottom" data-sticky>
|
42
|
+
<div class="sticky" data-stick-to="bottom" data-sticky data-sticky-on="small">
|
43
43
|
<button type="button" data-toggle="up">
|
44
44
|
<i data-feather="arrow-up-circle"></i>
|
45
45
|
</button>
|
data/_includes/header.html
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
<div class="grid-x grid-padding-x grid-padding-y align-center">
|
5
5
|
<div class="cell small-1 text-left">
|
6
6
|
<div data-sticky-container>
|
7
|
-
<div class="sticky" data-sticky>
|
7
|
+
<div class="sticky" data-sticky data-sticky-on="small">
|
8
8
|
<button class="hide-for-large" type="button" data-toggle="nav">
|
9
9
|
<i data-feather="sidebar"></i>
|
10
10
|
</button>
|
@@ -22,7 +22,7 @@
|
|
22
22
|
|
23
23
|
<div class="cell small-1 text-right">
|
24
24
|
<div data-sticky-container>
|
25
|
-
<div class="sticky" data-sticky>
|
25
|
+
<div class="sticky" data-sticky data-sticky-on="small">
|
26
26
|
<button class="hide-for-large" type="button" data-toggle="side">
|
27
27
|
<i data-feather="menu"></i>
|
28
28
|
</button>
|
data/_sass/common/feather.sass
CHANGED
data/assets/js/main.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
(()=>{let e,t;let o=()=>{feather.replace()},s="data-theme",a="dark",n="light",i="mode";function m(){document.documentElement.setAttribute(s,a),$("#mode").find("svg").replaceWith('<i data-feather="sun"></i>'),o()}function d(){document.documentElement.setAttribute(s,n),$("#mode").find("svg").replaceWith('<i data-feather="moon"></i>'),o()}
|
1
|
+
(()=>{let e,t;let o=()=>{feather.replace()},s="data-theme",a="dark",n="light",i="mode";function m(){document.documentElement.setAttribute(s,a),$("#mode").find("svg").replaceWith('<i data-feather="sun"></i>'),o()}function d(){document.documentElement.setAttribute(s,n),$("#mode").find("svg").replaceWith('<i data-feather="moon"></i>'),o()}$(document).foundation(),o(),e=window.matchMedia("(prefers-color-scheme: dark)"),(t=sessionStorage.getItem(i))==a?m():t==n?d():(e.matches?m():d(),sessionStorage.setItem(i,"")),$("#mode").on("click",()=>{$("#mode").find("svg").hasClass("feather-moon")?(m(),sessionStorage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","sources":["<anon>","_scripts/main.js","_scripts/common/feather.js","_scripts/common/foundation.js","_scripts/common/theme.js"],"sourcesContent":["(() => {\nconst $0abaf8754d6d68dc$export$df03f54e09e486fa = ()=>{\n feather.replace();\n};\n\n\nconst $88ef8f78f6164e41$export$aa72436c99aff8fd = ()=>{\n $(document).foundation();\n};\n\n\n\nconst $77af9af8a83584ec$var$LIGHT_ICON = '<i data-feather=\"sun\"></i>';\nconst $77af9af8a83584ec$var$DARK_ICON = '<i data-feather=\"moon\"></i>';\nconst $77af9af8a83584ec$var$ATTRIBUTE = \"data-theme\";\nconst $77af9af8a83584ec$var$DARK = \"dark\";\nconst $77af9af8a83584ec$var$LIGHT = \"light\";\nconst $77af9af8a83584ec$var$MODE = \"mode\";\nfunction $77af9af8a83584ec$var$setDarkMode() {\n document.documentElement.setAttribute($77af9af8a83584ec$var$ATTRIBUTE, $77af9af8a83584ec$var$DARK);\n $(\"#mode\").find(\"svg\").replaceWith($77af9af8a83584ec$var$LIGHT_ICON);\n (0, $0abaf8754d6d68dc$export$df03f54e09e486fa)();\n}\nfunction $77af9af8a83584ec$var$setLightMode() {\n document.documentElement.setAttribute($77af9af8a83584ec$var$ATTRIBUTE, $77af9af8a83584ec$var$LIGHT);\n $(\"#mode\").find(\"svg\").replaceWith($77af9af8a83584ec$var$DARK_ICON);\n (0, $0abaf8754d6d68dc$export$df03f54e09e486fa)();\n}\nfunction $77af9af8a83584ec$var$setPreferedMode(systemPrefersDark) {\n if (systemPrefersDark.matches) $77af9af8a83584ec$var$setDarkMode();\n else $77af9af8a83584ec$var$setLightMode();\n sessionStorage.setItem($77af9af8a83584ec$var$MODE, \"\");\n}\nconst $77af9af8a83584ec$export$d4f039427a1beff1 = ()=>{\n let systemPrefersDark = window.matchMedia(\"(prefers-color-scheme: dark)\");\n let mode = sessionStorage.getItem($77af9af8a83584ec$var$MODE);\n if (mode == $77af9af8a83584ec$var$DARK) $77af9af8a83584ec$var$setDarkMode();\n else if (mode == $77af9af8a83584ec$var$LIGHT) $77af9af8a83584ec$var$setLightMode();\n else $77af9af8a83584ec$var$setPreferedMode(systemPrefersDark);\n};\nconst $77af9af8a83584ec$export$c43e41d2ed1b3347 = ()=>{\n $(\"#mode\").on(\"click\", ()=>{\n if ($(\"#mode\").find(\"svg\").hasClass(\"feather-moon\")) {\n $77af9af8a83584ec$var$setDarkMode();\n sessionStorage.setItem($77af9af8a83584ec$var$MODE, $77af9af8a83584ec$var$DARK);\n } else {\n $77af9af8a83584ec$var$setLightMode();\n sessionStorage.setItem($77af9af8a83584ec$var$MODE, $77af9af8a83584ec$var$LIGHT);\n }\n });\n};\nvar $77af9af8a83584ec$export$2e2bcd8739ae039 = {\n switchMode: $77af9af8a83584ec$export$c43e41d2ed1b3347,\n setMode: $77af9af8a83584ec$export$d4f039427a1beff1\n};\n\n\n(0, $88ef8f78f6164e41$export$aa72436c99aff8fd)();\n(0, $0abaf8754d6d68dc$export$df03f54e09e486fa)();\n(0, $77af9af8a83584ec$export$d4f039427a1beff1)();\n(0, $77af9af8a83584ec$export$c43e41d2ed1b3347)();\n\n})();\n//# sourceMappingURL=main.js.map\n","import { icons } from \"./common/feather\";\nimport { initializeBaseStyle } from \"./common/foundation\";\nimport { setMode, switchMode } from \"./common/theme\";\n\ninitializeBaseStyle();\nicons();\n\nsetMode();\nswitchMode();\n","export const icons = () => {\n feather.replace();\n}\n","export const initializeBaseStyle = () => {\n $(document).foundation();\n}\n","import { icons } from \"./feather\";\n\nconst LIGHT_ICON = \"<i data-feather=\\\"sun\\\"></i>\"\nconst DARK_ICON = \"<i data-feather=\\\"moon\\\"></i>\"\nconst ATTRIBUTE = \"data-theme\"\nconst DARK = \"dark\"\nconst LIGHT = \"light\"\nconst MODE = \"mode\"\n\nfunction setDarkMode() {\n document.documentElement.setAttribute(ATTRIBUTE, DARK);\n $(\"#mode\").find(\"svg\").replaceWith(LIGHT_ICON);\n icons();\n}\n\nfunction setLightMode() {\n document.documentElement.setAttribute(ATTRIBUTE, LIGHT);\n $(\"#mode\").find(\"svg\").replaceWith(DARK_ICON);\n icons();\n}\n\nfunction setPreferedMode(systemPrefersDark) {\n if (systemPrefersDark.matches) {\n setDarkMode();\n } else {\n setLightMode();\n }\n\n sessionStorage.setItem(MODE, '');\n}\n\nexport const setMode = () => {\n let systemPrefersDark = window.matchMedia(\"(prefers-color-scheme: dark)\");\n let mode = sessionStorage.getItem(MODE);\n \n if (mode == DARK) {\n setDarkMode();\n } else if (mode == LIGHT) {\n setLightMode();\n } else {\n setPreferedMode(systemPrefersDark);\n }\n}\n\nexport const switchMode = () => {\n $(\"#mode\").on(\"click\", () => {\n if ($(\"#mode\").find(\"svg\").hasClass(\"feather-moon\")) {\n setDarkMode();\n sessionStorage.setItem(MODE, DARK);\n } else {\n setLightMode();\n sessionStorage.setItem(MODE, LIGHT);\n }\n });\n}\n\nexport default {switchMode, setMode};\n"],"names":["systemPrefersDark","mode","$0abaf8754d6d68dc$export$df03f54e09e486fa","feather","replace","$77af9af8a83584ec$var$ATTRIBUTE","$77af9af8a83584ec$var$DARK","$77af9af8a83584ec$var$LIGHT","$77af9af8a83584ec$var$MODE","$77af9af8a83584ec$var$setDarkMode","document","documentElement","setAttribute","$","find","replaceWith","$77af9af8a83584ec$var$setLightMode","foundation","window","matchMedia","sessionStorage","getItem","matches","setItem","on","hasClass"],"version":3,"file":"main.js.map"}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-bhautiki
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pawan Mishra
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-02-
|
11
|
+
date: 2024-02-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|