Skip to content

Commit 6307795

Browse files
committed
[ Add ] Links of GitHub sign in & CC License
[ Add ] Evil Browsers alert [ Add ] Anti 996 license
1 parent 5d016f6 commit 6307795

File tree

7 files changed

+107
-13
lines changed

7 files changed

+107
-13
lines changed

LICENSE

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
版权所有 (C)2019 freeCodeCamp 成都社区
2+
3+
反 996 许可证版本 1.0(草案)
4+
5+
在符合下列条件的情况下,
6+
特此免费向任何得到本授权作品的副本(包括源代码、文件和/或相关内容,以下统称为“授权作品”
7+
)的个人和法人实体授权:被授权个人或法人实体有权以任何目的处置授权作品,包括但不限于使
8+
用、复制,修改,衍生利用、散布,发布和再许可:
9+
10+
11+
1. 个人或法人实体必须在许可作品的每个再散布或衍生副本上包含以上版权声明和本许可证,不
12+
得自行修改。
13+
2. 个人或法人实体必须严格遵守与个人实际所在地或个人出生地或归化地、或法人实体注册地或
14+
经营地(以较严格者为准)的司法管辖区所有适用的与劳动和就业相关法律、法规、规则和
15+
标准。如果该司法管辖区没有此类法律、法规、规章和标准或其法律、法规、规章和标准不可
16+
执行,则个人或法人实体必须遵守国际劳工标准的核心公约。
17+
3. 个人或法人不得以任何方式诱导或强迫其全职或兼职员工或其独立承包人以口头或书面形式同
18+
意直接或间接限制、削弱或放弃其所拥有的,受相关与劳动和就业有关的法律、法规、规则和
19+
标准保护的权利或补救措施,无论该等书面或口头协议是否被该司法管辖区的法律所承认,该
20+
等个人或法人实体也不得以任何方法限制其雇员或独立承包人向版权持有人或监督许可证合规
21+
情况的有关当局报告或投诉上述违反许可证的行为的权利。
22+
23+
该授权作品是"按原样"提供,不做任何明示或暗示的保证,包括但不限于对适销性、特定用途适用
24+
性和非侵权性的保证。在任何情况下,无论是在合同诉讼、侵权诉讼或其他诉讼中,版权持有人均
25+
不承担因本软件或本软件的使用或其他交易而产生、引起或与之相关的任何索赔、损害或其他责任。
26+
27+
28+
------------------------- ENGLISH ------------------------------
29+
30+
31+
Copyright (C)2019 freeCodeCamp ChengDu community
32+
33+
Anti 996 License Version 1.0 (Draft)
34+
35+
Permission is hereby granted to any individual or legal entity obtaining a copy
36+
of this licensed work (including the source code, documentation and/or related
37+
items, hereinafter collectively referred to as the "licensed work"), free of
38+
charge, to deal with the licensed work for any purpose, including without
39+
limitation, the rights to use, reproduce, modify, prepare derivative works of,
40+
publish, distribute and sublicense the licensed work, subject to the following
41+
conditions:
42+
43+
1. The individual or the legal entity must conspicuously display, without
44+
modification, this License on each redistributed or derivative copy of the
45+
Licensed Work.
46+
47+
2. The individual or the legal entity must strictly comply with all applicable
48+
laws, regulations, rules and standards of the jurisdiction relating to
49+
labor and employment where the individual is physically located or where
50+
the individual was born or naturalized; or where the legal entity is
51+
registered or is operating (whichever is stricter). In case that the
52+
jurisdiction has no such laws, regulations, rules and standards or its
53+
laws, regulations, rules and standards are unenforceable, the individual
54+
or the legal entity are required to comply with Core International Labor
55+
Standards.
56+
57+
3. The individual or the legal entity shall not induce or force its
58+
employee(s), whether full-time or part-time, or its independent
59+
contractor(s), in any methods, to agree in oral or written form,
60+
to directly or indirectly restrict, weaken or relinquish his or
61+
her rights or remedies under such laws, regulations, rules and
62+
standards relating to labor and employment as mentioned above,
63+
no matter whether such written or oral agreement are enforceable
64+
under the laws of the said jurisdiction, nor shall such individual
65+
or the legal entity limit, in any methods, the rights of its employee(s)
66+
or independent contractor(s) from reporting or complaining to the copyright
67+
holder or relevant authorities monitoring the compliance of the license
68+
about its violation(s) of the said license.
69+
70+
THE LICENSED WORK IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
71+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
72+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE COPYRIGHT
73+
HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
74+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN ANY WAY CONNECTION
75+
WITH THE LICENSED WORK OR THE USE OR OTHER DEALINGS IN THE LICENSED WORK.

ReadMe.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
Project generated by [create-hexo-wiki](https://tech-query.me/create-hexo-wiki/)
44

55
[![NPM Dependency](https://david-dm.org/FreeCodeCamp-Chengdu/FreeCodeCamp-Chengdu.github.io.svg)](https://david-dm.org/FreeCodeCamp-Chengdu/FreeCodeCamp-Chengdu.github.io)
6-
76
[![Build Status](https://travis-ci.com/FreeCodeCamp-Chengdu/FreeCodeCamp-Chengdu.github.io.svg?branch=hexo)](https://travis-ci.com/FreeCodeCamp-Chengdu/FreeCodeCamp-Chengdu.github.io)
7+
[![Anti 996 LICENSE](https://img.shields.io/badge/license-Anti%20996-blue.svg)](https://github.com/996icu/996.ICU/blob/master/LICENSE)
88

99
## 参与开发
1010

@@ -94,3 +94,7 @@ git push
9494
3. [DataURI 生成](themes/Icarus/includes/helpers/data.js#L33)
9595

9696
4. [iCalendar 事件](themes/Icarus/includes/helpers/data.js#L38)
97+
98+
### 特殊脚本
99+
100+
1. [Don't be evil !](themes/Icarus/layout/common/evil_alert.ejs)

themes/Icarus/_config.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,19 +31,16 @@ navbar:
3131
关于: /categories/Profile/
3232
# Navigation bar links to be shown on the right
3333
links:
34-
投稿:
35-
icon: fas fa-user-edit
36-
url: /write/
34+
登录:
35+
icon: fas fa-sign-in-alt
36+
url: https://fcc-cd.leanapp.cn/signIn/
3737
# Footer section link settings
3838
footer:
3939
# Links to be shown on the right of the footer section
4040
links:
4141
Creative Commons:
4242
icon: fab fa-creative-commons
43-
url: 'https://creativecommons.org/'
44-
Attribution 4.0 International:
45-
icon: fab fa-creative-commons-by
46-
url: 'https://creativecommons.org/licenses/by/4.0/'
43+
url: https://creativecommons.org/licenses/by-nc-sa/4.0/deed.zh
4744
Fork on GitHub:
4845
icon: fab fa-github
4946
url: https://github.com/FreeCodeCamp-Chengdu/FreeCodeCamp-Chengdu.github.io

themes/Icarus/layout/activity_launch.ejs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@
99
<a class="button is-link is-rounded" target="_blank"
1010
href="https://github.com/FreeCodeCamp-Chengdu/Wiki/edit/master/_data/volunteer.yml">添加人员</a>
1111
</p>
12-
<form target="_blank" method="POST" action="https://fcc-cdc.leanapp.cn/form?source=JinShuJu">
12+
<h2>报名/反馈表单</h2>
13+
<p>(先点本页右上角登录)</p>
14+
<form target="_blank" method="POST" action="https://fcc-cd.leanapp.cn/form?source=JinShuJu">
1315
<p>
1416
<label>https://jinshuju.net/f/<input type="text" name="id" required></label>
1517
</p>
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<%- _js(cdn('ua-parser-js', '0.7.19', 'dist/ua-parser.min.js')) %>
2+
<script>
3+
if ([
4+
'2345Explorer', 'BIDUBrowser', 'Baidu', 'IE', 'IEMobile', 'Mobile Safari',
5+
'QQBrowser', 'Safari', 'WeChat'
6+
].indexOf(
7+
self.UAParser(navigator.userAgent).browser.name.toLowerCase()
8+
) > -1)
9+
self.alert(
10+
(navigator.languages.pop() === 'zh')
11+
? '您当前浏览器可能存在 国际标准支持残缺、劫持用户访问 等问题,强烈建议使用 谷歌、火狐、微软 Edge、欧朋 等主流浏览器!'
12+
: 'Your current browser may have International standards incompatibility, Hijacking user access, etc. It is strongly recommended to use Mainstream browsers such as Chrome, Firefox, Microsoft Edge, and Opera!'
13+
);
14+
</script>

themes/Icarus/layout/common/head.ejs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,9 @@
4343
<%- _css('css/style') %>
4444

4545
<%- _css('css/common') %>
46+
47+
<%- _js(cdn('jquery', '3.3.1', 'dist/jquery.min.js')) %>
48+
<%- _js(cdn('moment', '2.22.2', 'min/moment-with-locales.min.js')) %>
49+
<script>moment.locale("<%= get_config('language', 'en') %>");</script>
50+
51+
<%- partial('./evil_alert') %>

themes/Icarus/layout/layout.ejs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@
22
<html <%- has_config('language') ? ' lang="' + get_config('language').substring(0, 2) + '"' : '' %>>
33
<head>
44
<%- partial('common/head') %>
5-
6-
<%- _js(cdn('jquery', '3.3.1', 'dist/jquery.min.js')) %>
7-
<%- _js(cdn('moment', '2.22.2', 'min/moment-with-locales.min.js')) %>
8-
<script>moment.locale("<%= get_config('language', 'en') %>");</script>
95
</head>
106
<body class="is-<%= column_count() %>-column">
117
<%- partial('common/navbar', { page }) %>

0 commit comments

Comments
 (0)