xiangpei
2024-10-08 2b6afe2654aeddee64eaf0f5213adbb5032ce200
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
<!DOCTYPE html>
<head>
    <title></title>
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
    <script type="text/javascript" src="../internal.js?04dbe7f0"></script>
    <style type="text/css">
        .wrapper {
            width: 600px;
            padding: 10px;
            height: 352px;
            overflow: hidden;
            position: relative;
            border-bottom: 1px solid #d7d7d7;
        }
 
        .wrapper .file-upload {
            display: flex;
            align-items: center;
        }
 
        .wrapper .file-upload .file-tip {
            color: #999;
            font-size: 12px;
            padding-left: 10px;
            flex-grow: 1;
        }
 
        .wrapper .file-manual {
            background: #EEE;
            padding: 10px;
            border-radius: 5px;
            margin-top: 10px;
            line-height: 2;
        }
 
        .wrapper .file-manual .title {
            font-weight: bold;
            font-size: 120%;
        }
 
        .wrapper .file-manual .body {
        }
 
        .wrapper .file-manual .body li {
            list-style: disc;
            margin-left: 20px;
        }
 
        .wrapper .upload-button {
            width: 100px;
            height: 30px;
            background-color: #F8F8F8;
            border: 1px solid #EEE;
            border-radius: 4px;
            text-align: center;
            line-height: 28px;
            cursor: pointer;
            position: relative;
            flex-shrink: 0;
            margin-right: 5px;
        }
 
        .wrapper .upload-button .text {
            display: inline-block;
            vertical-align: middle;
        }
 
        .wrapper .upload-button input {
            position: absolute;
            left: 0;
            top: 0;
            opacity: 0;
            cursor: pointer;
            height: 100%;
            width: 100%;
        }
 
        .wrapper .file-result {
            border: 1px solid #333;
            padding: 10px;
            border-radius: 5px;
            position: absolute;
            left: 10px;
            right: 10px;
            top: 50px;
            background: #FFF;
            bottom: 10px;
            overflow: auto;
            display: none;
        }
        .wrapper .file-input{
            position: absolute;
            left: 10px;
            right: 10px;
            top: 50px;
            background: #EEE;
            bottom: 10px;
            border-radius: 5px;
            display:none;
        }
        .wrapper .file-input textarea{
            position: absolute;
            left: 10px;
            right: 10px;
            bottom: 10px;
            border: none;
            resize: none;
            border-radius: 5px;
            padding: 5px;
            outline: none;
            top: 30px;
        }
        .wrapper .file-input .tool{
            text-align: right;
            padding: 5px 10px;
        }
        .wrapper .file-input .tool a{
            display: inline-block;
            text-decoration: none;
            color: #333;
            background: #FFF;
            padding: 0 10px;
            line-height: 20px;
            border-radius: 3px;
        }
    </style>
</head>
<body>
<div class="wrapper">
    <div class="file-upload">
        <div class="upload-button">
            <div class="text">选择本地文件</div>
            <input type="file" id="contentImport"/>
        </div>
        <div class="upload-button">
            <div class="text" onclick="$('.file-input').show();">粘贴Markdown</div>
        </div>
        <div class="file-tip"></div>
    </div>
    <div class="file-manual">
        <div class="title">
            支持文档格式
        </div>
        <div class="body">
            <ul>
                <li><b>Word</b>:docx</li>
                <li><b>Markdown</b>:md</li>
            </ul>
        </div>
    </div>
    <div class="file-result"></div>
    <div class="file-input">
        <textarea id="fileInputContent"></textarea>
        <div class="tool">
            <a href="javascript:;" id="fileInputConfirm">
                确定
            </a>
            <a href="javascript:;" onclick="$(this).closest('.file-input').hide();">
                关闭
            </a>
        </div>
    </div>
</div>
<script src="../../third-party/jquery-1.10.2.js?25f4b625"></script>
<script src="mammoth.browser.min.js?109831e5"></script>
<script src="showdown.min.js?a1c1e879"></script>
<script type="text/javascript" src="contentimport.js?100d2e1a"></script>
<script type="text/javascript">
    utils.domReady(function () {
        var options = {};
        var callbacks = {};
        contentImport.init(options, callbacks);
    });
</script>
</body>
</html>