From ba8b2d84e5dd3ace1b4ceb1f59ac688431bb83b9 Mon Sep 17 00:00:00 2001 From: Aurelien Labate Date: Fri, 27 Dec 2019 11:16:23 +0100 Subject: [PATCH] Move js into specific dir --- a_propos.php | 4 +- aide.php | 10 +- .../fonts/Action_Man/Action_Man-webfont.eot | Bin .../fonts/Action_Man/Action_Man-webfont.svg | 0 .../fonts/Action_Man/Action_Man-webfont.ttf | Bin .../fonts/Action_Man/Action_Man-webfont.woff | Bin .../Action_Man/Iconian Fonts License.txt | 0 .../Crete Round SIL OFL Font License 1.1.txt | 0 .../Crete_Round/CreteRound-Italic-webfont.eot | Bin .../Crete_Round/CreteRound-Italic-webfont.svg | 0 .../Crete_Round/CreteRound-Italic-webfont.ttf | Bin .../CreteRound-Italic-webfont.woff | Bin .../CreteRound-Regular-webfont.svg | 0 .../CreteRound-Regular-webfont.woff | Bin compil1.js => assets/js/compil1.js | 0 compil2.js => assets/js/compil2.js | 0 execution.js => assets/js/execution.js | 0 functions.js => assets/js/functions.js | 0 interface.js => assets/js/interface.js | 0 .../js/jquery/jquery.cleditor.js | 0 jquery.js => assets/js/jquery/jquery.js | 0 menus.js => assets/js/menus.js | 0 safari.js => assets/js/safari.js | 0 traduction.js => assets/js/traduction.js | 0 exemples.js | 27 - exemples.php | 5 +- includes/menu.php | 2 +- index.php | 19 +- jquery.cleditor.min.js | 561 ------------------ menu.css | 10 +- stylesheet.css | 20 +- 31 files changed, 35 insertions(+), 623 deletions(-) rename {ressources => assets}/fonts/Action_Man/Action_Man-webfont.eot (100%) rename {ressources => assets}/fonts/Action_Man/Action_Man-webfont.svg (100%) rename {ressources => assets}/fonts/Action_Man/Action_Man-webfont.ttf (100%) rename {ressources => assets}/fonts/Action_Man/Action_Man-webfont.woff (100%) rename {ressources => assets}/fonts/Action_Man/Iconian Fonts License.txt (100%) rename {ressources => assets}/fonts/Crete_Round/Crete Round SIL OFL Font License 1.1.txt (100%) rename {ressources => assets}/fonts/Crete_Round/CreteRound-Italic-webfont.eot (100%) rename {ressources => assets}/fonts/Crete_Round/CreteRound-Italic-webfont.svg (100%) rename {ressources => assets}/fonts/Crete_Round/CreteRound-Italic-webfont.ttf (100%) rename {ressources => assets}/fonts/Crete_Round/CreteRound-Italic-webfont.woff (100%) rename {ressources => assets}/fonts/Crete_Round/CreteRound-Regular-webfont.svg (100%) rename {ressources => assets}/fonts/Crete_Round/CreteRound-Regular-webfont.woff (100%) rename compil1.js => assets/js/compil1.js (100%) rename compil2.js => assets/js/compil2.js (100%) rename execution.js => assets/js/execution.js (100%) rename functions.js => assets/js/functions.js (100%) rename interface.js => assets/js/interface.js (100%) rename jquery.cleditor.js => assets/js/jquery/jquery.cleditor.js (100%) rename jquery.js => assets/js/jquery/jquery.js (100%) rename menus.js => assets/js/menus.js (100%) rename safari.js => assets/js/safari.js (100%) rename traduction.js => assets/js/traduction.js (100%) delete mode 100644 exemples.js delete mode 100644 jquery.cleditor.min.js diff --git a/a_propos.php b/a_propos.php index 9eb1982..7d0ec91 100644 --- a/a_propos.php +++ b/a_propos.php @@ -7,8 +7,8 @@ require_once('includes/config.php'); - - + + Festiv'Algo - A propos diff --git a/aide.php b/aide.php index bac875d..ee09915 100644 --- a/aide.php +++ b/aide.php @@ -7,11 +7,11 @@ require_once('includes/config.php'); - - - - - + + + + + Festiv'Algo - Aide pour la programmation d'algorithmes. Tutoriel d'algorithmique, TI Basic et Basic Casio. diff --git a/ressources/fonts/Action_Man/Action_Man-webfont.eot b/assets/fonts/Action_Man/Action_Man-webfont.eot similarity index 100% rename from ressources/fonts/Action_Man/Action_Man-webfont.eot rename to assets/fonts/Action_Man/Action_Man-webfont.eot diff --git a/ressources/fonts/Action_Man/Action_Man-webfont.svg b/assets/fonts/Action_Man/Action_Man-webfont.svg similarity index 100% rename from ressources/fonts/Action_Man/Action_Man-webfont.svg rename to assets/fonts/Action_Man/Action_Man-webfont.svg diff --git a/ressources/fonts/Action_Man/Action_Man-webfont.ttf b/assets/fonts/Action_Man/Action_Man-webfont.ttf similarity index 100% rename from ressources/fonts/Action_Man/Action_Man-webfont.ttf rename to assets/fonts/Action_Man/Action_Man-webfont.ttf diff --git a/ressources/fonts/Action_Man/Action_Man-webfont.woff b/assets/fonts/Action_Man/Action_Man-webfont.woff similarity index 100% rename from ressources/fonts/Action_Man/Action_Man-webfont.woff rename to assets/fonts/Action_Man/Action_Man-webfont.woff diff --git a/ressources/fonts/Action_Man/Iconian Fonts License.txt b/assets/fonts/Action_Man/Iconian Fonts License.txt similarity index 100% rename from ressources/fonts/Action_Man/Iconian Fonts License.txt rename to assets/fonts/Action_Man/Iconian Fonts License.txt diff --git a/ressources/fonts/Crete_Round/Crete Round SIL OFL Font License 1.1.txt b/assets/fonts/Crete_Round/Crete Round SIL OFL Font License 1.1.txt similarity index 100% rename from ressources/fonts/Crete_Round/Crete Round SIL OFL Font License 1.1.txt rename to assets/fonts/Crete_Round/Crete Round SIL OFL Font License 1.1.txt diff --git a/ressources/fonts/Crete_Round/CreteRound-Italic-webfont.eot b/assets/fonts/Crete_Round/CreteRound-Italic-webfont.eot similarity index 100% rename from ressources/fonts/Crete_Round/CreteRound-Italic-webfont.eot rename to assets/fonts/Crete_Round/CreteRound-Italic-webfont.eot diff --git a/ressources/fonts/Crete_Round/CreteRound-Italic-webfont.svg b/assets/fonts/Crete_Round/CreteRound-Italic-webfont.svg similarity index 100% rename from ressources/fonts/Crete_Round/CreteRound-Italic-webfont.svg rename to assets/fonts/Crete_Round/CreteRound-Italic-webfont.svg diff --git a/ressources/fonts/Crete_Round/CreteRound-Italic-webfont.ttf b/assets/fonts/Crete_Round/CreteRound-Italic-webfont.ttf similarity index 100% rename from ressources/fonts/Crete_Round/CreteRound-Italic-webfont.ttf rename to assets/fonts/Crete_Round/CreteRound-Italic-webfont.ttf diff --git a/ressources/fonts/Crete_Round/CreteRound-Italic-webfont.woff b/assets/fonts/Crete_Round/CreteRound-Italic-webfont.woff similarity index 100% rename from ressources/fonts/Crete_Round/CreteRound-Italic-webfont.woff rename to assets/fonts/Crete_Round/CreteRound-Italic-webfont.woff diff --git a/ressources/fonts/Crete_Round/CreteRound-Regular-webfont.svg b/assets/fonts/Crete_Round/CreteRound-Regular-webfont.svg similarity index 100% rename from ressources/fonts/Crete_Round/CreteRound-Regular-webfont.svg rename to assets/fonts/Crete_Round/CreteRound-Regular-webfont.svg diff --git a/ressources/fonts/Crete_Round/CreteRound-Regular-webfont.woff b/assets/fonts/Crete_Round/CreteRound-Regular-webfont.woff similarity index 100% rename from ressources/fonts/Crete_Round/CreteRound-Regular-webfont.woff rename to assets/fonts/Crete_Round/CreteRound-Regular-webfont.woff diff --git a/compil1.js b/assets/js/compil1.js similarity index 100% rename from compil1.js rename to assets/js/compil1.js diff --git a/compil2.js b/assets/js/compil2.js similarity index 100% rename from compil2.js rename to assets/js/compil2.js diff --git a/execution.js b/assets/js/execution.js similarity index 100% rename from execution.js rename to assets/js/execution.js diff --git a/functions.js b/assets/js/functions.js similarity index 100% rename from functions.js rename to assets/js/functions.js diff --git a/interface.js b/assets/js/interface.js similarity index 100% rename from interface.js rename to assets/js/interface.js diff --git a/jquery.cleditor.js b/assets/js/jquery/jquery.cleditor.js similarity index 100% rename from jquery.cleditor.js rename to assets/js/jquery/jquery.cleditor.js diff --git a/jquery.js b/assets/js/jquery/jquery.js similarity index 100% rename from jquery.js rename to assets/js/jquery/jquery.js diff --git a/menus.js b/assets/js/menus.js similarity index 100% rename from menus.js rename to assets/js/menus.js diff --git a/safari.js b/assets/js/safari.js similarity index 100% rename from safari.js rename to assets/js/safari.js diff --git a/traduction.js b/assets/js/traduction.js similarity index 100% rename from traduction.js rename to assets/js/traduction.js diff --git a/exemples.js b/exemples.js deleted file mode 100644 index 6c7fbf0..0000000 --- a/exemples.js +++ /dev/null @@ -1,27 +0,0 @@ -$(document).ready(function() { - $('.tester').click(function() { - var texte = $(this).attr('id').substring(4, $(this).attr('id').length); - createCookie("exemple",texte,30); - }); -}); - -function createCookie(name,value,days) { - if (days) { - var date = new Date(); - date.setTime(date.getTime()+(days*24*60*60*1000)); - var expires = "; expires="+date.toGMTString(); - } - else var expires = ""; - document.cookie = name+"="+value; -} - -function readCookie(name) { - var nameEQ = name + "="; - var ca = document.cookie.split(';'); - for(var i=0;i < ca.length;i++) { - var c = ca[i]; - while (c.charAt(0)==' ') c = c.substring(1,c.length); - if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length); - } - return null; -} \ No newline at end of file diff --git a/exemples.php b/exemples.php index fe6ba9f..2903266 100644 --- a/exemples.php +++ b/exemples.php @@ -130,9 +130,8 @@ L\'aire du quart de disque est Pi/4 et la fréquence d\'apparition du point dans - - - + + Festiv'Algo - Exemples d'algorithmes diff --git a/includes/menu.php b/includes/menu.php index c6a0f5c..f5ff12b 100644 --- a/includes/menu.php +++ b/includes/menu.php @@ -4,7 +4,7 @@ '; + echo ''; ?> diff --git a/index.php b/index.php index ade028b..bc22d0d 100644 --- a/index.php +++ b/index.php @@ -14,16 +14,17 @@ - - - - - - - - - + + + + + + + + + + Festiv'Algo - Programmer, exécuter et traduire des algorithmes pour toutes les calculatrices diff --git a/jquery.cleditor.min.js b/jquery.cleditor.min.js deleted file mode 100644 index 386972f..0000000 --- a/jquery.cleditor.min.js +++ /dev/null @@ -1,561 +0,0 @@ -/* - CLEditor WYSIWYG HTML Editor v1.3.0 - http://premiumsoftware.net/cleditor - requires jQuery v1.4.2 or later - - Copyright 2010, Chris Landowski, Premium Software, LLC - Dual licensed under the MIT or GPL Version 2 licenses. -*/ -(function (e) { - function aa(a) { - var b = this, - c = a.target, - d = e.data(c, x), - h = s[d], - f = h.popupName, - i = p[f]; - if (!(b.disabled || e(c).attr(n) == n)) { - var g = { - editor: b, - button: c, - buttonName: d, - popup: i, - popupName: f, - command: h.command, - useCSS: b.options.useCSS - }; - if (h.buttonClick && h.buttonClick(a, g) === false) return false; - if (d == "source") { - if (t(b)) { - delete b.range; - b.$area.hide(); - b.$frame.show(); - c.title = h.title - } else { - b.$frame.hide(); - b.$area.show(); - c.title = "Show Rich Text" - } - setTimeout(function () { - u(b) - }, 100) - } else if (!t(b)) if (f) { - var j = e(i); - if (f == - "url") { - if (d == "link" && M(b) === "") { - z(b, "A selection is required when inserting a link.", c); - return false - } - j.children(":button").unbind(q).bind(q, function () { - var k = j.find(":text"), - o = e.trim(k.val()); - o !== "" && v(b, g.command, o, null, g.button); - k.val("http://"); - r(); - w(b) - }) - } else f == "pastetext" && j.children(":button").unbind(q).bind(q, function () { - var k = j.find("textarea"), - o = k.val().replace(/\n/g, "
"); - o !== "" && v(b, g.command, o, null, g.button); - k.val(""); - r(); - w(b) - }); if (c !== e.data(i, A)) { - N(b, i, c); - return false - } - return - } else if (d == - "print") b.$frame[0].contentWindow.print(); - else if (!v(b, g.command, g.value, g.useCSS, c)) return false; - w(b) - } - } - function O(a) { - a = e(a.target).closest("div"); - a.css(H, a.data(x) ? "#FFF" : "#FFC") - } - function P(a) { - e(a.target).closest("div").css(H, "transparent") - } - function ba(a) { - var b = a.data.popup, - c = a.target; - if (!(b === p.msg || e(b).hasClass(B))) { - var d = e.data(b, A), - h = e.data(d, x), - f = s[h], - i = f.command, - g, j = this.options.useCSS; - if (h == "font") g = c.style.fontFamily.replace(/"/g, ""); - else if (h == "size") { - if (c.tagName == "DIV") c = c.children[0]; - g = c.innerHTML - } else if (h == "style") g = "<" + c.tagName + ">"; - else if (h == "color") g = Q(c.style.backgroundColor); - else if (h == "highlight") { - g = Q(c.style.backgroundColor); - if (l) i = "backcolor"; - else j = true - } - b = { - editor: this, - button: d, - buttonName: h, - popup: b, - popupName: f.popupName, - command: i, - value: g, - useCSS: j - }; - if (!(f.popupClick && f.popupClick(a, b) === false)) { - if (b.command && !v(this, b.command, b.value, b.useCSS, d)) return false; - r(); - w(this) - } - } - } - function C(a) { - for (var b = 1, c = 0, d = 0; d < a.length; ++d) { - b = (b + a.charCodeAt(d)) % 65521; - c = (c + b) % 65521 - } - return c << - 16 | b - } - function R(a, b, c, d, h) { - if (p[a]) return p[a]; - var f = e(m).hide().addClass(ca).appendTo("body"); - if (d) f.html(d); - else if (a == "color") { - b = b.colors.split(" "); - b.length < 10 && f.width("auto"); - e.each(b, function (i, g) { - e(m).appendTo(f).css(H, "#" + g) - }); - c = da - } else if (a == "font") e.each(b.fonts.split(","), function (i, g) { - e(m).appendTo(f).css("fontFamily", g).html(g) - }); - else if (a == "size") e.each(b.sizes.split(","), function (i, g) { - e(m).appendTo(f).html("" + g + "") - }); - else if (a == "style") e.each(b.styles, function (i, - g) { - e(m).appendTo(f).html(g[1] + g[0] + g[1].replace("<", "
'); - c = B - } else if (a == "pastetext") { - f.html("Paste your content here and click submit.

