浏览代码

update

master
jfinn 4 年前
父节点
当前提交
7fe4509b96

+ 111
- 3
i4/lobby.js 查看文件

21
 	clog("This is lobby2")
21
 	clog("This is lobby2")
22
 var mod_path ="ign/rf/i4m/"
22
 var mod_path ="ign/rf/i4m/"
23
 
23
 
24
-mtx_2 ={	
24
+var mtx_2 ={	
25
 	// js:["ign/m/timer/m.js","ign/m/timer/m0.js"],
25
 	// js:["ign/m/timer/m.js","ign/m/timer/m0.js"],
26
 	js:[`${mod_path}m0.js`,`${mod_path}m.js`,],
26
 	js:[`${mod_path}m0.js`,`${mod_path}m.js`,],
27
 	css:[`${mod_path}m.css`],
27
 	css:[`${mod_path}m.css`],
38
 	// clog("This is lobby2")
38
 	// clog("This is lobby2")
39
 var mod_path ="ign/rf/i4n/"
39
 var mod_path ="ign/rf/i4n/"
40
 
40
 
41
-mtx_2 ={	
41
+var mtx_2 ={	
42
 	// js:["ign/m/timer/m.js","ign/m/timer/m0.js"],
42
 	// js:["ign/m/timer/m.js","ign/m/timer/m0.js"],
43
-	js:[`${mod_path}m0.js`,`${mod_path}m.js`,],
43
+	js:[
44
+	`${mod_path}m0.js`,
45
+	`${mod_path}m.js`,
46
+	`${mod_path}popup_template.js`,
47
+	],
44
 	css:[`${mod_path}m.css`],
48
 	css:[`${mod_path}m.css`],
45
 	html:[{url:`${mod_path}m.html`,diffH:get_cui_html,success:html_rld_cb4,success_js:"html_js_handler_not_lobby"}]
49
 	html:[{url:`${mod_path}m.html`,diffH:get_cui_html,success:html_rld_cb4,success_js:"html_js_handler_not_lobby"}]
46
 	}
50
 	}
51
 
55
 
52
 }
56
 }
53
 
57
 
58
+function svg_dev() {
59
+	// body...
60
+	// clog("This is lobby2")
61
+var mod_path ="ign/rf/svg_dev/"
62
+
63
+var mtx_2 ={	
64
+	// js:["ign/m/timer/m.js","ign/m/timer/m0.js"],
65
+	js:[
66
+	// `${mod_path}m0.js`,
67
+	`${mod_path}m.js`,],
68
+	css:[`${mod_path}m.css`],
69
+	html:[
70
+	{url:`${mod_path}m.html`,diffH:get_cui_html,success:html_rld_cb4,success_js:"html_js_handler_svg"},
71
+	// C:\bspace\repos\jc4\ign4\rf\img\full-frame.svg
72
+	{url:`ign/rf/img/full-frame.svg`,diffH:get_cui_html,success:html_rld_cb4,success_js:"svg_icon_handler"},
73
+	{url:`ign/rf/img/full-frame_24.svg`,diffH:get_cui_html,success:html_rld_cb4,success_js:"svg_icon_handler2"},
74
+	]
75
+	}
76
+
77
+	setTimeout(add_module,300,mtx_2)
78
+
79
+
80
+
81
+}
82
+
83
+function ovf_vid() {
84
+	// body...
85
+	// clog("This is lobby2")
86
+var mod_path ="ign/rf/ovf_vid/"
87
+
88
+var mtx_2 ={	
89
+	// js:["ign/m/timer/m.js","ign/m/timer/m0.js"],
90
+	js:[
91
+	// `${mod_path}m0.js`,
92
+	`${mod_path}n.js`,],
93
+	css:[`${mod_path}n.css`],
94
+	html:[
95
+	{url:`${mod_path}n.html`,diffH:get_cui_html,success:html_rld_cb4,success_js:"html_js_handler_ovf_vid"},
96
+	// C:\bspace\repos\jc4\ign4\rf\img\full-frame.svg
97
+	// {url:`ign/rf/img/full-frame.svg`,diffH:get_cui_html,success:html_rld_cb4,success_js:"svg_icon_handler"},
98
+	// {url:`ign/rf/img/full-frame_24.svg`,diffH:get_cui_html,success:html_rld_cb4,success_js:"svg_icon_handler2"},
99
+	]
100
+	}
101
+
102
+	setTimeout(add_module,300,mtx_2)
103
+
104
+
105
+
106
+}
107
+
108
+
109
+function ui_msg() {
110
+	// body...
111
+	// clog("This is lobby2")
112
+var mod_path ="ign/rf/ui_msg/"
113
+var n ="r"
114
+
115
+var mtx_2 ={	
116
+	// js:["ign/m/timer/m.js","ign/m/timer/m0.js"],
117
+	js:[
118
+	// `${mod_path}m0.js`,
119
+	`${mod_path}${n}.js`,],
120
+	css:[`${mod_path}${n}.css`],
121
+	html:[
122
+	{url:`${mod_path}${n}.html`,diffH:get_cui_html,success:html_rld_cb4,success_js:"html_js_handler_ui_msg"},
123
+	// C:\bspace\repos\jc4\ign4\rf\img\full-frame.svg
124
+	// {url:`ign/rf/img/full-frame.svg`,diffH:get_cui_html,success:html_rld_cb4,success_js:"svg_icon_handler"},
125
+	// {url:`ign/rf/img/full-frame_24.svg`,diffH:get_cui_html,success:html_rld_cb4,success_js:"svg_icon_handler2"},
126
+	]
127
+	}
128
+
129
+	setTimeout(add_module,300,mtx_2)
130
+
131
+
132
+
133
+}
134
+
135
+
136
+function ui_svg() {
137
+	// body...
138
+	// clog("This is lobby2")
139
+var mod_path ="ign/rf/ui_msg/"
140
+var n ="r"
141
+
142
+var mtx_2 ={	
143
+	// js:["ign/m/timer/m.js","ign/m/timer/m0.js"],
144
+	// js:[
145
+	// `${mod_path}m0.js`,
146
+	// `${mod_path}${n}.js`,],
147
+	// css:[`${mod_path}${n}.css`],
148
+	html:[
149
+	// {url:`${mod_path}${n}.html`,diffH:get_cui_html,success:html_rld_cb4,success_js:"html_js_handler_ui_msg"},
150
+	{url:`react/features/base/icons/svg/close.svg`,diffH:get_cui_html,success:html_rld_cb4,success_js:"html_js_handler_ui_msg"},
151
+	// C:\bspace\repos\jc4\ign4\rf\img\full-frame.svg
152
+	// {url:`ign/rf/img/full-frame.svg`,diffH:get_cui_html,success:html_rld_cb4,success_js:"svg_icon_handler"},
153
+	// {url:`ign/rf/img/full-frame_24.svg`,diffH:get_cui_html,success:html_rld_cb4,success_js:"svg_icon_handler2"},
154
+	]
155
+	}
156
+
157
+	setTimeout(add_module,300,mtx_2)
54
 
158
 
55
 
159
 
56
 
160
 
161
+}
57
 
