Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
osp
tools.gitlabculture
Commits
8c4cbc55
Commit
8c4cbc55
authored
Feb 25, 2020
by
svilayphiou
Browse files
Pad for CSS is loaded in ajax and inserted into a style element...
parent
3b05d6f0
Changes
6
Hide whitespace changes
Inline
Side-by-side
contour.html
View file @
8c4cbc55
...
...
@@ -210,5 +210,6 @@
</script>
<script
type=
"text/javascript"
charset=
"utf-8"
src=
"pad.js"
>
</script>
</body>
</html>
pad.js
0 → 100644
View file @
8c4cbc55
var
head
=
document
.
getElementsByTagName
(
'
head
'
)[
0
];
// GETS CSS FROM FRAMAPAD
var
xhttp
=
new
XMLHttpRequest
();
xhttp
.
onreadystatechange
=
function
()
{
if
(
this
.
readyState
==
4
&&
this
.
status
==
200
)
{
let
css
=
document
.
createElement
(
'
style
'
);
css
.
innerHTML
=
this
.
responseText
;
head
.
appendChild
(
css
);
}
};
xhttp
.
open
(
"
GET
"
,
"
https://semestriel.framapad.org/p/9f7m-osp-website-css/export/txt
"
,
true
);
xhttp
.
send
();
works-commit.html
View file @
8c4cbc55
...
...
@@ -115,5 +115,7 @@
// END COMMITS
</script>
<script
type=
"text/javascript"
charset=
"utf-8"
src=
"pad.js"
>
</script>
</body>
</html>
works-fonts.html
View file @
8c4cbc55
...
...
@@ -186,5 +186,7 @@ console.log(nbFonts);
}
// END GET ONE FONT
</script>
<script
type=
"text/javascript"
charset=
"utf-8"
src=
"pad.js"
>
</script>
</body>
</html>
works-image.html
View file @
8c4cbc55
...
...
@@ -5,7 +5,7 @@
<title>
OSP works
</title>
<
link
rel=
"stylesheet"
href=
"https://semestriel.framapad.org/p/9f7m-osp-website-css/export/txt"
type=
"text/css"
media=
"all"
charset=
"utf-8"
>
<
script
src=
"https://code.jquery.com/jquery-1.12.4.min.js"
integrity=
"sha256-ZosEbRLbNQzLpnKIkEdrPv7lOy9C27hHQ+Xp8a4MxAQ="
crossorigin=
"anonymous"
></script
>
<style>
img
{
...
...
@@ -41,6 +41,11 @@
<script
type=
"text/javascript"
charset=
"utf-8"
>
let
body
=
document
.
querySelector
(
'
body
'
);
var
gitlab_url
=
"
http://gitlab.constantvzw.org
"
;
var
user_name
=
"
osp
"
;
...
...
@@ -129,5 +134,7 @@
// END COMMITS
</script>
<script
type=
"text/javascript"
charset=
"utf-8"
src=
"pad.js"
>
</script>
</body>
</html>
works.html
View file @
8c4cbc55
...
...
@@ -5,14 +5,8 @@
<title>
OSP works
</title>
<link
rel=
"stylesheet"
href=
"http
s
://
semestriel.frama
pad.o
rg/p/9f7m-osp-website-css/export/txt"
type=
"text/css"
media=
"all"
charset=
"utf-8
"
>
<link
href=
"http://pad
s
.o
sp.kitchen/p/balsa2014-css/export/txt"
rel=
"stylesheet"
text=
"text/css
"
>
<style>
img
{
max-width
:
200px
;
max-height
:
200px
;
}
</style>
</head>
<body>
<h1>
Works
</h1>
...
...
@@ -113,5 +107,8 @@
// END COMMITS
</script>
<script
type=
"text/javascript"
charset=
"utf-8"
src=
"pad.js"
>
</script>
</body>
</html>
Write
Preview
Supports
Markdown
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