Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
work.aesthetic-programming
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
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
LR Johns
work.aesthetic-programming
Commits
0eb75d87
Commit
0eb75d87
authored
Oct 15, 2019
by
svilayphiou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added a link to a pad to style together at the same time
parent
9c5d21f9
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
51 additions
and
20 deletions
+51
-20
pelican/theme/aesthetic-programming/static/js/styles.js
pelican/theme/aesthetic-programming/static/js/styles.js
+29
-0
pelican/theme/aesthetic-programming/templates/archives.html
pelican/theme/aesthetic-programming/templates/archives.html
+0
-17
pelican/theme/aesthetic-programming/templates/page.html
pelican/theme/aesthetic-programming/templates/page.html
+22
-3
No files found.
pelican/theme/aesthetic-programming/static/js/styles.js
0 → 100644
View file @
0eb75d87
function
loadEtherStyle
(
url
,
interval
)
{
function
load
(
url
)
{
fetch
(
url
)
.
then
(
function
(
r
)
{
return
r
.
text
()})
.
then
(
function
(
styles
)
{
var
el
=
document
.
createElement
(
'
style
'
);
el
.
appendChild
(
document
.
createTextNode
(
styles
));
el
.
setAttribute
(
'
data-type
'
,
'
etherstyle
'
);
document
.
head
.
appendChild
(
el
);
window
.
requestAnimationFrame
(
function
()
{
var
styles
=
document
.
querySelectorAll
(
'
[data-type="etherstyle"]
'
);
for
(
var
i
=
0
;
i
<
(
styles
.
length
-
1
);
i
++
)
{
styles
[
i
].
remove
();
}
});
});
}
load
(
url
);
var
urlParameters
=
new
URLSearchParams
(
window
.
location
.
search
),
reload
=
urlParameters
.
get
(
'
reload
'
);
if
(
reload
==
'
reload
'
)
{
window
.
setInterval
(
function
()
{
load
(
url
);
},
interval
);
}
}
(
function
()
{
loadEtherStyle
(
'
http://pads.osp.kitchen/p/aesthetic-programming.css/export/txt/
'
,
7500
);
})();
pelican/theme/aesthetic-programming/templates/archives.html
deleted
100644 → 0
View file @
9c5d21f9
<!DOCTYPE html>
<html
lang=
"en"
>
<head>
<meta
charset=
"UTF-8"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0"
>
<meta
http-equiv=
"X-UA-Compatible"
content=
"ie=edge"
>
<title>
{{ SITENAME }}
</title>
<link
rel=
"stylesheet"
href=
"{{ SITEURL }}/{{ THEME_STATIC_DIR }}/css/styles.css"
type=
"text/css"
media=
"all"
charset=
"utf-8"
>
<link
rel=
"stylesheet"
href=
"{{ SITEURL }}/{{ THEME_STATIC_DIR }}/css/interface-0.1.css"
type=
"text/css"
media=
"all"
charset=
"utf-8"
>
<script
type=
"text/javascript"
charset=
"utf-8"
src=
"{{ SITEURL }}/{{ THEME_STATIC_DIR }}/js/paged.polyfill.js"
></script>
</head>
<body>
{% for page in pages %}
{{ page.content }}
{% endfor %}
</body>
</html>
\ No newline at end of file
pelican/theme/aesthetic-programming/templates/page.html
View file @
0eb75d87
...
...
@@ -7,10 +7,29 @@
<title>
{{ SITENAME }}
</title>
<link
rel=
"stylesheet"
href=
"{{ SITEURL }}/{{ THEME_STATIC_DIR }}/css/styles.css"
type=
"text/css"
media=
"all"
charset=
"utf-8"
>
<link
rel=
"stylesheet"
href=
"{{ SITEURL }}/{{ THEME_STATIC_DIR }}/css/interface-0.1.css"
type=
"text/css"
media=
"all"
charset=
"utf-8"
>
<script
type=
"text/javascript"
charset=
"utf-8"
src=
"{{ SITEURL }}/{{ THEME_STATIC_DIR }}/js/paged.polyfill.js"
>
<script
type=
"text/javascript"
charset=
"utf-8"
src=
"{{ SITEURL }}/{{ THEME_STATIC_DIR }}/js/paged.polyfill.js"
>
</script>
<script
src=
"https://code.jquery.com/jquery-1.12.4.min.js"
integrity=
"sha256-ZosEbRLbNQzLpnKIkEdrPv7lOy9C27hHQ+Xp8a4MxAQ="
crossorigin=
"anonymous"
></script>
<script
type=
"text/javascript"
charset=
"utf-8"
>
// URL DE VOTRE PAD ICI
//pad = "https://semestriel.framapad.org/p/aesthetic-programmingcss";
pad
=
"
http://pads.osp.kitchen/p/aesthetic-programming.css
"
;
$
(
document
).
ready
(
function
(){
setTimeout
(
function
(){
$
(
"
#styles
"
).
load
(
pad
+
"
/export/txt
"
);
},
50
);
});
</script>
</head>
<body>
<style
type=
"text/css"
media=
"screen"
id=
"styles"
>
</style>
{{ page.content }}
</body>
</html>
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