Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pkg/app/pagewriter/login/cann.html
Original file line number Diff line number Diff line change
Expand Up @@ -157,10 +157,10 @@
<input class="checkbox" type="checkbox" />
<div class="info">
<p>
我已阅读并同意<a href="/agreement_ch.html" target="_blank"
我已阅读并同意<a href="/agreement_zh.html" target="_blank"
>《用户授权协议》</a
>和社区<a
href="https://www.hiascend.com/zh/legal/privacy"
href="/privacy"
target="_blank"
>《隐私政策》</a
>
Expand Down
11 changes: 1 addition & 10 deletions pkg/app/pagewriter/login/euler-en.html
Original file line number Diff line number Diff line change
Expand Up @@ -157,21 +157,12 @@
<div class="label">
<input class="checkbox" type="checkbox" />
<div class="info">
<p class="lang-zh">
我已阅读并同意<a href="/agreement_ch.html" target="_blank"
>《用户授权协议》</a
>和社区<a
href="https://www.openeuler.openatom.cn/zh/other/privacy//"
target="_blank"
>《隐私政策》</a
>
</p>
<p class="lang-en">
I have read and agree to the
<a href="/agreement_en.html" target="_blank">User Agreement</a>
and the
<a
href="https://www.openeuler.openatom.cn/en/other/privacy/"
href="https://www.openeuler.org/en/other/privacy/"
target="_blank"
>Privacy Policy</a
>
Expand Down
70 changes: 36 additions & 34 deletions pkg/app/pagewriter/login/euler.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="shortcut icon" href="https://www.openeuler.org/favicon.ico" type="image/x-icon">
<link
rel="shortcut icon"
href="https://www.openeuler.org/favicon.ico"
type="image/x-icon"
/>
<title>openEuler Summary 2025</title>
<style>
* {
Expand Down Expand Up @@ -46,13 +50,13 @@
color: #fff;
font-weight: bold;
cursor: pointer;
}
}

.wrap .label {
font-size: 14px;
color: #fff;
margin-top: 30px;
display: flex;
display: flex;
text-shadow: 0 2px 4px rgba(0, 2, 59, 0.8);
}

Expand All @@ -71,16 +75,15 @@
transition: background-color 0.3s, border-color 0.3s;
cursor: pointer;
margin-top: 3px;
}

}

.checkbox:checked {
background-color: #002fa7;
border: none;
}

.checkbox:checked::before {
content: "";
content: '';
position: absolute;
left: 50%;
top: 42%;
Expand All @@ -89,20 +92,19 @@
border: solid #fff;
border-width: 0 2px 2px 0;
transform: translate(-50%, -50%) rotate(45deg);
}
}

.wrap .label a {
color: #fff;
display: inline-block;
display: inline-block;
cursor: pointer;
}


.wrap .label .info {
padding-left: 10px;
}

.wrap .label .info p{
.wrap .label .info p {
cursor: pointer;
}

Expand All @@ -116,13 +118,13 @@
.checkbox:hover {
border: 1px solid #406fe7;
}
.wrap .label a:hover {
.wrap .label a:hover {
color: #406fe7;
}
.checkbox:checked:hover {
background: #36f;
}
}
}

