原生js+css实现本地多个js文件合并混淆成一个js文件代码
代码语言:html
所属分类:其他
代码描述:原生js+css实现本地多个js文件合并混淆成一个js文件代码
代码标签: 原生 js css 本地 多个 js 文件 合并 混淆 一个 代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>JS代码合并与混淆工具 Pro (修复版)</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 50%, #0f0f1a 100%);
min-height: 100vh;
color: #e0e0e0;
padding: 20px;
}
.container {
max-width: 1600px;
margin: 0 auto;
}
header {
text-align: center;
margin-bottom: 30px;
padding: 20px;
background: rgba(0, 217, 255, 0.05);
border-radius: 15px;
border: 1px solid rgba(0, 217, 255, 0.2);
}
h1 {
background: linear-gradient(90deg, #00d9ff, #00ff88, #00d9ff);
background-size: 200% auto;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
font-size: 2.2em;
animation: shine 3s linear infinite;
}
@keyframes shine {
to { background-position: 200% center; }
}
.subtitle {
color: #888;
margin-top: 10px;
}
.main-grid {
display: grid;
grid-template-columns: 350px 1fr 1fr;
gap: 20px;
}
@media (max-width: 1200px) {
.main-grid {
grid-template-columns: 1fr;
}
}
.panel {
background: rgba(20, 20, 35, 0.9);
border-radius: 12px;
border: 1px solid rgba(255, 255, 255, 0.08);
overflow: hidden;
}
.panel-header {
padding: 15px 20px;
background: rgba(0, 217, 255, 0.1);
border-bottom: 1px solid rgba(255, 255, 255, 0.08);
display: flex;
justify-content: space-between;
align-items: center;
}
.panel-title {
font-size: 1.1em;
color: #00d9ff;
display: flex;
align-items: center;
gap: 8px;
}
.panel-body {
padding: 15px;
max-height: calc(100vh - 250px);
overflow-y: auto;
}
.btn {
padding: 8px 16px;
border: none;
border-radius: 6px;
cursor: pointer;
font-size: 13px;
font-weight: 500;
transition: all 0.2s ease;
display: inline-flex;
align-items: center;
gap: 6px;
}
.btn:hover {
transform: translateY(-1px);
}
.btn:active {
transform: translateY(0);
}
.btn-primary {
background: linear-gradient(135deg, #00d9ff, #0099cc);
color: #fff;
}
.btn-success {
background: linear-gradient(135deg, #00ff88, #00cc6a);
color: #000;
}
.btn-warning {
background: linear-gradient(135deg, #ffc107, #ff9800);
color: #000;
}
.btn-danger {
background: linear-gradient(135deg, #ff4757, #c0392b);
color: #fff;
}
.btn-ghost {
background: transparent;
border: 1px solid rgba(255, 255, 255, 0.2);
color: #aaa;
}
.btn-ghost:hover {
border-color: #00d9ff;
color: #00d9ff;
}
.btn-sm {
padding: 5px 10px;
font-size: 12px;
}
.btn-lg {
padding: 12px 24px;
font-size: 15px;
}
/* 文件上传区域 */
.upload-zone {
border: 2px dashed rgba(0, 217, 255, 0.3);
border-radius: 10px;
padding: 30px;
text-align: center;
transition: all 0.3s ease;
cursor: pointer;
margin-bottom: 15px;
}
.upload-zone:hover,
.upload-zone.dragover {
border-color: #00d9ff;
background: rgba(0, 217, 255, 0.05);
}
.upload-zone input {
display: none;
}
.upload-icon {
font-size: 40px;
margin-bottom: 10px;
}
.upload-text {
color: #888;
font-size: 14px;
}
.upload-hint {
color: #666;
font-size: 12px;
margin-top: 8px;
}
/* 文件列表 */
.file-list {
margin-top: 10px;
}
.file-item {
display: flex;
align-items: center;
padding: 10px 12px;
background: rgba(0, 0, 0, 0.3);
border-radius: 8px;
margin-bottom: 8px;
border: 1px solid rgba(255, 255, 255, 0.05);
transition: all 0.2s ease;
cursor: grab;
}
.file-item:hover {
border-color: rgba(0, 217, 255, 0.3);
}
.file-item.dragging {
opacity: 0.5;
transform: scale(1.02);
}
.file-item.drag-over {
border-color: #00ff88;
background: rgba(0, 255, 136, 0.1);
}
.file-order {
width: 24px;
height: 24px;
background: #00d9ff;
color: #000;
border-radius: 50%;
display: flex;
align-items.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0