mirror of
https://github.com/QIDITECH/QIDIStudio.git
synced 2026-01-31 00:48:41 +03:00
fix some bug
This commit is contained in:
153
resources/web/helio/helio_service_cn.html
Normal file
153
resources/web/helio/helio_service_cn.html
Normal file
@@ -0,0 +1,153 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
<script type="text/javascript" src="js/index.js"></script>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<style>
|
||||
body {
|
||||
position: absolute;
|
||||
width: 690px;
|
||||
height: 445px;
|
||||
font-family: 'HarmonyOS Sans SC', sans-serif;
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
font-size: 14px;
|
||||
line-height: 22px; /* 157% */
|
||||
color: #5C5C5C;
|
||||
margin: 10;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
.header {
|
||||
background-color: #f5f5f5;
|
||||
padding: 10px 15px;
|
||||
border-bottom: 1px solid #e0e0e0;
|
||||
}
|
||||
.underline {
|
||||
text-decoration: underline;
|
||||
text-underline-offset: 2px;
|
||||
}
|
||||
.header h1 {
|
||||
font-size: 16px;
|
||||
margin: 0;
|
||||
color: #333333;
|
||||
}
|
||||
h2 {
|
||||
font-size: 16px;
|
||||
margin: 0 0 15px 0;
|
||||
color: #333333;
|
||||
}
|
||||
p {
|
||||
margin: 0 0 15px 0;
|
||||
text-align: justify;
|
||||
}
|
||||
strong {
|
||||
font-weight: 600;
|
||||
color: #333333;
|
||||
}
|
||||
a {
|
||||
color: #0066CC;
|
||||
text-decoration: none;
|
||||
}
|
||||
a:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
ul {
|
||||
margin: 0 0 15px 20px;
|
||||
padding: 0;
|
||||
}
|
||||
li {
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
.buttons {
|
||||
margin-top: 25px;
|
||||
display: flex;
|
||||
gap: 15px;
|
||||
}
|
||||
.btn {
|
||||
padding: 8px 20px;
|
||||
border-radius: 4px;
|
||||
cursor: pointer;
|
||||
font-family: 'HarmonyOS Sans SC', sans-serif;
|
||||
font-size: 14px;
|
||||
line-height: 1;
|
||||
border: none;
|
||||
}
|
||||
.btn-primary {
|
||||
background-color: #007DFF;
|
||||
color: white;
|
||||
}
|
||||
.btn-primary:hover {
|
||||
background-color: #0066CC;
|
||||
}
|
||||
.btn-secondary {
|
||||
background-color: #F5F5F5;
|
||||
color: #5C5C5C;
|
||||
border: 1px solid #DDDDDD;
|
||||
}
|
||||
.btn-secondary:hover {
|
||||
background-color: #EAEAEA;
|
||||
}
|
||||
.warning {
|
||||
color: #FF5722;
|
||||
}
|
||||
|
||||
body.dark {
|
||||
background-color: #2d2d31;
|
||||
color: #FFFFFF;
|
||||
}
|
||||
|
||||
body.dark .header {
|
||||
background-color: #2d2d2d;
|
||||
border-bottom-color: #444;
|
||||
|
||||
}
|
||||
|
||||
body.dark h1,
|
||||
body.dark h2,
|
||||
body.dark strong {
|
||||
color: #FFFFFF;
|
||||
}
|
||||
|
||||
body.dark a {
|
||||
color: #90caf9;
|
||||
}
|
||||
|
||||
body.dark .btn-secondary {
|
||||
background-color: #333;
|
||||
color: #FFFFFF;
|
||||
border-color: #555;
|
||||
}
|
||||
|
||||
body.dark .btn-secondary:hover {
|
||||
background-color: #444;
|
||||
}
|
||||
|
||||
body.dark .warning {
|
||||
color: #ff8a65;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p>您正准备开启一个来自<strong class="underline">Helio Additive</strong><strong>的第三方软件服务功能</strong>!在确认使用此功能前,请仔细阅读以下声明。</p>
|
||||
|
||||
<p>除非特殊说明,拓竹科技仅对官方提供的软件功能提供支持。本软件中基于Helio Additive云端服务的切片评估和切片优化功能<strong>由Helio Additive负责开发、维护以及对外提供服务,其服务效果和可用性由Helio Additive负责</strong>。本服务的优化功能<strong>可能修改默认的打印指令,存在打印机损坏的风险。</strong></span>同时这些功能将<strong>收集必要的用户信息和数据</strong>以实现相关服务功能,并可能<strong>涉及订阅与付费</strong>,请访问<a class="underline" href="#" onclick="OpenHomeLink()">Helio Addtive</a>和参考<a class="underline" href="#" onclick="OpenPPLink()">Helio Additive隐私协议</a>和<a class="underline" href="#" onclick="OpenTouLink()">Helio Addtive 用户使用协议</a>获取详细信息。</p>
|
||||
|
||||
<p>同时,您理解本产品是<strong>基于Helio Additive的服务“按原样”向您提供</strong>,拓竹不存在任何形式的明示或暗示担保,也无法控制服务效果,并且在适用法律允许的最大范围内,拓竹、其许可方/附属公司均不提供任何明示或暗示的陈述或保证,包括但不限于有关适销性、满意质量、适用于特定目的、准确性、保密权以及不侵犯第三方权利的保证。基于网络服务的特性,拓竹无法保证该服务随时可达,并且拓竹有权根据相关情况终止该服务。</p>
|
||||
|
||||
<p>您同意不使用本产品及相关更新内容从事以下行为:</p>
|
||||
<ol>
|
||||
<li>在Helio Additive和拓竹授权范围之外复制或使用本产品的任何一部分内容;</li>
|
||||
<li>企图破坏、绕过、改变、作废或者逃避和本产品相关的以及/或者属于本产品有机组成的一部分的任何数字版权管理系统;</li>
|
||||
<li>利用本软件和服务进行任何不当或违反法律的行为。</li>
|
||||
</ol>
|
||||
|
||||
<p><strong>当您确认开启此功能后,代表您已经确认和同意以上声明。</strong></p>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
<script type="text/javascript">
|
||||
const darkmode = getUrlParam('darkmode');
|
||||
if (darkmode === '1') {
|
||||
document.body.classList.add('dark');
|
||||
}
|
||||
</script>
|
||||
152
resources/web/helio/helio_service_en.html
Normal file
152
resources/web/helio/helio_service_en.html
Normal file
@@ -0,0 +1,152 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<script type="text/javascript" src="js/index.js"></script>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<style>
|
||||
body {
|
||||
position: absolute;
|
||||
width: 690px;
|
||||
height: 445px;
|
||||
font-family: 'HarmonyOS Sans SC', sans-serif;
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
font-size: 14px;
|
||||
line-height: 22px; /* 157% */
|
||||
color: #5C5C5C;
|
||||
margin: 10;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
.header {
|
||||
background-color: #f5f5f5;
|
||||
padding: 10px 15px;
|
||||
border-bottom: 1px solid #e0e0e0;
|
||||
}
|
||||
.underline {
|
||||
text-decoration: underline;
|
||||
text-underline-offset: 2px;
|
||||
}
|
||||
.header h1 {
|
||||
font-size: 16px;
|
||||
margin: 0;
|
||||
color: #333333;
|
||||
}
|
||||
h2 {
|
||||
font-size: 16px;
|
||||
margin: 0 0 15px 0;
|
||||
color: #333333;
|
||||
}
|
||||
p {
|
||||
margin: 0 0 15px 0;
|
||||
text-align: justify;
|
||||
}
|
||||
strong {
|
||||
font-weight: 600;
|
||||
color: #333333;
|
||||
}
|
||||
a {
|
||||
color: #0066CC;
|
||||
text-decoration: none;
|
||||
}
|
||||
a:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
ul {
|
||||
margin: 0 0 15px 20px;
|
||||
padding: 0;
|
||||
}
|
||||
li {
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
.buttons {
|
||||
margin-top: 25px;
|
||||
display: flex;
|
||||
gap: 15px;
|
||||
}
|
||||
.btn {
|
||||
padding: 8px 20px;
|
||||
border-radius: 4px;
|
||||
cursor: pointer;
|
||||
font-family: 'HarmonyOS Sans SC', sans-serif;
|
||||
font-size: 14px;
|
||||
line-height: 1;
|
||||
border: none;
|
||||
}
|
||||
.btn-primary {
|
||||
background-color: #007DFF;
|
||||
color: white;
|
||||
}
|
||||
.btn-primary:hover {
|
||||
background-color: #0066CC;
|
||||
}
|
||||
.btn-secondary {
|
||||
background-color: #F5F5F5;
|
||||
color: #5C5C5C;
|
||||
border: 1px solid #DDDDDD;
|
||||
}
|
||||
.btn-secondary:hover {
|
||||
background-color: #EAEAEA;
|
||||
}
|
||||
.warning {
|
||||
color: #FF5722;
|
||||
}
|
||||
|
||||
body.dark {
|
||||
background-color: #2d2d31;
|
||||
color: #FFFFFF;
|
||||
}
|
||||
|
||||
body.dark .header {
|
||||
background-color: #2d2d2d;
|
||||
border-bottom-color: #444;
|
||||
|
||||
}
|
||||
|
||||
body.dark h1,
|
||||
body.dark h2,
|
||||
body.dark strong {
|
||||
color: #FFFFFF;
|
||||
}
|
||||
|
||||
body.dark a {
|
||||
color: #90caf9;
|
||||
}
|
||||
|
||||
body.dark .btn-secondary {
|
||||
background-color: #333;
|
||||
color: #FFFFFF;
|
||||
border-color: #555;
|
||||
}
|
||||
|
||||
body.dark .btn-secondary:hover {
|
||||
background-color: #444;
|
||||
}
|
||||
|
||||
body.dark .warning {
|
||||
color: #ff8a65;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p>You are about to enable <strong>a third-party software service feature from <span class="underline">Helio Additive</span></strong>! Before confirming the use of this feature, please carefully read the following statements.</p>
|
||||
|
||||
<p>Unless otherwise specified, QIDI Tech only provides support for the software features officially provided. The slicing evaluation and slicing optimization features based on Helio Additive's cloud service in this software will be <strong>developed, operated, provided, and maintained by Helio Additive. Helio Additive is responsible for the effectiveness and availability of this service</strong>. The optimization feature of this service may <strong>modify the default print commands, posing a risk of printer damage</strong>. These features will <strong>collect necessary user information and data</strong> to achieve relevant service functions. <strong>Subscriptions and payments may be involved</strong>. Please visit <a class="underline" href="#" onclick="OpenHomeLink()">Helio Additive</a> and refer to the <a class="underline" href="#" onclick="OpenPPLink()">Helio Additive Privacy Agreement</a> and <a class="underline" href="#" onclick="OpenTouLink()">Helio Additive User Agreement</a> for detailed information.</p>
|
||||
|
||||
<p>Meanwhile, you understand that this product is provided to you "as is" <strong>based on <span class="underline">Helio Additive</span>'s services</strong>, and QIDI Tech makes no express or implied warranties of any kind, nor can it control the service effects. To the fullest extent permitted by applicable law, QIDI Tech or its licensors/affiliates do not provide any express or implied representations or warranties, including but not limited to warranties regarding merchantability, satisfactory quality, fitness for a particular purpose, accuracy, confidentiality, and non-infringement of third-party rights. Due to the nature of network services, QIDI Tech cannot guarantee that the service will be available at all times, and QIDI Tech reserves the right to terminate the service based on relevant circumstances. You agree not to use this product and its related updates to engage in the following activities:</p>
|
||||
|
||||
<ol>
|
||||
<li>Copy or use any part of this product outside the authorized scope of <span class="underline">Helio Additive</span> and QIDI Tech;</li>
|
||||
<li>Attempt to disrupt, bypass, alter, invalidate, or evade any Digital Rights Management system related to and/or an integral part of this product;</li>
|
||||
<li>Using this software and services for any improper or illegal activities.</li>
|
||||
</ol>
|
||||
|
||||
<p><strong>When you confirm to enable this feature, it means that you have confirmed and agreed to the above statements.</strong></p>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
<script type="text/javascript">
|
||||
const darkmode = getUrlParam('darkmode');
|
||||
if (darkmode === '1') {
|
||||
document.body.classList.add('dark');
|
||||
}
|
||||
</script>
|
||||
174
resources/web/helio/helio_service_snote_cn.html
Normal file
174
resources/web/helio/helio_service_snote_cn.html
Normal file
@@ -0,0 +1,174 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
<script type="text/javascript" src="js/index.js"></script>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<style>
|
||||
body {
|
||||
position: absolute;
|
||||
width: 690px;
|
||||
height: 190px;
|
||||
font-family: 'HarmonyOS Sans SC', sans-serif;
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
font-size: 14px;
|
||||
line-height: 22px; /* 157% */
|
||||
color: #5C5C5C;
|
||||
margin: 10;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.header {
|
||||
background-color: #f5f5f5;
|
||||
padding: 10px 15px;
|
||||
border-bottom: 1px solid #e0e0e0;
|
||||
}
|
||||
|
||||
.underline {
|
||||
text-decoration: underline;
|
||||
text-underline-offset: 2px;
|
||||
}
|
||||
|
||||
.header h1 {
|
||||
font-size: 16px;
|
||||
margin: 0;
|
||||
color: #333333;
|
||||
}
|
||||
|
||||
h2 {
|
||||
font-size: 16px;
|
||||
margin: 0 0 15px 0;
|
||||
color: #333333;
|
||||
}
|
||||
|
||||
p {
|
||||
margin: 0 0 15px 0;
|
||||
text-align: justify;
|
||||
}
|
||||
|
||||
strong {
|
||||
font-weight: 600;
|
||||
color: #333333;
|
||||
}
|
||||
|
||||
a {
|
||||
color: #0066CC;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
a:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
ul {
|
||||
margin: 0 0 15px 20px;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
li {
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
|
||||
.buttons {
|
||||
margin-top: 25px;
|
||||
display: flex;
|
||||
gap: 15px;
|
||||
}
|
||||
|
||||
.btn {
|
||||
padding: 8px 20px;
|
||||
border-radius: 4px;
|
||||
cursor: pointer;
|
||||
font-family: 'HarmonyOS Sans SC', sans-serif;
|
||||
font-size: 14px;
|
||||
line-height: 1;
|
||||
border: none;
|
||||
}
|
||||
|
||||
.btn-primary {
|
||||
background-color: #007DFF;
|
||||
color: white;
|
||||
}
|
||||
|
||||
.btn-primary:hover {
|
||||
background-color: #0066CC;
|
||||
}
|
||||
|
||||
.btn-secondary {
|
||||
background-color: #F5F5F5;
|
||||
color: #5C5C5C;
|
||||
border: 1px solid #DDDDDD;
|
||||
}
|
||||
|
||||
.btn-secondary:hover {
|
||||
background-color: #EAEAEA;
|
||||
}
|
||||
|
||||
.warning {
|
||||
color: #FF5722;
|
||||
}
|
||||
|
||||
.special-note {
|
||||
font-family: 'HarmonyOS Sans SC';
|
||||
font-style: normal;
|
||||
font-weight: 700;
|
||||
font-size: 16px;
|
||||
line-height: 22px;
|
||||
color: #212121;
|
||||
display: block;
|
||||
}
|
||||
|
||||
body.dark {
|
||||
background-color: #2d2d31;
|
||||
color: #FFFFFF;
|
||||
}
|
||||
|
||||
body.dark .header {
|
||||
background-color: #2d2d2d;
|
||||
border-bottom-color: #444;
|
||||
|
||||
}
|
||||
|
||||
body.dark h1,
|
||||
body.dark h2,
|
||||
body.dark strong {
|
||||
color: #FFFFFF;
|
||||
}
|
||||
|
||||
body.dark .special-note {
|
||||
color: #FFFFFF;
|
||||
}
|
||||
|
||||
body.dark a {
|
||||
color: #90caf9;
|
||||
}
|
||||
|
||||
body.dark .btn-secondary {
|
||||
background-color: #333;
|
||||
color: #FFFFFF;
|
||||
border-color: #555;
|
||||
}
|
||||
|
||||
body.dark .btn-secondary:hover {
|
||||
background-color: #444;
|
||||
}
|
||||
|
||||
body.dark .warning {
|
||||
color: #ff8a65;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p><span class="special-note">特别说明</span></p>
|
||||
|
||||
<p>该内容由第三方 Helio Additive 提供和托管。所有数据收集和处理活动均由 Helio Additive 独立负责,QIDI Tech对此不承担任何责任。 点击“同意并继续”即表示您同意 <a class="underline" href="#" onclick="OpenPPLink()">Helio Additive的隐私协议</a>。</p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
<script type="text/javascript">
|
||||
const darkmode = getUrlParam('darkmode');
|
||||
if (darkmode === '1') {
|
||||
document.body.classList.add('dark');
|
||||
}
|
||||
</script>
|
||||
155
resources/web/helio/helio_service_snote_en.html
Normal file
155
resources/web/helio/helio_service_snote_en.html
Normal file
@@ -0,0 +1,155 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<script type="text/javascript" src="js/index.js"></script>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<style>
|
||||
body {
|
||||
position: absolute;
|
||||
width: 690px;
|
||||
height: 190px;
|
||||
font-family: 'HarmonyOS Sans SC', sans-serif;
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
font-size: 14px;
|
||||
line-height: 22px; /* 157% */
|
||||
color: #5C5C5C;
|
||||
margin: 10;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
.header {
|
||||
background-color: #f5f5f5;
|
||||
padding: 10px 15px;
|
||||
border-bottom: 1px solid #e0e0e0;
|
||||
}
|
||||
.underline {
|
||||
text-decoration: underline;
|
||||
text-underline-offset: 2px;
|
||||
}
|
||||
.header h1 {
|
||||
font-size: 16px;
|
||||
margin: 0;
|
||||
color: #333333;
|
||||
}
|
||||
h2 {
|
||||
font-size: 16px;
|
||||
margin: 0 0 15px 0;
|
||||
color: #333333;
|
||||
}
|
||||
p {
|
||||
margin: 0 0 15px 0;
|
||||
text-align: justify;
|
||||
}
|
||||
strong {
|
||||
font-weight: 600;
|
||||
color: #333333;
|
||||
}
|
||||
a {
|
||||
color: #0066CC;
|
||||
text-decoration: none;
|
||||
}
|
||||
a:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
ul {
|
||||
margin: 0 0 15px 20px;
|
||||
padding: 0;
|
||||
}
|
||||
li {
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
.buttons {
|
||||
margin-top: 25px;
|
||||
display: flex;
|
||||
gap: 15px;
|
||||
}
|
||||
.btn {
|
||||
padding: 8px 20px;
|
||||
border-radius: 4px;
|
||||
cursor: pointer;
|
||||
font-family: 'HarmonyOS Sans SC', sans-serif;
|
||||
font-size: 14px;
|
||||
line-height: 1;
|
||||
border: none;
|
||||
}
|
||||
.btn-primary {
|
||||
background-color: #007DFF;
|
||||
color: white;
|
||||
}
|
||||
.btn-primary:hover {
|
||||
background-color: #0066CC;
|
||||
}
|
||||
.btn-secondary {
|
||||
background-color: #F5F5F5;
|
||||
color: #5C5C5C;
|
||||
border: 1px solid #DDDDDD;
|
||||
}
|
||||
.btn-secondary:hover {
|
||||
background-color: #EAEAEA;
|
||||
}
|
||||
.warning {
|
||||
color: #FF5722;
|
||||
}
|
||||
.special-note {
|
||||
font-family: 'HarmonyOS Sans SC';
|
||||
font-style: normal;
|
||||
font-weight: 700;
|
||||
font-size: 16px;
|
||||
line-height: 22px;
|
||||
color: #212121;
|
||||
display: block;
|
||||
}
|
||||
|
||||
body.dark {
|
||||
background-color: #2d2d31;
|
||||
color: #FFFFFF;
|
||||
}
|
||||
|
||||
body.dark .header {
|
||||
background-color: #2d2d2d;
|
||||
border-bottom-color: #444;
|
||||
|
||||
}
|
||||
|
||||
body.dark h1,
|
||||
body.dark h2,
|
||||
body.dark strong {
|
||||
color: #FFFFFF;
|
||||
}
|
||||
|
||||
body.dark .special-note {
|
||||
color: #FFFFFF;
|
||||
}
|
||||
body.dark a {
|
||||
color: #90caf9;
|
||||
}
|
||||
|
||||
body.dark .btn-secondary {
|
||||
background-color: #333;
|
||||
color: #FFFFFF;
|
||||
border-color: #555;
|
||||
}
|
||||
|
||||
body.dark .btn-secondary:hover {
|
||||
background-color: #444;
|
||||
}
|
||||
|
||||
body.dark .warning {
|
||||
color: #ff8a65;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p><span class="special-note">Special Note</span></p>
|
||||
|
||||
<p>This service is provided and hosted by a third party, Helio Additive. All data collection and processing activities are solely managed by Helio Additive, and QIDI Tech assumes no responsibility in this regard. By clicking "Accept and proceed", you agree to <a class="underline" href="#" onclick="OpenPPLink()">Helio Additive's privacy policy. </a></p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
<script type="text/javascript">
|
||||
const darkmode = getUrlParam('darkmode');
|
||||
if (darkmode === '1') {
|
||||
document.body.classList.add('dark');
|
||||
}
|
||||
</script>
|
||||
31
resources/web/helio/js/index.js
Normal file
31
resources/web/helio/js/index.js
Normal file
@@ -0,0 +1,31 @@
|
||||
function IsInSlicer() {
|
||||
let bMatch = navigator.userAgent.match(RegExp('BBL-Slicer', 'i'));
|
||||
|
||||
return bMatch;
|
||||
}
|
||||
|
||||
function SendWXMessage(strMsg) {
|
||||
let bCheck = IsInSlicer();
|
||||
|
||||
if (bCheck != null) {
|
||||
window.wx.postMessage(strMsg);
|
||||
}
|
||||
}
|
||||
|
||||
function OpenPPLink() {
|
||||
SendWXMessage("helio_link_pp");
|
||||
}
|
||||
|
||||
function OpenTouLink() {
|
||||
SendWXMessage("helio_link_tou");
|
||||
}
|
||||
|
||||
function OpenHomeLink() {
|
||||
SendWXMessage("helio_link_home");
|
||||
}
|
||||
|
||||
function getUrlParam(name) {
|
||||
const reg = new RegExp(`(^|&)${name}=([^&]*)(&|$)`);
|
||||
const r = window.location.search.substr(1).match(reg);
|
||||
return r ? decodeURIComponent(r[2]) : null;
|
||||
}
|
||||
Reference in New Issue
Block a user