Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
poul.org
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
16
Issues
16
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Sito
poul.org
Commits
fc204e4c
Verified
Commit
fc204e4c
authored
Apr 09, 2020
by
Roberto Bochet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move "sotto storto cit" script in a dedicated file
parent
942e7822
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
22 deletions
+20
-22
_includes/footer.html
_includes/footer.html
+1
-2
_includes/scripts.html
_includes/scripts.html
+0
-6
assets/js/scripts.js
assets/js/scripts.js
+4
-14
assets/js/sotto-storto-cit.js
assets/js/sotto-storto-cit.js
+15
-0
No files found.
_includes/footer.html
View file @
fc204e4c
...
...
@@ -3,8 +3,7 @@
©
{{ site.time | date: '%Y' }}
<span>
•
<a
href=
"https://www.poul.org"
>
POuL
</a></span>
<span>
•
<a
href=
"https://gitlab.poul.org/sito/poul-jekyll"
>
Source code
</a></span>
<span
class=
"desktop-only"
>
•
<a
href=
"#"
id=
"fix-sotto-storto-link"
onclick=
"fixSottoStortoCit(); return false;"
>
Fix rotation
</a></span>
<span
class=
"desktop-only"
>
•
<a
href=
"#"
id=
"fix-sotto-storto-link"
>
Fix rotation
</a></span>
<span>
•
<a
href=
"#"
id=
"fix-open-dyslexic-link"
>
Enable futuristic font
</a></span>
</div>
<div
class=
"socials"
>
...
...
_includes/scripts.html
deleted
100644 → 0
View file @
942e7822
<script
src=
"{{ '/site/assets/vendor/jquery@3.4.1/jquery.slim.min.js' | static_url }}"
></script>
<script
src=
"{{ '/assets/js/dropcap.min.js' | relative_url }}"
></script>
<script
src=
"{{ '/assets/js/responsive-nav.min.js' | relative_url }}"
></script>
<script
src=
"{{ '/assets/js/scripts.js' | relative_url }}"
></script>
<script
src=
"{{ '/assets/js/simple-bits-client.js' | relative_url }}"
></script>
\ No newline at end of file
assets/js/scripts.js
View file @
fc204e4c
// A $( document ).ready() block.
$
(
document
).
ready
(
function
()
{
"
use strict
"
;
document
.
addEventListener
(
'
DOMContentLoaded
'
,
()
=>
{
// DropCap.js
var
dropcaps
=
document
.
querySelectorAll
(
"
.dropcap
"
);
...
...
@@ -13,15 +14,4 @@ $(document).ready(function () {
return
Math
.
round
(
parseFloat
(
value
));
});
});
function
fixSottoStortoCit
()
{
if
(
document
.
body
.
classList
.
contains
(
"
sotto-dritto
"
))
{
document
.
body
.
classList
.
remove
(
"
sotto-dritto
"
);
document
.
getElementById
(
'
fix-sotto-storto-link
'
).
text
=
"
Fix rotation
"
;
}
else
{
document
.
body
.
classList
.
add
(
"
sotto-dritto
"
);
document
.
getElementById
(
'
fix-sotto-storto-link
'
).
text
=
"
Lol no, put it back
"
;
}
}
});
\ No newline at end of file
assets/js/sotto-storto-cit.js
0 → 100644
View file @
fc204e4c
"
use strict
"
;
document
.
addEventListener
(
'
DOMContentLoaded
'
,
()
=>
{
document
.
querySelector
(
"
#fix-sotto-storto-link
"
).
addEventListener
(
"
click
"
,
(
e
)
=>
{
e
.
preventDefault
();
if
(
document
.
body
.
classList
.
contains
(
"
sotto-dritto
"
))
{
document
.
body
.
classList
.
remove
(
"
sotto-dritto
"
);
document
.
getElementById
(
"
fix-sotto-storto-link
"
).
text
=
"
Fix rotation
"
;
}
else
{
document
.
body
.
classList
.
add
(
"
sotto-dritto
"
);
document
.
getElementById
(
"
fix-sotto-storto-link
"
).
text
=
"
Lol no, put it back
"
;
}
});
});
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment