Changeset 3274bb2 in osmose-frontend


Ignore:
Timestamp:
Oct 31, 2012 7:46:52 PM (5 years ago)
Author:
Frédéric Rodrigo <frodrigo@…>
Branches:
master
Children:
ce387de
Parents:
21bca2f
Message:

Disable level color circle

Location:
static
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • static/map/map.js

    r21bca2f r3274bb2  
    346346        } 
    347347    }); 
     348    ll = l.split(',') 
     349    for (var i=1 ; i<=3 ; i++) { 
     350        if (ll.indexOf(i.toString())>=0) { 
     351            $(".level-"+i).removeClass("disabled"); 
     352        } else { 
     353            $(".level-"+i).addClass("disabled"); 
     354        } 
     355    } 
    348356} 
    349357 
  • static/map/style.css

    r6e7d36d r3274bb2  
    289289} 
    290290div.level-1 { 
    291   background: url('../images/level-123.png') no-repeat; 
     291  background: url('../images/levels.png') no-repeat; 
    292292  background-position:0px 0px; 
    293293} 
    294294div.level-2 { 
    295   background: url('../images/level-123.png') no-repeat; 
     295  background: url('../images/levels.png') no-repeat; 
    296296  background-position:-16px 0px; 
    297297} 
    298298div.level-3 { 
    299   background: url('../images/level-123.png') no-repeat; 
     299  background: url('../images/levels.png') no-repeat; 
    300300  background-position:-32px 0px; 
     301} 
     302div.level-1.disabled { 
     303  background: url('../images/levels.png') no-repeat; 
     304  background-position:0px -16px; 
     305} 
     306div.level-2.disabled { 
     307  background: url('../images/levels.png') no-repeat; 
     308  background-position:-16px -16px; 
     309} 
     310div.level-3.disabled { 
     311  background: url('../images/levels.png') no-repeat; 
     312  background-position:-32px -16px; 
    301313} 
    302314 
Note: See TracChangeset for help on using the changeset viewer.