zmi_html_head
function compile_lesscss() { $.get('compile_lesscss',function(result){ confirm(result); self.parent.partner.location.reload(); }); } function open_preview(sender) { $('.zmi-top-active').removeClass('zmi-top-active'); $(sender).addClass('zmi-top-active'); var url = self.parent.partner.location.href; if (url.indexOf('?') > 0) { url = url.substr(0,url.indexOf('?')); } url += '?preview=preview'; self.parent.partner.location.href = url; } function open_partner(sender) { $('.zmi-top-active').removeClass('zmi-top-active'); $(sender).addClass('zmi-top-active'); var url = self.parent.partner.location.href; var ip_or_domain = ''; if (!preview && ip_or_domain.length>0) { var protocol = url; protocol = protocol.substr(0,protocol.indexOf(':')+3); var server_url = url; server_url = server_url.substr(protocol.length); server_url = protocol + server_url.substr(0,server_url.indexOf('/')); if ( ip_or_domain.indexOf(':')>0 ) { protocol = '' }; url = protocol+'+url.substr(server_url.length); } if (url.indexOf('?') > 0) { url = url.substr(0,url.indexOf('?')); } self.parent.partner.location.href = url; } $(function() { open_preview($('#preview')); });
zmi_html_foot