function ModulePopup(d, e, f, g, i) {
if (!targetWin || targetWin.closed) {
$("#Hint").html('<center><i class="fa fa-refresh fa-spin fa-3x fa-fw"></i></center><br>');
var j = (screen.width / 1.9) - (screen.width / getRandomPosition(3, 4));
var k = (screen.height / 1.9) - (screen.height / getRandomPosition(3, 4));
$.ajax({
type: "POST",
url: "system/modules/instagram/process.php",
data: {
get: 1,
pid: d
},
dataType: 'json',
success: function (a) {
if (a.type === 'success') {
var b = setTimeout(function () {
targetWin.close()
}, 30000);
var c = setInterval(function () {
if (targetWin.closed) {
clearTimeout(c);
clearTimeout(b);
$("#Hint").html('<center><i class="fa fa-refresh fa-spin fa-3x fa-fw"></i></center><br>');
setTimeout(function () {
do_click(d)
}, 500)
}
}, 500)
}
$("#Hint").html(a.message)
}
});
targetWin = window.open(e, f,
"toolbar=no,location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=yes, copyhistory=no, width="
+ screen.width / 1.9 + ", height=" + screen.height / 1.9 + ", top=" + k + ", left=" + j)
}
}Can alıcı noktası şurası;
targetWin = window.open(e, f, "toolbar=no,location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=yes, copyhistory=no, width=" + screen.width / 1.9 + ", height=" + screen.height / 1.9 + ", top=" + k + ", left=" + j)şöyle bir kod var, butona tıklandığında targetWin kısmında, window.open fonksiyonuyla yeni bir pencere açıyor ve arkaplanda o pencereyi izliyor. Şimdi ben bu işlemin yeni bir pencere açılaarak değil site içerisinde, Bootstrap'ın modal özelliği gibi bir popup penceresi açılarak yapılmasını istiyorum. Bu yada buna benzer bir işlemi yaptıracak herhangi bişey de olabilir. Yardımcı olan arkadaşlara şimdiden teşekkürkler.