OSDN Git Service

fix: view
[pettanr/pettanr.git] / app / assets / javascripts / view / image.js.coffee
index cd9ce13..474e6fb 100644 (file)
@@ -29,6 +29,21 @@ class Pettanr.View.Image
       [Math.floor(w*hr/100), Math.floor(h*hr/100)]\r
     r\r
   \r
+  @image_dir: () ->\r
+    '/images/'\r
+  \r
   @icon_prof_file: () ->\r
-    new Pettanr.ImageFile('/images/prof.gif')\r
+    new Pettanr.ImageFile(@image_dir() + 'prof.gif')\r
+  \r
+  @icon_inspire_file: () ->\r
+    new Pettanr.ImageFile(@image_dir() + 'inspire.gif')\r
+  \r
+  @icon_loading_file: () ->\r
+    new Pettanr.ImageFile(@image_dir() + 'loading.gif')\r
+  \r
+  @icon_root_file: () ->\r
+    new Pettanr.ImageFile(@image_dir() + 'root.png')\r
+  \r
+  @icon_pick_file: (type) ->\r
+    new Pettanr.ImageFile(@image_dir() + type + '.png')\r
   \r