"); - c = B - } - if (!c && !d) c = S; - f.addClass(c); - l && f.attr(I, "on").find("div,font,p,h1,h2,h3,h4,h5,h6").attr(I, "on"); - if (f.hasClass(S) || h === true) f.children().hover(O, P); - p[a] = f[0]; - return f[0] - } - function T(a, b) { - if (b) { - a.$area.attr(n, n); - a.disabled = true - } else { - a.$area.removeAttr(n); - delete a.disabled - } - try { - if (l) a.doc.body.contentEditable = !b; - else a.doc.designMode = !b ? "on" : "off" - } catch (c) {} - u(a) - } - function v(a, b, c, d, h) { - D(a); - if (!l) { - if (d === undefined || d === null) d = a.options.useCSS; - a.doc.execCommand("styleWithCSS", 0, d.toString()) - } - d = true; - var f; - if (l && b.toLowerCase() == "inserthtml") y(a).pasteHTML(c); - else { - try { - d = a.doc.execCommand(b, 0, c || null) - } catch (i) { - f = i.description; - d = false - } - d || ("cutcopypaste".indexOf(b) > -1 ? z(a, "For security reasons, your browser does not support the " + b + " command. Try using the keyboard shortcut or context menu instead.", h) : z(a, f ? f : "Error executing the " + b + " command.", h)) - } - u(a); - return d - } - function w(a) { - setTimeout(function () { - t(a) ? a.$area.focus() : a.$frame[0].contentWindow.focus(); - u(a) - }, 0) - } - function y(a) { - if (l) return J(a).createRange(); - return J(a).getRangeAt(0) - } - function J(a) { - if (l) return a.doc.selection; - return a.$frame[0].contentWindow.getSelection() - } - function Q(a) { - var b = /rgba?\((\d+), (\d+), (\d+)/.exec(a), - c = a.split(""); - if (b) for (a = (b[1] << 16 | b[2] << 8 | b[3]).toString(16); a.length < 6;) a = "0" + a; - return "#" + (a.length == 6 ? a : c[1] + c[1] + c[2] + c[2] + c[3] + c[3]) - } - function r() { - e.each(p, function (a, b) { - e(b).hide().unbind(q).removeData(A) - }) - } - function U() { - var a = e("link[href$='jquery.cleditor.css']").attr("href"); - return a.substr(0, a.length - 19) + "images/" - } - function K(a) { - var b = a.$main, - c = a.options; - a.$frame && a.$frame.remove(); - var d = a.$frame = e('