Sachirou Inoue avatar Sachirou Inoue committed 99153ee

Fix path bug. Enhance navbar.

Comments (0)

Files changed (5)

image/.XnViewSort

-XnView sort
-doctor_large.jpg
-title.png
-clinic_large.jpg
-paint_large.jpg
-navbaritem_bg.png
 
 get '*.css' do
   #scss params[:splat]
-  send_file "/views/style#{params[:splat]}.css"
+  send_file "views/style#{params[:splat]}.css"
 end
 
 
 get '*.js' do
   #coffee params[:splat]
-  send_file "/views/script#{params[:splat]}.js"
+  send_file "views/script#{params[:splat]}.js"
 end
 
 
 
 
 get %r{/(.+?)\.(png|jpg|jpeg|webp)} do
-  send_file "/image/#{params[:captures][0]}.#{params[:captures][1]}"
+  send_file "image/#{params[:captures][0]}.#{params[:captures][1]}"
 end

views/script/ui.js

         uu.event(node, 'mouseout', function (evt) {
             uu.css(node, {'background-position': '0 0'});
         });
+        uu.event(node, 'click', function (evt) {
+            location.href = uu.query('a', node)[0].href;
+        });
     });
 });

views/style/style.css

 .navbaritem {
   height: 31px;
   text-align: center;
+  cursor: pointer;
   background-image: url("navbaritem_bg.png");
   background-repeat: repeat-x;
   background-position: 0 0; }

views/style/style.scss

 .navbaritem {
   height: 31px;
   text-align: center;
+  cursor: pointer;
   background: {
     image: url("navbaritem_bg.png");
     repeat: repeat-x;
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.