Commit 23af6f4c authored by Oleg Dzhimiev's avatar Oleg Dzhimiev

zoom and hover

parent 88630829
...@@ -45,3 +45,7 @@ body { ...@@ -45,3 +45,7 @@ body {
.odd{ .odd{
background:rgba(120,120,220,1); background:rgba(120,120,220,1);
} }
.arow:hover td{
background:rgba(220,220,220,0.4);
}
\ No newline at end of file
...@@ -30,17 +30,17 @@ function parse_list(res){ ...@@ -30,17 +30,17 @@ function parse_list(res){
$(res).find("model").each(function(){ $(res).find("model").each(function(){
var row = $("<tr class='arow odd'>"); var row = $("<tr class='arow'>");
var name = $(this).attr("name"); var name = $(this).attr("name");
var thumb = $(this).attr("thumb"); var thumb = $(this).attr("thumb");
if (thumb.length!=""){ if (thumb.length!=""){
row.append("<td valign='top'><img alt='n/a' src='models/"+name+"/thumb.jpeg'></img></td>"); row.append("<td class='acell' valign='top'><img alt='n/a' src='models/"+name+"/thumb.jpeg'></img></td>");
}else{ }else{
row.append("<td valign='top' align='center'>&ndash;</td>"); row.append("<td class='acell' valign='top' align='center'>&ndash;</td>");
} }
row.append("<td valign='top'>"+name+"</td>"); row.append("<td class='acell' valign='top'>"+name+"</td>");
var vlist = ""; var vlist = "";
$(this).find("version").each(function(i,v){ $(this).find("version").each(function(i,v){
...@@ -56,7 +56,7 @@ function parse_list(res){ ...@@ -56,7 +56,7 @@ function parse_list(res){
vlist = vlist.slice(0,-7); vlist = vlist.slice(0,-7);
row.append("<td valign='top'><div>"+vlist+"</div></td>"); row.append("<td class='acell' valign='top'><div>"+vlist+"</div></td>");
row.attr("index",index); row.attr("index",index);
...@@ -156,7 +156,7 @@ function init_maps(){ ...@@ -156,7 +156,7 @@ function init_maps(){
map = L.map('leaflet_map',{ map = L.map('leaflet_map',{
layers:[googleSat], layers:[googleSat],
zoomControl:false, zoomControl:false,
}).setView([40.7233861, -111.9328843], 13); }).setView([40.7233861, -111.9328843], 12);
new L.Control.Zoom({ position: 'topright' }).addTo(map); new L.Control.Zoom({ position: 'topright' }).addTo(map);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment