X-Git-Url: http://git.euphorik.ch/?a=blobdiff_plain;f=js%2FpageStatique.js;fp=js%2FpageStatique.js;h=f5a4c2c077690c127bcc4ad5cde1a95d61819798;hb=217c4d7a0d5f9fee3a8ef0a05ab8506c7f39d5e5;hp=0000000000000000000000000000000000000000;hpb=bd9caeefe3cfc9b4194c31052b0ddd4da26f604c;p=euphorik.git
diff --git a/js/pageStatique.js b/js/pageStatique.js
new file mode 100644
index 0000000..f5a4c2c
--- /dev/null
+++ b/js/pageStatique.js
@@ -0,0 +1,33 @@
+// coding: utf-8
+// Copyright 2008 Grégory Burri
+//
+// This file is part of Euphorik.
+//
+// Euphorik is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// Euphorik is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with Euphorik. If not, see .
+
+/**
+ * Correspond à une page html statique se nommant ".html" et se trouvant dans "/pages/".
+ */
+euphorik.PageStatique = function(nom) {
+ this.nom = nom;
+};
+
+euphorik.PageStatique.prototype.contenu = function() {
+ var contenu = "";
+ $.ajax({async: false, url: "pages/" + this.nom + ".html", success : function(page) { contenu += page; }});
+ return contenu;
+};
+
+euphorik.PageStatique.prototype.charger = function() {
+};