mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Completely removed jQuery
- Missing results/search not working properly
This commit is contained in:
@@ -11,15 +11,15 @@ var Mobile_remote = {
|
||||
|
||||
set_id: function(id) {
|
||||
Mobile_remote.id = id;
|
||||
$("#pausebutton_remote").attr("disabled", false);
|
||||
$("#skipbutton_remote").attr("disabled", false);
|
||||
$("#playbutton_remote").attr("disabled", false);
|
||||
$("#skipbutton_remote").attr("disabled", false);
|
||||
$("#remote_channel").val("");
|
||||
$("#remote_channel").attr("placeholder", "Change channel");
|
||||
$("#remote_header").html("Controlling " + id);
|
||||
$("#volume-control-remote").css("display", "inline-block");
|
||||
$(".slider-vol-mobile").attr("style", "display: inline-block !important");
|
||||
document.getElementById("#pausebutton_remote").removeAttribute("disabled");
|
||||
document.getElementById("#skipbutton_remote").removeAttribute("disabled", false);
|
||||
document.getElementById("#playbutton_remote").removeAttribute("disabled", false);
|
||||
document.getElementById("#skipbutton_remote").removeAttribute("disabled", false);
|
||||
document.getElementById("#remote_channel").value = "";
|
||||
document.getElementById("#remote_channel").setAttribute("placeholder", "Change channel");
|
||||
document.getElementById("#remote_header").innerText = "Controlling " + id;
|
||||
Helper.css("#volume-control-remote", "display", "inline-block");
|
||||
document.querySelector(".slider-vol-mobile").setAttribute("style", "display: inline-block !important");
|
||||
},
|
||||
|
||||
set_channel: function(channel_name) {
|
||||
@@ -40,10 +40,10 @@ var Mobile_remote = {
|
||||
|
||||
initiate_volume: function() {
|
||||
var vol = 100;
|
||||
$("#volume-control-remote").append("<div class='volume-slid-remote'></div>");
|
||||
$("#volume-control-remote").append("<div class='volume-handle-remote'></div>");
|
||||
$(".volume-slid-remote").css("width", vol + "%");
|
||||
$(".volume-handle-remote").css("left", "calc(" + vol + "% - 1px)");
|
||||
document.getElementById("#volume-control-remote").insertAdjacentHTML("beforeend", "<div class='volume-slid-remote'></div>");
|
||||
document.getElementById("#volume-control-remote").insertAdjacentHTML("beforeend", "<div class='volume-handle-remote'></div>");
|
||||
Helper.css(".volume-slid-remote", "width", vol + "%");
|
||||
Helper.css(".volume-handle-remote", "left", "calc(" + vol + "% - 1px)");
|
||||
document.getElementById("volume-control-remote").addEventListener("touchstart", function(e) {
|
||||
e.preventDefault();
|
||||
Playercontrols.dragMouseDown(e);
|
||||
|
||||
Reference in New Issue
Block a user