Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

conn.native.js 2.4KB

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