Commit 8c4cbc55 authored by svilayphiou's avatar svilayphiou
Browse files

Pad for CSS is loaded in ajax and inserted into a style element...

parent 3b05d6f0
......@@ -210,5 +210,6 @@
</script>
<script type="text/javascript" charset="utf-8" src="pad.js"> </script>
</body>
</html>
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();
......@@ -115,5 +115,7 @@
// END COMMITS
</script>
<script type="text/javascript" charset="utf-8" src="pad.js"> </script>
</body>
</html>
......@@ -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>
......@@ -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>
......@@ -5,14 +5,8 @@
<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">
<link href="http://pads.osp.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>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment