Changeset 984

Show
Ignore:
Timestamp:
03/02/06 10:18:44 (7 years ago)
Author:
max-horvath
Message:

"2006-03-02 Max Horvath <max.horvath@…>

  • converted PNGs to GIFs because Internet Explorer cannot handle alpha transparency of PNGs"
Location:
trunk/wifidog-auth/wifidog
Files:
3 added
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/wifidog-auth/wifidog/js/hotspots_status_map.js

    r982 r984  
    321321    var html_list = ""; 
    322322 
     323    // Detect browser and set extension of image files to use 
     324    if (typeof(window.innerWidth) == "number") { 
     325        // Non-IE 
     326        var image_extension = ".png"; 
     327    } else { 
     328        // IE 
     329        var image_extension = ".gif"; 
     330    } 
     331 
    323332    // Init marker icons 
    324     var upIcon = this.createIcon(this.server_path + "images/HotspotStatusMap/up.gif", new GSize(20, 34), 
     333    var upIcon = this.createIcon(this.server_path + "images/HotspotStatusMap/up" + image_extension, new GSize(20, 34), 
    325334                                 this.server_path + "images/HotspotStatusMap/shadow.png", new GSize(37, 34), 
    326335                                 new GPoint(10, 20), new GPoint(10, 1)); 
    327     var downIcon = this.createIcon(this.server_path + "images/HotspotStatusMap/down.gif", new GSize(20, 34), 
     336    var downIcon = this.createIcon(this.server_path + "images/HotspotStatusMap/down" + image_extension, new GSize(20, 34), 
    328337                                   this.server_path + "images/HotspotStatusMap/shadow.png", new GSize(37, 34), 
    329338                                   new GPoint(10, 20), new GPoint(10, 1)); 
    330     var unknownIcon = this.createIcon(this.server_path + "images/HotspotStatusMap/unknown.gif", new GSize(22, 34), 
     339    var unknownIcon = this.createIcon(this.server_path + "images/HotspotStatusMap/unknown" + image_extension, new GSize(22, 34), 
    331340                                      this.server_path + "images/HotspotStatusMap/blank.gif", new GSize(22, 34), 
    332341                                      new GPoint(11, 30), new GPoint(11, 1));