123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100 |
- $(function(){
- var w_title,w_id,w_text,w_module;
-
- $('.appleBm_popup').on('click',function(){
- var $that = $(this);
- CreatePopLayerDiv(300,400,'/public/signup');
- $('.m_signUp_box').show();
-
- parent.w_title = $that.attr('data-title');
- parent.w_id = $that.attr('data-id');
- parent.w_module = $that.attr('data-module');
- parent.w_text = $that.attr('data-text');
- })
-
- $('.m_appleBm_popup').on('click',function(){
- var $that = $(this);
- CreatePopLayerDiv(300,400,'/public/signupv2');
- $('.m_signUp_box').show();
-
- parent.w_title = $that.attr('data-title');
- parent.w_id = $that.attr('data-id');
- parent.w_module = $that.attr('data-module');
- parent.w_text = $that.attr('data-text');
- parent.w_button = $that.attr('data-button');
- })
-
- $('.xm_appleBm_popup').on('click',function(){
- var $that = $(this);
- CreatePopLayerDiv(300,400,'/public/signupv3');
- $('.m_signUp_box').show();
-
- parent.w_title = $that.attr('data-title');
- parent.w_id = $that.attr('data-id');
- parent.w_module = $that.attr('data-module');
- parent.w_text = $that.attr('data-text');
- })
-
- $('.customize_btn').on('click',function(){
- var $that = $(this);
- var height = $('.m_form').outerHeight();
- var width = $('.m_form').outerWidth();
- CreatePopLayerDiv(width,width,'/public/customization');
- $('.m_signUp_box').show();
- $('.m_form').css('margin-top',-height/2 -20);
-
- parent.w_title = $that.attr('data-name');
- parent.w_id = $that.attr('data-id');
- parent.w_module = $that.attr('data-module');
- })
-
- })
- function CreatePopLayerDiv(width,height,url){
- var Iheight=$(window).outerHeight();
- var Iwidth =$(window).outerWidth();
- var heights = height || 300;
- var widths = width || 500;
- var Oheight= (Iheight -heights) / 2;
- var Owidth = (Iwidth - widths) /2;
- var div ='<div id="InDiv" style="width:'+Iwidth+'px;height:'+Iheight+'px;background:rgba(0,0,0,0.6);position:fixed;z-index:10000;top:0;left:0;">';
- div+='<div id="Content"></div>';
- div+='</div>';
- $(document.body).append(div);
- if(url != ""){
- $("#Content").load(url);
- }
- }
- function RemoveDiv(){
- $("#InDiv").remove();
- }
|