forked from Dahmso/animustransismus
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 0d4a5c6
Showing
398 changed files
with
4,701 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
;(function(alias){ | ||
"use strict"; | ||
|
||
|
||
var $ = document.getElementById.bind(document); | ||
var dom = require("ace/lib/dom"); | ||
|
||
//add command to all new editor instaces | ||
require("ace/commands/default_commands").commands.push({ | ||
name: "Toggle Fullscreen", | ||
bindKey: "F11", | ||
exec: function(editor_css) { | ||
var fullScreen = dom.toggleCssClass(document.body, "fullScreen") | ||
dom.setCssClass(editor_css.container, "fullScreen", fullScreen) | ||
editor_css.setAutoScrollEditorIntoView(!fullScreen) | ||
editor_css.resize() | ||
} | ||
}) | ||
// HTML | ||
|
||
// create first editor | ||
ace.require("ace/ext/language_tools"); | ||
var editor_html = ace.edit("editor_html"); | ||
editor_html.setTheme("ace/theme/monokai"); | ||
editor_html.session.setMode("ace/mode/html"); | ||
editor_html.renderer.setScrollMargin(10, 10); | ||
editor_html.$blockScrolling = Infinity; | ||
editor_html.setOptions({ | ||
// "scrollPastEnd": 0.8, | ||
autoScrollEditorIntoView: true, | ||
enableBasicAutocompletion: true, | ||
enableSnippets: true, | ||
enableLiveAutocompletion: true, | ||
tabSize: 1, | ||
useSoftTabs: true | ||
//wrap: 75 | ||
//maxLines: 5, | ||
}); | ||
|
||
var themes = require("ace/ext/themelist").themes.map(function(t){return t.theme}); | ||
|
||
// CSS | ||
|
||
// create first editor | ||
var editor_css = ace.edit("editor_css"); | ||
editor_css.setTheme("ace/theme/monokai"); | ||
editor_css.session.setMode("ace/mode/css"); | ||
editor_css.renderer.setScrollMargin(10, 10); | ||
editor_css.$blockScrolling = Infinity; | ||
editor_css.setOptions({ | ||
// "scrollPastEnd": 0.8, | ||
autoScrollEditorIntoView: true, | ||
enableBasicAutocompletion: true, | ||
enableSnippets: true, | ||
enableLiveAutocompletion: true, | ||
tabSize: 1, | ||
useSoftTabs: true | ||
//wrap: 75 | ||
}); | ||
|
||
var themes = require("ace/ext/themelist").themes.map(function(t){return t.theme}); | ||
|
||
window.editor_html = editor_html; | ||
window.editor_css = editor_css; | ||
})() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
function appelAJAX(methode, www, parametre){ | ||
|
||
// Creation de l'instance XHR | ||
// - 0 : L'objet XHR a été créé, mais pas encore initialisé (la méthode open n'a pas encore été appelée) | ||
var xhr = new XMLHttpRequest(); | ||
// URL de destinattion | ||
var url = www; | ||
if (parametre !== null) { | ||
// Parametre envoyer (ex: url.php?var=1&var=2) | ||
var params = parametre; | ||
} | ||
// Objet initialisé | ||
xhr.open(methode, url, true); | ||
|
||
//Si vous utilisez la méthode POST, vous devez absolument changer le type MIME de la requête avec la méthode setRequestHeader , sinon le serveur ignorera la requête : | ||
if (methode == "POST") { | ||
xhr.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); | ||
} | ||
|
||
xhr.onreadystatechange = function() {// Appel de la fonction au changement d'état de l'appel Ajax | ||
/* | ||
Il faut savoir que quand on envoie une requête HTTP via XMLHttpRequest, celle-ci passe par plusieurs états différents : | ||
0 : L'objet XHR a été créé, mais pas encore initialisé (la méthode open n'a pas encore été appelée) | ||
1 : L'objet XHR a été créé, mais pas encore envoyé (avec la méthode send ) | ||
2 : La méthode send vient d'être appelée | ||
3 : Le serveur traite les informations et a commencé à renvoyer des données | ||
4 : Le serveur a fini son travail, et toutes les données sont réceptionnées | ||
*/ | ||
if (xhr.readyState == 4 && (xhr.status == 200 || xhr.status == 0)) { | ||
if (xhr.responseText.length > 0) { | ||
return xhr.responseText; | ||
} | ||
} else if (xhr.readyState < 4) { | ||
//console.log('erreur AJAX') | ||
} | ||
} | ||
// Envoi des parametre | ||
if (methode == "POST") { | ||
xhr.send(params); | ||
} else { | ||
xhr.send(null); | ||
} | ||
}; | ||
|
||
|
||
|
||
function loader(etat){ | ||
if (etat == "chargement") { | ||
document.getElementById("loader").style.display = "inline-block"; | ||
} else if(etat == "terminer") { | ||
document.getElementById("loader").style.display = "none"; | ||
} else { | ||
console.log('ERROR: Erreur lors du chargement. cf/function "Loader()"'); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?php | ||
|
||
if (isset($fichier_css)) { | ||
echo '<script type="text/javascript" src="../lib/prism/prism.js"></script>'; | ||
|
||
} else { | ||
echo '<script type="text/javascript" src="lib/prism/prism.js"></script>'; | ||
} | ||
|
||
?> | ||
</body> | ||
</html> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,103 @@ | ||
<div class="sidebar" id="slideleft"> | ||
<div class="leftbar"> | ||
<ul> | ||
<a href="accueil/"> | ||
<li class="green"> | ||
<h3><i class="fa fa-home fa-2x" aria-hidden="true"></i>Home</h3> | ||
</li> | ||
</a> | ||
<a href="animation/"> | ||
<li class="yellow"> | ||
<h3><i class="fa fa-clone fa-2x" aria-hidden="true"></i>Animation</h3> | ||
</li> | ||
</a> | ||
<a href="transition/"> | ||
<li class="blue"> | ||
<h3><i class="fa fa-exchange fa-2x" aria-hidden="true"></i>Transition</h3> | ||
</li> | ||
</a> | ||
<a href="atelier/"> | ||
<li class="black"> | ||
<h3><i class="fa fa-book fa-2x" aria-hidden="true"></i>Atelier</h3> | ||
</li> | ||
</a> | ||
<a href="annexe/"> | ||
<li class="annexe"> | ||
<h3><i class="fa fa-book fa-2x" aria-hidden="true"></i>Annexe</h3> | ||
</li> | ||
</a> | ||
<a href="#"> | ||
<li class="orange"> | ||
<h3><i class="fa fa-github fa-2x" aria-hidden="true"></i>Github</h3> | ||
</li> | ||
</a> | ||
</ul> | ||
</div> | ||
<a href="#" class="leftbarmenuclose"> | ||
<h6>Fermer</h6> | ||
</a> | ||
</div> | ||
<div id="active_menu"> | ||
<a href="#slideleft"> | ||
<span></span> | ||
<span></span> | ||
<span></span> | ||
</a> | ||
</div> | ||
<div class="topbar"> | ||
<div class="menutopbar"> | ||
<ul class="listbar"> | ||
<li class="listbarli"> | ||
<a href="accueil/"><h3>Accueil</h3> </a> | ||
</li> | ||
<li class="listbarli"> | ||
<a href="transition/"><h3>Transition</h3></a> | ||
</li> | ||
<li class="listbarli"> | ||
<a href="animation/"><h3>Animation</h3></a> | ||
</li> | ||
<li class="listbarli"> | ||
<a href="atelier/"><h3>Atelier</h3> </a> | ||
</li> | ||
<li class="listbarli"> | ||
<a href="annexe/"><h3>Références</h3> </a> | ||
</li> | ||
</ul> | ||
</div> | ||
<div class="gitbuttondiv"> | ||
<form action="http://google.com"> | ||
<input class="githubbutton" type="submit" value="Fork on Github" /> | ||
</form> | ||
</div> | ||
</div> | ||
<header id="header"> | ||
<div class="logo"><img src="./h1index.png"></div> | ||
<div class="content_header"> | ||
<div class="moon"> | ||
<div class="sun"></div> | ||
</div> | ||
<div class="clouds-wrapper"> | ||
<ul class="clouds1"> | ||
<li></li> | ||
<li></li> | ||
<li></li> | ||
</ul> | ||
<div class="clouds2-container"> | ||
<ul class="clouds2"> | ||
<li></li> | ||
<li></li> | ||
<li></li> | ||
</ul> | ||
</div> | ||
</div> | ||
<div class="content_mountains"> | ||
<ul class="mountains"> | ||
<li class="peak1"></li> | ||
<li class="peak2"></li> | ||
<li class="peak3"></li> | ||
<li class="peak4"></li> | ||
</ul> | ||
</div> | ||
</div> | ||
</header> |
Oops, something went wrong.