162
 
58
 
163
 
59
 
164
 
60
 if (location.pathname.endsWith("/")){
165
 if (location.pathname.endsWith("/")){
61
 insert_lobby()
166
 insert_lobby()
167
+ovf_vid()
62
 } else {
168
 } else {
63
 not_lobby()
169
 not_lobby()
170
+ui_msg()
64
 }
171
 }
172
+svg_dev()
65
 
173
 
66
 
174
 
67
 
175
 

+ 19
- 1
rf/filmstrip_mod/m.js 查看文件

295
 clog("ff_mm")
295
 clog("ff_mm")
296
 glob_dbg.ff.mmc += 1
296
 glob_dbg.ff.mmc += 1
297
 }
297
 }
298
-function toggle_ff(){
298
+function toggle_ff_dflt(){
299
+// function toggle_ff(){
299
     clog("TOGGLEFF")
300
     clog("TOGGLEFF")
300
     // glob_dbg.ytp.playVideo()
301
     // glob_dbg.ytp.playVideo()
301
     // return
302
     // return
312
     dispatch_resize()
313
     dispatch_resize()
313
 
314
 
314
 }
315
 }
316
+// # toggle_ff_dflt
317
+
318
+if (window.toggle_ff_mod){
319
+    window.toggle_ff = toggle_ff_mod
320
+} else {
321
+    window.toggle_ff = toggle_ff_dflt
322
+}
323
+
324
+
325
+
326
+
327
+
328
+
329
+
330
+
331
+
332
+
315
 function allow_autoplay(){
333
 function allow_autoplay(){
316
     glob_dbg.ytp.playVideo()
334
     glob_dbg.ytp.playVideo()
317
     // clog("ALA")
335
     // clog("ALA")

+ 46
- 0
rf/filmstrip_mod/m0.js 查看文件

513
 };
513
 };
514
 
514
 
515
 
515
 
516
+color_palette=[
517
+    "#fff",
518
+    "#ff0",
519
+    "#f0f",
520
+    "#0ff",
521
+    "#f00",
522
+    "#0f0",
523
+    "#00f",
524
+    "#800",
525
+    "#080",
526
+    "#008",
527
+    "#880",
528
+    "#088",
529
+    "#808",
530
+    "#888",
531
+    "#f44",
532
+    "#4f4",
533
+    "#44f",
534
+    // "#44f",
535
+    "#ff4",
536
+    "#4ff",
537
+    "#f4f",
538
+ 
539
+
540
+    "#f84",
541
+    "#8f4",
542
+    "#84f",
543
+    "#f48",
544
+    "#4f8",
545
+    "#48f",
546
+
547
+    "#400",
548
+    "#040",
549
+    "#004",
550
+
551
+    "#440",
552
+    "#044",
553
+    "#404", 
554
+    // "#444",
555
+    // "#444",
556
+    // "#000",
557
+]
558
+
516
 
559
 
517
 function mod_sort(){
560
 function mod_sort(){
518
     var arr = []
561
     var arr = []
566
         // clog(k)
609
         // clog(k)
567
         $(k).css({"--v_index":`"I: ${cnt}"`})
610
         $(k).css({"--v_index":`"I: ${cnt}"`})
568
         $(k).css({"--v_id":`"pseudo_${cnt}"`})
611
         $(k).css({"--v_id":`"pseudo_${cnt}"`})
612
+        // $(k).css({"--v_id2":`"pseudoxxx_${cnt}"`})
613
+        $(k).css({"--v_cpal":color_palette[cnt]})
614
+        $(k).addClass(`pseudo_num_${cnt}`)
569
         parr.push(k)
615
         parr.push(k)
570
         $(k)[0].dataset.v_index = cnt
616
         $(k)[0].dataset.v_index = cnt
571
         cnt += 1
617
         cnt += 1

+ 37
- 0
rf/i4n/m.js 查看文件

99
 	// text_input_template
99
 	// text_input_template
100
 }
100
 }
101
 
101
 
102
+function build_popup_generic(){
103
+	saftly_remove(".plugin_top_v2.popup_root")
104
+	var i,j,k,n
105
+	var pop_root = mod_templates_4n.find(".popup_root")
106
+	n = pop_root[0].outerHTML
107
+
108
+	var ntxt = mod_templates_4n.find(".text_input_template")
109
+	j = $(n)
110
+	// popup_body
111
+	// ntxt
102
 
112
 
113
+	// add_node(ntxt[0].outerHTML,j.find(".popup_body"),"append")
114
+	// j.text("z")
115
+	j.find(".popup_txt").text("the moderator request you turn on your camera")
116
+
117
+	add_node(j,".dev_hook.vspace","append")
118
+
119
+	// text_input_template
120
+}
103
 
