442 lines
		
	
	
		
			11 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			442 lines
		
	
	
		
			11 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
<!DOCTYPE html>
 | 
						|
<html lang="en">
 | 
						|
<head>
 | 
						|
    <meta charset="UTF-8">
 | 
						|
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
 | 
						|
    <title>路径可视化</title>
 | 
						|
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.7.0/styles/default.min.css">
 | 
						|
    <script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.7.0/highlight.min.js"></script>
 | 
						|
    <script>
 | 
						|
        document.addEventListener('DOMContentLoaded', () => {
 | 
						|
            if (window.hljs) {
 | 
						|
                hljs.configure({languages: ['json']});
 | 
						|
            }
 | 
						|
        });
 | 
						|
    </script>
 | 
						|
    <style>
 | 
						|
        body {
 | 
						|
            font-family: Arial, sans-serif;
 | 
						|
            max-width: 1200px;
 | 
						|
            margin: 0 auto;
 | 
						|
            padding: 20px;
 | 
						|
        }
 | 
						|
 | 
						|
        .search-container {
 | 
						|
            display: flex;
 | 
						|
            gap: 10px;
 | 
						|
            margin-bottom: 20px;
 | 
						|
        }
 | 
						|
 | 
						|
        #urlSearch {
 | 
						|
            flex: 1;
 | 
						|
            padding: 10px;
 | 
						|
            font-size: 16px;
 | 
						|
        }
 | 
						|
 | 
						|
        #randomUrl {
 | 
						|
            padding: 5px 10px;
 | 
						|
            background-color: #1976d2;
 | 
						|
            color: white;
 | 
						|
            border: none;
 | 
						|
            border-radius: 4px;
 | 
						|
            cursor: pointer;
 | 
						|
        }
 | 
						|
 | 
						|
        #randomUrl:hover {
 | 
						|
            background-color: #1565c0;
 | 
						|
        }
 | 
						|
 | 
						|
        .path-container {
 | 
						|
            margin-bottom: 40px;
 | 
						|
        }
 | 
						|
 | 
						|
        .screenshot-container {
 | 
						|
            position: relative;
 | 
						|
            display: inline-block;
 | 
						|
            margin: 10px;
 | 
						|
        }
 | 
						|
 | 
						|
        .bounding-box {
 | 
						|
            position: absolute;
 | 
						|
            border: 2px solid red;
 | 
						|
            pointer-events: none;
 | 
						|
        }
 | 
						|
 | 
						|
        .navigation {
 | 
						|
            text-align: center;
 | 
						|
            margin-top: 20px;
 | 
						|
        }
 | 
						|
 | 
						|
        .navigation button {
 | 
						|
            padding: 10px 20px;
 | 
						|
            margin: 0 10px;
 | 
						|
            font-size: 16px;
 | 
						|
        }
 | 
						|
 | 
						|
        .path-info {
 | 
						|
            margin: 10px 0;
 | 
						|
            padding: 5px;
 | 
						|
            background-color: #e8e8e8;
 | 
						|
            border-radius: 4px;
 | 
						|
        }
 | 
						|
 | 
						|
        .current-url {
 | 
						|
            font-weight: bold;
 | 
						|
            margin-bottom: 20px;
 | 
						|
        }
 | 
						|
 | 
						|
        .screenshot-container img {
 | 
						|
            max-width: 80%;
 | 
						|
            height: auto;
 | 
						|
            cursor: pointer;
 | 
						|
        }
 | 
						|
 | 
						|
        .modal {
 | 
						|
            display: none;
 | 
						|
            position: fixed;
 | 
						|
            top: 0;
 | 
						|
            left: 0;
 | 
						|
            width: 100%;
 | 
						|
            height: 100%;
 | 
						|
            background-color: rgba(0, 0, 0, 0.9);
 | 
						|
            z-index: 1000;
 | 
						|
            overflow: auto;
 | 
						|
        }
 | 
						|
 | 
						|
        .modal-content {
 | 
						|
            position: relative;
 | 
						|
            margin: auto;
 | 
						|
            padding: 20px;
 | 
						|
            text-align: center;
 | 
						|
        }
 | 
						|
 | 
						|
        .modal-image-container {
 | 
						|
            position: relative;
 | 
						|
            display: inline-block;
 | 
						|
            cursor: move;
 | 
						|
        }
 | 
						|
 | 
						|
        .modal img {
 | 
						|
            max-width: 90vw;
 | 
						|
            max-height: 90vh;
 | 
						|
            transform-origin: center;
 | 
						|
            user-select: none;
 | 
						|
        }
 | 
						|
 | 
						|
        .zoom-controls {
 | 
						|
            position: fixed;
 | 
						|
            bottom: 20px;
 | 
						|
            left: 50%;
 | 
						|
            transform: translateX(-50%);
 | 
						|
            background: rgba(255, 255, 255, 0.8);
 | 
						|
            padding: 10px;
 | 
						|
            border-radius: 5px;
 | 
						|
        }
 | 
						|
 | 
						|
        .zoom-controls button {
 | 
						|
            margin: 0 5px;
 | 
						|
            padding: 5px 10px;
 | 
						|
        }
 | 
						|
 | 
						|
        .length-selector {
 | 
						|
            position: absolute;
 | 
						|
            top: 20px;
 | 
						|
            right: 20px;
 | 
						|
            z-index: 100;
 | 
						|
        }
 | 
						|
        
 | 
						|
        .length-selector select {
 | 
						|
            padding: 5px;
 | 
						|
            font-size: 14px;
 | 
						|
            border-radius: 4px;
 | 
						|
        }
 | 
						|
 | 
						|
        .step-container {
 | 
						|
            margin: 20px 0;
 | 
						|
            padding: 15px;
 | 
						|
            background-color: #f5f5f5;
 | 
						|
            border-radius: 8px;
 | 
						|
            border: 1px solid #ddd;
 | 
						|
        }
 | 
						|
 | 
						|
        .step-header {
 | 
						|
            margin-bottom: 10px;
 | 
						|
            font-weight: bold;
 | 
						|
        }
 | 
						|
 | 
						|
        .step-url {
 | 
						|
            color: #0066cc;
 | 
						|
            margin-bottom: 10px;
 | 
						|
            word-break: break-all;
 | 
						|
        }
 | 
						|
 | 
						|
        .screenshot-path {
 | 
						|
            font-family: monospace;
 | 
						|
            color: #666;
 | 
						|
            margin: 10px 0;
 | 
						|
            padding: 5px;
 | 
						|
            background-color: #f8f8f8;
 | 
						|
            border-radius: 4px;
 | 
						|
            word-break: break-all;
 | 
						|
            display: flex;
 | 
						|
            align-items: center;
 | 
						|
            justify-content: space-between;
 | 
						|
        }
 | 
						|
 | 
						|
        .download-btn {
 | 
						|
            margin-left: 10px;
 | 
						|
            padding: 5px 10px;
 | 
						|
            background-color: #1976d2;
 | 
						|
            color: white;
 | 
						|
            border: none;
 | 
						|
            border-radius: 4px;
 | 
						|
            cursor: pointer;
 | 
						|
            font-size: 14px;
 | 
						|
        }
 | 
						|
 | 
						|
        .download-btn:hover {
 | 
						|
            background-color: #1565c0;
 | 
						|
        }
 | 
						|
 | 
						|
        .path-thumbnails {
 | 
						|
            display: flex;
 | 
						|
            gap: 10px;
 | 
						|
            padding: 15px;
 | 
						|
            margin-bottom: 20px;
 | 
						|
            background-color: #f5f5f5;
 | 
						|
            border-radius: 8px;
 | 
						|
            overflow-x: auto;
 | 
						|
            white-space: nowrap;
 | 
						|
        }
 | 
						|
 | 
						|
        .thumbnail-container {
 | 
						|
            position: relative;
 | 
						|
            display: inline-block;
 | 
						|
            border: 2px solid #ddd;
 | 
						|
            border-radius: 4px;
 | 
						|
            padding: 2px;
 | 
						|
            background: white;
 | 
						|
        }
 | 
						|
 | 
						|
        .thumbnail-image {
 | 
						|
            height: 100px;
 | 
						|
            width: auto;
 | 
						|
            object-fit: contain;
 | 
						|
            cursor: pointer;
 | 
						|
            transition: transform 0.2s;
 | 
						|
        }
 | 
						|
 | 
						|
        .thumbnail-image:hover {
 | 
						|
            transform: scale(1.05);
 | 
						|
        }
 | 
						|
 | 
						|
        .thumbnail-step-label {
 | 
						|
            position: absolute;
 | 
						|
            top: -10px;
 | 
						|
            left: -10px;
 | 
						|
            background-color: #1976d2;
 | 
						|
            color: white;
 | 
						|
            padding: 2px 6px;
 | 
						|
            border-radius: 50%;
 | 
						|
            font-size: 12px;
 | 
						|
            z-index: 1;
 | 
						|
        }
 | 
						|
 | 
						|
        /* 适配横向滚动 */
 | 
						|
        .path-thumbnails::-webkit-scrollbar {
 | 
						|
            height: 8px;
 | 
						|
        }
 | 
						|
 | 
						|
        .path-thumbnails::-webkit-scrollbar-track {
 | 
						|
            background: #f1f1f1;
 | 
						|
            border-radius: 4px;
 | 
						|
        }
 | 
						|
 | 
						|
        .path-thumbnails::-webkit-scrollbar-thumb {
 | 
						|
            background: #888;
 | 
						|
            border-radius: 4px;
 | 
						|
        }
 | 
						|
 | 
						|
        .path-thumbnails::-webkit-scrollbar-thumb:hover {
 | 
						|
            background: #555;
 | 
						|
        }
 | 
						|
 | 
						|
        .url-count {
 | 
						|
            margin-top: 5px;
 | 
						|
            padding: 5px 10px;
 | 
						|
            background-color: #f0f0f0;
 | 
						|
            border-radius: 4px;
 | 
						|
            font-size: 14px;
 | 
						|
            color: #333;
 | 
						|
            text-align: center;
 | 
						|
            border: 1px solid #ddd;
 | 
						|
        }
 | 
						|
 | 
						|
        .request-id-container {
 | 
						|
            margin: 10px 0;
 | 
						|
            display: flex;
 | 
						|
            align-items: center;
 | 
						|
            flex-wrap: wrap;
 | 
						|
            gap: 10px;
 | 
						|
        }
 | 
						|
 | 
						|
        .view-btn {
 | 
						|
            padding: 5px 10px;
 | 
						|
            background-color: #4CAF50;
 | 
						|
            color: white;
 | 
						|
            border: none;
 | 
						|
            border-radius: 4px;
 | 
						|
            cursor: pointer;
 | 
						|
            font-size: 14px;
 | 
						|
        }
 | 
						|
 | 
						|
        .view-btn:hover {
 | 
						|
            background-color: #45a049;
 | 
						|
        }
 | 
						|
 | 
						|
        .json-modal-content {
 | 
						|
            width: 80%;
 | 
						|
            max-width: 1000px;
 | 
						|
            max-height: 80vh;
 | 
						|
            overflow: auto;
 | 
						|
            background-color: white;
 | 
						|
            padding: 20px;
 | 
						|
            border-radius: 8px;
 | 
						|
            position: relative;
 | 
						|
        }
 | 
						|
 | 
						|
        .json-content {
 | 
						|
            background-color: #f5f5f5;
 | 
						|
            padding: 15px;
 | 
						|
            border-radius: 5px;
 | 
						|
            overflow: auto;
 | 
						|
            max-height: 60vh;
 | 
						|
            font-family: monospace;
 | 
						|
            white-space: pre-wrap;
 | 
						|
            word-break: break-all;
 | 
						|
            text-align: left;
 | 
						|
        }
 | 
						|
 | 
						|
        .close-btn {
 | 
						|
            position: absolute;
 | 
						|
            top: 10px;
 | 
						|
            right: 15px;
 | 
						|
            font-size: 24px;
 | 
						|
            font-weight: bold;
 | 
						|
            color: #333;
 | 
						|
            cursor: pointer;
 | 
						|
        }
 | 
						|
 | 
						|
        .close-btn:hover {
 | 
						|
            color: #000;
 | 
						|
        }
 | 
						|
 | 
						|
        .hljs {
 | 
						|
            background: #f5f5f5;
 | 
						|
            padding: 15px;
 | 
						|
            border-radius: 5px;
 | 
						|
        }
 | 
						|
 | 
						|
        .task-extract-container {
 | 
						|
            margin-bottom: 20px;
 | 
						|
            padding: 15px;
 | 
						|
            background-color: #f5f5f5;
 | 
						|
            border-radius: 5px;
 | 
						|
            border-left: 4px solid #4CAF50;
 | 
						|
        }
 | 
						|
 | 
						|
        .text-label {
 | 
						|
            font-weight: bold;
 | 
						|
            margin-bottom: 5px;
 | 
						|
            color: #333;
 | 
						|
        }
 | 
						|
 | 
						|
        .task-description, .process-description {
 | 
						|
            margin-bottom: 15px;
 | 
						|
            padding: 8px;
 | 
						|
            background-color: white;
 | 
						|
            border-radius: 3px;
 | 
						|
            border: 1px solid #ddd;
 | 
						|
        }
 | 
						|
 | 
						|
        .tab-container {
 | 
						|
            margin-bottom: 10px;
 | 
						|
            border-bottom: 1px solid #ccc;
 | 
						|
        }
 | 
						|
 | 
						|
        .tab-button {
 | 
						|
            background-color: #f1f1f1;
 | 
						|
            border: none;
 | 
						|
            padding: 8px 16px;
 | 
						|
            cursor: pointer;
 | 
						|
            transition: 0.3s;
 | 
						|
        }
 | 
						|
 | 
						|
        .tab-button:hover {
 | 
						|
            background-color: #ddd;
 | 
						|
        }
 | 
						|
 | 
						|
        .tab-button.active {
 | 
						|
            background-color: #ccc;
 | 
						|
        }
 | 
						|
 | 
						|
        .axtree-content {
 | 
						|
            max-height: 70vh;
 | 
						|
            overflow: auto;
 | 
						|
            white-space: pre-wrap;
 | 
						|
            font-family: monospace;
 | 
						|
            background-color: #f5f5f5;
 | 
						|
            padding: 10px;
 | 
						|
            border: 1px solid #ddd;
 | 
						|
        }
 | 
						|
    </style>
 | 
						|
