AudioHTML/home.html

1653 lines
102 KiB
HTML
Raw Normal View History

2023-11-02 19:09:07 +08:00
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/app.css" rel="stylesheet">
<link href="css/roundslider.min.css" rel="stylesheet">
2023-11-07 18:51:37 +08:00
<script src="js/config.js"></script>
2023-11-02 19:09:07 +08:00
<script src="js/jquery-3.7.1.js"></script>
<script src="js/roundslider.min.js"></script>
</head>
<body class="h-100 text-center text-bg-dark content-warp">
<div class="d-flex w-100 h-100 mx-auto flex-column">
<header class="mb-auto pb-5">
<div class="dotblock d-flex justify-content-between px-5 py-4">
2023-11-09 01:54:41 +08:00
<div class="fs-3">
<script>document.write(siteName)</script>
</div>
2023-11-02 19:09:07 +08:00
<div></div>
</div>
2023-11-15 18:43:40 +08:00
<div class="fw-bold border-black nav-bar" style="position:relative;">
<div class="d-flex nav justify-content-center">
<div class="active">
<a href="home.html">HOME</a>
</div>
<div class=""><a href="filter.html">FILTER</a></div>
<div class=""><a href="fs.html">FS</div>
<div class=""><a href="eq.html">EQ</a></div>
<div class=""><a href="ducking.html">DUCKING</a></div>
<div class=""><a href="network.html">NETWORK</a></div>
<div class="">
<a href="security.html">SECURITY</a>
</div>
<div class=""><a href="control.html">CONTROL</a></div>
<div class="last "><a href="system.html">SYSTEM</a></div>
2023-11-02 19:09:07 +08:00
</div>
2023-11-15 18:43:40 +08:00
<div class="d-flex float-end ps-5 align-items-center" style="position:absolute; right: 10px;top: 3px;">
2023-11-18 19:32:57 +08:00
<button class="btn btn-dark border-black" id="blink">
2023-11-15 18:43:40 +08:00
<svg t="1699500251819" class="icon" viewBox="0 0 1024 1024" version="1.1"
xmlns="http://www.w3.org/2000/svg" p-id="4301" xmlns:xlink="http://www.w3.org/1999/xlink"
width="20" height="20">
<path
d="M513.3 239.9c-73.5 0-142.6 28.6-194.6 80.6-52 52-80.6 121.1-80.6 194.6s28.6 142.6 80.6 194.6c52 52 121.1 80.6 194.6 80.6s142.6-28.6 194.6-80.6c52-52 80.6-121.1 80.6-194.6s-28.6-142.6-80.6-194.6c-52-52-121.1-80.6-194.6-80.6z m0 482.3c-114.2 0-207.2-92.9-207.2-207.2S399 307.8 513.3 307.8c114.2 0 207.2 92.9 207.2 207.2s-92.9 207.2-207.2 207.2zM637.9 803.6H388.7c-18.8 0-34 15.2-34 34s15.2 34 34 34h249.2c18.8 0 34-15.2 34-34s-15.2-34-34-34zM588.1 885H438.6c-18.8 0-34 15.2-34 34s15.2 34 34 34h149.5c18.8 0 34-15.2 34-34s-15.2-34-34-34zM513.3 227.5c18.8 0 34-15.2 34-34V97c0-18.8-15.2-34-34-34s-34 15.2-34 34v96.5c0 18.7 15.2 34 34 34zM701.3 276.9c5.9 4.2 12.7 6.2 19.5 6.2 10.7 0 21.3-5.1 27.9-14.5l55.3-79c10.8-15.4 7-36.6-8.3-47.4-15.4-10.8-36.6-7-47.4 8.3l-55.3 79c-10.8 15.4-7.1 36.6 8.3 47.4zM938 357.6c-6.6-17.6-26.2-26.5-43.8-19.9l-90.4 33.8c-17.6 6.6-26.5 26.2-19.9 43.8 5.1 13.7 18.1 22.1 31.9 22.1 4 0 8-0.7 11.9-2.2l90.4-33.8c17.6-6.6 26.5-26.2 19.9-43.8zM283.4 252.5c6.6 9.4 17.2 14.5 27.9 14.5 6.7 0 13.5-2 19.5-6.2 15.4-10.8 19.1-32 8.3-47.4l-55.3-79c-10.8-15.4-32-19.1-47.4-8.3-15.4 10.8-19.1 32-8.3 47.4l55.3 79zM248.1 399.1c6.6-17.6-2.4-37.2-19.9-43.8l-90.4-33.8c-17.6-6.6-37.2 2.4-43.8 19.9-6.6 17.6 2.4 37.2 19.9 43.8l90.4 33.8c3.9 1.5 7.9 2.2 11.9 2.2 13.8 0 26.8-8.4 31.9-22.1z"
fill="#ffffff" p-id="4302" data-spm-anchor-id="a313x.search_index.0.i3.5b953a811enFNb"
class="selected"></path>
</svg>
</button>
2023-11-02 19:09:07 +08:00
</div>
</div>
</header>
<main class="px-3 d-flex justify-content-center">
<div class="content-container">
<div class="d-flex">
2023-11-09 01:54:41 +08:00
<div class="me-3" id="lineinput"
2023-11-02 19:09:07 +08:00
style="border-left: 2px solid #000;border-right: 2px solid #000;border-bottom: 2px solid #000;">
<div class="divider">
<div class="divider-text"><span class="fw-bold">Line Input</span></div>
</div>
<div class="p-3 d-flex justify-content-center">
<div style="width: 200px;">
<div class="d-flex justify-content-center align-items-center" style="height: 30px;">
<div class="d-flex redio-switche">
2023-11-09 01:54:41 +08:00
<input type="radio" class="btn-check" name="lineinput" id="lineinput-on"
value="analog">
<label class="btn btn-sm redio-btn on-btn" for="lineinput-on">ANALOG</label>
2023-11-02 19:09:07 +08:00
2023-11-09 01:54:41 +08:00
<input type="radio" class="btn-check" name="lineinput" id="lineinput-off"
value="digital">
<label class="btn btn-sm redio-btn off-btn" for="lineinput-off">DIGITAL</label>
2023-11-02 19:09:07 +08:00
</div>
</div>
<div class="volume-slider-container">
<div class="d-flex justify-content-center mt-3">
<div>
<div class="d-flex">
<div class="pinpu-box pe-4">
2023-11-09 01:54:41 +08:00
<div class="equalizer-bar equalizer-bar-left">
<span style="opacity: 1;"></span>
<span style="opacity: 1;"></span>
2023-11-02 19:09:07 +08:00
<span style="opacity: 1;"></span>
<span style="opacity: 1;"></span>
<span style="opacity: 1;"></span>
<span style="opacity: 1;"></span>
<span style="opacity: 1;"></span>
<span style="opacity: 1;"></span>
<span style="opacity: 1;"></span>
<span style="opacity: 1;"></span>
<span style="opacity: 1;"></span>
<span style="opacity: 1;"></span>
<span style="opacity: 1;"></span>
<span style="opacity: 1;"></span>
<span style="opacity: 1;"></span>
<span style="opacity: 1;"></span>
<span style="opacity: 1;"></span>
<span style="opacity: 1;"></span>
<span style="opacity: 1;"></span>
<span style="opacity: 0;"></span>
<span style="opacity: 0;"></span>
<span style="opacity: 0;"></span>
<span style="opacity: 0;"></span>
<span style="opacity: 0;"></span>
2023-11-08 19:15:11 +08:00
</div>
2023-11-09 01:54:41 +08:00
<div style="font-size: 12px !important;width: 14px;margin: 0 3px;">L
</div>
2023-11-08 19:15:11 +08:00
</div>
<div class="pinpu-box pe-4">
2023-11-09 01:54:41 +08:00
<div class="equalizer-bar equalizer-bar-right">
<span style="opacity: 1;"></span>
<span style="opacity: 1;"></span>
2023-11-08 19:15:11 +08:00
<span style="opacity: 1;"></span>
<span style="opacity: 1;"></span>
<span style="opacity: 1;"></span>
<span style="opacity: 1;"></span>
<span style="opacity: 1;"></span>
<span style="opacity: 1;"></span>
<span style="opacity: 1;"></span>
<span style="opacity: 1;"></span>
<span style="opacity: 1;"></span>
<span style="opacity: 1;"></span>
<span style="opacity: 1;"></span>
<span style="opacity: 1;"></span>
<span style="opacity: 1;"></span>
<span style="opacity: 1;"></span>
<span style="opacity: 1;"></span>
<span style="opacity: 1;"></span>
<span style="opacity: 1;"></span>
<span style="opacity: 1;"></span>
<span style="opacity: 1;"></span>
<span style="opacity: 1;"></span>
2023-11-02 19:09:07 +08:00
<span style="opacity: 0;"></span>
<span style="opacity: 0;"></span>
</div>
2023-11-09 01:54:41 +08:00
<div style="font-size: 12px !important;width: 14px;margin: 0 3px;">R
</div>
2023-11-08 19:15:11 +08:00
</div>
<div class="ps-1">
<section class="volume-ruler left-ruler">
<section class="cm">
<!-- <span>0</span> -->
<section class="mm"></section>
</section>
<section class="cm">
<!-- <span>-10</span> -->
<section class="mm"></section>
</section>
<section class="cm">
<!-- <span>-20</span> -->
<section class="mm"></section>
</section>
<section class="cm">
<!-- <span>-30</span> -->
<section class="mm"></section>
</section>
<section class="cm">
<!-- <span>-40</span> -->
<section class="mm"></section>
</section>
<section class="cm">
<!-- <span>-50</span> -->
<section class="mm"></section>
</section>
<section class="cm">
<!-- <span>-60</span> -->
</section>
</section>
2023-11-02 19:09:07 +08:00
</div>
<div class="volume-slider-box">
2023-11-09 01:54:41 +08:00
<div class="volume-slider">
2023-11-02 19:09:07 +08:00
<input type="range" orient="vertical" min="0" max="100"
2023-11-09 01:54:41 +08:00
step="0.01">
2023-11-02 19:09:07 +08:00
<div class="range-slider-bar" style="height: calc(45% + 15px);">
</div>
<div class="range-slider-thumb" style="bottom: 45%;"></div>
</div>
</div>
<div>
2023-11-09 17:25:00 +08:00
<section class="volume-ruler home">
2023-11-02 19:09:07 +08:00
<section class="cm">
2023-11-09 01:54:41 +08:00
<span>12</span>
2023-11-09 17:25:00 +08:00
<!-- <section class="mm"></section> -->
2023-11-02 19:09:07 +08:00
</section>
<section class="cm">
2023-11-09 17:25:00 +08:00
<!-- <span>6</span> -->
<!-- <section class="mm"></section> -->
2023-11-02 19:09:07 +08:00
</section>
<section class="cm">
2023-11-09 17:25:00 +08:00
<span>0</span>
<!-- <section class="mm"></section> -->
2023-11-02 19:09:07 +08:00
</section>
<section class="cm">
2023-11-09 17:25:00 +08:00
<!-- <span>-6</span> -->
<!-- <section class="mm"></section> -->
2023-11-02 19:09:07 +08:00
</section>
<section class="cm">
2023-11-09 17:25:00 +08:00
<span>-12</span>
<!-- <section class="mm"></section> -->
2023-11-02 19:09:07 +08:00
</section>
<section class="cm">
2023-11-09 17:25:00 +08:00
<!-- <span>-18</span> -->
<!-- <section class="mm"></section> -->
</section>
<section class="cm">
<span>-24</span>
<!-- <section class="mm"></section> -->
</section>
<section class="cm">
<!-- <span>-30</span> -->
<!-- <section class="mm"></section> -->
</section>
<section class="cm">
<span>-36</span>
<!-- <section class="mm"></section> -->
</section>
<section class="cm">
<!-- <span>-42</span> -->
<!-- <section class="mm"></section> -->
</section>
<section class="cm">
<span>-48</span>
<!-- <section class="mm"></section> -->
</section>
<section class="cm">
<!-- <span>-54</span> -->
<!-- <section class="mm"></section> -->
</section>
<section class="cm">
<span>-60</span>
<!-- <section class="mm"></section> -->
</section>
<section class="cm">
<!-- <span>-66</span> -->
<!-- <section class="mm"></section> -->
2023-11-02 19:09:07 +08:00
</section>
<section class="cm">
2023-11-09 01:54:41 +08:00
<span>-72</span>
2023-11-02 19:09:07 +08:00
</section>
</section>
</div>
</div>
2023-11-03 18:59:27 +08:00
2023-11-02 19:09:07 +08:00
</div>
<div class="ms-4" style="display: grid;grid-template-rows: 1fr 1fr 1fr;">
<div>
2023-11-09 01:54:41 +08:00
<button class="btn btn-sm state-btn" id="lineinput-voice-add">
2023-11-02 19:09:07 +08:00
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16"
fill="currentColor" class="bi bi-volume-up-fill"
viewBox="0 0 16 16">
<path
d="M11.536 14.01A8.473 8.473 0 0 0 14.026 8a8.473 8.473 0 0 0-2.49-6.01l-.708.707A7.476 7.476 0 0 1 13.025 8c0 2.071-.84 3.946-2.197 5.303l.708.707z" />
<path
d="M10.121 12.596A6.48 6.48 0 0 0 12.025 8a6.48 6.48 0 0 0-1.904-4.596l-.707.707A5.483 5.483 0 0 1 11.025 8a5.483 5.483 0 0 1-1.61 3.89l.706.706z" />
<path
d="M8.707 11.182A4.486 4.486 0 0 0 10.025 8a4.486 4.486 0 0 0-1.318-3.182L8 5.525A3.489 3.489 0 0 1 9.025 8 3.49 3.49 0 0 1 8 10.475l.707.707zM6.717 3.55A.5.5 0 0 1 7 4v8a.5.5 0 0 1-.812.39L3.825 10.5H1.5A.5.5 0 0 1 1 10V6a.5.5 0 0 1 .5-.5h2.325l2.363-1.89a.5.5 0 0 1 .529-.06z" />
</svg>
2023-11-09 01:54:41 +08:00
</button>
2023-11-02 19:09:07 +08:00
</div>
<div>
2023-11-09 01:54:41 +08:00
<button class="btn btn-sm state-btn" id="lineinput-voice-low">
2023-11-02 19:09:07 +08:00
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16"
fill="currentColor" class="bi bi-volume-down-fill"
viewBox="0 0 16 16">
<path
d="M9 4a.5.5 0 0 0-.812-.39L5.825 5.5H3.5A.5.5 0 0 0 3 6v4a.5.5 0 0 0 .5.5h2.325l2.363 1.89A.5.5 0 0 0 9 12V4zm3.025 4a4.486 4.486 0 0 1-1.318 3.182L10 10.475A3.489 3.489 0 0 0 11.025 8 3.49 3.49 0 0 0 10 5.525l.707-.707A4.486 4.486 0 0 1 12.025 8z" />
</svg>
2023-11-09 01:54:41 +08:00
</button>
2023-11-02 19:09:07 +08:00
</div>
<div>
2023-11-09 01:54:41 +08:00
<input type="checkbox" name="lineinput-voice-close"
class="btn-check btn-close" id="lineinput-voice-close">
<label class="btn btn-sm state-btn" for="lineinput-voice-close">
2023-11-02 19:09:07 +08:00
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16"
fill="currentColor" class="bi bi-volume-mute-fill"
viewBox="0 0 16 16">
<path
d="M6.717 3.55A.5.5 0 0 1 7 4v8a.5.5 0 0 1-.812.39L3.825 10.5H1.5A.5.5 0 0 1 1 10V6a.5.5 0 0 1 .5-.5h2.325l2.363-1.89a.5.5 0 0 1 .529-.06zm7.137 2.096a.5.5 0 0 1 0 .708L12.207 8l1.647 1.646a.5.5 0 0 1-.708.708L11.5 8.707l-1.646 1.647a.5.5 0 0 1-.708-.708L10.793 8 9.146 6.354a.5.5 0 1 1 .708-.708L11.5 7.293l1.646-1.647a.5.5 0 0 1 .708 0z" />
</svg>
</label>
</div>
</div>
2023-11-03 18:59:27 +08:00
2023-11-02 19:09:07 +08:00
</div>
<div class="slider-value-box input-group justify-content-center mt-3">
2023-11-09 17:25:00 +08:00
<div>
2023-11-23 11:27:28 +08:00
<input class="slider-value text-center" id="lineinputsliderValue"
type="number" min="-72" max="12" style="width: 40px;" />
2023-11-09 17:25:00 +08:00
</div>
<span
style="font-size: 12px; color: #555; padding-left: 6px; padding-top: 5px;">dB</span>
2023-11-02 19:09:07 +08:00
</div>
</div>
</div>
</div>
</div>
2023-11-09 01:54:41 +08:00
<div class="me-3" id="microphone1"
2023-11-02 19:09:07 +08:00
style="border-left: 2px solid #000;border-right: 2px solid #000;border-bottom: 2px solid #000;">
<div class="divider">
<div class="divider-text"><span class="fw-bold">Microphone 1</span></div>
</div>
<div class="p-3 d-flex justify-content-center">
<div style="width: 200px;">
<div class="d-flex justify-content-center align-items-center" style="height: 30px;">
<div class="d-flex redio-switche">
2023-11-23 10:47:43 +08:00
<input type="checkbox" disabled checked="checked" class="btn-check" name="mic1"
id="mic1-on">
2023-11-02 19:09:07 +08:00
<label class="btn btn-sm redio-btn on-btn" for="mic1-on">PHANTOM (48V)</label>
</div>
</div>
<div class="volume-slider-container">
<div class="d-flex justify-content-center mt-3">
<div>
<div class="d-flex">
<div class="pinpu-box pe-4">
2023-11-09 10:24:26 +08:00
<div class="equalizer-bar equalizer-bar-left">
<span style="opacity: 1;"></span>
<span style="opacity: 1;"></span>
2023-11-02 19:09:07 +08:00
<span style="opacity: 1;"></span>
<span style="opacity: 1;"></span>
<span style="opacity: 1;"></span>
<span style="opacity: 1;"></span>
<span style="opacity: 1;"></span>
<span style="opacity: 1;"></span>
<span style="opacity: 1;"></span>
<span style="opacity: 1;"></span>
<span style="opacity: 1;"></span>
<span style="opacity: 1;"></span>
<span style="opacity: 1;"></span>
<span style="opacity: 1;"></span>
<span style="opacity: 1;"></span>
2023-11-09 01:54:41 +08:00
<span style="opacity: 1;"></span>
<span style="opacity: 1;"></span>
<span style="opacity: 1;"></span>
<span style="opacity: 1;"></span>
2023-11-02 19:09:07 +08:00
<span style="opacity: 0;"></span>
<span style="opacity: 0;"></span>
<span style="opacity: 0;"></span>
<span style="opacity: 0;"></span>
<span style="opacity: 0;"></span>
2023-11-09 01:54:41 +08:00
</div>
2023-11-09 17:25:00 +08:00
<div
style="font-size: 12px !important;width: 14px;margin: 0 3px;height: 18px;">
2023-11-09 01:54:41 +08:00
</div>
</div>
2023-11-09 17:25:00 +08:00
2023-11-09 01:54:41 +08:00
<div class="ps-1">
<section class="volume-ruler left-ruler">
<section class="cm">
<!-- <span>0</span> -->
<section class="mm"></section>
</section>
<section class="cm">
<!-- <span>-10</span> -->
<section class="mm"></section>
</section>
<section class="cm">
<!-- <span>-20</span> -->
<section class="mm"></section>
</section>
<section class="cm">
<!-- <span>-30</span> -->
<section class="mm"></section>
</section>
<section class="cm">
<!-- <span>-40</span> -->
<section class="mm"></section>
</section>
<section class="cm">
<!-- <span>-50</span> -->
<section class="mm"></section>
</section>
<section class="cm">
<!-- <span>-60</span> -->
</section>
</section>
2023-11-02 19:09:07 +08:00
</div>
<div class="volume-slider-box">
<div class="volume-slider" data-slider-value="50">
<input type="range" orient="vertical" min="0" max="100"
step="0.1" value="30">
<div class="range-slider-bar" style="height: calc(45% + 15px);">
</div>
<div class="range-slider-thumb" style="bottom: 45%;"></div>
</div>
</div>
<div>
2023-11-09 17:25:00 +08:00
<section class="volume-ruler home">
<section class="cm">
<span>12</span>
<!-- <section class="mm"></section> -->
</section>
<section class="cm">
<!-- <span>6</span> -->
<!-- <section class="mm"></section> -->
</section>
2023-11-02 19:09:07 +08:00
<section class="cm">
<span>0</span>
2023-11-09 17:25:00 +08:00
<!-- <section class="mm"></section> -->
2023-11-02 19:09:07 +08:00
</section>
<section class="cm">
2023-11-09 17:25:00 +08:00
<!-- <span>-6</span> -->
<!-- <section class="mm"></section> -->
2023-11-02 19:09:07 +08:00
</section>
<section class="cm">
2023-11-09 17:25:00 +08:00
<span>-12</span>
<!-- <section class="mm"></section> -->
2023-11-02 19:09:07 +08:00
</section>
<section class="cm">
2023-11-09 17:25:00 +08:00
<!-- <span>-18</span> -->
<!-- <section class="mm"></section> -->
2023-11-02 19:09:07 +08:00
</section>
<section class="cm">
2023-11-09 17:25:00 +08:00
<span>-24</span>
<!-- <section class="mm"></section> -->
2023-11-02 19:09:07 +08:00
</section>
<section class="cm">
2023-11-09 17:25:00 +08:00
<!-- <span>-30</span> -->
<!-- <section class="mm"></section> -->
</section>
<section class="cm">
<span>-36</span>
<!-- <section class="mm"></section> -->
</section>
<section class="cm">
<!-- <span>-42</span> -->
<!-- <section class="mm"></section> -->
</section>
<section class="cm">
<span>-48</span>
<!-- <section class="mm"></section> -->
</section>
<section class="cm">
<!-- <span>-54</span> -->
<!-- <section class="mm"></section> -->
2023-11-02 19:09:07 +08:00
</section>
<section class="cm">
<span>-60</span>
2023-11-09 17:25:00 +08:00
<!-- <section class="mm"></section> -->
</section>
<section class="cm">
<!-- <span>-66</span> -->
<!-- <section class="mm"></section> -->
</section>
<section class="cm">
<span>-72</span>
2023-11-02 19:09:07 +08:00
</section>
</section>
</div>
</div>
2023-11-03 18:59:27 +08:00
2023-11-02 19:09:07 +08:00
</div>
<div class="ms-4" style="display: grid;grid-template-rows: 1fr 1fr 1fr;">
<div>
2023-11-09 01:54:41 +08:00
<button class="btn btn-sm state-btn" id="microphone1-voice-add">
2023-11-02 19:09:07 +08:00
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16"
fill="currentColor" class="bi bi-volume-up-fill"
viewBox="0 0 16 16">
<path
d="M11.536 14.01A8.473 8.473 0 0 0 14.026 8a8.473 8.473 0 0 0-2.49-6.01l-.708.707A7.476 7.476 0 0 1 13.025 8c0 2.071-.84 3.946-2.197 5.303l.708.707z" />
<path
d="M10.121 12.596A6.48 6.48 0 0 0 12.025 8a6.48 6.48 0 0 0-1.904-4.596l-.707.707A5.483 5.483 0 0 1 11.025 8a5.483 5.483 0 0 1-1.61 3.89l.706.706z" />
<path
d="M8.707 11.182A4.486 4.486 0 0 0 10.025 8a4.486 4.486 0 0 0-1.318-3.182L8 5.525A3.489 3.489 0 0 1 9.025 8 3.49 3.49 0 0 1 8 10.475l.707.707zM6.717 3.55A.5.5 0 0 1 7 4v8a.5.5 0 0 1-.812.39L3.825 10.5H1.5A.5.5 0 0 1 1 10V6a.5.5 0 0 1 .5-.5h2.325l2.363-1.89a.5.5 0 0 1 .529-.06z" />
</svg>
2023-11-09 01:54:41 +08:00
</button>
2023-11-02 19:09:07 +08:00
</div>
<div>
2023-11-09 01:54:41 +08:00
<button class="btn btn-sm state-btn" id="microphone1-voice-low">
2023-11-02 19:09:07 +08:00
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16"
fill="currentColor" class="bi bi-volume-down-fill"
viewBox="0 0 16 16">
<path
d="M9 4a.5.5 0 0 0-.812-.39L5.825 5.5H3.5A.5.5 0 0 0 3 6v4a.5.5 0 0 0 .5.5h2.325l2.363 1.89A.5.5 0 0 0 9 12V4zm3.025 4a4.486 4.486 0 0 1-1.318 3.182L10 10.475A3.489 3.489 0 0 0 11.025 8 3.49 3.49 0 0 0 10 5.525l.707-.707A4.486 4.486 0 0 1 12.025 8z" />
</svg>
2023-11-09 01:54:41 +08:00
</button>
2023-11-02 19:09:07 +08:00
</div>
<div>
2023-11-09 01:54:41 +08:00
<input type="checkbox" name="microphone1-voice-close"
class="btn-check btn-close" id="microphone1-voice-close">
<label class="btn btn-sm state-btn" for="microphone1-voice-close">
2023-11-02 19:09:07 +08:00
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16"
fill="currentColor" class="bi bi-volume-mute-fill"
viewBox="0 0 16 16">
<path
d="M6.717 3.55A.5.5 0 0 1 7 4v8a.5.5 0 0 1-.812.39L3.825 10.5H1.5A.5.5 0 0 1 1 10V6a.5.5 0 0 1 .5-.5h2.325l2.363-1.89a.5.5 0 0 1 .529-.06zm7.137 2.096a.5.5 0 0 1 0 .708L12.207 8l1.647 1.646a.5.5 0 0 1-.708.708L11.5 8.707l-1.646 1.647a.5.5 0 0 1-.708-.708L10.793 8 9.146 6.354a.5.5 0 1 1 .708-.708L11.5 7.293l1.646-1.647a.5.5 0 0 1 .708 0z" />
</svg>
</label>
</div>
</div>
</div>
2023-11-03 18:59:27 +08:00
<div class="slider-value-box input-group justify-content-center mt-3">
2023-11-09 17:25:00 +08:00
<div>
2023-11-23 11:27:28 +08:00
<input class="slider-value text-center" id="mic1sliderValue" type="number"
min="-72" max="12" style="width: 40px;" />
2023-11-09 17:25:00 +08:00
</div>
<span
style="font-size: 12px; color: #555; padding-left: 6px; padding-top: 5px;">dB</span>
2023-11-03 18:59:27 +08:00
</div>
2023-11-02 19:09:07 +08:00
</div>
</div>
</div>
</div>
2023-11-09 01:54:41 +08:00
<div class="me-3" id="microphone2"
2023-11-02 19:09:07 +08:00
style="border-left: 2px solid #000;border-right: 2px solid #000;border-bottom: 2px solid #000;">
<div class="divider">
<div class="divider-text"><span class="fw-bold">Microphone 2</span></div>
</div>
<div class="p-3 d-flex justify-content-center">
<div style="width: 200px;">
<div class="d-flex justify-content-center align-items-center" style="height: 30px;">
<div class="d-flex redio-switche">
2023-11-23 10:47:43 +08:00
<input type="checkbox" disabled checked="checked" class="btn-check" name="mic2"
id="mic2-on">
2023-11-02 19:09:07 +08:00
<label class="btn btn-sm redio-btn on-btn" for="mic2-on">PHANTOM (48V)</label>
</div>
</div>
<div class="volume-slider-container">
<div class="d-flex justify-content-center mt-3">
<div>
<div class="d-flex">
<div class="pinpu-box pe-4">
2023-11-09 10:24:26 +08:00
<div class="equalizer-bar equalizer-bar-left">
<span style="opacity: 1;"></span>
<span style="opacity: 1;"></span>
2023-11-09 01:54:41 +08:00
<span style="opacity: 1;"></span>
<span style="opacity: 1;"></span>
<span style="opacity: 1;"></span>
<span style="opacity: 1;"></span>
<span style="opacity: 1;"></span>
<span style="opacity: 1;"></span>
<span style="opacity: 1;"></span>
<span style="opacity: 1;"></span>
2023-11-02 19:09:07 +08:00
<span style="opacity: 1;"></span>
<span style="opacity: 1;"></span>
<span style="opacity: 1;"></span>
<span style="opacity: 1;"></span>
<span style="opacity: 1;"></span>
<span style="opacity: 1;"></span>
<span style="opacity: 1;"></span>
<span style="opacity: 1;"></span>
<span style="opacity: 1;"></span>
<span style="opacity: 0;"></span>
<span style="opacity: 0;"></span>
<span style="opacity: 0;"></span>
<span style="opacity: 0;"></span>
<span style="opacity: 0;"></span>
2023-11-09 01:54:41 +08:00
</div>
2023-11-09 17:25:00 +08:00
<div
style="font-size: 12px !important;width: 14px;margin: 0 3px;height: 18px;">
2023-11-09 01:54:41 +08:00
</div>
</div>
2023-11-09 17:25:00 +08:00
2023-11-09 01:54:41 +08:00
<div class="ps-1">
<section class="volume-ruler left-ruler">
<section class="cm">
<!-- <span>0</span> -->
<section class="mm"></section>
</section>
<section class="cm">
<!-- <span>-10</span> -->
<section class="mm"></section>
</section>
<section class="cm">
<!-- <span>-20</span> -->
<section class="mm"></section>
</section>
<section class="cm">
<!-- <span>-30</span> -->
<section class="mm"></section>
</section>
<section class="cm">
<!-- <span>-40</span> -->
<section class="mm"></section>
</section>
<section class="cm">
<!-- <span>-50</span> -->
<section class="mm"></section>
</section>
<section class="cm">
<!-- <span>-60</span> -->
</section>
</section>
2023-11-02 19:09:07 +08:00
</div>
<div class="volume-slider-box">
<div class="volume-slider" data-slider-value="50">
<input type="range" orient="vertical" min="0" max="100"
step="0.1" value="30">
<div class="range-slider-bar" style="height: calc(45% + 15px);">
</div>
<div class="range-slider-thumb" style="bottom: 45%;"></div>
</div>
</div>
<div>
2023-11-09 17:25:00 +08:00
<section class="volume-ruler home">
<section class="cm">
<span>12</span>
<!-- <section class="mm"></section> -->
</section>
<section class="cm">
<!-- <span>6</span> -->
<!-- <section class="mm"></section> -->
</section>
2023-11-02 19:09:07 +08:00
<section class="cm">
<span>0</span>
2023-11-09 17:25:00 +08:00
<!-- <section class="mm"></section> -->
2023-11-02 19:09:07 +08:00
</section>
<section class="cm">
2023-11-09 17:25:00 +08:00
<!-- <span>-6</span> -->
<!-- <section class="mm"></section> -->
2023-11-02 19:09:07 +08:00
</section>
<section class="cm">
2023-11-09 17:25:00 +08:00
<span>-12</span>
<!-- <section class="mm"></section> -->
2023-11-02 19:09:07 +08:00
</section>
<section class="cm">
2023-11-09 17:25:00 +08:00
<!-- <span>-18</span> -->
<!-- <section class="mm"></section> -->
2023-11-02 19:09:07 +08:00
</section>
<section class="cm">
2023-11-09 17:25:00 +08:00
<span>-24</span>
<!-- <section class="mm"></section> -->
2023-11-02 19:09:07 +08:00
</section>
<section class="cm">
2023-11-09 17:25:00 +08:00
<!-- <span>-30</span> -->
<!-- <section class="mm"></section> -->
</section>
<section class="cm">
<span>-36</span>
<!-- <section class="mm"></section> -->
</section>
<section class="cm">
<!-- <span>-42</span> -->
<!-- <section class="mm"></section> -->
</section>
<section class="cm">
<span>-48</span>
<!-- <section class="mm"></section> -->
</section>
<section class="cm">
<!-- <span>-54</span> -->
<!-- <section class="mm"></section> -->
2023-11-02 19:09:07 +08:00
</section>
<section class="cm">
<span>-60</span>
2023-11-09 17:25:00 +08:00
<!-- <section class="mm"></section> -->
</section>
<section class="cm">
<!-- <span>-66</span> -->
<!-- <section class="mm"></section> -->
</section>
<section class="cm">
<span>-72</span>
2023-11-02 19:09:07 +08:00
</section>
</section>
</div>
</div>
</div>
<div class="ms-4" style="display: grid;grid-template-rows: 1fr 1fr 1fr;">
<div>
2023-11-09 01:54:41 +08:00
<button class="btn btn-sm state-btn" id="microphone2-voice-add">
2023-11-02 19:09:07 +08:00
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16"
fill="currentColor" class="bi bi-volume-up-fill"
viewBox="0 0 16 16">
<path
d="M11.536 14.01A8.473 8.473 0 0 0 14.026 8a8.473 8.473 0 0 0-2.49-6.01l-.708.707A7.476 7.476 0 0 1 13.025 8c0 2.071-.84 3.946-2.197 5.303l.708.707z" />
<path
d="M10.121 12.596A6.48 6.48 0 0 0 12.025 8a6.48 6.48 0 0 0-1.904-4.596l-.707.707A5.483 5.483 0 0 1 11.025 8a5.483 5.483 0 0 1-1.61 3.89l.706.706z" />
<path
d="M8.707 11.182A4.486 4.486 0 0 0 10.025 8a4.486 4.486 0 0 0-1.318-3.182L8 5.525A3.489 3.489 0 0 1 9.025 8 3.49 3.49 0 0 1 8 10.475l.707.707zM6.717 3.55A.5.5 0 0 1 7 4v8a.5.5 0 0 1-.812.39L3.825 10.5H1.5A.5.5 0 0 1 1 10V6a.5.5 0 0 1 .5-.5h2.325l2.363-1.89a.5.5 0 0 1 .529-.06z" />
</svg>
2023-11-09 01:54:41 +08:00
</button>
2023-11-02 19:09:07 +08:00
</div>
<div>
2023-11-09 01:54:41 +08:00
<button class="btn btn-sm state-btn" id="microphone2-voice-low">
2023-11-02 19:09:07 +08:00
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16"
fill="currentColor" class="bi bi-volume-down-fill"
viewBox="0 0 16 16">
<path
d="M9 4a.5.5 0 0 0-.812-.39L5.825 5.5H3.5A.5.5 0 0 0 3 6v4a.5.5 0 0 0 .5.5h2.325l2.363 1.89A.5.5 0 0 0 9 12V4zm3.025 4a4.486 4.486 0 0 1-1.318 3.182L10 10.475A3.489 3.489 0 0 0 11.025 8 3.49 3.49 0 0 0 10 5.525l.707-.707A4.486 4.486 0 0 1 12.025 8z" />
</svg>
2023-11-09 01:54:41 +08:00
</button>
2023-11-02 19:09:07 +08:00
</div>
<div>
2023-11-09 01:54:41 +08:00
<input type="checkbox" name="microphone2-voice-close"
class="btn-check btn-close" id="microphone2-voice-close">
<label class="btn btn-sm state-btn" for="microphone2-voice-close">
2023-11-02 19:09:07 +08:00
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16"
fill="currentColor" class="bi bi-volume-mute-fill"
viewBox="0 0 16 16">
<path
d="M6.717 3.55A.5.5 0 0 1 7 4v8a.5.5 0 0 1-.812.39L3.825 10.5H1.5A.5.5 0 0 1 1 10V6a.5.5 0 0 1 .5-.5h2.325l2.363-1.89a.5.5 0 0 1 .529-.06zm7.137 2.096a.5.5 0 0 1 0 .708L12.207 8l1.647 1.646a.5.5 0 0 1-.708.708L11.5 8.707l-1.646 1.647a.5.5 0 0 1-.708-.708L10.793 8 9.146 6.354a.5.5 0 1 1 .708-.708L11.5 7.293l1.646-1.647a.5.5 0 0 1 .708 0z" />
</svg>
</label>
</div>
</div>
</div>
2023-11-03 18:59:27 +08:00
<div class="slider-value-box input-group justify-content-center mt-3">
2023-11-09 17:25:00 +08:00
<div>
2023-11-23 11:27:28 +08:00
<input class="slider-value text-center" id="mic2sliderValue" type="number"
min="-72" max="12" style="width: 40px;" />
2023-11-09 17:25:00 +08:00
</div>
<span
style="font-size: 12px; color: #555; padding-left: 6px; padding-top: 5px;">dB</span>
2023-11-03 18:59:27 +08:00
</div>
2023-11-02 19:09:07 +08:00
</div>
</div>
</div>
</div>
2023-11-09 01:54:41 +08:00
<div class="me-3" id="outputvolume"
2023-11-02 19:09:07 +08:00
style="border-left: 2px solid #000;border-right: 2px solid #000;border-bottom: 2px solid #000;">
<div class="divider">
<div class="divider-text"><span class="fw-bold">Output Volume</span></div>
</div>
<div class="p-3 d-flex justify-content-center">
<div style="width: 200px;">
<div class="d-flex justify-content-center align-items-center" style="height: 30px;">
</div>
<div class="volume-slider-container">
<div class="d-flex justify-content-center mt-3">
<div>
<div class="d-flex">
<div class="pinpu-box pe-4">
2023-11-09 10:24:26 +08:00
<div class="equalizer-bar equalizer-bar-left">
<span style="opacity: 1;"></span>
<span style="opacity: 1;"></span>
2023-11-02 19:09:07 +08:00
<span style="opacity: 1;"></span>
<span style="opacity: 1;"></span>
<span style="opacity: 1;"></span>
<span style="opacity: 1;"></span>
<span style="opacity: 1;"></span>
<span style="opacity: 1;"></span>
<span style="opacity: 1;"></span>
<span style="opacity: 1;"></span>
<span style="opacity: 1;"></span>
<span style="opacity: 1;"></span>
<span style="opacity: 1;"></span>
<span style="opacity: 1;"></span>
<span style="opacity: 1;"></span>
2023-11-09 01:54:41 +08:00
<span style="opacity: 1;"></span>
<span style="opacity: 1;"></span>
<span style="opacity: 1;"></span>
<span style="opacity: 1;"></span>
2023-11-02 19:09:07 +08:00
<span style="opacity: 0;"></span>
<span style="opacity: 0;"></span>
<span style="opacity: 0;"></span>
<span style="opacity: 0;"></span>
<span style="opacity: 0;"></span>
2023-11-09 01:54:41 +08:00
</div>
<div style="font-size: 12px !important;width: 14px;margin: 0 3px;">L
</div>
</div>
<div class="pinpu-box pe-4">
2023-11-09 10:24:26 +08:00
<div class="equalizer-bar equalizer-bar-right">
<span style="opacity: 1;"></span>
<span style="opacity: 1;"></span>
2023-11-09 01:54:41 +08:00
<span style="opacity: 1;"></span>
<span style="opacity: 1;"></span>
<span style="opacity: 1;"></span>
<span style="opacity: 1;"></span>
<span style="opacity: 1;"></span>
<span style="opacity: 1;"></span>
<span style="opacity: 1;"></span>
<span style="opacity: 1;"></span>
<span style="opacity: 1;"></span>
<span style="opacity: 1;"></span>
<span style="opacity: 1;"></span>
<span style="opacity: 1;"></span>
<span style="opacity: 1;"></span>
<span style="opacity: 1;"></span>
<span style="opacity: 1;"></span>
<span style="opacity: 1;"></span>
<span style="opacity: 1;"></span>
<span style="opacity: 1;"></span>
<span style="opacity: 1;"></span>
<span style="opacity: 1;"></span>
2023-11-02 19:09:07 +08:00
<span style="opacity: 0;"></span>
<span style="opacity: 0;"></span>
</div>
2023-11-09 01:54:41 +08:00
<div style="font-size: 12px !important;width: 14px;margin: 0 3px;">R
</div>
</div>
<div class="ps-1">
<section class="volume-ruler left-ruler">
<section class="cm">
<!-- <span>0</span> -->
<section class="mm"></section>
</section>
<section class="cm">
<!-- <span>-10</span> -->
<section class="mm"></section>
</section>
<section class="cm">
<!-- <span>-20</span> -->
<section class="mm"></section>
</section>
<section class="cm">
<!-- <span>-30</span> -->
<section class="mm"></section>
</section>
<section class="cm">
<!-- <span>-40</span> -->
<section class="mm"></section>
</section>
<section class="cm">
<!-- <span>-50</span> -->
<section class="mm"></section>
</section>
<section class="cm">
<!-- <span>-60</span> -->
</section>
</section>
2023-11-02 19:09:07 +08:00
</div>
<div class="volume-slider-box">
<div class="volume-slider" data-slider-value="50">
<input type="range" orient="vertical" min="0" max="100"
step="0.1" value="30">
<div class="range-slider-bar" style="height: calc(45% + 15px);">
</div>
<div class="range-slider-thumb" style="bottom: 45%;"></div>
</div>
</div>
<div>
2023-11-09 17:25:00 +08:00
<section class="volume-ruler home">
<section class="cm">
<span>12</span>
<!-- <section class="mm"></section> -->
</section>
<section class="cm">
<!-- <span>6</span> -->
<!-- <section class="mm"></section> -->
</section>
2023-11-02 19:09:07 +08:00
<section class="cm">
<span>0</span>
2023-11-09 17:25:00 +08:00
<!-- <section class="mm"></section> -->
2023-11-02 19:09:07 +08:00
</section>
<section class="cm">
2023-11-09 17:25:00 +08:00
<!-- <span>-6</span> -->
<!-- <section class="mm"></section> -->
2023-11-02 19:09:07 +08:00
</section>
<section class="cm">
2023-11-09 17:25:00 +08:00
<span>-12</span>
<!-- <section class="mm"></section> -->
2023-11-02 19:09:07 +08:00
</section>
<section class="cm">
2023-11-09 17:25:00 +08:00
<!-- <span>-18</span> -->
<!-- <section class="mm"></section> -->
2023-11-02 19:09:07 +08:00
</section>
<section class="cm">
2023-11-09 17:25:00 +08:00
<span>-24</span>
<!-- <section class="mm"></section> -->
2023-11-02 19:09:07 +08:00
</section>
<section class="cm">
2023-11-09 17:25:00 +08:00
<!-- <span>-30</span> -->
<!-- <section class="mm"></section> -->
</section>
<section class="cm">
<span>-36</span>
<!-- <section class="mm"></section> -->
</section>
<section class="cm">
<!-- <span>-42</span> -->
<!-- <section class="mm"></section> -->
</section>
<section class="cm">
<span>-48</span>
<!-- <section class="mm"></section> -->
</section>
<section class="cm">
<!-- <span>-54</span> -->
<!-- <section class="mm"></section> -->
2023-11-02 19:09:07 +08:00
</section>
<section class="cm">
<span>-60</span>
2023-11-09 17:25:00 +08:00
<!-- <section class="mm"></section> -->
</section>
<section class="cm">
<!-- <span>-66</span> -->
<!-- <section class="mm"></section> -->
</section>
<section class="cm">
<span>-72</span>
2023-11-02 19:09:07 +08:00
</section>
</section>
</div>
</div>
</div>
<div class="ms-4" style="display: grid;grid-template-rows: 1fr 1fr 1fr;">
<div>
2023-11-09 01:54:41 +08:00
<button class="btn btn-sm state-btn" id="outputvolume-voice-add">
2023-11-02 19:09:07 +08:00
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16"
fill="currentColor" class="bi bi-volume-up-fill"
viewBox="0 0 16 16">
<path
d="M11.536 14.01A8.473 8.473 0 0 0 14.026 8a8.473 8.473 0 0 0-2.49-6.01l-.708.707A7.476 7.476 0 0 1 13.025 8c0 2.071-.84 3.946-2.197 5.303l.708.707z" />
<path
d="M10.121 12.596A6.48 6.48 0 0 0 12.025 8a6.48 6.48 0 0 0-1.904-4.596l-.707.707A5.483 5.483 0 0 1 11.025 8a5.483 5.483 0 0 1-1.61 3.89l.706.706z" />
<path
d="M8.707 11.182A4.486 4.486 0 0 0 10.025 8a4.486 4.486 0 0 0-1.318-3.182L8 5.525A3.489 3.489 0 0 1 9.025 8 3.49 3.49 0 0 1 8 10.475l.707.707zM6.717 3.55A.5.5 0 0 1 7 4v8a.5.5 0 0 1-.812.39L3.825 10.5H1.5A.5.5 0 0 1 1 10V6a.5.5 0 0 1 .5-.5h2.325l2.363-1.89a.5.5 0 0 1 .529-.06z" />
</svg>
2023-11-09 01:54:41 +08:00
</button>
2023-11-02 19:09:07 +08:00
</div>
<div>
2023-11-09 01:54:41 +08:00
<button class="btn btn-sm state-btn" id="outputvolume-voice-low">
2023-11-02 19:09:07 +08:00
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16"
fill="currentColor" class="bi bi-volume-down-fill"
viewBox="0 0 16 16">
<path
d="M9 4a.5.5 0 0 0-.812-.39L5.825 5.5H3.5A.5.5 0 0 0 3 6v4a.5.5 0 0 0 .5.5h2.325l2.363 1.89A.5.5 0 0 0 9 12V4zm3.025 4a4.486 4.486 0 0 1-1.318 3.182L10 10.475A3.489 3.489 0 0 0 11.025 8 3.49 3.49 0 0 0 10 5.525l.707-.707A4.486 4.486 0 0 1 12.025 8z" />
</svg>
2023-11-09 01:54:41 +08:00
</button>
2023-11-02 19:09:07 +08:00
</div>
<div>
2023-11-09 01:54:41 +08:00
<input type="checkbox" name="outputvolume-voice-close"
class="btn-check btn-close" id="outputvolume-voice-close">
<label class="btn btn-sm state-btn" for="outputvolume-voice-close">
2023-11-02 19:09:07 +08:00
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16"
fill="currentColor" class="bi bi-volume-mute-fill"
viewBox="0 0 16 16">
<path
d="M6.717 3.55A.5.5 0 0 1 7 4v8a.5.5 0 0 1-.812.39L3.825 10.5H1.5A.5.5 0 0 1 1 10V6a.5.5 0 0 1 .5-.5h2.325l2.363-1.89a.5.5 0 0 1 .529-.06zm7.137 2.096a.5.5 0 0 1 0 .708L12.207 8l1.647 1.646a.5.5 0 0 1-.708.708L11.5 8.707l-1.646 1.647a.5.5 0 0 1-.708-.708L10.793 8 9.146 6.354a.5.5 0 1 1 .708-.708L11.5 7.293l1.646-1.647a.5.5 0 0 1 .708 0z" />
</svg>
</label>
</div>
</div>
</div>
2023-11-03 18:59:27 +08:00
<div class="slider-value-box input-group justify-content-center mt-3">
2023-11-09 17:25:00 +08:00
<div>
2023-11-23 11:27:28 +08:00
<input class="slider-value text-center" id="outputsliderValue" type="number"
min="-72" max="12" style="width: 40px;" />
2023-11-09 17:25:00 +08:00
</div>
<span
style="font-size: 12px; color: #555; padding-left: 6px; padding-top: 5px;">dB</span>
2023-11-03 18:59:27 +08:00
</div>
2023-11-02 19:09:07 +08:00
</div>
</div>
</div>
</div>
</div>
<div class="row d-flex">
</div>
</div>
</main>
<footer class="mt-auto text-white-50">
<div class="dotblock d-flex justify-content-between px-5 py-4">
2023-11-09 01:54:41 +08:00
<div class="">
<script>document.write(siteName)</script>
</div>
<div>
<script>document.write(siteUrl)</script>
</div>
2023-11-02 19:09:07 +08:00
</div>
</footer>
</div>
2023-11-10 11:53:14 +08:00
2023-11-19 18:41:22 +08:00
<script>
2023-11-10 11:53:14 +08:00
2023-11-19 18:41:22 +08:00
var data = {}
let lineinputValue = 0
let mic1Value = 0
let mic2Value = 0
let outputValue = 0
2023-11-23 12:20:51 +08:00
let lineinputPost = false
let mic1Post = false
let mic2Post = false
let outputPost = false
2023-11-15 18:43:40 +08:00
2023-11-19 18:41:22 +08:00
document.addEventListener("DOMContentLoaded", function () {
loadData()
2023-11-09 01:54:41 +08:00
2023-11-19 18:41:22 +08:00
})
2023-11-09 01:54:41 +08:00
2023-11-19 18:41:22 +08:00
$(document).ready(function () {
$("#lineinput input[name='lineinput']").on('click', function () {
2023-11-22 10:15:36 +08:00
let url = "http://192.168.0.116/cgi-bin/test.cgi"
2023-11-19 18:41:22 +08:00
let postData = {
2023-11-23 10:47:43 +08:00
action: 'home_set',
2023-11-19 18:41:22 +08:00
subaction: 'lineinput',
signal: $("input[name='lineinput']:checked").val(),
module: 'lineinput'
2023-11-15 18:43:40 +08:00
}
2023-11-19 18:41:22 +08:00
$.ajax({
type: 'POST',
url: url,
data: postData,
dataType: "json",
2023-11-23 10:23:31 +08:00
//contentType: "application/json; charset=utf-8",
2023-11-19 18:41:22 +08:00
success: function (res) {
2023-11-22 10:15:36 +08:00
console.log('返回数据', typeof (res), res)
2023-11-23 10:33:20 +08:00
let resData = res
2023-11-21 18:35:48 +08:00
if (resData.success) {
data.lineinput = resData.content.lineinput
2023-11-19 18:41:22 +08:00
bindData()
}
else {
2023-11-21 18:35:48 +08:00
alert(resData.message)
2023-11-19 18:41:22 +08:00
}
},
error: function (res) {
}
})
2023-11-15 18:43:40 +08:00
})
2023-11-19 18:41:22 +08:00
$('#lineinput-voice-add').on('click', function () {
let num = $("#lineinput .volume-slider input").val();
let value = ((num * (84 / 100) - 72) + 1).toFixed(1)
2023-11-23 12:48:45 +08:00
2023-11-23 12:24:55 +08:00
lineinputPost = false
2023-11-23 12:48:45 +08:00
console.log('click', value)
2023-11-19 18:41:22 +08:00
LineInputSlider(value)
})
2023-11-09 01:54:41 +08:00
2023-11-19 18:41:22 +08:00
$('#lineinput-voice-low').on('click', function () {
let num = $("#lineinput .volume-slider input").val();
let value = ((num * (84 / 100) - 72) - 1).toFixed(1)
2023-11-23 12:24:55 +08:00
lineinputPost = false
2023-11-23 12:48:45 +08:00
console.log('click', value)
2023-11-19 18:41:22 +08:00
LineInputSlider(value)
})
2023-11-09 01:54:41 +08:00
2023-11-19 18:41:22 +08:00
$("input[name='lineinput-voice-close']").on('change', function () {
2023-11-22 10:15:36 +08:00
let url = "http://192.168.0.116/cgi-bin/test.cgi"
2023-11-19 18:41:22 +08:00
let state = $("input[name='lineinput-voice-close']:checked").val() == 'on'
let postData = {
2023-11-23 10:47:43 +08:00
action: 'home_set',
2023-11-19 18:41:22 +08:00
subaction: 'lineinput',
state: state ? "close" : "open",
module: 'lineinput'
2023-11-15 18:43:40 +08:00
}
2023-11-19 18:41:22 +08:00
$.ajax({
type: 'POST',
url: url,
data: postData,
dataType: "json",
2023-11-23 10:23:31 +08:00
//contentType: "application/json; charset=utf-8",
2023-11-19 18:41:22 +08:00
success: function (res) {
2023-11-22 10:15:36 +08:00
console.log('返回数据', typeof (res), res)
2023-11-23 10:33:20 +08:00
let resData = res
2023-11-21 18:35:48 +08:00
if (resData.success) {
data.lineinput = resData.content.lineinput
2023-11-19 18:41:22 +08:00
bindData()
}
else {
2023-11-21 18:35:48 +08:00
alert(resData.message)
2023-11-19 18:41:22 +08:00
}
},
error: function (res) {
}
})
alert(state ? "close" : "open")
2023-11-15 18:43:40 +08:00
})
2023-11-09 01:54:41 +08:00
2023-11-19 18:41:22 +08:00
$('#microphone1-voice-add').on('click', function () {
let num = $("#microphone1 .volume-slider input").val();
let value = ((num * (20 / 100) - 10) + 1).toFixed(1)
2023-11-23 12:24:55 +08:00
mic1Post = false
2023-11-23 12:48:45 +08:00
console.log('click', value)
2023-11-19 18:41:22 +08:00
Microphone1Slider(value)
})
2023-11-09 01:54:41 +08:00
2023-11-19 18:41:22 +08:00
$('#microphone1-voice-low').on('click', function () {
let num = $("#microphone1 .volume-slider input").val();
let value = ((num * (20 / 100) - 10) - 1).toFixed(1)
2023-11-23 12:24:55 +08:00
mic1Post = false
2023-11-23 12:48:45 +08:00
console.log('click', value)
2023-11-19 18:41:22 +08:00
Microphone1Slider(value)
})
2023-11-09 01:54:41 +08:00
2023-11-19 18:41:22 +08:00
$("input[name='microphone1-voice-close']").on('change', function () {
2023-11-22 10:15:36 +08:00
let url = "http://192.168.0.116/cgi-bin/test.cgi"
2023-11-19 18:41:22 +08:00
let state = $("input[name='microphone1-voice-close']:checked").val() == 'on'
let postData = {
2023-11-23 10:47:43 +08:00
action: 'home_set',
2023-11-19 18:41:22 +08:00
subaction: 'mic1',
state: state ? "close" : "open",
module: 'mic1'
}
$.ajax({
type: 'POST',
url: url,
data: postData,
dataType: "json",
2023-11-23 10:23:31 +08:00
//contentType: "application/json; charset=utf-8",
2023-11-19 18:41:22 +08:00
success: function (res) {
2023-11-22 10:15:36 +08:00
console.log('返回数据', typeof (res), res)
2023-11-23 10:33:20 +08:00
let resData = res
2023-11-21 18:35:48 +08:00
if (resData.success) {
data.mic1 = resData.content.mic1
2023-11-19 18:41:22 +08:00
bindData()
}
else {
2023-11-21 18:35:48 +08:00
alert(resData.message)
2023-11-19 18:41:22 +08:00
}
},
error: function (res) {
2023-11-15 18:43:40 +08:00
}
2023-11-19 18:41:22 +08:00
})
2023-11-23 10:23:31 +08:00
// alert(state ? "close" : "open")
2023-11-19 18:41:22 +08:00
})
$('#microphone2-voice-add').on('click', function () {
let num = $("#microphone2 .volume-slider input").val();
let value = ((num * (20 / 100) - 10) + 1).toFixed(1)
2023-11-23 12:24:55 +08:00
mic2Post = false
2023-11-23 12:48:45 +08:00
console.log('click', value)
2023-11-19 18:41:22 +08:00
Microphone2Slider(value)
})
$('#microphone2-voice-low').on('click', function () {
let num = $("#microphone2 .volume-slider input").val();
let value = ((num * (20 / 100) - 10) - 1).toFixed(1)
2023-11-23 12:36:12 +08:00
$("#microphone2 .volume-slider input").val(value);
2023-11-23 12:24:55 +08:00
mic2Post = false
2023-11-23 12:48:45 +08:00
console.log('click', value)
2023-11-19 18:41:22 +08:00
Microphone2Slider(value)
})
$("input[name='microphone2-voice-close']").on('change', function () {
2023-11-22 10:15:36 +08:00
let url = "http://192.168.0.116/cgi-bin/test.cgi"
2023-11-19 18:41:22 +08:00
let state = $("input[name='microphone2-voice-close']:checked").val() == 'on'
let postData = {
2023-11-23 10:47:43 +08:00
action: 'home_set',
2023-11-19 18:41:22 +08:00
subaction: 'mic2',
state: state ? "close" : "open",
module: 'mic2'
2023-11-15 18:43:40 +08:00
}
2023-11-19 18:41:22 +08:00
$.ajax({
type: 'POST',
url: url,
data: postData,
dataType: "json",
2023-11-23 10:23:31 +08:00
//contentType: "application/json; charset=utf-8",
2023-11-19 18:41:22 +08:00
success: function (res) {
2023-11-22 10:15:36 +08:00
console.log('返回数据', typeof (res), res)
2023-11-23 10:31:14 +08:00
let resData = res
2023-11-21 18:35:48 +08:00
if (resData.success) {
data.mic2 = resData.content.mic2
2023-11-19 18:41:22 +08:00
bindData()
}
else {
2023-11-21 18:35:48 +08:00
alert(resData.message)
2023-11-19 18:41:22 +08:00
}
},
error: function (res) {
}
})
2023-11-23 10:23:31 +08:00
// alert(state ? "close" : "open")
2023-11-15 18:43:40 +08:00
})
2023-11-19 18:41:22 +08:00
$('#outputvolume-voice-add').on('click', function () {
let num = $("#outputvolume .volume-slider input").val();
let value = ((num * (20 / 100) - 10) + 1).toFixed(1)
2023-11-23 12:24:55 +08:00
outputPost = false
2023-11-23 12:48:45 +08:00
console.log('click', value)
2023-11-19 18:41:22 +08:00
OutputVolumeSlider(value)
})
2023-11-15 18:43:40 +08:00
2023-11-19 18:41:22 +08:00
$('#outputvolume-voice-low').on('click', function () {
let num = $("#outputvolume .volume-slider input").val();
let value = ((num * (20 / 100) - 10) - 1).toFixed(1)
2023-11-23 12:24:55 +08:00
outputPost = false
2023-11-23 12:48:45 +08:00
console.log('click', value)
2023-11-19 18:41:22 +08:00
OutputVolumeSlider(value)
})
2023-11-09 01:54:41 +08:00
2023-11-19 18:41:22 +08:00
$("input[name='outputvolume-voice-close']").on('change', function () {
2023-11-22 10:15:36 +08:00
let url = "http://192.168.0.116/cgi-bin/test.cgi"
2023-11-19 18:41:22 +08:00
let state = $("input[name='outputvolume-voice-close']:checked").val() == 'on'
let postData = {
2023-11-23 10:47:43 +08:00
action: 'home_set',
2023-11-19 18:41:22 +08:00
subaction: 'output',
state: state ? "close" : "open",
module: 'output'
}
$.ajax({
type: 'POST',
url: url,
data: postData,
dataType: "json",
2023-11-23 10:23:31 +08:00
//contentType: "application/json; charset=utf-8",
2023-11-19 18:41:22 +08:00
success: function (res) {
2023-11-22 10:15:36 +08:00
console.log('返回数据', typeof (res), res)
2023-11-23 10:33:20 +08:00
let resData = res
2023-11-21 18:35:48 +08:00
if (resData.success) {
data.output = resData.content.output
2023-11-19 18:41:22 +08:00
bindData()
}
else {
2023-11-21 18:35:48 +08:00
alert(resData.message)
2023-11-19 18:41:22 +08:00
}
},
error: function (res) {
}
})
2023-11-23 10:23:31 +08:00
// alert(state ? "close" : "open")
2023-11-19 18:41:22 +08:00
})
2023-11-02 19:09:07 +08:00
2023-11-23 11:27:28 +08:00
$("#lineinputsliderValue").change(function () {
// alert(111);
// alert($("#lineinputsliderValue").val())
2023-11-23 12:25:35 +08:00
lineinputPost = false
2023-11-23 11:27:28 +08:00
LineInputSlider($("#lineinputsliderValue").val())
})
$("#mic1sliderValue").change(function () {
// alert(111);
2023-11-23 12:25:35 +08:00
mic1Post = false
2023-11-23 11:27:28 +08:00
Microphone1Slider($("#mic1sliderValue").val())
})
$("#mic2sliderValue").change(function () {
// alert(111);
2023-11-23 12:25:35 +08:00
mic2Post = false
2023-11-23 11:27:28 +08:00
Microphone2Slider($("#mic2sliderValue").val())
})
2023-11-23 10:47:43 +08:00
2023-11-23 11:27:28 +08:00
$("#outputsliderValue").change(function () {
// alert(111);
2023-11-23 12:25:35 +08:00
outputPost = false
2023-11-23 11:27:28 +08:00
OutputVolumeSlider($("#outputsliderValue").val())
2023-11-23 10:47:43 +08:00
})
2023-11-09 01:54:41 +08:00
})
2023-11-02 19:09:07 +08:00
2023-11-19 18:41:22 +08:00
function changeInputValue(module, number) {
2023-11-22 10:15:36 +08:00
let url = "http://192.168.0.116/cgi-bin/test.cgi"
2023-11-15 18:43:40 +08:00
let postData = {
2023-11-23 10:47:43 +08:00
action: 'home_set',
2023-11-19 18:41:22 +08:00
subaction: module,
audio: number,
module: module
2023-11-15 18:43:40 +08:00
}
$.ajax({
type: 'POST',
url: url,
data: postData,
dataType: "json",
2023-11-23 10:23:31 +08:00
//contentType: "application/json; charset=utf-8",
2023-11-15 18:43:40 +08:00
success: function (res) {
2023-11-22 10:15:36 +08:00
console.log('返回数据', typeof (res), res)
2023-11-23 10:33:20 +08:00
let resData = res
2023-11-21 18:35:48 +08:00
if (resData.success) {
2023-11-19 18:41:22 +08:00
if (module == 'lineinput') {
2023-11-21 18:35:48 +08:00
data.lineinput = resData.content.lineinput
2023-11-23 11:46:41 +08:00
lineinputValue = data.lineinput.audio.toFixed(1)
2023-11-23 13:02:14 +08:00
LineInputSlider(lineinputValue)
2023-11-23 12:20:51 +08:00
lineinputPost = false
2023-11-19 18:41:22 +08:00
}
else if (module == 'mic1') {
2023-11-21 18:35:48 +08:00
data.mic1 = resData.content.mic1
2023-11-23 11:46:41 +08:00
mic1Value = data.mic1.audio.toFixed(1)
2023-11-23 13:02:14 +08:00
Microphone1Slider(mic1Value)
2023-11-23 12:20:51 +08:00
mic1Post = false
2023-11-19 18:41:22 +08:00
}
else if (module == 'mic2') {
2023-11-21 18:35:48 +08:00
data.mic2 = resData.content.mic2
2023-11-23 11:46:41 +08:00
mic2Value = data.mic2.audio.toFixed(1)
2023-11-23 13:02:14 +08:00
Microphone2Slider(mic2Value)
2023-11-23 12:20:51 +08:00
mic2Post = false
2023-11-19 18:41:22 +08:00
}
else {
2023-11-21 18:35:48 +08:00
data.output = resData.content.output
2023-11-23 11:46:41 +08:00
outputValue = data.output.audio.toFixed(1)
2023-11-23 13:02:14 +08:00
OutputVolumeSlider(outputValue)
2023-11-23 12:20:51 +08:00
outputPost = false
2023-11-19 18:41:22 +08:00
}
2023-11-23 11:07:59 +08:00
// bindData()
2023-11-15 18:43:40 +08:00
}
else {
2023-11-21 18:35:48 +08:00
alert(resData.message)
2023-11-15 18:43:40 +08:00
}
},
error: function (res) {
}
})
2023-11-19 18:41:22 +08:00
}
2023-11-15 18:43:40 +08:00
2023-11-02 19:09:07 +08:00
2023-11-15 18:43:40 +08:00
2023-11-19 18:41:22 +08:00
function loadData() {
2023-11-21 16:45:07 +08:00
let url = "http://192.168.0.116/cgi-bin/test.cgi?action=home_get"
2023-11-15 18:43:40 +08:00
$.ajax({
2023-11-19 18:41:22 +08:00
type: "GET",
2023-11-15 18:43:40 +08:00
url: url,
success: function (res) {
2023-11-23 10:33:20 +08:00
let resData = res
2023-11-21 18:35:48 +08:00
if (resData.success) {
data = resData.content
2023-11-23 12:03:28 +08:00
lineinputValue = data.lineinput.audio.toFixed(1)
mic1Value = data.mic1.audio.toFixed(1)
mic2Value = data.mic2.audio.toFixed(1)
outputValue = data.output.audio.toFixed(1)
2023-11-23 11:52:18 +08:00
console.log(typeof (lineinputValue), typeof (mic1Value), typeof (mic2Value), typeof (outputValue))
2023-11-15 18:43:40 +08:00
bindData()
}
else {
2023-11-19 18:41:22 +08:00
2023-11-15 18:43:40 +08:00
}
},
2023-11-19 18:41:22 +08:00
error: function () {
data = {
lineinput: {
signal: "analog",
audio: -30,
state: "open"
},
mic1: {
signal: "open",
audio: -5,
state: "open"
},
mic2: {
signal: "open",
audio: 5,
state: "open"
},
output: {
signal: "open",
audio: 3,
state: "open"
}
}
lineinputValue = data.lineinput.audio
mic1Value = data.mic1.audio
mic2Value = data.mic2.audio
2023-11-20 18:48:46 +08:00
outputValue = data.output.audio
2023-11-19 18:41:22 +08:00
bindData()
2023-11-15 18:43:40 +08:00
}
})
2023-11-02 19:09:07 +08:00
2023-11-15 18:43:40 +08:00
}
2023-11-19 18:41:22 +08:00
function bindData() {
$("input[name='lineinput']").val([`${data.lineinput.signal}`])
2023-11-23 10:23:31 +08:00
$("input[name='mic1']").attr('checked', 'open')
$("input[name='mic2']").attr('checked', 'open')
// $("input[name='mic1']").attr('checked', data.mic1.signal == 'open')
// $("input[name='mic2']").attr('checked', data.mic2.signal == 'open')
2023-11-19 18:41:22 +08:00
$("input[name='outputvolume-voice-close']").attr('checked', data.output.state == 'close')
$("input[name='microphone2-voice-close']").attr('checked', data.mic2.state == 'close')
$("input[name='microphone1-voice-close']").attr('checked', data.mic1.state == 'close')
$("input[name='lineinput-voice-close']").attr('checked', data.lineinput.state == 'close')
2023-11-23 11:46:41 +08:00
LineInputSlider(data.lineinput.audio.toFixed(1))
Microphone1Slider(data.mic1.audio.toFixed(1))
Microphone2Slider(data.mic2.audio.toFixed(1))
OutputVolumeSlider(data.output.audio.toFixed(1))
2023-11-19 18:41:22 +08:00
}
2023-11-15 18:43:40 +08:00
2023-11-19 18:41:22 +08:00
function LineInputSlider(number) {
let element = $('#lineinput')
let input = $("#lineinput .volume-slider input")
let value = (parseInt(number) + 72) / (84 / 100)
input.attr('value', value)
2023-11-23 13:05:41 +08:00
console.log(number, value, input.val())
2023-11-19 18:41:22 +08:00
updateLineInputSlider(element, false);
2023-11-15 18:43:40 +08:00
2023-11-19 18:41:22 +08:00
input.on('input', function () {
updateLineInputSlider(element, true);
})
input.on('change', function () {
updateLineInputSlider(element, false);
})
}
function updateLineInputSlider(element, isInput) {
let box = element.children().find(".volume-slider")
let input = element.children().find(".volume-slider input")
let $thumb = element.children().find(".range-slider-thumb")
let $bar = element.children().find(".range-slider-bar")
let $value = element.children().find(".slider-value")
pct = input.val() * ((box[0].clientHeight - $thumb[0].clientHeight) / box[0].clientHeight);
$thumb.attr('style', `bottom:${pct}%`)
let barHeight = `calc(${pct}% + ${$thumb[0].clientHeight / 2}px)`;
$bar.attr('style', `height:${barHeight}`)
let number = ((input.val() * (84 / 100)) - 72).toFixed(1)
$value.val(`${number}`);
//调用接口提交数据
2023-11-23 11:42:37 +08:00
if (number == -0) {
number = 0
}
2023-11-23 12:08:26 +08:00
console.log(number, lineinputValue, typeof (number), typeof (lineinputValue))
if (number != lineinputValue && isInput == false) {
2023-11-23 12:20:51 +08:00
if (lineinputPost == false) {
lineinputPost = true
changeInputValue('lineinput', number)
}
2023-11-10 11:53:14 +08:00
}
2023-11-19 18:41:22 +08:00
}
2023-11-10 11:53:14 +08:00
2023-11-19 18:41:22 +08:00
function Microphone1Slider(number) {
let element = $("#microphone1")
let input = $("#microphone1 .volume-slider input")
let value = (parseInt(number) + 10) / (20 / 100)
input.attr('value', value)
2023-11-23 13:05:41 +08:00
console.log(number, value, input.val())
2023-11-19 18:41:22 +08:00
updateMicrophone1Slider(element, false);
2023-11-10 11:53:14 +08:00
2023-11-19 18:41:22 +08:00
input.on('input', function () {
updateMicrophone1Slider(element, true);
})
input.on('change', function () {
updateMicrophone1Slider(element, false);
})
}
2023-11-10 11:53:14 +08:00
2023-11-19 18:41:22 +08:00
function updateMicrophone1Slider(element, isInput) {
let box = element.children().find(".volume-slider")
let input = element.children().find(".volume-slider input")
let $thumb = element.children().find(".range-slider-thumb")
let $bar = element.children().find(".range-slider-bar")
let $value = element.children().find(".slider-value")
pct = input.val() * ((box[0].clientHeight - $thumb[0].clientHeight) / box[0].clientHeight);
2023-11-09 01:54:41 +08:00
2023-11-19 18:41:22 +08:00
$thumb.attr('style', `bottom:${pct}%`)
2023-11-09 01:54:41 +08:00
2023-11-19 18:41:22 +08:00
let barHeight = `calc(${pct}% + ${$thumb[0].clientHeight / 2}px)`;
$bar.attr('style', `height:${barHeight}`)
2023-11-09 01:54:41 +08:00
2023-11-19 18:41:22 +08:00
let number = ((input.val() * (20 / 100)) - 10).toFixed(1)
$value.val(`${number}`);
//调用接口提交数据
2023-11-23 11:42:37 +08:00
if (number == -0) {
number = 0
}
2023-11-23 12:08:26 +08:00
console.log(number, mic1Value, typeof (number), typeof (mic1Value))
if (mic1Value != number && isInput == false) {
2023-11-23 12:20:51 +08:00
if (mic1Post == false) {
mic1Post = true
changeInputValue('mic1', number)
}
2023-11-19 18:41:22 +08:00
}
}
2023-11-09 01:54:41 +08:00
2023-11-19 18:41:22 +08:00
function Microphone2Slider(number) {
let element = $('#microphone2')
let input = $("#microphone2 .volume-slider input")
2023-11-09 01:54:41 +08:00
2023-11-19 18:41:22 +08:00
let value = (parseInt(number) + 10) / (20 / 100)
input.attr('value', value)
2023-11-23 13:05:41 +08:00
console.log(number, value, input.val())
2023-11-19 18:41:22 +08:00
updateMicrophone2Slider(element, false);
2023-11-09 01:54:41 +08:00
2023-11-19 18:41:22 +08:00
input.on('input', function () {
updateMicrophone2Slider(element, true);
})
input.on('change', function () {
updateMicrophone2Slider(element, false);
})
}
2023-11-09 01:54:41 +08:00
2023-11-19 18:41:22 +08:00
function updateMicrophone2Slider(element, isInput) {
2023-11-09 17:25:00 +08:00
2023-11-19 18:41:22 +08:00
let box = element.children().find(".volume-slider")
let input = element.children().find(".volume-slider input")
let $thumb = element.children().find(".range-slider-thumb")
let $bar = element.children().find(".range-slider-bar")
let $value = element.children().find(".slider-value")
pct = input.val() * ((box[0].clientHeight - $thumb[0].clientHeight) / box[0].clientHeight);
2023-11-09 01:54:41 +08:00
2023-11-19 18:41:22 +08:00
$thumb.attr('style', `bottom:${pct}%`)
2023-11-09 01:54:41 +08:00
2023-11-19 18:41:22 +08:00
let barHeight = `calc(${pct}% + ${$thumb[0].clientHeight / 2}px)`;
$bar.attr('style', `height:${barHeight}`)
2023-11-09 01:54:41 +08:00
2023-11-19 18:41:22 +08:00
let number = ((input.val() * (20 / 100)) - 10).toFixed(1)
$value.val(`${number}`);
//调用接口提交数据
2023-11-23 11:42:37 +08:00
if (number == -0) {
number = 0
}
2023-11-23 12:08:26 +08:00
console.log(number, mic2Value, typeof (number), typeof (mic2Value))
if (mic2Value != number && isInput == false) {
2023-11-23 12:20:51 +08:00
if (mic2Post == false) {
mic2Post = true
changeInputValue('mic2', number)
}
2023-11-19 18:41:22 +08:00
}
}
2023-11-09 01:54:41 +08:00
2023-11-19 18:41:22 +08:00
function OutputVolumeSlider(number) {
let element = $('#outputvolume')
let input = $("#outputvolume .volume-slider input")
2023-11-15 18:43:40 +08:00
2023-11-19 18:41:22 +08:00
let value = (parseInt(number) + 10) / (20 / 100)
input.attr('value', value)
2023-11-23 13:05:41 +08:00
console.log(number, value, input.val())
2023-11-19 18:41:22 +08:00
updateOutputVolumeSlider(element, false);
2023-11-09 17:25:00 +08:00
2023-11-19 18:41:22 +08:00
input.on('input', function () {
updateOutputVolumeSlider(element, true);
})
input.on('change', function () {
updateOutputVolumeSlider(element, false);
})
}
2023-11-09 01:54:41 +08:00
2023-11-19 18:41:22 +08:00
function updateOutputVolumeSlider(element, isInput) {
2023-11-09 01:54:41 +08:00
2023-11-19 18:41:22 +08:00
let box = element.children().find(".volume-slider")
let input = element.children().find(".volume-slider input")
let $thumb = element.children().find(".range-slider-thumb")
let $bar = element.children().find(".range-slider-bar")
let $value = element.children().find(".slider-value")
pct = input.val() * ((box[0].clientHeight - $thumb[0].clientHeight) / box[0].clientHeight);
$thumb.attr('style', `bottom:${pct}%`)
let barHeight = `calc(${pct}% + ${$thumb[0].clientHeight / 2}px)`;
$bar.attr('style', `height:${barHeight}`)
let number = ((input.val() * (20 / 100)) - 10).toFixed(1)
$value.val(`${number}`);
//调用接口提交数据
2023-11-23 11:42:37 +08:00
if (number == -0) {
number = 0
}
2023-11-23 12:08:26 +08:00
console.log(number, outputValue, typeof (number), typeof (outputValue))
if (outputValue != number && isInput == false) {
2023-11-23 12:20:51 +08:00
if (outputPost == false) {
outputPost = true
changeInputValue('output', number)
}
2023-11-19 18:41:22 +08:00
}
}
2023-11-09 01:54:41 +08:00
2023-11-19 18:41:22 +08:00
function LineInputLeftRandomBar(number) {
const bars = $("#lineinput .equalizer-bar-left")
updateBars(bars, number)
}
2023-11-09 01:54:41 +08:00
2023-11-19 18:41:22 +08:00
function LineInputRightRandomBar(number) {
const bars = $("#lineinput .equalizer-bar-right")
updateBars(bars, number)
}
2023-11-09 01:54:41 +08:00
2023-11-19 18:41:22 +08:00
function Microphone1LeftRandomBar(number) {
const bars = $("#microphone1 .equalizer-bar-left")
updateBars(bars, number)
}
2023-11-09 01:54:41 +08:00
2023-11-19 18:41:22 +08:00
function Microphone1RightRandomBar(number) {
const bars = $("#microphone1 .equalizer-bar-right")
updateBars(bars, number)
}
2023-11-15 18:43:40 +08:00
2023-11-19 18:41:22 +08:00
function Microphone2LeftRandomBar(number) {
const bars = $("#microphone2 .equalizer-bar-left")
updateBars(bars, number)
}
2023-11-09 01:54:41 +08:00
2023-11-19 18:41:22 +08:00
function Microphone2RightRandomBar(number) {
const bars = $("#microphone2 .equalizer-bar-right")
updateBars(bars, number)
}
2023-11-09 01:54:41 +08:00
2023-11-19 18:41:22 +08:00
function OutputVolumeLeftRandomBar(number) {
const bars = $("#outputvolume .equalizer-bar-left")
updateBars(bars, number)
}
2023-11-09 17:25:00 +08:00
2023-11-19 18:41:22 +08:00
function OutputVolumeRightRandomBar(number) {
const bars = $("#outputvolume .equalizer-bar-right")
updateBars(bars, number)
}
2023-11-09 17:25:00 +08:00
2023-11-09 01:54:41 +08:00
2023-11-19 18:41:22 +08:00
function updateBars(element, number) {
let row = (number + 72) / 3;
let red = (-6 + 72) / 3;
let yellow = (-18 + 72) / 3;
2023-11-09 01:54:41 +08:00
2023-11-19 18:41:22 +08:00
let spans = element[0].getElementsByTagName('span');
for (let i = 0; i < spans.length; i++) {
if (row > i) {
if (row > red && i > red) {
spans[i].style.opacity = "1"
spans[i].style.backgroundColor = "#ff0000"
}
else if (row > yellow + 1 && i <= red && i > yellow + 1) {
spans[i].style.opacity = "1"
spans[i].style.backgroundColor = "#ff6600"
}
else {
spans[i].style.opacity = "1"
spans[i].style.backgroundColor = "#a7dce9"
}
2023-11-09 01:54:41 +08:00
}
else {
2023-11-09 09:36:23 +08:00
spans[i].style.opacity = "1"
2023-11-19 18:41:22 +08:00
spans[i].style.backgroundColor = "#333"
2023-11-09 01:54:41 +08:00
}
2023-11-02 19:09:07 +08:00
}
}
2023-11-09 09:36:23 +08:00
2023-11-09 10:24:26 +08:00
2023-11-21 01:14:24 +08:00
// setInterval(() => {
// setRandomBars();
// }, 200);
2023-11-09 09:36:23 +08:00
2023-11-19 18:41:22 +08:00
function setRandomBars() {
let num = getRandomIntInclusive(0, 72)
let num2 = getRandomIntInclusive(0, 72)
let num3 = getRandomIntInclusive(0, 72)
let num5 = getRandomIntInclusive(0, 72)
let num7 = getRandomIntInclusive(0, 72)
let num8 = getRandomIntInclusive(0, 72)
LineInputLeftRandomBar(num - 72)
LineInputRightRandomBar(num2 - 72)
Microphone1LeftRandomBar(num3 - 72)
Microphone2LeftRandomBar(num5 - 72)
OutputVolumeLeftRandomBar(num7 - 72);
OutputVolumeRightRandomBar(num8 - 72);
2023-11-09 17:25:00 +08:00
2023-11-19 18:41:22 +08:00
}
2023-11-09 09:36:23 +08:00
2023-11-19 18:41:22 +08:00
function getRandomIntInclusive(min, max) {
min = Math.ceil(min);
max = Math.floor(max);
return Math.floor(Math.random() * (max - min + 1)) + min; //含最大值,含最小值
}
2023-11-15 18:43:40 +08:00
2023-11-19 18:41:22 +08:00
</script>
<script src="js/main.js"></script>
2023-11-20 18:48:46 +08:00
<script src="js/equalizer.js"></script>
2023-11-19 18:41:22 +08:00
</body>
2023-11-02 19:09:07 +08:00
</html>