function update(scale) {
document.getElementById("useragent").textContent = navigator.userAgent;
document.getElementById("scale").textContent = scale || "none";
if (monaca.viewport.isAndroid()) {
document.getElementById("device").textContent = "Android";
} else if (monaca.viewport.isPCBrowser()) {
document.getElementById("device").textContent = "PC";
}
}
monaca.viewport({
width : 1080,
onAdjustment : update
});
function getQueryVariable(variable)
{
var query = window.location.search.substring(1);
var vars = query.split("&");
for (var i=0;i
');
$.ajax({
type: "GET",
url: url+"/wp-content/plugins/namcoder.com/server/message.php?id="+ mid +"",
dataType: "html",
crossDomain: true,
beforeSend: function() { $( ".loading_spinner_all" ).show(); },
success: function(data) {
$( ".loading_spinner_all" ).hide();
$('.article_js').html(data);
},
error: function(){
$('.article_js').slideDown("slow").show(100).html('Error: Connection problem...
').delay(10000).slideUp("slow").hide(100);
}
});