`;// Modal içeriğini sayfaya ekle$(“body”).append(modalContent);$(“.video-overlay, .video-pop-close”).on(‘click’, function () {$(“.video-overlay, .video-pop-module”).each(function () {$(this).remove();});});frameControls();};function createFrameUrl() { /* frame icini dolduran fonksiyon */frameWidth = $(“#iWidth”).val();frameHeight = $(“#iHeight”).val();var frameCode = ”;$(“#frameBody”).html(frameCode);};createFrameUrl();$(“#btnAutoStart input[type=’checkbox’]”).click(function () { /* autostart checkbox islemleri */if (this.checked) {autoStart = true;createFrameUrl();$(this).parent().addClass(“checked”);} else {autoStart = false;createFrameUrl();$(this).parent().removeClass(“checked”);}});function frameControls() {$(“#btnAutoStart input[type=’checkbox’]”).click(function () { /* autostart checkbox islemleri */if (this.checked) {autoStart = true;createFrameUrl();$(this).parent().addClass(“checked”);} else {autoStart = false;createFrameUrl();$(this).parent().removeClass(“checked”);}});$(“#btnAutoSize input[type=’checkbox’]”).change(function () { /* autosize etken eylemsiz islemleri */if (!this.checked) {$(“#iHeight”).val(328);$(“#iWidth”).val(584);frameWidth = “584”;frameHeight = “328”;document.getElementById(“iWidth”).readOnly = true;document.getElementById(“iHeight”).readOnly = true;createFrameUrl();$(this).parent().addClass(“checked”);} else {document.getElementById(“iWidth”).readOnly = false;document.getElementById(“iHeight”).readOnly = false;$(“#iWidth”).focus();createFrameUrl();$(this).parent().removeClass(“checked”);}});$(“#iWidth”).on(‘change’, function () {console.log(‘kontrol’);frameWidth = $(this).val();frameHeight = $(“#iHeight”).val();if (frameWidth < 480) {alert("Video genişliği minimum 480px olabilir.");$("#iHeight").val(270);$("#iWidth").val(480);$("#iWidth").focus();return;};var ratio = 0.5625;$("#iWidth").val(parseInt(frameWidth));$("#iHeight").val(parseInt(frameWidth * ratio));createFrameUrl();});$("#iHeight").on('change', function () {frameHeight = $(this).val();frameWidth = $("#iWidth").val();if (frameHeight < 270) {alert("Video yüksekliği minimum 270px olabilir.");$("#iHeight").val(270);$("#iWidth").val(480);$("#iHeight").focus();return;}var ratio = 1.777777777777778;$("#iHeight").val(parseInt(frameHeight));$("#iWidth").val(parseInt(frameHeight * ratio));createFrameUrl();});}