121
 
104
 function add_event_callback(j,cb,event){
122
 function add_event_callback(j,cb,event){
105
 	// j.on()
123
 	// j.on()
164
 	saftly_remove(".plugin_top_v2.popup_root")
182
 	saftly_remove(".plugin_top_v2.popup_root")
165
 	add_vid_overlay()
183
 	add_vid_overlay()
166
 	build_popup()
184
 	build_popup()
185
+
186
+	// build_popup_av()
187
+	// show_popup()
167
 }
188
 }
168
 
189
 
169
 
190
 
181
 clog("....")
202
 clog("....")
182
 
203
 
183
 
204
 
205
+
206
+
207
+
208
+
209
+
210
+
211
+
212
+
213
+
214
+
215
+
216
+
217
+
218
+
219
+
220
+

+ 1
- 0
rf/i4n/popup_template.js 查看文件

1
+// C:\bspace\repos\jc4\ign4\rf\i4n\popup_template.js

+ 0
- 0
rf/i4n/popup_tmplt.js 查看文件


+ 67
- 0
rf/img/full-frame.svg 查看文件

1
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
+<!-- Generated by IcoMoon.io -->
3
+
4
+<svg
5
+   xmlns:dc="http://purl.org/dc/elements/1.1/"
6
+   xmlns:cc="http://creativecommons.org/ns#"
7
+   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
8
+   xmlns:svg="http://www.w3.org/2000/svg"
9
+   xmlns="http://www.w3.org/2000/svg"
10
+   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
11
+   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
12
+   version="1.1"
13
+   width="32"
14
+   height="32"
15
+   viewBox="0 0 32 32"
16
+   id="svg6"
17
+   sodipodi:docname="full-frame.svg"
18
+   inkscape:version="0.92.4 (5da689c313, 2019-01-14)">
19
+  <metadata
20
+     id="metadata12">
21
+    <rdf:RDF>
22
+      <cc:Work
23
+         rdf:about="">
24
+        <dc:format>image/svg+xml</dc:format>
25
+        <dc:type
26
+           rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
27
+      </cc:Work>
28
+    </rdf:RDF>
29
+  </metadata>
30
+  <defs
31
+     id="defs10" />
32
+  <sodipodi:namedview
33
+     pagecolor="#ffffff"
34
+     bordercolor="#666666"
35
+     borderopacity="1"
36
+     objecttolerance="10"
37
+     gridtolerance="10"
38
+     guidetolerance="10"
39
+     inkscape:pageopacity="0"
40
+     inkscape:pageshadow="2"
41
+     inkscape:window-width="1280"
42
+     inkscape:window-height="971"
43
+     id="namedview8"
44
+     showgrid="true"
45
+     inkscape:zoom="11.313709"
46
+     inkscape:cx="6.1318021"
47
+     inkscape:cy="20.336523"
48
+     inkscape:window-x="1272"
49
+     inkscape:window-y="-6"
50
+     inkscape:window-maximized="1"
51
+     inkscape:current-layer="g826">
52
+    <inkscape:grid
53
+       type="xygrid"
54
+       id="grid816" />
55
+  </sodipodi:namedview>
56
+  <title
57
+     id="title2">full-frame</title>
58
+  <g
59
+     id="g826"
60
+     transform="matrix(1.0516432,0,0,1.0738255,-0.82681685,-1.1817449)">
61
+    <path
62
+       sodipodi:nodetypes="ccccccccccccccccccccccccccc"
63
+       inkscape:connector-curvature="0"
64
+       id="path4"
65
+       d="m 20.754964,6.688 8.558036,0 0,6.51875 h -2.852679 v -3.725 h -5.705357 z m 5.705357,15.83125 v -3.725 H 29.313 l 0,6.51875 -8.558036,0 -4e-6,-2.79375 z M 2.688,6.688 l 8.558036,0 4e-6,2.79375 H 5.5406785 v 3.725 H 2.6879999 m 2.8526786,5.5875 v 3.725 H 11.246036 V 25.313 H 2.688 l -1e-7,-6.51875 z" />
66
+  </g>
67
+</svg>

+ 60
- 0
rf/img/full-frame0.svg 查看文件

1
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
+<!-- Generated by IcoMoon.io -->
3
+
4
+<svg
5
+   xmlns:dc="http://purl.org/dc/elements/1.1/"
6
+   xmlns:cc="http://creativecommons.org/ns#"
7
+   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
8
+   xmlns:svg="http://www.w3.org/2000/svg"
9
+   xmlns="http://www.w3.org/2000/svg"
10
+   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
11
+   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
12
+   version="1.1"
13
+   width="32"
14
+   height="32"
15
+   viewBox="0 0 32 32"
16
+   id="svg6"
17
+   sodipodi:docname="full-frame0.svg"
18
+   inkscape:version="0.92.4 (5da689c313, 2019-01-14)">
19
+  <metadata
20
+     id="metadata12">
21
+    <rdf:RDF>
22
+      <cc:Work
23
+         rdf:about="">
24
+        <dc:format>image/svg+xml</dc:format>
25
+        <dc:type
26
+           rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
27
+        <dc:title>full-screen</dc:title>
28
+      </cc:Work>
29
+    </rdf:RDF>
30
+  </metadata>
31
+  <defs
32
+     id="defs10" />
33
+  <sodipodi:namedview
34
+     pagecolor="#ffffff"
35
+     bordercolor="#666666"
36
+     borderopacity="1"
37
+     objecttolerance="10"
38
+     gridtolerance="10"
39
+     guidetolerance="10"
40
+     inkscape:pageopacity="0"
41
+     inkscape:pageshadow="2"
42
+     inkscape:window-width="1280"
43
+     inkscape:window-height="971"
44
+     id="namedview8"
45
+     showgrid="false"
46
+     inkscape:zoom="14.75"
47
+     inkscape:cx="6.224086"
48
+     inkscape:cy="26.719107"
49
+     inkscape:window-x="1272"
50
+     inkscape:window-y="-6"
51
+     inkscape:window-maximized="1"
52
+     inkscape:current-layer="svg6" />
53
+  <title
54
+     id="title2">full-screen</title>
55
+  <path
56
+     d="m 20.688,6.688 h 8.625 v 6.625 h -2.625 v -4 h -6 z m 6,16 v -4 h 2.625 v 6.625 h -8.625 v -2.625 z m -24,-9.375 V 6.688 h 8.625 v 2.625 h -6 v 4 z m 2.625,5.375 v 4 h 6 v 2.625 H 2.688 v -6.625 z"
57
+     id="path4"
58
+     inkscape:connector-curvature="0"
59
+     sodipodi:nodetypes="cccccccccccccccccccccccccccc" />
60
+</svg>

+ 64
- 0
rf/img/full-frame_24.svg 查看文件

1
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
+<!-- Generated by IcoMoon.io -->
3
+
4
+<svg
5
+   xmlns:dc="http://purl.org/dc/elements/1.1/"
6
+   xmlns:cc="http://creativecommons.org/ns#"
7
+   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
8
+   xmlns:svg="http://www.w3.org/2000/svg"
9
+   xmlns="http://www.w3.org/2000/svg"
10
+   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
11
+   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
12
+   version="1.1"
13
+   width="24"
14
+   height="24"
15
+   viewBox="0 0 24 24"
16
+   id="svg6"
17
+   sodipodi:docname="full-frame_24.svg"
18
+   inkscape:version="0.92.4 (5da689c313, 2019-01-14)">
19
+  <metadata
20
+     id="metadata12">
21
+    <rdf:RDF>
22
+      <cc:Work
23
+         rdf:about="">
24
+        <dc:format>image/svg+xml</dc:format>
25
+        <dc:type
26
+           rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
27
+        <dc:title>full-screen</dc:title>
28
+      </cc:Work>
29
+    </rdf:RDF>
30
+  </metadata>
31
+  <defs
32
+     id="defs10" />
33
+  <sodipodi:namedview
34
+     pagecolor="#ffffff"
35
+     bordercolor="#666666"
36
+     borderopacity="1"
37
+     objecttolerance="10"
38
+     gridtolerance="10"
39
+     guidetolerance="10"
40
+     inkscape:pageopacity="0"
41
+     inkscape:pageshadow="2"
42
+     inkscape:window-width="1280"
43
+     inkscape:window-height="971"
44
+     id="namedview8"
45
+     showgrid="false"
46
+     inkscape:zoom="16"
47
+     inkscape:cx="15.611845"
48
+     inkscape:cy="15.864852"
49
+     inkscape:window-x="1272"
50
+     inkscape:window-y="-6"
51
+     inkscape:window-maximized="1"
52
+     inkscape:current-layer="svg6"
53
+     inkscape:snap-object-midpoints="true"
54
+     inkscape:snap-bbox="true"
55
+     fit-margin-top="-0.1" />
56
+  <title
57
+     id="title2">full-screen</title>
58
+  <path
59
+     d="m 15.515625,5.015625 h 6.46875 v 4.96875 h -1.96875 v -3 h -4.5 z m 4.5,12 v -3 h 1.96875 v 4.96875 h -6.46875 v -1.96875 z m -18,-7.03125 v -4.96875 h 6.46875 v 1.96875 h -4.5 v 3 z m 1.96875,4.03125 v 3 h 4.5 v 1.96875 h -6.46875 v -4.96875 z"
60
+     id="path4"
61
+     inkscape:connector-curvature="0"
62
+     sodipodi:nodetypes="cccccccccccccccccccccccccccc"
63
+     style="stroke-width:0.75" />
64
+</svg>

+ 300
- 0
rf/m/m_api_v2.js 查看文件

