';$("#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");}});$("#btnAutoSize input[type='checkbox']").change(function () { /* autosize aktif pasif 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('test');frameWidth = $(this).val();frameHeight = $("#iHeight").val();if (frameWidth < 480) {alert("Video genişliği en az 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 en az 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();});