The following code through an array of pictures is the hinges and creates them based on the condition of the high mark marker Is related to a point on a chart) It works great on Chrome, FF, IE on the desktop, but Safari does not work in either desktop or iOS, and even Chrome IOS does not even show images.
The error I am getting is: main JS: 453 - Type error: 'undefined' object is not (evaluation 'marker offset. Left')
$ Filter each value (value, function (k, v) {var z = I; // current marker verifier marker = $ ('text'). Filter (function () {if ($ (this) .html () = == k) {return $ (this)}}); // marker offset vermer marker offset = marker.offetset; // If in Firefox, set the marker height to 13 px (marker.hat) == 0) {MarkerHyate = 13;} and {MarkerHyat = Marker.height ();} // Get image dimension // Create new image object and get width and height // Image first Should be downloaded img = new Image (); // Set Image Location img.src = V.img; // Once the image is downloaded, you can get the dimension Img.onload = function () {var imgHyight = Img.height; var imgDivHeight = img.height; var imgWidth = img.width; // If the width of the image is more than 90px, then replace it again (imgWidth> 50) {imgDivHeight = imgHyight / (imgWidth / 50); Create an offset value based on IMGHEight = (IMGHight / (IMGuuth / 50)) + 5; ImgWidth = 50;} // Image sizes ** // INS line 453 ** var imgLeft = markerOffset.left - ((IMG-wide - marker [0] .getComputedTextLength ()) / 2) ; Var imgTop = markerOffset.top - (imgwr - (markerhite / 4)); // Create an element for a value.img and set it offset of marker $ ('charts-inside') by making it a full position. ('& Lt; div class = "series-data series-picture-wrapper' + + + (IMGTT - $ ('. App-app-height () - (markerHyat)) +' 'data-position-left =" '+ (IMG-LET - ($ (' AP-U-Menu '). Width () + 3) + "Data hidden =' '+ Hidden + +'" style = "z-index: '+ ( 5555 + z) + '; Top:' + (IMGTop - $ ('.ap-U-Top') height () - (MarkerHyight) + 'PX; left:' + (IMGLEFT - ($ (. -U-Menu '). Width () + 3) +' PX; Width: '+ IMIVIDITY +' PX; Elevation: '+ imgDivHeight +' px "& gt; & lt; img src =" '+ v Img + '"style =" width:' + im GWidth + 'px "/>
var marker = $ ('text') .Filter (function () {if ($ (this) [0] .textContent === k) {return $ (this)}} );
And now it's working ...
Comments
Post a Comment