ÿØÿà JFIF ` ` ÿþ
Server : Apache/2 System : Linux vps.phamthanh.local 3.10.0-1160.102.1.el7.x86_64 #1 SMP Tue Oct 17 15:42:21 UTC 2023 x86_64 User : benhviencoc7 ( 1008) PHP Version : 5.6.40 Disable Function : exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname Directory : /home/benhviencoc7/domains/benhviendkkvcampha.vn/private_html/data/javascripts/ |
Upload File : |
/** * akModal- simplest alternative to thickbox * author: Amit Kumar Singh * project url : http://amiworks.co.in/talk/akmodal-simplest-alternative-to-thickbox/ * inspired from early versions of thickbox * **/ /** * Version 2.0.0 * @param String navurl url to dispaly in the ifame * @param String title title of the pop up box * @param Numeric box_width width of the box in pixels * @param Numeric box_height height of the box in pixels * **/ jQuery.extend({ showAkModal:function(navurl,title,box_width,box_height,sc) { var offset={}; var options ={ margin:1, border:1, padding:1, scroll:0 }; var win_width =$(window).width(); var scrollToLeft=$(window).scrollLeft(); var win_height =$(window).height(); var scrollToBottom=$(window).scrollTop(); $('body').append("<div id='ak_modal_div' style='padding-top:0px;border:1px solid black;background-color:#FFF;position: absolute;z-index:1000;display:none;' ><div style='background-color:#353535;color:white;display:block;padding-top:0px;margin-top:0px;font-family:Times New Roman;font-size:14px;'> <b> "+title+"</b><a href='javascript:this.location.reload();'></div><iframe width='"+box_width+"' height='"+box_height+"' frameborder=0 marginwidth='0' marginheight='0' scrolling='"+sc+"' name='frmTest' src='"+navurl+"'></iframe></div>"); $('#ak_modal_div').css({left:(((win_width/2-box_width/2))+scrollToLeft)+'px',top:(((win_height/2-box_height/2))+scrollToBottom)+'px'}); $('#close').click( function() { // $('#ak_modal_div').hide(); $('#ak_modal_div').remove(); $.dimScreenStop(); }); $.dimScreen(300, 0.7, function() { $('#ak_modal_div').show(); }); var offset = {} offset=$("#ak_modal_div").offset({ scroll: false }) X_left=offset.left+box_width-16; X_top=offset.top; $('#close').css({left:X_left,top:X_top}); }, akModalRemove:function() { $('#ak_modal_div').remove(); $.dimScreenStop(); }, akModalHideAndRedirect:function(redirect_url) { $('#ak_modal_div').hide(); $.dimScreenStop(); window.location=redirect_url; } });