MonkeyJuice commited on
Commit
07904cb
·
verified ·
1 Parent(s): a83750e

Update head.html

Browse files
Files changed (1) hide show
  1. head.html +2 -87
head.html CHANGED
@@ -1,87 +1,2 @@
1
- <style>
2
- .m5dd_list {
3
- display: flex;
4
- cursor: pointer;
5
- font-size: 1.2em;
6
- padding: .5em;
7
- user-select: none;
8
- }
9
- .m5dd_list>span.label {
10
- flex: 1;
11
- padding: 0 .5em;
12
- }
13
-
14
- .m5dd_list>span.prob {
15
- color: #aaa;
16
- padding: 0 .5em;
17
- }
18
-
19
- .m5dd_list:nth-child(even) { background: #ECEDF0; }
20
- .dark .m5dd_list:nth-child(even) { background: #1F2937; }
21
-
22
- .m5dd_list:not(.use)>span.label {
23
- text-decoration: line-through;
24
- color: #ccc;
25
- }
26
-
27
- .m5dd_image .upload-container .image-frame {
28
- height: 20em;
29
- }
30
-
31
- .m5dd_image .upload-container .image-frame {
32
- height: 20em;
33
- }
34
- .m5dd_image2 .image-container {
35
- height: 20em;
36
- }
37
- .m5dd_html{
38
- min-height: 6em;
39
- }
40
- </style>
41
-
42
- <script>
43
- document.addEventListener('click', function (event) {
44
- let tagItem = event.target.closest('.m5dd_list')
45
- let resultArea = event.target.closest('#m5dd_result')
46
- if (tagItem) {
47
- let labelItem = event.target.closest('span.label')
48
- let upItem = event.target.closest('span.up')
49
- let downItem = event.target.closest('span.down')
50
- let addItem = event.target.closest('span.add')
51
- let decItem = event.target.closest('span.dec')
52
- let actionItem = event.target.closest('span.action')
53
- if (labelItem) {
54
- if (tagItem.classList.contains('use')) {
55
- tagItem.classList.remove('use')
56
- } else {
57
- tagItem.classList.add('use')
58
- }
59
- }
60
- if (upItem) { }
61
- if (downItem) { }
62
- if (addItem) {
63
- let label = tagItem.querySelector('span.label').innerText
64
- tagItem.querySelector('span.label').innerText = `(${label})`
65
- }
66
- if (decItem) {
67
- let label = tagItem.querySelector('span.label').innerText
68
- label = label.replace(/^\s*\(\s*(.+?)\s*\)\s*$/, '$1')
69
- tagItem.querySelector('span.label').innerText = label
70
- }
71
- if (actionItem) {
72
- document.getElementById('m5dd_result').innerText =
73
- Array.from(document.querySelectorAll('.m5dd_list.use>span.label'))
74
- .map(v => v.innerText)
75
- .join(', ')
76
- }
77
- } else if (resultArea) {
78
- const selection = window.getSelection()
79
- selection.removeAllRanges()
80
- const range = document.createRange()
81
- range.selectNodeContents(resultArea)
82
- selection.addRange(range)
83
- } else {
84
- return
85
- }
86
- })
87
- </script>
 
1
+ <link rel="stylesheet" href="https://cdn.miaowm5.com/neet/deepdanbooru/styles.css" />
2
+ <script src="https://cdn.miaowm5.com/neet/deepdanbooru/scripts.js" defer></script>