|
15 | 15 | },
|
16 | 16 | };
|
17 | 17 | var Omega = Omega || config;
|
| 18 | + var startTime = Math.ceil(new Date().getTime() / 1000); |
18 | 19 | </script>
|
19 | 20 | <script
|
20 | 21 | crossorigin="Anonymous"
|
|
30 | 31 | <link rel="stylesheet" href="./static/buble.css" />
|
31 | 32 |
|
32 | 33 | <link rel="stylesheet" href="./static/prism-tomorrow.min.css" />
|
| 34 | + <link rel="preload" href="https://img.shields.io/npm/v/@logicflow/core" as="image"> |
| 35 | + <link rel="preload" href="https://img.shields.io/npm/dm/@logicflow/core" as="image"> |
| 36 | + <link rel="preload" href="https://img.shields.io/npm/l/@logicflow/core" as="image"> |
33 | 37 | </head>
|
34 | 38 |
|
35 | 39 | <body>
|
|
39 | 43 | <a target="_blank" href="https://github.com/didi/LogicFlow">
|
40 | 44 | <i class="fa fa-github fa-lg"></i> Github
|
41 | 45 | </a>
|
42 | | - <a target="_blank" href="https://logic-flow.github.io/docs/examples"> |
| 46 | + <a target="_blank" href="https://site.logic-flow.cn/examples/"> |
43 | 47 | <i class="fa fa-puzzle-piece fa-lg"></i> Examples
|
44 | 48 | </a>
|
45 | 49 | <a href="#/en/">EN</a>
|
|
119 | 123 | language: language === "zh" ? "chinese" : "english",
|
120 | 124 | },
|
121 | 125 | };
|
| 126 | + const userAgent = window.navigator.userAgent; |
| 127 | + const platform = window.navigator.platform; |
| 128 | + window.onload = function() { |
| 129 | + const loadingTime = Math.ceil(new Date().getTime() / 1000) - startTime; |
| 130 | + Omega.trackEvent('tech_user_info', 'tech_urser_info', { |
| 131 | + language, |
| 132 | + userAgent, |
| 133 | + platform, |
| 134 | + loadingTime, |
| 135 | + }) |
| 136 | + } |
122 | 137 | </script>
|
123 | 138 | <script src="./static/docsify.min.js"></script>
|
124 | 139 | <script src="./static/countable.js"></script>
|
|
0 commit comments