Skip to content

Instantly share code, notes, and snippets.

@purwandi
Created July 27, 2012 03:22
Show Gist options
  • Save purwandi/3186009 to your computer and use it in GitHub Desktop.
Save purwandi/3186009 to your computer and use it in GitHub Desktop.
// start click full screen
btnMulai.click(function(){
// go request full screen
content.fullScreen({
'background' : '#FFF',
'callback' : function(fullScreen){
// if not full screen mode
if ( ! fullScreen) {
// remove hide class on target
content.html('');
} else {
// Fire ajax call
$.ajax({
type : 'GET',
url : '/api/jawab?csrf_token='+ CSRF_TOKEN,
dataType : 'json',
success : function(resp){
if (resp.code == '200') {
content.html(resp.html);
}
}
});
}
}
});
// end full screen
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment