Initial Commit
This commit is contained in:
40
js/cwv3.js
Normal file
40
js/cwv3.js
Normal file
@ -0,0 +1,40 @@
|
||||
// JavaScript Document
|
||||
jQuery(document).ready(function($) {
|
||||
var wpdata = cwv3_params;
|
||||
|
||||
var enter = $('cw_enter_link');
|
||||
var exit = $('cw_exit_link');
|
||||
|
||||
if(wpdata.sd == true){
|
||||
var cboxObj = $.colorbox(
|
||||
{
|
||||
scrolling: false,
|
||||
overlayClose: false,
|
||||
escKey: false,
|
||||
inline: true,
|
||||
href: '#cwv3_auth',
|
||||
initialWidth: '50%',
|
||||
maxWidth: '600px',
|
||||
loop: false,
|
||||
onLoad: function(){
|
||||
$('#cboxClose').remove();
|
||||
},
|
||||
className: 'cwv3_box'
|
||||
}
|
||||
);
|
||||
|
||||
enter.click(function(e){
|
||||
$.post(wpdata.admin_url, {action: wpdata.action, nonce: wpdata.nonce, id: wpdata.id, method: 'enter'}, function(e){
|
||||
// Deal with the response from the 'entry' handler.
|
||||
});
|
||||
});
|
||||
|
||||
exit.click(function(e){
|
||||
$.post(wpdata.admin_url, {action: wpdata.action, nonce: wpdata.nonce, id: wpdata.id, method: 'exit'}, function(e){
|
||||
// Deal with the response from the 'exit' handler.
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
});
|
Reference in New Issue
Block a user