כניסת שבת רמלה היום 23-22 בנובמבר 2024 (כ"א בחשוון ה׳תשפ״ה) כניסת שבת: 16:15 יציאת שבת רמלה יציאת שבת: 17:17 האם מותר בשבת? לכל השאלות הנפוצות בקרו במדור >> הלכות שבתהמלצות נוספות פיוטים לשבת קודש: שידור חי var user_interacted = false; $(function(){ var audio; $('#radio_now_casting #vol').on('input', function(){ var vals = ($('#vol').val()); audio.volume = vals * 0.01; }); $('#radio_now_casting .pause').on('click', function(){ $('#radio_now_casting .pause').hide(); $('#radio_now_casting .play').show(); audio.pause(); $(this).removeClass('active'); init_canvas_eq() return false; }); $('#radio_now_casting .play').on('click', function(){ $('#radio_now_casting .pause').show(); $('#radio_now_casting .play').hide(); on_play(); return false; }); $('#mute_control').on('click', function(){ if(!audio || audio?.paused) return; $('#mute_control .unmute').toggleClass('hidden'); $('#mute_control .mute').toggleClass('hidden'); audio.muted = !audio.muted; }); function on_play() { audio = new Audio('themes/MGZ/images/silence.mp3'); var playPromise = audio.play(); if (playPromise !== undefined) { playPromise.then(function() { user_interacted = true; audio = new Audio('https://cdn.cybercdn.live/Radio2000/music_4/icecast.audio'); audio.play(); $('#radio_now_casting #play_btn').addClass('active'); var context = new AudioContext(); var src = context.createMediaElementSource(audio); var analyser = context.createAnalyser(); context.crossOrigin = "anonymous"; var canvas = document.getElementById("radio_canvas"); canvas.width = window.innerWidth; canvas.height = window.innerHeight; var ctx = canvas.getContext("2d"); src.connect(analyser); analyser.connect(context.destination); analyser.fftSize = 256; var bufferLength = analyser.frequencyBinCount; bufferLength = parseInt(bufferLength * 0.7); var dataArray = new Uint8Array(bufferLength); var WIDTH = canvas.width; var HEIGHT = canvas.height; var barWidth = 7; // (WIDTH / bufferLength) * 1; // 2.5; var barHeight; var x = 0; function renderFrame() { requestAnimationFrame(renderFrame); x = 0; analyser.getByteFrequencyData(dataArray); var r = 5; var g = 70; var b = 113; ctx.fillStyle = "#fff"; ctx.fillRect(0, 0, WIDTH, HEIGHT); for (var i = 0; i < bufferLength; i++) { barHeight = dataArray[i] * 3; /* var r = barHeight + (25 * (i/bufferLength)); var g = 250 * (i/bufferLength); var b = 50; */ ctx.fillStyle = "rgba(" + r + "," + g + "," + b + ", 0.2)"; ctx.fillRect(x, (HEIGHT - barHeight)/2, barWidth, barHeight); x += barWidth + 5; } for (var i = bufferLength; i > 0; i--) { barHeight = dataArray[i] * 2; ctx.fillStyle = "rgba(" + r + "," + g + "," + b + ", 0.2)"; ctx.fillRect(x, (HEIGHT - barHeight)/2, barWidth, barHeight); x += barWidth + 5; } } audio.crossOrigin = "anonymous"; // audio.play(); renderFrame(); // Automatic playback started! }).catch(function(error) { // Automatic playback failed. // Show a UI element to let the user manually start playback. }); } }; function init_canvas_eq() { var canvas = document.getElementById("radio_canvas"); canvas.width = window.innerWidth; canvas.height = window.innerHeight; var ctx = canvas.getContext("2d"); var bufferLength = 256; var WIDTH = canvas.width; var HEIGHT = canvas.height; var barWidth = 7; // (WIDTH / bufferLength) * 1; // 2.5; var barHeight; var x = 0; function renderFrame() { // requestAnimationFrame(renderFrame); x = 0; var r = 5; var g = 70; var b = 113; ctx.fillStyle = "#fff"; ctx.fillRect(0, 0, WIDTH, HEIGHT); for (var i = 0; i < bufferLength; i++) { barHeight = getRandomInt(100,HEIGHT); /* var r = barHeight + (25 * (i/bufferLength)); var g = 250 * (i/bufferLength); var b = 50; */ ctx.fillStyle = "rgba(" + r + "," + g + "," + b + ", 0.2)"; ctx.fillRect(x, (HEIGHT - barHeight)/2, barWidth, barHeight); x += barWidth + 5; } } renderFrame(); }; init_canvas_eq(); // setInterval(function(){if (!user_interacted) on_play(); }, 1000); }); var radio_player_wrapper = createApp({ data(){ return{ currtime: Math.floor(Date.now() / 1000), programs: [], item: null, }; }, created: function(){ console.log("item",this.item) var self = this; setInterval(function(){ self.currtime = Math.floor(Date.now() / 1000); }, 5*1000); }, computed: { now: function(){ for (let i in this.programs) { let item = this.programs[i]; if (item.start_hour_unix this.currtime) { return item; } } return { name: 'אמונה ושמחה', writer_data: [] }; } } }).mount( '#radio_player_wrapper'); radio_player_wrapper.programs = []; מסר לתושבי רמלה לשבת הקרובה במה מותר לשחק בשבת? Your browser doesn't support video. Please download the file: video/mp4