diff options
Diffstat (limited to 'media/js/photos.min.js')
-rw-r--r-- | media/js/photos.min.js | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/media/js/photos.min.js b/media/js/photos.min.js deleted file mode 100644 index b99b0e2..0000000 --- a/media/js/photos.min.js +++ /dev/null @@ -1,15 +0,0 @@ -function mapit(latlontitle){lat=parseFloat(latlontitle.split(',')[0]);lon=parseFloat(latlontitle.split(',')[1]);elid=latlontitle.split(',')[2];centerCoord=new google.maps.LatLng(lat,lon);var mapitinit;if(mapitinit==true){mapPanTo();}else{mapInit();} -function mapInit(){var mapOptions={zoom:8,center:centerCoord,disableDefaultUI:true,navigationControl:true,mapTypeId:google.maps.MapTypeId.TERRAIN,navigationControlOptions:{style:google.maps.NavigationControlStyle.SMALL}};map=new google.maps.Map(document.getElementById("mw-"+elid),mapOptions);var marker=new google.maps.Marker({position:centerCoord,map:map});mapitinit=true;} -function mapPanTo(){var marker=new google.maps.Marker({position:centerCoord,map:map});map.panTo(centerCoord);}} -function create_map(obj){imgid=obj.title.split(',')[2];$('<div class="map-container" id="mc-'+imgid+'">').insertBefore($(obj).parent().parent());$('#mc-'+imgid).append('<div class="map-wrapper" id="mw-'+imgid+'">');$('#mc-'+imgid).css({bottom:function(index,value){return parseFloat($(obj).parent().parent().height())+20;}});mapit(obj.title);} -function remove_map(imgid){$('#mc-'+imgid).remove();} -$(document).ready(function(){$('.map-link').click(function(){imgid=this.title.split(',')[2];if($('#mc-'+imgid).is(":visible")){remove_map(imgid);}else{create_map(this);} -return false;});var $ele=$('#slides').children() -var $curr=0 -$(document).bind('keydown',function(e){var code=e.which;switch(code){case 39:if($curr<=$ele.size()){$.scrollTo($ele[$curr],800);$curr++} -break;case 37:if($curr>0){$curr-- -var $now=$curr -$now-- -$.scrollTo($ele[$now],800);} -break;} -return;});});
\ No newline at end of file |