var curscale = 1.0; function zoomIn() { curscale = curscale = curscale + 0.1 var x1 = $('#wycsy').position(); var x2 = $('#wycsy-draggable').position(); console.log('before X1.top: ' + x1.top + ' X1.top:' + x2.left); console.log('before x2.top:' + x2.top + ' X2.top:' + x2.left); $('#wycsy').css({ transform: 'scale(' + curscale + ')' }); $('#wycsy-draggable').css({ transform: 'scale(' + curscale + ')' }); x1 = $('#wycsy').position(); $('#wycsy-draggable').css({ transform: 'scale(' + curscale + ')' }); $("#wycsy-draggable").position({ my: "left top", at: "left top", of: "#wycsy" }); x2 = $('#wycsy-draggable').position(); console.log('after X1.top: ' + x1.top + ' X1.top: ' + x2.left); console.log('after x2.top: ' + x2.top + ' X2.top: ' + x2.left); return false; } function zoomOut() { curscale = curscale = curscale - 0.1 var x1 = $('#wycsy').position(); var x2 = $('#wycsy-draggable').position(); console.log('before X1.top:' + x1.top + 'X1.top:' + x2.left); console.log('before x2.top:' + x2.top + 'X2.top:' + x2.left); $('#wycsy').css({ transform: 'scale(' + curscale + ')' }) $('#wycsy-draggable').css({ transform: 'scale(' + curscale + ')' }); x1 = $('#wycsy').position(); $('#wycsy-draggable').css({ transform: 'scale(' + curscale + ')' }); $("#wycsy-draggable").position({ my: "left top", at: "left top", of: "#wycsy" }); x2 = $('#wycsy-draggable').position(); console.log('after X1.top:' + x1.top + 'X1.top:' + x2.left); console.log('after x2.top:' + x2.top + 'X2.top:' + x2.left); return false; } function callMe() { $('#tdCall').hide(); $('#tdMedia').show(); return false; } function showCallMe() { $('#tdMedia').hide(); //$('#tdLogin').hide(); $('#tdCall').toggle(); return false; } function loginn() { $('#tdLogin').hide(); $('#tdMedia').show(); return false; } function showLoginn() { /* $('#tdMedia').hide(); $('#tdCall').hide(); $('#tdLogin').toggle(); */ $('#tdMedia').hide(); $('#dirFrame').attr({ src: "http://www.5555555.biz/home/page_signin", width: '100%', height: '1200px' }); return false; }