1
+
2
+
3
+
4
+// this file enables loading modules after pageload
5
+
6
+
7
+
8
+
9
+
10
+function get_cui_html(file) {
11
+	clog("get_cui_html",this,arguments)
12
+	// console.trace("~IX~ ixr")
13
+	clog("~IX~ ixr")
14
+	// for (var file of this.arr){
15
+		var aii 
16
+		aii= $.ajax({
17
+			// url: "ign/cui.html",
18
+			url: file.url,
19
+			// data: file.qs,
20
+			cache:false,
21
+			// complete:complete_html,
22
+			success: file.success || proc_cui_html,
23
+			// error: err_html,
24
+			// dataType: "text"
25
+			dataType: "html"
26
+		})
27
+		aii.file = file
28
+		// aii.rldh=file
29
+	// }
30
+}
31
+
32
+
33
+
34
+function cui_respH(){
35
+	clog("cui_respH")
36
+}
37
+
38
+function cui_diffH(file){
39
+	clog("cui_diffH",this,arguments)
40
+	// get_cui_html(file)	
41
+}
42
+
43
+
44
+
45
+
46
+
47
+
48
+function proc_cui_html(rsp,status,xhr){
49
+	clog("proc_cui_html",this,arguments)
50
+	/*
51
+	gxh.success = {
52
+		that:this,
53
+		rsp,status,xhr,
54
+		args:arguments,
55
+	}
56
+	*/
57
+	// insert_cui_html(rsp)
58
+	// rsp
59
+}
60
+function insert_cui_html(innerHTML){
61
+	clog("insert_cui_html....")
62
+	window.cui_html = innerHTML
63
+	t5i2.crnr_init()
64
+	// t5i2.crnr_refresh()
65
+
66
+	// var n
67
+	//  n = document.createElement("div")
68
+	// n = document.querySelector("#xh_root")
69
+	// n ? n.innerHTML = innerHTML : 0
70
+	// event_html(n)
71
+}
72
+
73
+
74
+function dflt_api_handler(){
75
+	clog("dflt_api_handler NOT IMPLIMENTED")
76
+}
77
+
78
+function add_rld_html(){
79
+	// js files
80
+	// html
81
+	// css
82
+
83
+
84
+
85
+
86
+rldi.files["ign/m/timer/rhtml.html"]=  {url: "ign/m/timer/rhtml.html",
87
+ qs: {v:1}, respH: cui_respH, diffH: cui_diffH,
88
+ cached:"z z",
89
+ success:proc_cui_html,
90
+}
91
+
92
+
93
+
94
+}
95
+
96
+/*
97
+var reqt = {
98
+	url:"",
99
+	respH:dflt_handler,
100
+	diffH:diff_handler,
101
+}
102
+
103
+*/
104
+
105
+
106
+
107
+
108
+// jsrh
109
+// cssrh
110
+api_dflts = {
111
+	dflt:window.reqt || {url:"", respH:dflt_handler, diffH:diff_handler,},
112
+	js:{
113
+		diffH:jsrh,
114
+		// diffH:jsrh,
115
+		qs:{v:1},
116
+	},
117
+	css:{
118
+		diffH:cssrh,
119
+		qs:{v:1},
120
+
121
+	},
122
+	html:{
123
+
124
+		diffH:html_rld_cb,
125
+		qs:{v:1},
126
+	},
127
+}
128
+
129
+
130
+api_test = {}
131
+
132
+// <script class="rld" src="ign/m/m_api.js?c=023"></script>
133
+function insert_js(file){
134
+	var n = document.createElement("SCRIPT")
135
+	n.classList.add("rld")
136
+	n.src=file.url + "?_="+new Date().getTime()
137
+	// n.rel="stylesheet"
138
+	$(`script.rld[src^="`+file.url+`"]`).remove()
139
+	$(".m0.module").after(n)
140
+}
141
+function remove_css(file_url){
142
+	$(`link.rld[href^="`+file_url+`"]`).remove()
143
+}
144
+function insert_css(file){
145
+	var url = file.url
146
+	var n = document.createElement("LINK")
147
+	n.classList.add("rld")
148
+	n.href=file.url + "?_="+new Date().getTime()
149
+	n.rel="stylesheet"
150
+	remove_css(file.url)
151
+	 // $(`link.rld[href^="`+file.url+`"]`).remove()
152
+	$(".m0.module").before(n)
153
+}
154
+function html_rld_cb(){
155
+	clog("html_rld_cb!")
156
+
157
+}
158
+
159
+
160
+function html_rld_cb2(){
161
+	clog("html_rld_cb2!",this,[...arguments])
162
+
163
+}
164
+function html_rld_cb3(){
165
+	clog("html_rld_cb3!",this,[...arguments])
166
+}
167
+function html_rld_cb4(rsp,status,xhr){
168
+	clog("html_rld_cb4!",this,[...arguments])
169
+	// window[this.success_js](rsp,status,xhr)
170
+	window[xhr.file.success_js](rsp,status,xhr)
171
+}
172
+
173
+
174
+function register_rld(file){
175
+	clog("RR",file)
176
+	file.cached = rls[file.url]
177
+	rldi.files[file.url] =  file
178
+
179
+}
180
+
181
+
182
+window.qto_stop = 0
183
+window.qto_cnt = 0
184
+function qto_init(){
185
+	window.qto_stop = 0
186
+window.qto_cnt = 0
187
+	// setTimeout(qto_stop_fn,1000)
188
+	setTimeout(qto_stop_fn,100)
189
+	qto()
190
+
191
+}
192
+function qto_stop_fn(){
193
+	clog("qto_stop_fn")
194
+	window.qto_stop =1
195
+}
196
+function qto(){
197
+	clog("QTO",window.qto_cnt)
198
+	// clog("QTO",window.qto_cnt,$(`script.rld[src^="ign/m/timer/m.js"]`))
199
+	window.qto_cnt += 1
200
+	if (!window.qto_stop){
201
+		setTimeout(qto,1)
202
+	}
203
+
204
+}
205
+
206
+
207
+
208
+	// $(`script.rld[src^="ign/m/timer/m.js"]`).remove()
209
+	// ign/m/timer/m.js
210
+
211
+
212
+
213
+
214
+// mtx ={js:["ign/m/timer/m.js"],css:["ign/m/timer/m.css"],html:["ign/m/timer/m.html"]}
215
+// mtx ={js:["ign/m/timer/m.js"],css:["ign/m/timer/m.css"],html:[{url:"ign/m/timer/m.html",diffH:html_rld_cb2,success:html_rld_cb4,}]}
216
+
217
+// function 
218
+
219
+
220
+
221
+
222
+function add_module(o){
223
+	var k,v
224
+	let file 
225
+		// qto_init()
226
+		// file = jclone(api_dflts.css)
227
+	for (k of o.css || []){
228
+		if (typeof(k) == "string"){
229
+			 file = $.extend(true,{},api_dflts.css, {url:k})
230
+		} else {
231
+			 file = $.extend(true,{},api_dflts.css, k)
232
+		}
233
+		// file = jclone(api_dflts.css)
234
+		// file.url = k
235
+		file.m = {mod:o.name}
236
+
237
+		register_rld(file)
238
+		insert_css(file)
239
+
240
+		api_test[file.url]=file
241
+		clog("~",k)
242
+	}
243
+	for (k of o.js || []){
244
+		if (typeof(k) == "string"){
245
+			 file = $.extend(true,{},api_dflts.js, {url:k})
246
+		} else {
247
+			 file = $.extend(true,{},api_dflts.js, k)
248
+		}
249
+		// file = jclone(api_dflts.js)
250
+		// file.url = k
251
+
252
+		file.m = {mod:o.name}
253
+		register_rld(file)
254
+		insert_js(file)
255
+
256
+		api_test[file.url]=file
257
+		clog("~",k)
258
+	}
259
+	for (k of o.html || []){
260
+		if (typeof(k) == "string"){
261
+			 file = $.extend(true,{},api_dflts.html, {url:k})
262
+		} else {
263
+			 file = $.extend(true,{},api_dflts.html, k)
264
+		}
265
+		// file = jclone(api_dflts.html)
266
+		// file.url = k
267
+		file.m = {mod:o.name}
268
+		register_rld(file)
269
+		api_test[file.url]=file
270
+		clog("~",k)
271
+		rfile = file
272
+		get_cui_html(file)
273
+	}
274
+
275
+
276
+}
277
+
278
+
279
+
280
+
281
+
282
+
283
+// jquery helper
284
+function add_node(n,rn,i) {
285
+	$(rn)[i](n)
286
+}
287
+
288
+mod_path ="ign/rf/filmstrip_mod/"
289
+
290
+mtx ={	
291
+	// js:["ign/m/timer/m.js","ign/m/timer/m0.js"],
292
+	js:[`${mod_path}m0.js`,`${mod_path}m.js`,],
293
+	css:[`${mod_path}m.css`],
294
+	html:[{url:`${mod_path}m.html`,diffH:get_cui_html,success:html_rld_cb4,success_js:"html_js_handler"}]
295
+	}
296
+
297
+setTimeout(add_module,300,mtx)
298
+
299
+
300
+// add_module(mtx )

