X-Git-Url: http://git.euphorik.ch/?p=euphorik.git;a=blobdiff_plain;f=js%2FpageStatic.js;fp=js%2FpageStatic.js;h=4580bf3260af4685cb5639db3ea8b3b6773d043e;hp=0000000000000000000000000000000000000000;hb=d6dcd0fd8af56bd4791aa4e621c2e5058033c37a;hpb=27c4a5ac9000ca933f28abfedbf9607f73619615
diff --git a/js/pageStatic.js b/js/pageStatic.js
new file mode 100644
index 0000000..4580bf3
--- /dev/null
+++ b/js/pageStatic.js
@@ -0,0 +1,32 @@
+// 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, communication) {
+ this.nom = nom;
+ this.communication = communication;
+};
+
+euphorik.PageStatique.prototype.contenu = function() {
+ return this.communication.load("pages/" + this.nom + ".html");
+};
+
+euphorik.PageStatique.prototype.charger = function() {
+};