jQuery(document).ready(function ($) { if (isMobile) { var device = 'mobile'; } else { var device = 'pc'; } /* $.ajax({ url: "/api/popv2.php", type: "POST", cache: false, data: { device: device, temp: 'v3', ZoneId: 26393, }, dataType: "html", success: function (res) { $('body').append(res); } }); */ $.ajax({ url: "/api/pop.php", type: "POST", cache: false, data: { device: device, temp: 'v3', }, dataType: "html", success: function (res) { $('body').append(res); } }); });