Changeset 133


Ignore:
Timestamp:
Oct 22, 2006, 9:17:03 PM (13 years ago)
Author:
David Sheldon
Message:

Might be a fix for ticket:34, also made the report bug page more clear about its broken state.

Location:
trunk/npemap.org.uk/static
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/npemap.org.uk/static/index.html

    r131 r133  
    9494  e = YAHOO.util.Event.getEvent(e);
    9595  var img = YAHOO.util.Event.getTarget(e);
    96         var x = xOffset + YAHOO.util.Event.getPageX(e) - img.offsetLeft;
    97         var y = img.height-(YAHOO.util.Event.getPageY(e) - img.offsetTop);
     96  var imgPos = YAHOO.util.Dom.getXY(img);
     97
     98        var x = xOffset + YAHOO.util.Event.getPageX(e) - imgPos[0];
     99        var y = img.height-(YAHOO.util.Event.getPageY(e) - imgPos[1]);
    98100
    99101        var s6x = Math.round(x/3);
  • trunk/npemap.org.uk/static/reportBug.html

    r115 r133  
    3131</p>
    3232
     33<p><label for="email">Your email address (in case we want more info, or want to let you know about a solution)</label><br/>
     34<input type="text" id="email" name="email" size="50"/>
     35</p>
     36
    3337<p><label for="comment">Comment</label><br />
    3438<textarea id="comment" name="comment" rows="15" cols="80"></textarea>
    3539</p>
    36 <p><input type="submit" value="Submit"/></p>
     40<h2>USE THE EMAIL ADDRESS AT THE MOMENT AS THE FORM DOESN'T WORK YET</h2>
     41<!-- <p><input type="submit" value="Submit"/></p> -->
    3742
    3843</form>
  • trunk/npemap.org.uk/static/tiles/allmaps.html

    r123 r133  
    2424  e = YAHOO.util.Event.getEvent(e);
    2525  var img = YAHOO.util.Event.getTarget(e);
    26         var x = xOffset + YAHOO.util.Event.getPageX(e) - img.offsetLeft;
    27         var y = img.height-(YAHOO.util.Event.getPageY(e) - img.offsetTop);
     26  var imgPos = YAHOO.util.Dom.getXY(img);
     27        var x = xOffset + YAHOO.util.Event.getPageX(e) - imgPos[0];
     28        var y = img.height-(YAHOO.util.Event.getPageY(e) - imgPos[1]);
    2829
    2930        var s6x = Math.round(x/6);
  • trunk/npemap.org.uk/static/tiles/map.html

    r125 r133  
    7272         <span class="terms">By clicking submit you agree to release this information into the public domain.</span>
    7373  </div>
    74 
     74<!--
     75  <div id="postcodeinfo">
     76    <span id="postcode"></span>
     77    <input type="hidden" id="pcode_id" name="postcode" />
     78    <input type="text" id="reason" name="reason" />
     79    <input type="text" id="email" name="email" />
     80   
     81  </div>
     82-->
    7583  <div id="map">
    7684  </div>
Note: See TracChangeset for help on using the changeset viewer.