<!DOCTYPE html>

<html lang="en">

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="keywords" content="">
    <meta name="author" content="">
    <meta name="robots" content="">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="Fillow : Fillow Saas Admin  Bootstrap 5 Template">
    <meta property="og:title" content="Fillow : Fillow Saas Admin  Bootstrap 5 Template">
    <meta property="og:description" content="Fillow : Fillow Saas Admin  Bootstrap 5 Template">
    <meta name="format-detection" content="telephone=no">

    <!-- PAGE TITLE HERE -->
    <title>Fxpool confuse config</title>

    <!-- FAVICONS ICON -->
    <link rel="stylesheet" href="static/css/toastr.min.css">
    <link rel="stylesheet" href="static/css/select2.min.css">
    <link href="static/css/nice-select.css" rel="stylesheet">
    <link href="static/css/style2.css" rel="stylesheet">
    <link href="static/css/jquery.dataTables.min.css" rel="stylesheet">
    <link rel="stylesheet" href="static/css/nouislider.min.css">
</head>

<body>

    <!--*******************
        Preloader start
    ********************-->
    <div id="preloader">
        <div class="lds-ripple">
            <div></div>
            <div></div>
        </div>
    </div>
    <!--*******************
        Preloader end
    ********************-->


    <!--**********************************
        Main wrapper start
    ***********************************-->
    <div id="main-wrapper">

        <!--**********************************
            Nav header start
        ***********************************-->
        <div class="nav-header">
            <a href="index" class="brand-logo">
                <svg class="logo-abbr" width="55" height="55" viewbox="0 0 55 55" fill="none" xmlns="http://www.w3.org/2000/svg">
                    <path fill-rule="evenodd" clip-rule="evenodd"
                        d="M27.5 0C12.3122 0 0 12.3122 0 27.5C0 42.6878 12.3122 55 27.5 55C42.6878 55 55 42.6878 55 27.5C55 12.3122 42.6878 0 27.5 0ZM28.0092 46H19L19.0001 34.9784L19 27.5803V24.4779C19 14.3752 24.0922 10 35.3733 10V17.5571C29.8894 17.5571 28.0092 19.4663 28.0092 24.4779V27.5803H36V34.9784H28.0092V46Z"
                        fill="url(#paint0_linear)"></path>
                    <defs>
                    </defs>
                </svg>
                <div class="brand-title">
                    <h2 class="">Fxpool.</h2>
                    <span class="brand-sub-title">Saas Fxpool Dashboard</span>
                </div>
            </a>
            <div class="nav-control">
                <div class="hamburger">
                    <span class="line"></span><span class="line"></span><span class="line"></span>
                </div>
            </div>
        </div>
        <!--**********************************
            Nav header end
        ***********************************-->

        <!--**********************************
            Chat box start
        ***********************************-->

        <!--**********************************
            Chat box End
        ***********************************-->

        <!--**********************************
            Header start
        ***********************************-->
        <div class="header">
            <div class="header-content">
                <nav class="navbar navbar-expand">
                    <div class="collapse navbar-collapse justify-content-between">
                        <div class="header-left">
                            <div class="dashboard_bar">
                                代理矿池
                            </div>
                        </div>
                        <div class="card-tabs mt-3 mt-sm-0 mb-3 ">
                            <ul class="nav nav-tabs" role="tablist">
                                <li class="nav-item">
                                    <a class="nav-link active" data-bs-toggle="tab" id="theme_light" role="tab">明亮</a>
                                </li>
                                <li class="nav-item">
                                    <a class="nav-link" data-bs-toggle="tab" id="theme_dark" role="tab">灰暗</a>
                                </li>
                            </ul>
                        </div>
                        <ul class="navbar-nav header-right">
                            <li class="nav-item dropdown notification_dropdown">
                                <div class="dropdown-menu dropdown-menu-end">
                                    <div id="DZ_W_Notification1" class="widget-media dlab-scroll p-3" style="height:380px;">
                                        <ul class="timeline">
                                            <li>
                                                <div class="timeline-panel">
                                                    <div class="media me-2">
                                                        <!-- <img alt="image" width="50" src="static/picture/1.jpg"> -->
                                                    </div>
                                                    <div class="media-body">
                                                        <h6 class="mb-1">Dr sultads Send you Photo</h6>
                                                        <small class="d-block">29 July 2020 - 02:26 PM</small>
                                                    </div>
                                                </div>
                                            </li>
                                            <li>
                                                <div class="timeline-panel">
                                                    <div class="media me-2 media-info">
                                                        KG
                                                    </div>
                                                    <div class="media-body">
                                                        <h6 class="mb-1">Resport created successfully</h6>
                                                        <small class="d-block">29 July 2020 - 02:26 PM</small>
                                                    </div>
                                                </div>
                                            </li>
                                            <li>
                                                <div class="timeline-panel">
                                                    <div class="media me-2 media-success">
                                                        <i class="fa fa-home"></i>
                                                    </div>
                                                    <div class="media-body">
                                                        <h6 class="mb-1">Reminder : Treatment Time!</h6>
                                                        <small class="d-block">29 July 2020 - 02:26 PM</small>
                                                    </div>
                                                </div>
                                            </li>
                                            <li>
                                                <div class="timeline-panel">
                                                    <div class="media me-2">
                                                        <!-- <img alt="image" width="50" src="static/picture/1.jpg"> -->
                                                    </div>
                                                    <div class="media-body">
                                                        <h6 class="mb-1">Dr sultads Send you Photo</h6>
                                                        <small class="d-block">29 July 2020 - 02:26 PM</small>
                                                    </div>
                                                </div>
                                            </li>
                                            <li>
                                                <div class="timeline-panel">
                                                    <div class="media me-2 media-danger">
                                                        KG
                                                    </div>
                                                    <div class="media-body">
                                                        <h6 class="mb-1">Resport created successfully</h6>
                                                        <small class="d-block">29 July 2020 - 02:26 PM</small>
                                                    </div>
                                                </div>
                                            </li>
                                            <li>
                                                <div class="timeline-panel">
                                                    <div class="media me-2 media-primary">
                                                        <i class="fa fa-home"></i>
                                                    </div>
                                                    <div class="media-body">
                                                        <h6 class="mb-1">Reminder : Treatment Time!</h6>
                                                        <small class="d-block">29 July 2020 - 02:26 PM</small>
                                                    </div>
                                                </div>
                                            </li>
                                        </ul>
                                    </div>
                                    <a class="all-notification" href="javascript:void(0);">See all notifications <i class="ti-arrow-end"></i></a>
                                </div>
                            </li>
                            <li class="nav-item dropdown notification_dropdown">
                                <div class="dropdown-menu dropdown-menu-end">
                                    <div id="DZ_W_TimeLine02" class="widget-timeline dlab-scroll style-1 ps ps--active-y p-3 height370">
                                        <ul class="timeline">
                                            <li>
                                                <div class="timeline-badge primary"></div>
                                                <a class="timeline-panel text-muted" href="javascript:void(0);">
                                                    <span>10 minutes ago</span>
                                                    <h6 class="mb-0">Youtube, a video-sharing website, goes live <strong class="text-primary">$500</strong>.</h6>
                                                </a>
                                            </li>
                                            <li>
                                                <div class="timeline-badge info">
                                                </div>
                                                <a class="timeline-panel text-muted" href="javascript:void(0);">
                                                    <span>20 minutes ago</span>
                                                    <h6 class="mb-0">New order placed <strong class="text-info">#XF-2356.</strong></h6>
                                                    <p class="mb-0">Quisque a consequat ante Sit amet magna at volutapt...</p>
                                                </a>
                                            </li>
                                            <li>
                                                <div class="timeline-badge danger">
                                                </div>
                                                <a class="timeline-panel text-muted" href="javascript:void(0);">
                                                    <span>30 minutes ago</span>
                                                    <h6 class="mb-0">john just buy your product <strong class="text-warning">Sell $250</strong></h6>
                                                </a>
                                            </li>
                                            <li>
                                                <div class="timeline-badge success">
                                                </div>
                                                <a class="timeline-panel text-muted" href="javascript:void(0);">
                                                    <span>15 minutes ago</span>
                                                    <h6 class="mb-0">StumbleUpon is acquired by eBay. </h6>
                                                </a>
                                            </li>
                                            <li>
                                                <div class="timeline-badge warning">
                                                </div>
                                                <a class="timeline-panel text-muted" href="javascript:void(0);">
                                                    <span>20 minutes ago</span>
                                                    <h6 class="mb-0">Mashable, a news website and blog, goes live.</h6>
                                                </a>
                                            </li>
                                            <li>
                                                <div class="timeline-badge dark">
                                                </div>
                                                <a class="timeline-panel text-muted" href="javascript:void(0);">
                                                    <span>20 minutes ago</span>
                                                    <h6 class="mb-0">Mashable, a news website and blog, goes live.</h6>
                                                </a>
                                            </li>
                                        </ul>
                                    </div>
                                </div>
                            </li>
                            <li class="nav-item dropdown  header-profile">
								<a class="nav-link" id="setImage" href="javascript:void(0);" role="button" data-bs-toggle="dropdown">
									<img src="static/picture/currency-ETH.png" width="56" alt="">
								</a>
								<div class="dropdown-menu dropdown-menu-end">
									<a href="javascript:;" class="dropdown-item ai-icon" onclick="selectCoinTypeFunc(this)" type="ETH">
										<img src="static/picture/currency-ETH.png"  alt="">
										<span class="ms-2">ETH</span>
									</a>
									<a href="javascript:;" class="dropdown-item ai-icon" onclick="selectCoinTypeFunc(this)" type="ETC">
										<img src="static/picture/currency-ETC.png"  alt="">
										<span class="ms-2">ETC</span>
									</a>
									<a href="javascript:;" class="dropdown-item ai-icon" onclick="selectCoinTypeFunc(this)" type="BTC">
										<img src="static/picture/currency-BTC.png"  alt="">
										<span class="ms-2">BTC</span>
                                    </a>
                                    <a href="javascript:;" class="dropdown-item ai-icon" onclick="selectCoinTypeFunc(this)" type="LTC">
										<img src="static/picture/currency-LTC.png"  alt="">
										<span class="ms-2">LTC</span>
                                    </a>
                                    <a href="javascript:;" class="dropdown-item ai-icon" onclick="selectCoinTypeFunc(this)" type="RVN">
										<img src="static/picture/currency-RVN.png"  alt="">
										<span class="ms-2">RVN</span>
                                    </a>
                                    <a href="javascript:;" class="dropdown-item ai-icon" onclick="selectCoinTypeFunc(this)" type="BEAM">
										<img src="static/picture/currency-BEAM.png"  alt="">
										<span class="ms-2">BEAM</span>
                                    </a>
                                    <a href="javascript:;" class="dropdown-item ai-icon" onclick="selectCoinTypeFunc(this)" type="ERG">
										<img src="static/picture/currency-ERG.png"  alt="">
										<span class="ms-2">ERG</span>
                                    </a>
                                    <a href="javascript:;" class="dropdown-item ai-icon" onclick="selectCoinTypeFunc(this)" type="CFX">
										<img src="static/picture/currency-CFX.png"  alt="">
										<span class="ms-2">CFX</span>
                                    </a>
                                    <a href="javascript:;" class="dropdown-item ai-icon" onclick="selectCoinTypeFunc(this)" type="BTG">
										<img src="static/picture/currency-BTG.png"  alt="">
										<span class="ms-2">BTG</span>
                                    </a>
                                    <!-- <a href="javascript:;" class="dropdown-item ai-icon" onclick="selectCoinTypeFunc(this)" type="TON">
										<img src="static/picture/currency-TON.png"  alt="">
										<span class="ms-2">TON</span>
                                    </a> -->
								</div>
							</li>
                        </ul>
                    </div>
                </nav>
            </div>
        </div>

        <!--**********************************
            Header end ti-comment-alt
        ***********************************-->

        <!--**********************************
            Sidebar start
        ***********************************-->
        <div class="dlabnav">
            <div class="dlabnav-scroll">
                <ul class="metismenu" id="menu">
                    <li>
                        <a class=""  href="index" aria-expanded="false">
                            <i class="fas fa-home"></i>
                            <span class="nav-text">主页</span>
                        </a>
                    </li>
                    <li>
                        <a class="" href="proxyPool" aria-expanded="false">
                            <i class="fas fa-clone"></i>
                            <span class="nav-text">端口</span>
                        </a>
                    </li>
                    <li>
                        <a class="" href="userList" aria-expanded="false">
                            <i class="fas fa-table"></i>
                            <span class="nav-text">矿池</span>
                        </a>
                    </li>
                    <li>
                        <a  class=""  href="confuseSet"aria-expanded="false">
                            <i class="fas fa-info-circle"></i>
                            <span class="nav-text">混淆</span>
                        </a>
                    </li>
                    <li>
                        <a  class=""  href="log"aria-expanded="false">
                            <i class="fas fa-file-alt"></i>
                            <span class="nav-text">日志</span>
                        </a>
                    </li>
                    <li>
                        <a href="setting" class="" aria-expanded="false">
                            <i class="fas fa-user-check"></i>
                            <span class="nav-text">设置</span>
                        </a>
                    </li>
                </ul>
                <div class="side-bar-profile">
                </div>
                <div class="copyright">
                    <p><strong>Admin</strong> © fxpool.org 2022 All Rights Reserved</p>
                </div>
            </div>
        </div>
        <!--**********************************
            Sidebar end
        ***********************************-->

        <!--**********************************
            Content body start
        ***********************************-->
        <div class="content-body">
            <div class="container-fluid">
                <!-- row -->
                <div class="row">
                    <div class="col-lg-12">
                        <div class="card">
                            <div class="card-body">
                                <div class="email-left-box generic-width px-0 mb-5">
                                    <div class="mail-list rounded overflow-hidden mt-4">
										<div class="intro-title d-flex my-0 justify-content-between">
											<h5 id="logTextH5">日志</h5>
											<i class="fa fa-chevron-down" aria-hidden="true"></i>
										</div>
                                        <a  href="/download/porttran.log" target="_blank" class="list-group-item"><span class="icon-warning"><i class="fa fa-circle" aria-hidden="true"></i></span>
                                            下载 </a>
                                        <a href = "#" class="list-group-item" onclick="log_ctl_func(this)" type='real_time'><span class="icon-primary"><i class="fa fa-circle" aria-hidden="true" ></i></span>
                                            实时 </a>  
                                        <a href = "#" class="list-group-item" onclick="log_ctl_func(this)" type='end'><span class="icon-primary"><i class="fa fa-circle" aria-hidden="true" ></i></span>
                                            最后一页 </a>
                                        <a href = "#" class="list-group-item" onclick="log_ctl_func(this)" type='last'><span class="icon-success"><i class="fa fa-circle" aria-hidden="true" ></i></span>
                                            上一页 </a>
                                        <a href = "#" class="list-group-item" onclick="log_ctl_func(this)" type='next'><span class="icon-dpink"><i class="fa fa-circle" aria-hidden="true" ></i></span>
                                            下一页 </a>
                                    </div>
                                </div>
                                <div class="email-right-box ms-0 ms-sm-4 ms-sm-0">
                                    <div class="row">
                                        <div class="col-12">
                                            <div class="right-box-padding">
                                                <div class="read-content">
                                                    <div class="mb-3 pt-3">
                                                        <textarea name="write_log" id="write_log"  class="form-control" placeholder="空" spellcheck="false"></textarea>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>


        <!--**********************************
            Content body end
        ***********************************-->

        <!--**********************************
            Footer start
        ***********************************-->
        <div class="footer">
            <div class="copyright">
                <p>Copyright © Designed &amp; Developed by <a href="http://www.fxpool.org" target="_blank">Fxpool</a> 2021</p>
            </div>
        </div>
        <!--**********************************
            Footer end
        ***********************************-->

        <!--**********************************
           Support ticket button start
        ***********************************-->

        <!--**********************************
           Support ticket button end
        ***********************************-->


    </div>
    <!--**********************************
        Main wrapper end
    ***********************************-->

    <!--**********************************
        Scripts
    ***********************************-->
    <!-- Required vendors -->
    <script src="static/js/global.min.js"></script>
    <script src="static/js/jquery.nice-select.min.js"></script>
    <script src="static/js/custom.min.js"></script>
    <script src="static/js/dlabnav-init.js"></script>
    <script src="static/js/apexchart.js"></script>
    <script src="static/js/demo.js"></script>
    <script src="static/js/select2.full.min.js"></script>
    <script src="static/js/select2-init.js"></script>
    <script src="static/js/toastr-init.js"></script>
    <script src="static/js/toastr.min.js"></script>
    <script src="static/js/jquery.dataTables.min.js"></script>
    <script src="static/js/datatables.init.js"></script>
    <script>
        // 获取币种
        GetCoinTypeFunc();
        function GetCoinTypeFunc(){
            var xhr = new XMLHttpRequest();
            xhr.onreadystatechange = function () {
                if (xhr.readyState == 4 && xhr.status == 200) {
                    var data = xhr.responseText;
                    data = JSON.parse(data);
                    if(data.status == "ok"){
                        document.getElementById("setImage").innerHTML ='<img src="static/picture/currency-'+data.data+'.png" width="56" alt="">';
                        //document.getElementById("getCoinTypeH4").innerText = data.data;
                    }
                }
            }
            xhr.open('GET','api/coinTypeGet',true);
            xhr.send();
        }
        // 设置币种
        function selectCoinTypeFunc(obj){
            var xhr = new XMLHttpRequest();
            xhr.onreadystatechange = function () {
                if (xhr.readyState == 4 && xhr.status == 200) {
                    var data = xhr.responseText;
                    data = JSON.parse(data);
                    if(data.status == "ok"){
                        location.reload();
                    }
                }
            }
            var newData = 'coinType='+obj.type;
            xhr.open('POST','api/coinTypeSet',true);
            xhr.setRequestHeader( "Content-Type" , "application/x-www-form-urlencoded");
            xhr.send(newData);
        }
    </script>
    <script>
        var ws = new WebSocket("ws://{{.wckIP}}/api/wckLog");
        ws.binaryType='arraybuffer';
        var logwrite = document.getElementById("write_log");
        document.getElementById("logTextH5").innerText = "日志[历史]";
        //申请一个WebSocket对象，参数是服务端地址，同http协议使用http://开头一样，WebSocket协议的url使用ws://开头，另外安全的WebSocket协议使用wss://开头
        ws.onopen = function(){
        　　//当WebSocket创建成功时，触发onopen事件
        console.log("open");
        　　ws.send("connect"); //将消息发送到服务端
        }
        ws.onmessage = function(e){
        　　//当客户端收到服务端发来的消息时，触发onmessage事件，参数e.data包含server传递过来的数据
            var lines = e.data.split('\n');
            var newLineData ="";
            var newDisplayData="";
            for(var line = 0; line < lines.length; line++){
                if (lines[line].indexOf("[36mINFO[0m")!=-1){
                    newLineData = lines[line].replace('[36mINFO[0m','INFO');
                }else if (lines[line].indexOf("[31mERRO[0m")!=-1){
                    newLineData =  lines[line].replace('[31mERRO[0m','ERRO');
                }else if (lines[line].indexOf("[37mDEBU[0m")!=-1){
                    newLineData =  lines[line].replace('[37mDEBU[0m','DEBU');
                }else if(lines[line].indexOf("[33mWARN[0m")!=-1){
                    newLineData =  lines[line].replace('[33mWARN[0m','WARN');
                }
                else{
                    newLineData = lines[line];
                }
                newLineData+="\n";
                newDisplayData+=newLineData;
            }
            logwrite.value = newDisplayData;
            logwrite.scrollTop = logwrite.scrollHeight;
            var len = logwrite.value.length;
            setSelectionRange(logwrite, len, len); //将光标定位到文本最后
        }
        
        ws.onclose = function(e){
        　　//当客户端收到服务端发送的关闭连接请求时，触发onclose事件
        　　console.log("close");
        }
        ws.onerror = function(e){
        　　//如果出现连接、处理、接收、发送数据失败的时候触发onerror事件
        　　//console.log(error);
        }
        var intervalId = null;
        function log_ctl_func(obj){
            logwrite.value = "";
            if(obj.type == "real_time"){
                document.getElementById("logTextH5").innerText = "日志[实时]";
                ws.send("end");
                // 3s更新一次数据如果做实时更新
                intervalId = window.setInterval(function clock() {
                    ws.send("end");
                }, 3 * 1000);
            }else{
                clearInterval(intervalId);
                document.getElementById("logTextH5").innerText = "日志[历史]";
                ws.send(obj.type);
            }
        }
        function setSelectionRange(input, selectionStart, selectionEnd) {
            if (input.setSelectionRange) {
                input.focus();
                input.setSelectionRange(selectionStart, selectionEnd);
            }
            else if (input.createTextRange) {
                var range = input.createTextRange();
                range.collapse(true);
                range.moveEnd('character', selectionEnd);
                range.moveStart('character', selectionStart);
                range.select();
            }
        }
        //操作结果显示
        function toastrAll(this_infostr, this_titlemsg, type) {
            if (type == "info") {
                toastr.info(this_infostr, this_titlemsg, {
                    positionClass: "toast-top-center",
                    timeOut: 5e3,
                    closeButton: !0,
                    debug: !1,
                    newestOnTop: !0,
                    progressBar: !0,
                    preventDuplicates: !0,
                    onclick: null,
                    showDuration: "300",
                    hideDuration: "1000",
                    extendedTimeOut: "1000",
                    showEasing: "swing",
                    hideEasing: "linear",
                    showMethod: "fadeIn",
                    hideMethod: "fadeOut",
                    tapToDismiss: !1
                });
            } else if (type == "success") {
                toastr.success(this_infostr, this_titlemsg, {
                    positionClass: "toast-top-center",
                    timeOut: 5e3,
                    closeButton: !0,
                    debug: !1,
                    newestOnTop: !0,
                    progressBar: !0,
                    preventDuplicates: !0,
                    onclick: null,
                    showDuration: "300",
                    hideDuration: "1000",
                    extendedTimeOut: "1000",
                    showEasing: "swing",
                    hideEasing: "linear",
                    showMethod: "fadeIn",
                    hideMethod: "fadeOut",
                    tapToDismiss: !1
                });
            } else if (type == "error") {
                toastr.error(this_infostr, this_titlemsg, {
                    positionClass: "toast-top-center",
                    timeOut: 5e3,
                    closeButton: !0,
                    debug: !1,
                    newestOnTop: !0,
                    progressBar: !0,
                    preventDuplicates: !0,
                    onclick: null,
                    showDuration: "300",
                    hideDuration: "1000",
                    extendedTimeOut: "1000",
                    showEasing: "swing",
                    hideEasing: "linear",
                    showMethod: "fadeIn",
                    hideMethod: "fadeOut",
                    tapToDismiss: !1
                });
            }
        }
        
    </script>
</body>

</html>