Step toward a one-page application
[vchess.git] / public / javascripts / app.js
similarity index 53%
rename from public/javascripts/layout.js
rename to public/javascripts/app.js
index 8cb79e0..28c086b 100644 (file)
@@ -3,3 +3,15 @@
 //
 //TODO: si une partie en cours dans storage, rediriger vers cette partie
 //(à condition que l'URL n'y corresponde pas déjà !)
+
+
+       created
+       script.
+               const variant = !{JSON.stringify(variant)};
+               // Just 'V' because this variable is often used:
+               const V = eval(variant.name + "Rules");
+
+
+mounted: function() {
+       feather.replace();
+}