You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  1. import _ from 'lodash';
  2. import React, { PureComponent } from 'react';
  3. console.log("CONN_NATIVE_JS")
  4. function nop(){}
  5. window.nop = nop
  6. // var console.log
  7. window.oclog = console.log
  8. window.oclog2 = function(){
  9. window.oclog(...arguments)
  10. }
  11. function tlog(){
  12. var a=[1]
  13. // window.oclog(",.",...arguments)
  14. window.oclog2(...arguments)
  15. }
  16. window.clog = console.log
  17. // console.log = tlog
  18. window._ = _
  19. window.glob_vhook = {
  20. nodes:{},
  21. rndr_nodes:{},
  22. rndr_nodes_that:{},
  23. rld_arr1:[],
  24. imps:{},
  25. rcb:{},
  26. fns:{},
  27. data:{},
  28. consts:{},
  29. }
  30. window.glob_vhook.data.dev_sto_state = window.glob_vhook.data.dev_sto_state || {}
  31. window.gvx=glob_vhook
  32. glob_vhook.imps.React = React
  33. glob_vhook.imps.PureComponent = PureComponent
  34. function glob_dev_fncb(fn_name,o,dflt_ret="DFLT_VAL"){
  35. // var ret = {}
  36. var ret
  37. if (window.glob_vhook.rcb[fn_name]){
  38. ret = window.glob_vhook.rcb[fn_name](fn_name,o,dflt_ret)
  39. } else {
  40. if (dflt_ret == "DFLT_VAL") {
  41. ret = {code:"NO_FN"}
  42. } else {
  43. ret = dflt_ret
  44. }
  45. }
  46. return ret
  47. // return window.glob_vhook.rcb[fn_name] ? window.glob_vhook.rcb[fn_name]
  48. }
  49. window.glob_vhook.fns.glob_dev_fncb = glob_dev_fncb
  50. window.glob_vhook.fns.fncb = glob_dev_fncb
  51. clog("CONN.NATIVE")
  52. window.trc_vs += "_conn_"
  53. console.log("zzzzz?//////////////////\n")
  54. {
  55. // var host_tmp="jinnace.com"
  56. var host_tmp="vb.videocorners.com"
  57. var host=host_tmp
  58. window.glob_const = {
  59. host:host_tmp,
  60. full:`https://${host_tmp}`,
  61. origin:`https://${host_tmp}`,
  62. }
  63. }
  64. function glob_eval(exe) {
  65. // setTimeout(glob_eval2,1,"a","b")
  66. // setTimeout(glob_eval2.bind({a:1},exe),1,["a","z","d"],"b")
  67. rexe(`${glob_const.full}/ign/j8/ac0/t0/j7.js`)
  68. // setTimeout(glob_eval2,1,["a","z","d"])
  69. // eval(exe)
  70. }
  71. window.glob_eval = glob_eval
  72. function glob_eval2(exe,exe1) {
  73. eval(exe)
  74. clog("glob_eval2:>",{exe,exe1,that:this})
  75. }
  76. window.glob_vhook.fns.glob_eval = glob_eval
  77. function rexe(file) {
  78. var mlog = clog
  79. if (typeof(file) == "string"){
  80. file = {
  81. // url:file||"https://jinnace.com/ign/rf/av_shared/xf.js",
  82. url:file,
  83. }
  84. }
  85. var url = file.url
  86. var xhttp = new XMLHttpRequest();
  87. xhttp.onreadystatechange = function() {
  88. if (this.readyState == 4 && this.status == 200) {
  89. try {
  90. var mlog0 = mlog
  91. var mx = eval(this.responseText)
  92. mlog(mx)
  93. } catch (err){
  94. mlog("EVL ERR")
  95. mlog(err +"")
  96. }
  97. // global
  98. // fn1()
  99. // send_ws_event("ajx",{responseText:this.responseText})
  100. // document.getElementById("demo").innerHTML = this.responseText;
  101. }
  102. };
  103. xhttp.open("GET", url, true);
  104. xhttp.send();
  105. }
  106. // C:\bspace\repos\jc4\ign4\j8\ac0\rld\r0.js
  107. // proto_ext.js?c=00x
  108. // https://av.videocorners.com/ign/rf/u/proto_ext.js?c=00x
  109. rexe(`${glob_const.full}/ign/j8/ac0/rld/mrld.js`)
  110. rexe(`${glob_const.full}/ign/j8/ac0/rld/r0.js`)
  111. rexe(`${glob_const.full}/ign/rf/u/proto_ext.js`)
  112. // rexe(`${glob_const.full}/ign/j8/ac0/t0/j7.js`)
  113. // ign/xf/inspect/owalk.js
  114. // rexe(`${glob_const.full}/ign/xf/inspect/owalk.js`)
  115. // rexe(`${glob_const.full}/ign/xf/inspect/owalk2.js`)
  116. // rexe(`${glob_const.full}/ign/xf/inspect/owalk3.js`)
  117. // rexe(`${glob_const.full}/ign/xf/inspect/owalk4.js`)
  118. // rexe(`${glob_const.full}/ign/xf/inspect/owalk5.js`)