clean texts a bit, highlight flyover on mouse-over

This commit is contained in:
sanj 2010-09-20 04:22:13 +05:30
parent 36477cd808
commit 394ed8c3d6
3 changed files with 11 additions and 5 deletions

View File

@ -134,12 +134,12 @@ a img {
box-shadow: 0px 0px 1.5em; box-shadow: 0px 0px 1.5em;
} }
.imageWrapper .mapSelect { .imageWrapper .mapSelect img {
width: 100px; width: 100px;
height: 100px; height: 100px;
} }
.videoWrapper .mapSelect { .videoWrapper .mapSelect img {
width: 400px; width: 400px;
} }
@ -147,6 +147,12 @@ a img {
color: #141BB4; color: #141BB4;
} }
.textWrapper {
font-family: Arial, Verdana, Georgia, sans-serif;
padding: 4px;
}
.navContent { .navContent {
display: none; display: none;
} }

View File

@ -74,7 +74,7 @@ $(function() {
function onFeatureSelect(f) { function onFeatureSelect(f) {
var id = f.feature.attributes.id; var id = f.feature.attributes.id;
// $('img').removeClass('mapSelect'); // $('img').removeClass('mapSelect');
$('[data-id=' + id + ']').find('img').addClass("mapSelect"); $('[data-id=' + id + ']').addClass("mapSelect");
/* /*
var id = f.feature.attributes.id; var id = f.feature.attributes.id;
$.getJSON("flyover", {'id': id}, function(json) { $.getJSON("flyover", {'id': id}, function(json) {
@ -89,7 +89,7 @@ function onFeatureSelect(f) {
function onFeatureUnselect(f) { function onFeatureUnselect(f) {
var id = f.feature.attributes.id; var id = f.feature.attributes.id;
$('[data-id=' + id + ']').find('img').removeClass("mapSelect"); $('[data-id=' + id + ']').removeClass("mapSelect");
} }
//will highlight the feature id's passed in arr //will highlight the feature id's passed in arr

View File

@ -47,7 +47,7 @@
<script type="text/html" id="tmpl_texts"> <script type="text/html" id="tmpl_texts">
<div class="textsWrapper"> <div class="textsWrapper">
<% for (var i=0; i<texts.length;i++) { var txt = texts[i]; %> <% for (var i=0; i<texts.length;i++) { var txt = texts[i]; %>
<p class="textWrapper" data-id="<%= txt.flyover.id %>"> <p class="textWrapper flyoverImage" data-id="<%= txt.flyover.id %>">
<%= txt.text %> <%= txt.text %>
</p> </p>
<% } %> <% } %>