@media (max-width: 600px) {
.wrap {
Expand Down Expand Up @@ -156,7 +158,7 @@
<input class="checkbox" type="checkbox" />
<div class="info">
<p class="lang-zh">
我已阅读并同意<a href="/agreement_ch.html" target="_blank"
我已阅读并同意<a href="/agreement_zh.html" target="_blank"
>《用户授权协议》</a
>和社区<a
href="https://www.openeuler.openatom.cn/zh/other/privacy/"
Expand All @@ -179,31 +181,31 @@
</div>
</div>
<script>
let labelDom = document.querySelector(".info");
let checkbox = document.querySelector(".checkbox");
let btn = document.querySelector(".button");
checkbox.addEventListener("click", function () {
let labelDom = document.querySelector('.info');
let checkbox = document.querySelector('.checkbox');
let btn = document.querySelector('.button');
checkbox.addEventListener('click', function () {
checkbox.checked
? btn.classList.remove("not-allowed")
: btn.classList.add("not-allowed");
? btn.classList.remove('not-allowed')
: btn.classList.add('not-allowed');
});
labelDom.addEventListener("click", function () {
labelDom.addEventListener('click', function () {
checkbox.checked = !checkbox.checked;

checkbox.checked
? btn.classList.remove("not-allowed")
: btn.classList.add("not-allowed");
? btn.classList.remove('not-allowed')
: btn.classList.add('not-allowed');
});
btn.addEventListener("click", function () {
checkbox.checked ? "" : event.preventDefault();

btn.addEventListener('click', function () {
checkbox.checked ? '' : event.preventDefault();
});
if (window.location.hash) {
(function () {
var inputs = document.getElementsByName("rd");
var inputs = document.getElementsByName('rd');
for (var i = 0; i < inputs.length; i++) {
// Add hash, but make sure it is only added once
var idx = inputs[i].value.indexOf("#");
var idx = inputs[i].value.indexOf('#');
if (idx >= 0) {
// Remove existing hash from URL
inputs[i].value = inputs[i].value.substr(0, idx);
Expand All @@ -214,15 +216,15 @@
}

// 根据中英文显示文案
let lang = "zh-CN";
if (window.location.pathname.includes("en")) {
document.querySelector(".lang-zh").remove();
lang = "en";
let lang = 'zh-CN';
if (window.location.pathname.includes('en')) {
document.querySelector('.lang-zh').remove();
lang = 'en';
} else {
document.querySelector(".lang-en").remove();
lang = "zh-CN";
document.querySelector('.lang-en').remove();
lang = 'zh-CN';
}
document.documentElement.setAttribute("lang", lang);
document.documentElement.setAttribute('lang', lang);
</script>
</body>
</html>
Expand Down
20 changes: 10 additions & 10 deletions pkg/app/pagewriter/login/gauss-en.html
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
}

.checkbox:checked::before {
content: "";
content: '';
position: absolute;
left: 50%;
top: 42%;
Expand Down Expand Up @@ -168,22 +168,22 @@
</div>
</div>
<script>
let checkbox = document.querySelector(".checkbox");
let btn = document.querySelector(".button");
checkbox.addEventListener("click", function () {
let checkbox = document.querySelector('.checkbox');
let btn = document.querySelector('.button');
checkbox.addEventListener('click', function () {
checkbox.checked
? btn.classList.remove("not-allowed")
: btn.classList.add("not-allowed");
? btn.classList.remove('not-allowed')
: btn.classList.add('not-allowed');
});
btn.addEventListener("click", function () {
checkbox.checked ? "" : event.preventDefault();
btn.addEventListener('click', function () {
checkbox.checked ? '' : event.preventDefault();
});
if (window.location.hash) {
(function () {
var inputs = document.getElementsByName("rd");
var inputs = document.getElementsByName('rd');
for (var i = 0; i < inputs.length; i++) {
// Add hash, but make sure it is only added once
var idx = inputs[i].value.indexOf("#");
var idx = inputs[i].value.indexOf('#');
if (idx >= 0) {
// Remove existing hash from URL
inputs[i].value = inputs[i].value.substr(0, idx);
Expand Down
58 changes: 26 additions & 32 deletions pkg/app/pagewriter/login/gauss.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="shortcut icon" href="https://opengauss.org/favicon.ico" type="image/x-icon">
<link
rel="shortcut icon"
href="https://opengauss.org/favicon.ico"
type="image/x-icon"
/>
<title>openGauss Summary 2025</title>
<style>
* {
Expand All @@ -16,7 +20,7 @@
body {
background: #7d32ea;
}
.wrap .label .info p{
.wrap .label .info p {
cursor: pointer;
}

Expand Down Expand Up @@ -51,13 +55,11 @@
cursor: pointer;
}



.wrap .label {
font-size: 14px;
color: #fff;
margin-top: 30px;
display: flex;
display: flex;
text-shadow: 0 0 4px rgba(51, 0, 82, 0.5);
}

Expand All @@ -78,15 +80,13 @@
margin-top: 3px;
}



.checkbox:checked {
background-color: #7d32ea;
border: none;
}

.checkbox:checked::before {
content: "";
content: '';
position: absolute;
left: 50%;
top: 42%;
Expand All @@ -97,13 +97,11 @@
transform: translate(-50%, -50%) rotate(45deg);
}



.wrap .label a {
color: #fff;
display: inline-block;
display: inline-block;
cursor: pointer;
}
}

.wrap .label .info {
padding-left: 10px;
Expand All @@ -115,7 +113,6 @@
background: #e1abff;
}


@media (hover: hover) {
.checkbox:checked:hover {
background: #bd72ff;
Expand All @@ -126,7 +123,6 @@
.wrap .label a:hover {
color: #bd72ff;
}

}
@media (max-width: 600px) {
.wrap {
Expand Down Expand Up @@ -161,11 +157,9 @@
<input class="checkbox" type="checkbox" />
<div class="info">
<p>
我已阅读并同意<a href="/agreement_ch.html" target="_blank"
我已阅读并同意<a href="/agreement_zh.html" target="_blank"
>《用户授权协议》</a
>和社区<a
href="https://opengauss.org/zh/privacy/"
target="_blank"
>和社区<a href="https://opengauss.org/zh/privacy/" target="_blank"
>《隐私政策》</a
>
</p>
Expand All @@ -174,31 +168,31 @@
</div>
</div>
<script>
let labelDom = document.querySelector(".info");
let checkbox = document.querySelector(".checkbox");
let btn = document.querySelector(".button");
checkbox.addEventListener("click", function () {
let labelDom = document.querySelector('.info');
let checkbox = document.querySelector('.checkbox');
let btn = document.querySelector('.button');
checkbox.addEventListener('click', function () {
checkbox.checked
? btn.classList.remove("not-allowed")
: btn.classList.add("not-allowed");
? btn.classList.remove('not-allowed')
: btn.classList.add('not-allowed');
});
labelDom.addEventListener("click", function () {
labelDom.addEventListener('click', function () {
checkbox.checked = !checkbox.checked;

checkbox.checked
? btn.classList.remove("not-allowed")
: btn.classList.add("not-allowed");
? btn.classList.remove('not-allowed')
: btn.classList.add('not-allowed');
});
btn.addEventListener("click", function () {
checkbox.checked ? "" : event.preventDefault();

btn.addEventListener('click', function () {
checkbox.checked ? '' : event.preventDefault();
});
if (window.location.hash) {
(function () {
var inputs = document.getElementsByName("rd");
var inputs = document.getElementsByName('rd');
for (var i = 0; i < inputs.length; i++) {
// Add hash, but make sure it is only added once
var idx = inputs[i].value.indexOf("#");
var idx = inputs[i].value.indexOf('#');
if (idx >= 0) {
// Remove existing hash from URL
inputs[i].value = inputs[i].value.substr(0, idx);
Expand Down
Loading
Loading