Created
July 27, 2012 03:22
-
-
Save purwandi/3186009 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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