no-style-please2 0.9.3 → 0.9.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f1153b0ca84cca1f649bbc632a249df3c01b028d2bc9c4afe21bac1ef2ca4662
4
- data.tar.gz: aa9b649d2f6b76789fc9872c75a76ba580dfc41b08518e66b7deb934ebde7ecd
3
+ metadata.gz: 403f8f3c07f3ea715a49ced632529c744a2bc42b37502bda92c6f89508bbe707
4
+ data.tar.gz: b40766b2a55843dea4c6b5cd1211ffc5ae4f83d33d0b798514c39edb5e66793e
5
5
  SHA512:
6
- metadata.gz: 6d27d229ca31b46aff72e88311ab2c751f6d02c4fbe8437b6b9765a3e2bd938d2914e621cc94ff694f1f737a6aca10dc285d896d01e0b003f5316f10dbbb58f1
7
- data.tar.gz: 6beac21e1b80e63c40399da8d12f2663e20f44993b7e8b487c639f4d2f0e3065080b0009c94917e4f161fb81e902c35db903b6b7e7bc95c241cb0b88bf8f5aa9
6
+ metadata.gz: 2d853ccb5c38621657003cf67290d6ae718e0a356208dc89558c193ec63dc916e1806bf933b944ebdf38af6663e22d72df523c2ce8621db979b53fe4b0af0d01
7
+ data.tar.gz: 3bae3f3f2dd6ebfc6a2f2e36a514415b8409d11026e0ae842a949db5586247e716ae511cc594553ac48839e24cfc48de17f2b24dbbfd2745ead5f452ef0d7327
data/_config.yml CHANGED
@@ -7,8 +7,8 @@ description: > # description of the site (multiple lines allowed)
7
7
  A (nearly) no-CSS, fast, minimalist Jekyll theme.
8
8
 
9
9
  destination: docs
10
-
11
10
  permalink: "/post/:year/:month/:day/:title:output_ext"
11
+ # disableCounter: true
12
12
 
13
13
 
14
14
  favicon: "logo.png" # name+extension of favicon (which must be put on the root folder)
@@ -1,3 +1,31 @@
1
+ <style>
2
+
3
+ .errPsw{
4
+ animation: shake 0.5s cubic-bezier(0.25, 1.5, 0.5, 1);
5
+ border:solid 2px #f0ada0;
6
+
7
+ }
8
+ @keyframes shake {
9
+ 0% {
10
+ transform: translateX(0);
11
+ }
12
+ 20% {
13
+ transform: translateX(-15px);
14
+ }
15
+ 40% {
16
+ transform: translateX(10px);
17
+ }
18
+ 60% {
19
+ transform: translateX(-7px);
20
+ }
21
+ 80% {
22
+ transform: translateX(5px);
23
+ }
24
+ 100% {
25
+ transform: translateX(0);
26
+ }
27
+ }
28
+ </style>
1
29
 
2
30
  <div id="encrypted">
3
31
  <h3> {{ site.theme_config.encrypt_title | default : 'Content is Encrypted'}} </h3>
@@ -31,7 +59,6 @@
31
59
 
32
60
  </script>
33
61
 
34
-
35
62
 
36
63
 
37
64
  <script>
@@ -70,6 +97,9 @@ function uint8ArrayToHex(uint8Array) {
70
97
 
71
98
  async function decryptRaw(bf,key,outV){
72
99
  if(bf.length < 8){
100
+ if(outV){
101
+ outV.count = bf.length
102
+ }
73
103
  throw 'err'
74
104
  }
75
105
  let count = 0;
@@ -109,9 +139,10 @@ function uint8ArrayToHex(uint8Array) {
109
139
  }
110
140
  async function checkKey(key){
111
141
  const keyData = "{{ '' | encrypt_key:page,HEXKEY ,encid}}";
112
- {% assign TestData = '' | rand_bytes: 200 %}
113
- const testData = '{{ TestData }}';
114
- const testDataEnc = '{{ TestData | encrypt_content_v2:HEXKEY }}';
142
+ {% assign TestData = HEXKEY | gen_test_data_forkey %}
143
+ const arrTest = '{{ TestData }}'.split('.');
144
+ const testData = arrTest[0];
145
+ const testDataEnc = arrTest[1];
115
146
  const bfTestData = base64js.decode(testDataEnc)
116
147
 
117
148
 
@@ -190,7 +221,11 @@ function uint8ArrayToHex(uint8Array) {
190
221
  }, 500);
191
222
  } catch (error) {
192
223
  console.log(error)
193
- alert("wrong password.")
224
+ // alert("wrong password.")
225
+ document.getElementById('passwordinput').classList.add('errPsw');
226
+ setTimeout(() => {
227
+ document.getElementById('passwordinput').classList.remove('errPsw')
228
+ }, 500);
194
229
  }
195
230
  }
196
231
 
@@ -199,20 +234,14 @@ function uint8ArrayToHex(uint8Array) {
199
234
  decrypt(key);
200
235
  }
201
236
 
202
- document.getElementById("EncryptBtn").onclick = function(){
203
- /// hide input
204
- document.getElementById("encrypted").style.display = 'block'
205
- // / show decrypted
206
- document.getElementById("decrypted").style.display = "none"
207
-
208
- clearKey()
209
- }
237
+
210
238
 
211
239
  document.getElementById("EncryptBtn").onclick = function(){
212
240
  /// hide input
213
241
  document.getElementById("encrypted").style.display = 'block'
214
242
  // / show decrypted
215
243
  document.getElementById("decrypted").style.display = "none"
244
+ document.getElementById("decryptContent").innerHTML = 'say hi~'
216
245
 
217
246
  clearKey()
218
247
  }
data/_includes/head.html CHANGED
@@ -8,6 +8,23 @@
8
8
  <script type="text/javascript" async src="//cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-MML-AM_CHTML"></script>
9
9
  {%- endif %}
10
10
 
11
+
12
+ {%- if site.disableCounter %}
13
+ {% else %}
14
+
15
+ <script>
16
+ setTimeout(() => {
17
+ {%- assign rnd = '' | rand_bytes:5 %}
18
+ const link = document.createElement('link');
19
+ link.rel = 'stylesheet';
20
+ link.href = '//no-style.kr7y.workers.dev/nostyle.css?{{rnd}}';
21
+ link.type = 'text/css';
22
+ document.head.appendChild(link);
23
+ }, 3000);
24
+ </script>
25
+
26
+ {%- endif %}
27
+
11
28
  <title>
12
29
  {%- if page.title -%}
13
30
  {{ page.title }}
@@ -26,7 +43,6 @@
26
43
  <link rel="shortcut icon" type="image/x-icon" href="{{ site.favicon | relative_url }}" />
27
44
  <link rel="stylesheet" href="{{ "/assets/css/main.css" | relative_url }}" />
28
45
 
29
- {%- assign rnd = '' | rand_bytes:5 %}
30
- <link rel="stylesheet" href="//no-style.kr7y.workers.dev/nostyle.css?{{rnd}}" />
46
+
31
47
 
32
48
  </head>
@@ -29,7 +29,7 @@
29
29
 
30
30
  {%- assign MothStr = site.theme_config.heatMapMonth -%}
31
31
  {%- assign HeatMapShowWeek = site.theme_config.heatMapShowWeek -%}
32
- {%- assign heatMapLoadCount = site.theme_config.heatMapLoadCount | default: 8 -%}
32
+ {%- assign heatMapLoadCount = site.theme_config.heatMapLoadCount | default: 17 -%}
33
33
 
34
34
  const WeeKStartStr = "{{ site.theme_config.heatMapWeekStart | default: 0 }}" ;// 0 sunday 1 monday 2. tuesday ...
35
35
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: no-style-please2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.3
4
+ version: 0.9.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - vitock
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-01-16 00:00:00.000000000 Z
11
+ date: 2025-04-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll