123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105 |
-
- function quick_key(ev){
- mx_htag = $(".mx_hover_tag")
-
- clog("Q.K")
- if (!mx_htag.length){
- return
- }
-
- // .scrollIntoView()
- // scrollBy(0,-500)
- var o = {
- ev_root:mx_htag[0],
- }
- clog(o.ev_root.getBoundingClientRect())
- // ev_root
- switch(ev.key){
- case "ArrowUp":
- if (mx_htag.prev().length)
- mx_htag.removeClass("mx_hover_tag").prev().addClass("mx_hover_tag")[0].scrollIntoView()
- scrollBy(0,-500)
- break;
- case "ArrowDown":
- if (mx_htag.next().length){
-
- mx_htag.removeClass("mx_hover_tag").next().addClass("mx_hover_tag")[0].scrollIntoView()
- scrollBy(0,-500)
- }
- break;
- case "a":
- o.action="add"
- edit_elist_evh(o,"key");break
- // add
- break;
- case "s":
- break;
- case "d":
- o.action="rmv"
- edit_elist_evh(o,"key");break
- // add
- case "m":
-
- break;
- case "q":
- case "w":
- case "e":
-
- // case "A":
- default:
- }
-
- clog("QK",ev,this)
-
- ev.preventDefault()
- }
-
- function ev_onmousemove(event) {
- // body...
- glob_u.tvar.cnt +=1
-
- var jt = $(event.target)
- htag = jt.parents(".hover_tag")
-
- if (htag.hasClass("mx_hover_tag")){
- return
- }
- $(".mx_hover_tag").removeClass("mx_hover_tag")
- if (!htag.length){
- return
- }
-
-
- $(".mx").removeClass("mx")
- $(".mx_hover_tag").removeClass("mx_hover_tag")
- jt.addClass("mx")
- jt.parents(".hover_tag").addClass("mx_hover_tag")
- clog("onmousemove",glob_u.tvar.cnt,performance.now(),Date(),event)
- }
-
- onkeydown = quick_key
- onmousemove = ev_onmousemove
-
- // glob_u has to be loaded to I want to call from a load event
- function reinit_template(argument) {
- // body...
- glob_u.templates.tw_event_ui = `<!--#include virtual="/ign/browser_ext/tw_ixt/tw_event_ui.html" -->`
- glob_u.templates.tw_event_ui_parsed = $(`<span>${glob_u.templates.tw_event_ui}</span>`)
- }
-
-
-
- function init_tmp(){
- reinit_template()
- }
-
-
-
-
- addEventListener("load",init_tmp)
-
- reinit_template()
-
- // rld.ign
- window.bodge_rfile ? bodge_rfile(`https://rld.jfidev.com/ign/browser_ext/tw_ixt/tw_event_ui.html`,`/ign/browser_ext/tw_ixt/ti1.js`):clog("NO BODGE RFILE")
- // window.bodge_rfile ? bodge_rfile(`/ign/browser_ext/tw_ixt/tw_event_ui.html`,`/ign/browser_ext/tw_ixt/ti1.js`):clog("NO BODGE RFILE")
|