+ 1
- 1
rf/m2/interface_config_dev.js 查看文件

2
 
2
 
3
 var interfaceConfigDev = {
3
 var interfaceConfigDev = {
4
 	DISABLE_VIDEO_BACKGROUND:true,
4
 	DISABLE_VIDEO_BACKGROUND:true,
5
-    TOOLBAR_ALWAYS_VISIBLE: false,
5
+    // TOOLBAR_ALWAYS_VISIBLE: false,
6
     SHOW_DEEP_LINKING_IMAGE: false,
6
     SHOW_DEEP_LINKING_IMAGE: false,
7
     // SHOW_DEEP_LINKING_IMAGE: "images/logo-deep-linking.png",
7
     // SHOW_DEEP_LINKING_IMAGE: "images/logo-deep-linking.png",
8
     APP_NAME:"",
8
     APP_NAME:"",

+ 1
- 1
rf/m2/m2.js 查看文件

75
 		arr_rmv(interfaceConfig.TOOLBAR_BUTTONS,"videobackgroundblur")
75
 		arr_rmv(interfaceConfig.TOOLBAR_BUTTONS,"videobackgroundblur")
76
 		// arr_rmv(interfaceConfig.TOOLBAR_BUTTONS,"fullscreen")
76
 		// arr_rmv(interfaceConfig.TOOLBAR_BUTTONS,"fullscreen")
77
 		arr_rmv(interfaceConfig.TOOLBAR_BUTTONS,"shortcuts")
77
 		arr_rmv(interfaceConfig.TOOLBAR_BUTTONS,"shortcuts")
78
-		// arr_rmv(interfaceConfig.TOOLBAR_BUTTONS,"tileview")
78
+		arr_rmv(interfaceConfig.TOOLBAR_BUTTONS,"tileview")
79
 		// arr_rmv(interfaceConfig.TOOLBAR_BUTTONS,"filmstrip")
79
 		// arr_rmv(interfaceConfig.TOOLBAR_BUTTONS,"filmstrip")
80
 		clog("MODx",isMod,interfaceConfig.TOOLBAR_BUTTONS)
80
 		clog("MODx",isMod,interfaceConfig.TOOLBAR_BUTTONS)
81
 	// interfaceConfig_obj
81
 	// interfaceConfig_obj

+ 1
- 0
rf/ovf_vid/n.css 查看文件

1
+ 

+ 1
- 0
rf/ovf_vid/n.html 查看文件

1
+ 

+ 9
- 0
rf/ovf_vid/n.js 查看文件

1
+mod_templates_ovf_vid = window.mod_templates_ovf_vid || $("")
2
+
3
+function html_js_handler_ovf_vid(rsp) {
4
+	// saftly_remove(".svg_plugin")
5
+	// clog("html_js_handler_svg",[...arguments])
6
+	// mod_templates_svg = $(`<span>${rsp}</span>`)
7
+}
8
+
9
+

+ 27
- 0
rf/svg_dev/m.css 查看文件

1
+ 
2
+.svg_plugin {
3
+	position: absolute;
4
+	z-index: 150;
5
+	background-color: #fff9;
6
+	padding: 100px;
7
+}
8
+
9
+.svg_plugin svg {
10
+	zoom:3;
11
+	background-color: #fff5;
12
+}
13
+
14
+.ff_svg svg {
15
+	/*background-color: red;*/
16
+	zoom: 1.5;
17
+}
18
+
19
+
20
+
21
+.lvov_container {
22
+	display: none;
23
+}
24
+
25
+.small_vid .m2.xbox2:after{
26
+	background-color: var(--v_cpal)
27
+}

+ 35
- 0
rf/svg_dev/m.html 查看文件

1
+ <div class="svg_plugin2">
2
+ 	
3
+<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 20 20" height="1.3333466pc" width="1.3333467pc" style="fill:none;stroke:#373a4a;stroke-width:2;stroke-linecap:round;stroke-linejoin:round">
4
+  <path d="m 6,1 -3,0 a 2,2 0 0 0 -2,2 l 0,3 "/>
5
+  <!-- m 18,0 0,-3 a 2,2 0 0 0 -2,-2 l -3,0 m 0,18 3,0 a 2,2 0 0 0 2,-2 l 0,-3 m -18,0 0,3 a 2,2 0 0 0 2,2 l 3,0 -->
6
+  <!-- <path d="m 6,1 -3,0 a 2,2 0 0 0 -2,2 l 0,3 m 18,0 0,-3 a 2,2 0 0 0 -2,-2 l -3,0 m 0,18 3,0 a 2,2 0 0 0 2,-2 l 0,-3 m -18,0 0,3 a 2,2 0 0 0 2,2 l 3,0"/> -->
7
+</svg>
8
+ </div>
9
+
10
+
11
+ <div class="svg_plugin">
12
+<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">
13
+<title>full-screen</title>
14
+<path d="M18.688 6.688h6.625v6.625h-2.625v-4h-4v-2.625zM22.688 22.688v-4h2.625v6.625h-6.625v-2.625h4zM6.688 13.313v-6.625h6.625v2.625h-4v4h-2.625zM9.313 18.688v4h4v2.625h-6.625v-6.625h2.625z"></path>
15
+</svg>
16
+ </div>
17
+
18
+<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">
19
+<title>full-screen</title>
20
+<path d="M18.688 6.688h6.625v6.625h-2.625v-4h-4v-2.625zM22.688 22.688v-4h2.625v6.625h-6.625v-2.625h4zM6.688 13.313v-6.625h6.625v2.625h-4v4h-2.625zM9.313 18.688v4h4v2.625h-6.625v-6.625h2.625z"></path>
21
+</svg>
22
+
23
+
24
+ <svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 20.0002 20.000198" height="1.3333466pc" width="1.3333467pc" style="fill:none;stroke:#373a4a;stroke-width:2;stroke-linecap:round;stroke-linejoin:round">
25
+  <path d="m 6.0001,1.0001 -3,0 a 2,2 0 0 0 -2,2 l 0,2.9999997 m 18,0 0,-2.9999997 a 2,2 0 0 0 -2,-2 l -3,0 m 0,18 3,0 a 2,2 0 0 0 2,-2 l 0,-3 m -18,0 0,3 a 2,2 0 0 0 2,2 l 3,0"/>
26
+</svg>
27
+
28
+
29
+<div aria-label="Toggle tile view" class="plugin_top_cls plugin_icon_template toolbox-button tb otb"><div><div class="toolbox-icon  "><div class="jitsi-icon ">
30
+</div></div></div></div>
31
+
32
+
33
+
34
+<div aria-label="Toggle tile view" class="plugin_top_cls plugin_icon toolbox-button tb otb"><div><div class="toolbox-icon  "><div class="jitsi-icon "><svg height="24" width="24" viewBox="0 0 24 24"><path d="M2.667 0H8a2.667 2.667 0 012.667 2.667V8A2.667 2.667 0 018 10.667H2.667A2.667 2.667 0 010 8V2.667A2.667 2.667 0 012.667 0zM4 2.667c-.736 0-1.333.597-1.333 1.333v2.667C2.667 7.403 3.264 8 4 8h2.667C7.403 8 8 7.403 8 6.667V4c0-.736-.597-1.333-1.333-1.333H4zM2.667 13.333H8A2.667 2.667 0 0110.667 16v5.333A2.667 2.667 0 018 24H2.667A2.667 2.667 0 010 21.333V16a2.667 2.667 0 012.667-2.667zM4 16c-.736 0-1.333.597-1.333 1.333V20c0 .736.597 1.333 1.333 1.333h2.667C7.403 21.333 8 20.736 8 20v-2.667C8 16.597 7.403 16 6.667 16H4zM16 0h5.333A2.667 2.667 0 0124 2.667V8a2.667 2.667 0 01-2.667 2.667H16A2.667 2.667 0 0113.333 8V2.667A2.667 2.667 0 0116 0zm1.333 2.667C16.597 2.667 16 3.264 16 4v2.667C16 7.403 16.597 8 17.333 8H20c.736 0 1.333-.597 1.333-1.333V4c0-.736-.597-1.333-1.333-1.333h-2.667zM16 13.333h5.333A2.667 2.667 0 0124 16v5.333A2.667 2.667 0 0121.333 24H16a2.667 2.667 0 01-2.667-2.667V16A2.667 2.667 0 0116 13.333zM17.333 16c-.736 0-1.333.597-1.333 1.333V20c0 .736.597 1.333 1.333 1.333H20c.736 0 1.333-.597 1.333-1.333v-2.667c0-.736-.597-1.333-1.333-1.333h-2.667z"></path></svg></div></div></div></div>
35
+

+ 159
- 0
rf/svg_dev/m.js 查看文件

1
+ 
2
+mod_templates_svg = window.mod_templates_svg || $("")
3
+mod_templates_svg_icon = window.mod_templates_svg_icon || $("")
4
+mod_templates_svg_icon2 = window.mod_templates_svg_icon2 || $("")
5
+
6
+// reload templates
7
+function html_js_handler_svg(rsp) {
8
+	saftly_remove(".svg_plugin")
9
+	clog("html_js_handler_svg",[...arguments])
10
+	mod_templates_svg = $(`<span>${rsp}</span>`)
11
+	init_svg_icon()
12
+	// init_lobby()
13
+	// init_svg()
14
+	// show_popup()
15
+	// build_popup()
16
+
17
+	// init_api6()
18
+}
19
+
20
+function svg_icon_handler(rsp) {
21
+	// saftly_remove(".svg_plugin")
22
+	clog("mod_templates_svg_icon",[...arguments])
23
+	mod_templates_svg_icon = $(`<span>${rsp}</span>`)
24
+	// mod_templates_svg_icon = $(`${rsp}`)
25
+	clog("mod_templates_svg_icon")
26
+	init_svg_icon()
27
+
28
+	// plugin_icon_template
29
+	// mod_templates_svg_icon
30
+
31
+
32
+
33
+	// init_lobby()
34
+	// init_svg()
35
+	// show_popup()
36
+	// build_popup()
37
+
38
+	// init_api6()
39
+}
40
+
41
+function svg_icon_handler2(rsp) {
42
+	// saftly_remove(".svg_plugin")
43
+	clog("mod_templates_svg_icon",[...arguments])
44
+	mod_templates_svg_icon2 = $(`<span>${rsp}</span>`)
45
+	// mod_templates_svg_icon = $(`${rsp}`)
46
+	clog("mod_templates_svg_icon")
47
+	init_svg_icon()
48
+
49
+	// plugin_icon_template
50
+	// mod_templates_svg_icon
51
+
52
+
53
+
54
+	// init_lobby()
55
+	// init_svg()
56
+	// show_popup()
57
+	// build_popup()
58
+
59
+	// init_api6()
60
+}
61
+
62
+function init_svg_icon(){
63
+		saftly_remove(".svg_plugin")
64
+	saftly_remove(".plugin_icon")
65
+	saftly_remove(".plugin_icon_template")
66
+	clog("...")
67
+
68
+	var icon_template = $(mod_templates_svg[0].outerHTML)
69
+	var svg_content = $(mod_templates_svg_icon[0].outerHTML)
70
+	var n,svg
71
+
72
+	n = icon_template.find(".plugin_icon_template")
73
+	// n = mod_templates.find(".plugin_icon_template")
74
+	// svg = mod_templates_svg_icon.find("svg")
75
+	
76
+	svg = svg_content.find("svg")
77
+	if (!(n.length) || !(svg.length) ){
78
+		return
79
+	}
80
+
81
+
82
+	// n.find(".jitsi-icon").addpen
83
+	add_node(svg,n.find(".jitsi-icon"),"prepend")
84
+	// n.addClass("fullframe_icon")
85
+	n.addClass("ff_icon")
86
+	n.click(toggle_ff_mod)
87
+	add_node(n,".button-group-right","prepend")
88
+	clog("...",n)
89
+	// init_svg_icon2()
90
+}
91
+function init_svg_icon2(){
92
+		saftly_remove(".svg_plugin")
93
+
94
+	// saftly_remove(".plugin_icon")
95
+	// saftly_remove(".plugin_icon_template")
96
+	clog("...")
97
+
98
+	var icon_template = $(mod_templates_svg[0].outerHTML)
99
+	var svg_content = $(mod_templates_svg_icon2[0].outerHTML)
100
+	var n,svg
101
+
102
+	n = icon_template.find(".plugin_icon_template")
103
+	// n = mod_templates.find(".plugin_icon_template")
104
+	// svg = mod_templates_svg_icon.find("svg")
105
+	
106
+	svg = svg_content.find("svg")
107
+
108
+
109
+	// n.find(".jitsi-icon").addpen
110
+	add_node(svg,n.find(".jitsi-icon"),"prepend")
111
+	n.addClass("ff_svg")
112
+	add_node(n,".button-group-right","prepend")
113
+	clog("...",n)
114
+}
115
+
116
+
117
+function init_svg(){
118
+	clog("init_svg")
119
+	saftly_remove(".svg_plugin")
120
+	saftly_remove(".plugin_icon")
121
+	// return
122
+
123
+	// var n = mod_templates_svg.find(".svg_plugin")
124
+	var mod_templates = $(mod_templates_svg[0].outerHTML)
125
+	var n = mod_templates.find(".plugin_icon")
126
+	// add_node(n,"body","prepend")
127
+	add_node(n,".button-group-right","prepend")
128
+	clog("init_svg...fin",n)
129
+	// button-group-right
130
+
131
+
132
+}
133
+function toggle_ff_mod(){
134
+    clog("TOGGLEFF")
135
+    // glob_dbg.ytp.playVideo()
136
+    // return
137
+    glob_mx.dims.fullframe = !glob_mx.dims.fullframe
138
+    if (glob_mx.dims.fullframe){
139
+        $(".ff_icon .toolbox-icon").addClass("toggled")
140
+        // $(".ff_icon").addClass("checked")
141
+        $(".vspace").addClass("_hide")
142
+        $(".toggle_ff")[0].innerHTML = "shrink"
143
+        $(".toggle_ff")[0].innerHTML = "exit fullframe"
144
+        // $(".ff_icon").addClass
145
+        // ._hide
146
+    } else {
147
+        $(".ff_icon .toolbox-icon").removeClass("toggled")
148
+        $(".toggle_ff")[0].innerHTML = "enter fullframe"
149
+        $(".vspace").removeClass("_hide")
150
+    }
151
+    dispatch_resize()
152
+
153
+}
154
+
155
+
156
+// init_svg()
157
+init_svg_icon()
158
+
159
+clog(":zzz")

+ 1
- 0
rf/ui_msg/r.css 查看文件

1
+ 

+ 3
- 0
rf/ui_msg/r.html 查看文件

1
+ 
2
+
3
+

+ 21
- 0
rf/ui_msg/r.js 查看文件

1
+mod_templates_ui_msg = window.mod_templates_ui_msg || $("")
2
+
3
+// html_js_handler_ui_msg 
4
+function html_js_handler_ui_msg(rsp) {
5
+	clog("html_js_handler_ui_msg",[...arguments])
6
+	mod_templates_ui_msg = $(`<span>${rsp}</span>`)
7
+	// clog("html_js_handler_lobby2")
8
+	// init_lobby()
9
+	// clog("html_js_handler_lobby3")
10
+	// init_api6()
11
+}
12
+glob_mx.svg = window.glob_mx.svg || {}
13
+
14
+function load_svg(url,name){
15
+
16
+}
17
+
18
+
19
+function load_svg_handler(url,name){
20
+
21
+}

正在加载...
取消
保存