</head>
 | 
						|
<body>
 | 
						|
    <div class="length-selector">
 | 
						|
        <select id="pathLength">
 | 
						|
            <option value="1">长度: 1</option>
 | 
						|
            <option value="2">长度: 2</option>
 | 
						|
            <option value="3">长度: 3</option>
 | 
						|
            <option value="4">长度: 4</option>
 | 
						|
            <option value="5">长度: 5</option>
 | 
						|
            <option value="6">长度: 6</option>
 | 
						|
            <option value="7">长度: 7</option>
 | 
						|
            <option value="8">长度: 8</option>
 | 
						|
            <option value="9">长度: 9</option>
 | 
						|
            <option value="10">长度: 10</option>
 | 
						|
        </select>
 | 
						|
    </div>
 | 
						|
 | 
						|
    <div class="search-container">
 | 
						|
        <input type="text" id="urlSearch" placeholder="搜索URL...">
 | 
						|
        <button id="randomUrl">Random URL</button>
 | 
						|
    </div>
 | 
						|
 | 
						|
    <div class="current-url" id="currentUrl"></div>
 | 
						|
    <div id="pathsContainer"></div>
 | 
						|
 | 
						|
    <div class="navigation">
 | 
						|
        <button id="prevBtn">上一页</button>
 | 
						|
        <button id="nextBtn">下一页</button>
 | 
						|
    </div>
 | 
						|
 | 
						|
    <!-- 添加模态框 -->
 | 
						|
    <div id="imageModal" class="modal">
 | 
						|
        <div class="modal-content">
 | 
						|
            <div class="modal-image-container">
 | 
						|
                <img id="modalImage">
 | 
						|
                <div id="modalBoundingBox" class="bounding-box"></div>
 | 
						|
            </div>
 | 
						|
        </div>
 | 
						|
        <div class="zoom-controls">
 | 
						|
            <button id="zoomIn">放大 (+)</button>
 | 
						|
            <button id="zoomReset">重置</button>
 | 
						|
            <button id="zoomOut">缩小 (-)</button>
 | 
						|
            <button id="closeModal">关闭</button>
 | 
						|
        </div>
 | 
						|
    </div>
 | 
						|
 | 
						|
    <script src="show_path.js"></script>
 | 
						|
</body>
 | 
						|
</html>
 |