code stringlengths 1 1.05M | repo_name stringlengths 6 83 | path stringlengths 3 242 | language stringclasses 222
values | license stringclasses 20
values | size int64 1 1.05M |
|---|---|---|---|---|---|
:root {
--auto-center-width: 1160px;
}
body {
background-color: gray;
}
a {
color: white;
text-decoration: none;
}
a:active {
color: blue;
}
/* 版心 */
.auto-center {
width: var(--auto-center-width);
margin-left: auto;
margin-right: auto;
}
/* 默认是横跨一行,宽度为100%,但是不小于版心宽度 */
.full-center... | 2201_75539691/qd-project-shizhibo | 第一阶段:HTML和CSS3/2024-7-29(30)-day23/cheng/css/common.css | CSS | unknown | 411 |
.footer, .copy {
color:white;
background-color: #22212f;
}
.footer>.auto-center {
display: flex;
align-items: flex-start;
padding-top: 57px;
}
.footer .service {
width:290px;
border-right: 1px solid #4c4f5f;
}
.footer .chat {
display: flex;
padding: 0 30px 18px;
}
.footer .concat... | 2201_75539691/qd-project-shizhibo | 第一阶段:HTML和CSS3/2024-7-29(30)-day23/cheng/css/footer.css | CSS | unknown | 1,202 |
.header-fixed{
position: fixed;
left: 0;
right: 0;
top: 22px;
}
.header>.auto-center{
display: flex;
justify-content: space-between;
}
.header .logo{
width: 92px;
height: 36px;
background: url("../images/logofanbai.png") center / contain no-repeat;
}
.header .nav{
display: fle... | 2201_75539691/qd-project-shizhibo | 第一阶段:HTML和CSS3/2024-7-29(30)-day23/cheng/css/header.css | CSS | unknown | 942 |
.banner {
background: url("../images/banner-main.jpg") center / cover no-repeat;
height: 664px;
} | 2201_75539691/qd-project-shizhibo | 第一阶段:HTML和CSS3/2024-7-29(30)-day23/cheng/css/index.css | CSS | unknown | 105 |
/* http://meyerweb.com/eric/tools/css/reset/
v2.0 | 20110126
License: none (public domain)
*/
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
... | 2201_75539691/qd-project-shizhibo | 第一阶段:HTML和CSS3/2024-7-29(30)-day23/cheng/css/reset.css | CSS | unknown | 1,092 |
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="keywords" content="橙券">
<meta name="description" content="橙券">
<title>橙券</title>
<link rel="stylesheet" href="./css/reset.css">
<link rel="stylesheet" ... | 2201_75539691/qd-project-shizhibo | 第一阶段:HTML和CSS3/2024-7-29(30)-day23/cheng/index.html | HTML | unknown | 4,746 |
:root {
--auto-center-width: 1160px;
}
body {
font: 12px/1.5 "Microsoft YaHei","Heiti SC",tahoma,arial,"Hiragino Sans GB","\5B8B\4F53",sans-serif;
}
a {
color: white;
text-decoration: none;
}
a:active {
color: blue;
}
/* 版心 */
.auto-center {
width: var(--auto-center-width);
margin-left: ... | 2201_75539691/qd-project-shizhibo | 第一阶段:HTML和CSS3/2024-7-31-day24/cheng/css/common.css | CSS | unknown | 488 |
.footer, .copy {
color:white;
background-color: #22212f;
}
.footer>.auto-center {
display: flex;
align-items: flex-start;
padding-top: 57px;
}
.footer .service {
width:290px;
border-right: 1px solid #4c4f5f;
}
.footer .chat {
display: flex;
padding: 0 30px 18px;
}
.footer .concat... | 2201_75539691/qd-project-shizhibo | 第一阶段:HTML和CSS3/2024-7-31-day24/cheng/css/footer.css | CSS | unknown | 1,202 |
.header-fixed{
position: fixed;
left: 0;
right: 0;
top: 22px;
z-index: 1;
}
.header>.auto-center{
display: flex;
justify-content: space-between;
}
.header .logo{
width: 92px;
height: 36px;
background: url("../images/logofanbai.png") center / contain no-repeat;
}
.header .nav{
... | 2201_75539691/qd-project-shizhibo | 第一阶段:HTML和CSS3/2024-7-31-day24/cheng/css/header.css | CSS | unknown | 958 |
.banner {
position: relative;;
background: url("../images/banner-main.jpg") center / cover no-repeat;
height: 664px;
}
.banner .dots {
position: absolute;
left: 50%;
bottom: 78px;
transform: translateX(-50%);
display: flex;
}
.banner .dots>.dot-item {
width: 49px;
height: 3px;
... | 2201_75539691/qd-project-shizhibo | 第一阶段:HTML和CSS3/2024-7-31-day24/cheng/css/index.css | CSS | unknown | 4,515 |
/* http://meyerweb.com/eric/tools/css/reset/
v2.0 | 20110126
License: none (public domain)
*/
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
... | 2201_75539691/qd-project-shizhibo | 第一阶段:HTML和CSS3/2024-7-31-day24/cheng/css/reset.css | CSS | unknown | 1,092 |
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="keywords" content="橙券">
<meta name="description" content="橙券">
<title>橙券</title>
<link rel="stylesheet" href="./css/reset.css">
<link rel="stylesheet" ... | 2201_75539691/qd-project-shizhibo | 第一阶段:HTML和CSS3/2024-7-31-day24/cheng/index.html | HTML | unknown | 12,573 |
<!--
* @Author: Zhouxin 2890091630@qq.com
* @Date: 2024-09-11 10:45:35
* @LastEditors: Zhouxin 2890091630@qq.com
* @LastEditTime: 2024-09-11 10:45:42
* @FilePath: \2024-8-1-day25\1.html
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%... | 2201_75539691/qd-project-shizhibo | 第一阶段:HTML和CSS3/2024-8-1-day25/1.html | HTML | unknown | 1,075 |
:root {
--auto-center-width: 1160px;
--header-z-index: 999;
--a-color: blue;
--a-color-active: white;
--header-white-hover: #ff7200;
}
body {
font: 12px/1.5 "Microsoft YaHei","Heiti SC",tahoma,arial,"Hiragino Sans GB","\5B8B\4F53",sans-serif;
}
a {
color: white;
text-decoration: none;
... | 2201_75539691/qd-project-shizhibo | 第一阶段:HTML和CSS3/2024-8-1-day25/css/common.css | CSS | unknown | 600 |
.footer, .copy {
color:white;
background-color: #22212f;
}
.footer>.auto-center {
display: flex;
align-items: flex-start;
padding-top: 57px;
}
.footer .service {
width:290px;
border-right: 1px solid #4c4f5f;
}
.footer .chat {
display: flex;
padding: 0 30px 18px;
}
.footer .concat... | 2201_75539691/qd-project-shizhibo | 第一阶段:HTML和CSS3/2024-8-1-day25/css/footer.css | CSS | unknown | 1,202 |
.header-fixed{
position: fixed;
left: 0;
right: 0;
z-index: var(--header-z-index);
}
.header>.auto-center{
display: flex;
justify-content: space-between;
}
.header .logo{
width: 92px;
height: 36px;
background: url("../images/logofanbai.png") center / contain no-repeat;
}
.header .... | 2201_75539691/qd-project-shizhibo | 第一阶段:HTML和CSS3/2024-8-1-day25/css/header.css | CSS | unknown | 1,332 |
.banner {
position: relative;;
background: url("../images/banner-main.jpg") center / cover no-repeat;
height: 664px;
}
.banner .dots {
position: absolute;
left: 50%;
bottom: 78px;
transform: translateX(-50%);
display: flex;
}
.banner .dots>.dot-item {
width: 49px;
height: 3px;
... | 2201_75539691/qd-project-shizhibo | 第一阶段:HTML和CSS3/2024-8-1-day25/css/index.css | CSS | unknown | 4,515 |
/* http://meyerweb.com/eric/tools/css/reset/
v2.0 | 20110126
License: none (public domain)
*/
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
... | 2201_75539691/qd-project-shizhibo | 第一阶段:HTML和CSS3/2024-8-1-day25/css/reset.css | CSS | unknown | 1,092 |
.banner {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
height: 380px;
background: url("../images/settle/supplier-cooperation.jpg") center / cover no-repeat;
color: #fff;
}
.banner .title {
font-size:44px;
margin-bottom:26px;
font-weight:no... | 2201_75539691/qd-project-shizhibo | 第一阶段:HTML和CSS3/2024-8-1-day25/css/settle.css | CSS | unknown | 1,712 |
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="keywords" content="橙券">
<meta name="description" content="橙券">
<title>橙券</title>
<link rel="stylesheet" href="./css/reset.css">
<link rel="stylesheet" ... | 2201_75539691/qd-project-shizhibo | 第一阶段:HTML和CSS3/2024-8-1-day25/index.html | HTML | unknown | 12,573 |
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="keywords" content="橙券">
<meta name="description" content="橙券">
<title>橙券</title>
<link rel="stylesheet" href="./css/reset.css">
<link rel="stylesheet" ... | 2201_75539691/qd-project-shizhibo | 第一阶段:HTML和CSS3/2024-8-1-day25/settle.html | HTML | unknown | 7,063 |
<!--
* @Author: your name
* @Date: 2020-07-24 19:46:37
* @LastEditTime: 2020-07-24 23:01:41
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
* @FilePath: \作业\homework.html
-->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=devic... | 2201_75539691/qd-project-shizhibo | 第二阶段:JavaScript/2024.11 .24-day11-作用域/homework.html | HTML | unknown | 2,223 |
<!--
* @Author: Zhouxin 2201_75539691@noreply.gitcode.com
* @Date: 2024-11-26 21:04:18
* @LastEditors: Zhouxin 2201_75539691@noreply.gitcode.com
* @LastEditTime: 2024-11-26 21:05:03
* @FilePath: \2024.11 .24-day11-作用域\tes2jt.html
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.co... | 2201_75539691/qd-project-shizhibo | 第二阶段:JavaScript/2024.11 .24-day11-作用域/tes2jt.html | HTML | unknown | 856 |
<!--
* @Author: Zhouxin 2201_75539691@noreply.gitcode.com
* @Date: 2024-11-24 22:48:27
* @LastEditors: Zhouxin 2201_75539691@noreply.gitcode.com
* @LastEditTime: 2024-11-25 15:39:55
* @FilePath: \2024.11 .24-day11-作用域\test.html
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/... | 2201_75539691/qd-project-shizhibo | 第二阶段:JavaScript/2024.11 .24-day11-作用域/test.html | HTML | unknown | 5,925 |
<!--
* @Author: Zhouxin 2201_75539691@noreply.gitcode.com
* @Date: 2024-11-25 10:23:17
* @LastEditors: Zhouxin 2201_75539691@noreply.gitcode.com
* @LastEditTime: 2024-11-25 10:45:35
* @FilePath: \2024.11 .24-day11-作用域\test2.html
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com... | 2201_75539691/qd-project-shizhibo | 第二阶段:JavaScript/2024.11 .24-day11-作用域/test2.html | HTML | unknown | 1,575 |
<!--
* @Author: Zhouxin 2201_75539691@noreply.gitcode.com
* @Date: 2024-11-25 12:19:24
* @LastEditors: Zhouxin 2201_75539691@noreply.gitcode.com
* @LastEditTime: 2024-11-25 15:39:30
* @FilePath: \2024.11 .24-day11-作用域\test3.html
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com... | 2201_75539691/qd-project-shizhibo | 第二阶段:JavaScript/2024.11 .24-day11-作用域/test3.html | HTML | unknown | 2,421 |
<!--
* @Author: Zhouxin 2201_75539691@noreply.gitcode.com
* @Date: 2024-11-25 16:01:26
* @LastEditors: Zhouxin 2201_75539691@noreply.gitcode.com
* @LastEditTime: 2024-11-25 16:33:14
* @FilePath: \2024.11 .24-day11-作用域\test5.html
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com... | 2201_75539691/qd-project-shizhibo | 第二阶段:JavaScript/2024.11 .24-day11-作用域/test5.html | HTML | unknown | 753 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>求两个数的最大数</title>
</head>
<body>
<SCript>
var a = 6;
var b = 7;
//第一种
var maxNumber;
var maxNumber = a;
if (a < b) {
maxNumber = b;
} else {
maxNumber = a;
... | 2201_75539691/qd-project-shizhibo | 第二阶段:JavaScript/2024.11.15-day05-隐式转换 控制流程/homework/demo1.html | HTML | unknown | 550 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>判断一个数是偶数还是奇数</title>
</head>
<body>
<script>
var a = 66;
a = Number(a);
if (!isNaN(a)) {
if (a % 2 == 0) {
console.log(a + "是偶数");
} else {
console.log(a + ... | 2201_75539691/qd-project-shizhibo | 第二阶段:JavaScript/2024.11.15-day05-隐式转换 控制流程/homework/demo2.html | HTML | unknown | 484 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>分数转换,把百分制转换成ABCDE <60E60-70 D70-80C 80-90B 90-100 A</title>
</head>
<body>
<script>
var score = 98;
if (score <= 100 && score >= 0) {
if (score <= 100 && score > 90) {
console.log("A");
... | 2201_75539691/qd-project-shizhibo | 第二阶段:JavaScript/2024.11.15-day05-隐式转换 控制流程/homework/demo3.html | HTML | unknown | 662 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>判断四季 3-5 春 6-8夏9-11秋12-2 冬</title>
</head>
<body>
<script>
var a = 8;
if (a <= 12 && a > 0) {
if (a > 8 && a <= 11) {
console.log("秋");
} else if (a > 5) {
console.... | 2201_75539691/qd-project-shizhibo | 第二阶段:JavaScript/2024.11.15-day05-隐式转换 控制流程/homework/demo4.html | HTML | unknown | 529 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>判断一个年份是闰年还是平年</title>
</head>
<body>
<script>
var year = 2024;
if (year > 0) {
if (year % 4 == 0 && year % 100 != 0 || year % 400 == 0) {
console.log(year + "是闰年");
} else {
... | 2201_75539691/qd-project-shizhibo | 第二阶段:JavaScript/2024.11.15-day05-隐式转换 控制流程/homework/demo5.html | HTML | unknown | 449 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>判断一个人的年龄是否满18岁(是否成年)</title>
</head>
<body>
<script>
var age = 22;
//第一种
if(age > 0 && !isNaN(Number(age))){
if(age < 18){
... | 2201_75539691/qd-project-shizhibo | 第二阶段:JavaScript/2024.11.15-day05-隐式转换 控制流程/homework/demo6.html | HTML | unknown | 700 |
<!--
* @Author: Zhouxin 2201_75539691@noreply.gitcode.com
* @Date: 2024-11-18 19:56:54
* @LastEditors: Zhouxin 2201_75539691@noreply.gitcode.com
* @LastEditTime: 2024-11-18 20:15:28
* @FilePath: \2024.11.15-day05-隐式转换 控制流程c:\Users\zhou'xin\Desktop\Gitee仓库\qd-project-shizhibo\第二阶段:JavaScript\2024.11.18-day07-数组\dem... | 2201_75539691/qd-project-shizhibo | 第二阶段:JavaScript/2024.11.18-day07-数组/demo1.html | HTML | unknown | 1,306 |
<!--
* @Author: Zhouxin 2201_75539691@noreply.gitcode.com
* @Date: 2024-11-18 20:17:10
* @LastEditors: Zhouxin 2201_75539691@noreply.gitcode.com
* @LastEditTime: 2024-11-18 20:40:49
* @FilePath: \2024.11.15-day05-隐式转换 控制流程c:\Users\zhou'xin\Desktop\Gitee仓库\qd-project-shizhibo\第二阶段:JavaScript\2024.11.18-day07-数组\dem... | 2201_75539691/qd-project-shizhibo | 第二阶段:JavaScript/2024.11.18-day07-数组/demo2.html | HTML | unknown | 1,210 |
<!--
* @Author: Zhouxin 2201_75539691@noreply.gitcode.com
* @Date: 2024-11-20 23:02:30
* @LastEditors: Zhouxin 2201_75539691@noreply.gitcode.com
* @LastEditTime: 2024-11-21 00:33:33
* @FilePath: \2024.11.20-day08-数组与字符串\1.html
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/O... | 2201_75539691/qd-project-shizhibo | 第二阶段:JavaScript/2024.11.20-day08-数组与字符串/1.html | HTML | unknown | 1,211 |
<!--
* @Author: Zhouxin 2201_75539691@noreply.gitcode.com
* @Date: 2024-11-21 09:52:10
* @LastEditors: Zhouxin 2201_75539691@noreply.gitcode.com
* @LastEditTime: 2024-11-21 09:53:25
* @FilePath: \2024.11.20-day08-数组与字符串\11.html
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/... | 2201_75539691/qd-project-shizhibo | 第二阶段:JavaScript/2024.11.20-day08-数组与字符串/11.html | HTML | unknown | 726 |
<!--
* @Author: Zhouxin 2201_75539691@noreply.gitcode.com
* @Date: 2024-11-20 20:26:55
* @LastEditors: Zhouxin 2201_75539691@noreply.gitcode.com
* @LastEditTime: 2024-11-20 20:33:33
* @FilePath: \2024.11.20-day08-数组与字符串\demo1.html
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.c... | 2201_75539691/qd-project-shizhibo | 第二阶段:JavaScript/2024.11.20-day08-数组与字符串/demo1.html | HTML | unknown | 961 |
<!--
* @Author: Zhouxin 2201_75539691@noreply.gitcode.com
* @Date: 2024-11-20 20:33:50
* @LastEditors: Zhouxin 2201_75539691@noreply.gitcode.com
* @LastEditTime: 2024-11-20 22:45:42
* @FilePath: \2024.11.20-day08-数组与字符串\demo2.html
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.c... | 2201_75539691/qd-project-shizhibo | 第二阶段:JavaScript/2024.11.20-day08-数组与字符串/demo2.html | HTML | unknown | 1,276 |
<!--
* @Author: Zhouxin 2201_75539691@noreply.gitcode.com
* @Date: 2024-11-20 20:39:08
* @LastEditors: Zhouxin 2201_75539691@noreply.gitcode.com
* @LastEditTime: 2024-11-20 20:42:01
* @FilePath: \2024.11.20-day08-数组与字符串\demo3.html
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.c... | 2201_75539691/qd-project-shizhibo | 第二阶段:JavaScript/2024.11.20-day08-数组与字符串/demo3.html | HTML | unknown | 843 |
<!--
* @Author: Zhouxin 2201_75539691@noreply.gitcode.com
* @Date: 2024-11-20 20:42:31
* @LastEditors: Zhouxin 2201_75539691@noreply.gitcode.com
* @LastEditTime: 2024-11-20 20:47:05
* @FilePath: \2024.11.20-day08-数组与字符串\demo4.html
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.c... | 2201_75539691/qd-project-shizhibo | 第二阶段:JavaScript/2024.11.20-day08-数组与字符串/demo4.html | HTML | unknown | 1,004 |
<!--
* @Author: Zhouxin 2201_75539691@noreply.gitcode.com
* @Date: 2024-11-20 20:48:23
* @LastEditors: Zhouxin 2201_75539691@noreply.gitcode.com
* @LastEditTime: 2024-11-20 20:51:14
* @FilePath: \2024.11.20-day08-数组与字符串\demo5.html
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.c... | 2201_75539691/qd-project-shizhibo | 第二阶段:JavaScript/2024.11.20-day08-数组与字符串/demo5.html | HTML | unknown | 1,001 |
<!-- 翻转数组 [1,2,3,4,5] => [5,4,3,2,1] -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<script>
var arr = [1, 2, 3, 4, 5];
for (var i = 0; i < (arr.length / 2... | 2201_75539691/qd-project-shizhibo | 第二阶段:JavaScript/2024.11.20-day08-数组与字符串/demo6.html | HTML | unknown | 549 |
<!--
* @Author: Zhouxin 2201_75539691@noreply.gitcode.com
* @Date: 2024-11-20 22:56:28
* @LastEditors: Zhouxin 2201_75539691@noreply.gitcode.com
* @LastEditTime: 2024-11-20 23:00:16
* @FilePath: \2024.11.20-day08-数组与字符串\demo7.html
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.c... | 2201_75539691/qd-project-shizhibo | 第二阶段:JavaScript/2024.11.20-day08-数组与字符串/demo7.html | HTML | unknown | 1,018 |
<!--
* @Author: Zhouxin 2201_75539691@noreply.gitcode.com
* @Date: 2024-11-21 14:49:38
* @LastEditors: Zhouxin 2201_75539691@noreply.gitcode.com
* @LastEditTime: 2024-11-21 15:09:29
* @FilePath: \2024.11.21-day09-字符串方法 函数\test.html
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.... | 2201_75539691/qd-project-shizhibo | 第二阶段:JavaScript/2024.11.21-day09-字符串方法 函数/test.html | HTML | unknown | 749 |
<!--
* @Author: Zhouxin 2201_75539691@noreply.gitcode.com
* @Date: 2024-11-21 16:39:08
* @LastEditors: Zhouxin 2201_75539691@noreply.gitcode.com
* @LastEditTime: 2024-11-21 16:39:17
* @FilePath: \2024.11.21-day09-字符串方法 函数\test2.html
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github... | 2201_75539691/qd-project-shizhibo | 第二阶段:JavaScript/2024.11.21-day09-字符串方法 函数/test2.html | HTML | unknown | 1,118 |
<!--
* @Author: Zhouxin 2201_75539691@noreply.gitcode.com
* @Date: 2024-11-22 17:44:53
* @LastEditors: Zhouxin 2201_75539691@noreply.gitcode.com
* @LastEditTime: 2024-11-23 09:47:38
* @FilePath: \2024.11.22-day10-函数\test.html
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OB... | 2201_75539691/qd-project-shizhibo | 第二阶段:JavaScript/2024.11.22-day10-函数/test.html | HTML | unknown | 4,817 |
<!--
* @Author: Zhouxin 2201_75539691@noreply.gitcode.com
* @Date: 2024-11-06 16:35:57
* @LastEditors: Zhouxin 2201_75539691@noreply.gitcode.com
* @LastEditTime: 2024-11-06 16:36:35
* @FilePath: \2024.11.6-day01-认识JavaScript\1.html
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.... | 2201_75539691/qd-project-shizhibo | 第二阶段:JavaScript/2024.11.6-day01-认识JavaScript/1.html | HTML | unknown | 691 |
<!--
* @Author: Zhouxin 2201_75539691@noreply.gitcode.com
* @Date: 2024-11-06 17:47:19
* @LastEditors: Zhouxin 2201_75539691@noreply.gitcode.com
* @LastEditTime: 2024-11-06 17:48:52
* @FilePath: \2024.11.6-day02-变量 语句 数据类型\1.html
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.co... | 2201_75539691/qd-project-shizhibo | 第二阶段:JavaScript/2024.11.6-day02-变量 语句 数据类型/1.html | HTML | unknown | 694 |
<!--
* @Author: Zhouxin 2201_75539691@noreply.gitcode.com
* @Date: 2024-12-11 17:52:34
* @LastEditors: Zhouxin 2201_75539691@noreply.gitcode.com
* @LastEditTime: 2024-12-11 18:02:42
* @FilePath: \2024.12.11-day15-执行上下文 内置对象方法 sp.7z\1.html
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://... | 2201_75539691/qd-project-shizhibo | 第二阶段:JavaScript/2024.12.11-day15-执行上下文 内置对象方法 sp.7z/1.html | HTML | unknown | 1,099 |
<!--
* @Author: Zhouxin 2201_75539691@noreply.gitcode.com
* @Date: 2024-12-11 18:18:11
* @LastEditors: Zhouxin 2201_75539691@noreply.gitcode.com
* @LastEditTime: 2024-12-11 19:05:21
* @FilePath: \2024.12.11-day15-执行上下文 内置对象方法 sp.7z\test.html
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https... | 2201_75539691/qd-project-shizhibo | 第二阶段:JavaScript/2024.12.11-day15-执行上下文 内置对象方法 sp.7z/test.html | HTML | unknown | 937 |
<!--
* @Author: Zhouxin 2201_75539691@noreply.gitcode.com
* @Date: 2024-12-11 18:22:15
* @LastEditors: Zhouxin 2201_75539691@noreply.gitcode.com
* @LastEditTime: 2024-12-11 18:22:27
* @FilePath: \2024.12.11-day15-执行上下文 内置对象方法 sp.7z\test2.html
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: http... | 2201_75539691/qd-project-shizhibo | 第二阶段:JavaScript/2024.12.11-day15-执行上下文 内置对象方法 sp.7z/test2.html | HTML | unknown | 1,065 |
<!--
* @Author: Zhouxin 2201_75539691@noreply.gitcode.com
* @Date: 2024-12-11 18:56:34
* @LastEditors: Zhouxin 2201_75539691@noreply.gitcode.com
* @LastEditTime: 2024-12-11 21:12:37
* @FilePath: \2024.12.11-day15-执行上下文 内置对象方法 sp.7z\test3.html
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: http... | 2201_75539691/qd-project-shizhibo | 第二阶段:JavaScript/2024.12.11-day15-执行上下文 内置对象方法 sp.7z/test3.html | HTML | unknown | 926 |
<!--
* @Author: Zhouxin 2201_75539691@noreply.gitcode.com
* @Date: 2024-12-11 22:05:53
* @LastEditors: Zhouxin 2201_75539691@noreply.gitcode.com
* @LastEditTime: 2024-12-12 00:45:33
* @FilePath: \2024.12.11-day15-执行上下文 内置对象方法 sp.7z\test4.html
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: http... | 2201_75539691/qd-project-shizhibo | 第二阶段:JavaScript/2024.12.11-day15-执行上下文 内置对象方法 sp.7z/test4.html | HTML | unknown | 1,039 |
<!--
* @Author: Zhouxin 2201_75539691@noreply.gitcode.com
* @Date: 2024-12-02 10:02:59
* @LastEditors: Zhouxin 2201_75539691@noreply.gitcode.com
* @LastEditTime: 2024-12-02 11:29:27
* @FilePath: \2024.12.2-day12-工厂模式 自定义构造函数 this\1.html
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://gi... | 2201_75539691/qd-project-shizhibo | 第二阶段:JavaScript/2024.12.2-day12-工厂模式 自定义构造函数 this/1.html | HTML | unknown | 1,013 |
<!--
* @Author: Zhouxin 2201_75539691@noreply.gitcode.com
* @Date: 2024-12-02 20:37:13
* @LastEditors: Zhouxin 2201_75539691@noreply.gitcode.com
* @LastEditTime: 2024-12-02 20:47:05
* @FilePath: \2024.12.2-day12-工厂模式 自定义构造函数 this\1hw.html
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://... | 2201_75539691/qd-project-shizhibo | 第二阶段:JavaScript/2024.12.2-day12-工厂模式 自定义构造函数 this/1hw.html | HTML | unknown | 1,298 |
<!--
* @Author: Zhouxin 2201_75539691@noreply.gitcode.com
* @Date: 2024-12-02 14:25:36
* @LastEditors: Zhouxin 2201_75539691@noreply.gitcode.com
* @LastEditTime: 2024-12-02 16:12:30
* @FilePath: \2024.12.2-day12-工厂模式 自定义构造函数 this\2.html
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://gi... | 2201_75539691/qd-project-shizhibo | 第二阶段:JavaScript/2024.12.2-day12-工厂模式 自定义构造函数 this/2.html | HTML | unknown | 1,764 |
<!--
* @Author: Zhouxin 2201_75539691@noreply.gitcode.com
* @Date: 2024-12-02 17:00:58
* @LastEditors: Zhouxin 2201_75539691@noreply.gitcode.com
* @LastEditTime: 2024-12-02 17:33:26
* @FilePath: \2024.12.2-day12-工厂模式 自定义构造函数 this\3.html
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://gi... | 2201_75539691/qd-project-shizhibo | 第二阶段:JavaScript/2024.12.2-day12-工厂模式 自定义构造函数 this/3.html | HTML | unknown | 875 |
<!--
* @Author: Zhouxin 2201_75539691@noreply.gitcode.com
* @Date: 2024-12-02 20:26:49
* @LastEditors: Zhouxin 2201_75539691@noreply.gitcode.com
* @LastEditTime: 2024-12-02 20:36:05
* @FilePath: \2024.12.2-day12-工厂模式 自定义构造函数 this\hw.html
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://g... | 2201_75539691/qd-project-shizhibo | 第二阶段:JavaScript/2024.12.2-day12-工厂模式 自定义构造函数 this/4hw.html | HTML | unknown | 921 |
<!--
* @Author: Zhouxin 2201_75539691@noreply.gitcode.com
* @Date: 2024-12-02 09:49:14
* @LastEditors: Zhouxin 2201_75539691@noreply.gitcode.com
* @LastEditTime: 2024-12-02 19:28:09
* @FilePath: \2024.12.2-day12-工厂模式 自定义构造函数 this\test.html
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https:/... | 2201_75539691/qd-project-shizhibo | 第二阶段:JavaScript/2024.12.2-day12-工厂模式 自定义构造函数 this/test.html | HTML | unknown | 1,824 |
<!--
* @Author: Zhouxin 2201_75539691@noreply.gitcode.com
* @Date: 2024-12-09 17:01:57
* @LastEditors: Zhouxin 2201_75539691@noreply.gitcode.com
* @LastEditTime: 2024-12-09 17:57:16
* @FilePath: \2024.12.9-day14-this指向 包装对象 JSON\1.html
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://git... | 2201_75539691/qd-project-shizhibo | 第二阶段:JavaScript/2024.12.9-day14-this指向 包装对象 JSON/1.html | HTML | unknown | 760 |
<!--
* @Author: Zhouxin 2201_75539691@noreply.gitcode.com
* @Date: 2024-12-09 20:35:42
* @LastEditors: Zhouxin 2201_75539691@noreply.gitcode.com
* @LastEditTime: 2024-12-09 20:37:15
* @FilePath: \2024.12.9-day14-this指向 包装对象 JSON\2.html
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://git... | 2201_75539691/qd-project-shizhibo | 第二阶段:JavaScript/2024.12.9-day14-this指向 包装对象 JSON/2.html | HTML | unknown | 1,012 |
<!--
* @Author: Zhouxin 2201_75539691@noreply.gitcode.com
* @Date: 2024-12-09 21:09:22
* @LastEditors: Zhouxin 2201_75539691@noreply.gitcode.com
* @LastEditTime: 2024-12-09 21:33:56
* @FilePath: \2024.12.9-day14-this指向 包装对象 JSON\3.html
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://git... | 2201_75539691/qd-project-shizhibo | 第二阶段:JavaScript/2024.12.9-day14-this指向 包装对象 JSON/3.html | HTML | unknown | 1,498 |
<!--
* @Author: Zhouxin 2201_75539691@noreply.gitcode.com
* @Date: 2024-12-09 21:15:55
* @LastEditors: Zhouxin 2201_75539691@noreply.gitcode.com
* @LastEditTime: 2024-12-09 21:16:07
* @FilePath: \2024.12.9-day14-this指向 包装对象 JSON\4.html
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://git... | 2201_75539691/qd-project-shizhibo | 第二阶段:JavaScript/2024.12.9-day14-this指向 包装对象 JSON/4.html | HTML | unknown | 984 |
<!--
* @Author: Zhouxin 2201_75539691@noreply.gitcode.com
* @Date: 2024-12-09 21:36:21
* @LastEditors: Zhouxin 2201_75539691@noreply.gitcode.com
* @LastEditTime: 2024-12-09 21:48:20
* @FilePath: \2024.12.9-day14-this指向 包装对象 JSON\test.html
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://... | 2201_75539691/qd-project-shizhibo | 第二阶段:JavaScript/2024.12.9-day14-this指向 包装对象 JSON/test.html | HTML | unknown | 793 |
<!--
* @Author: Zhouxin 2201_75539691@noreply.gitcode.com
* @Date: 2024-12-09 22:15:46
* @LastEditors: Zhouxin 2201_75539691@noreply.gitcode.com
* @LastEditTime: 2024-12-09 22:16:54
* @FilePath: \2024.12.9-day14-this指向 包装对象 JSON\test2.html
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https:/... | 2201_75539691/qd-project-shizhibo | 第二阶段:JavaScript/2024.12.9-day14-this指向 包装对象 JSON/test2.html | HTML | unknown | 834 |
<!--
* @Author: Zhouxin 2201_75539691@noreply.gitcode.com
* @Date: 2024-12-09 22:33:04
* @LastEditors: Zhouxin 2201_75539691@noreply.gitcode.com
* @LastEditTime: 2024-12-09 22:45:09
* @FilePath: \2024.12.9-day14-this指向 包装对象 JSON\test3.html
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https:/... | 2201_75539691/qd-project-shizhibo | 第二阶段:JavaScript/2024.12.9-day14-this指向 包装对象 JSON/test3.html | HTML | unknown | 869 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>求两个数的最大数</title>
</head>
<body>
<SCript>
var a = 6;
var b = 7;
//第一种
var maxNumber;
var maxNumber = a;
if (a < b) {
maxNumber = b;
} else {
maxNumber = a;
... | 2201_75539691/qd-project-shizhibo | 第二阶段:JavaScript/2024.8.11-day05/homework/demo1.html | HTML | unknown | 550 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>判断一个数是偶数还是奇数</title>
</head>
<body>
<script>
var a = 66;
a = Number(a);
if (!isNaN(a)) {
if (a % 2 == 0) {
console.log(a + "是偶数");
} else {
console.log(a + ... | 2201_75539691/qd-project-shizhibo | 第二阶段:JavaScript/2024.8.11-day05/homework/demo2.html | HTML | unknown | 484 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>分数转换,把百分制转换成ABCDE <60E60-70 D70-80C 80-90B 90-100 A</title>
</head>
<body>
<script>
var score = 98;
if (score <= 100 && score >= 0) {
if (score <= 100 && score > 90) {
console.log("A");
... | 2201_75539691/qd-project-shizhibo | 第二阶段:JavaScript/2024.8.11-day05/homework/demo3.html | HTML | unknown | 662 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>判断四季 3-5 春 6-8夏9-11秋12-2 冬</title>
</head>
<body>
<script>
var a = 8;
if (a <= 12 && a > 0) {
if (a > 8 && a <= 11) {
console.log("秋");
} else if (a > 5) {
console.... | 2201_75539691/qd-project-shizhibo | 第二阶段:JavaScript/2024.8.11-day05/homework/demo4.html | HTML | unknown | 529 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>判断一个年份是闰年还是平年</title>
</head>
<body>
<script>
var year = 2024;
if (year > 0) {
if (year % 4 == 0 && year % 100 != 0 || year % 400 == 0) {
console.log(year + "是闰年");
} else {
... | 2201_75539691/qd-project-shizhibo | 第二阶段:JavaScript/2024.8.11-day05/homework/demo5.html | HTML | unknown | 449 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>判断一个人的年龄是否满18岁(是否成年)</title>
</head>
<body>
<script>
var age = 22;
//第一种
if(age > 0 && !isNaN(Number(age))){
if(age < 18){
... | 2201_75539691/qd-project-shizhibo | 第二阶段:JavaScript/2024.8.11-day05/homework/demo6.html | HTML | unknown | 700 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<script>
console.log(!!1);
console.log(!!NaN==false);
console.log(!!'123');
var a=true;
console.log('\u0035' + ... | 2201_75539691/qd-project-shizhibo | 第二阶段:JavaScript/2024.8.11-day05/test.html | HTML | unknown | 443 |
<!DOCTYPE html>
<html lang="">
<head>
<meta charset="UTF-8">
<link rel="icon" href="/favicon.ico">
<link rel="stylesheet" href="//at.alicdn.com/t/c/font_4870258_t31k8pzlbbg.css">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Vite App</title>
</head>
<body>
<... | 2203_75900462/weather-project | index.html | HTML | unknown | 413 |
<template>
<div class="weather">
<Header />
<router-view />
</div>
</template>
<script setup>
import Header from './components/Header.vue'
</script>
<style lang="scss">
* {
margin: 0;
box-sizing: border-box;
}
.weather {
background: #00668a;
flex-direction: column;
min-height: 100vh;
display:... | 2203_75900462/weather-project | src/App.vue | Vue | unknown | 353 |
import axios from 'axios';
// 创建一个axios实例,可以设置基础配置
const request = axios.create({
timeout: 10000, // 请求超时时间
headers: {
'Content-Type': 'application/json'
}
});
// 请求拦截器
request.interceptors.request.use(
config => {
// 可以在这里统一添加token等认证信息
return config;
},
error => {
return Promise.reject(e... | 2203_75900462/weather-project | src/api/request.js | JavaScript | unknown | 695 |
// src/api/weatherApi.js
import request from './request';
const BASE_URL = 'https://restapi.amap.com/v3/weather/weatherInfo';
const API_KEY = 'b49db479db7ed5703052e4146f6744b9'; // 建议使用环境变量管理密钥
// 获取实时天气数据
export const getWeather = async (adcode) => {
try {
const response = await request({
url: BASE_URL,
... | 2203_75900462/weather-project | src/api/weatherApi.js | JavaScript | unknown | 1,619 |
<template>
<header>
<div class="header-left">
<i class="iconfont icon-a-farfa-sun sun-icon"></i>
<p>新中地天气</p>
<h4>{{ city }}</h4>
<span v-if="weatherData">实时天气:{{ weatherData.weather }} {{ weatherData.temperature }}℃</span>
<span v-if="weatherData">{{ weatherData.windpower }}级 {{ wea... | 2203_75900462/weather-project | src/components/Header.vue | Vue | unknown | 6,456 |
<template>
<div class="search-box">
<input
type="text"
placeholder="请输入城市名称"
v-model="searchQuery"
@input="handleSearchInput"
@focus="showSearchResults = true"
>
<ul v-show="showSearchResults && (cityList.length > 0 || searchError || networkError)">
... | 2203_75900462/weather-project | src/components/SearchBox.vue | Vue | unknown | 3,514 |
import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import VueEcharts from 'vue-echarts'
const app = createApp(App)
app.use(router)
app.mount('#app')
app.component('v-chart', VueEcharts)
| 2203_75900462/weather-project | src/main.js | JavaScript | unknown | 230 |
import { createRouter, createWebHistory } from 'vue-router'
import Container from '../views/Container.vue'
const router = createRouter({
history: createWebHistory(import.meta.env.BASE_URL),
routes: [
{
path: '/',
name: 'Container',
component: Container,
},
{
path: '/city/:adcode... | 2203_75900462/weather-project | src/router/index.js | JavaScript | unknown | 516 |
<template>
<div class="city-view">
<div class="prompt">
你正在预览{{ cityName }}的天气信息
<span>,可以通过右上角的"+"号按钮保存起来</span>
</div>
<div class="container">
<h1>当日气温是:{{ currentWeather.temperature }}℃</h1>
<h1>当日天气是:{{ currentWeather.weather }}</h1>
<h1>当日风向是:{{ currentWeather.winddirect... | 2203_75900462/weather-project | src/views/CityView.vue | Vue | unknown | 6,660 |
<template>
<div class="container">
<!-- 使用搜索框组件 -->
<SearchBox />
<!-- 已保存城市列表 -->
<div
class="add-city"
v-for="(city, index) in savedCities"
:key="index"
@mouseenter="showButtons = index"
@mouseleave="showButtons = -1"
>
<div class="a1">
<div class="addleft">
... | 2203_75900462/weather-project | src/views/Container.vue | Vue | unknown | 9,138 |
<template>
</template>
<script setup>
</script>
<style scoped>
</style> | 2203_75900462/weather-project | src/views/HomeView.vue | Vue | unknown | 71 |
import { fileURLToPath, URL } from 'node:url'
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import vueDevTools from 'vite-plugin-vue-devtools'
// https://vite.dev/config/
export default defineConfig({
plugins: [
vue(),
vueDevTools(),
],
resolve: {
alias: {
'@': fileU... | 2203_75900462/weather-project | vite.config.js | JavaScript | unknown | 379 |
"""
ASGI config for IPaddress project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/5.2/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault("DJANGO_SET... | 2202_75604983/IPaddress | IPaddress/asgi.py | Python | mit | 395 |
"""
URL configuration for IPaddress project.
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/5.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='ho... | 2202_75604983/IPaddress | IPaddress/urls.py | Python | mit | 835 |
"""
WSGI config for IPaddress project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/5.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SET... | 2202_75604983/IPaddress | IPaddress/wsgi.py | Python | mit | 395 |
#!/usr/bin/env python
import os
import sys
import random
from datetime import datetime, timedelta
from django.utils import timezone
# 设置Django环境
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'IPaddress.settings')
import django
django.setup()
from index.models import Data_date, Access_ip
from django.db import transa... | 2202_75604983/IPaddress | add_test_data.py | Python | mit | 3,807 |
from django.contrib import admin
# Register your models here.
| 2202_75604983/IPaddress | index/admin.py | Python | mit | 63 |
from django.apps import AppConfig
class IndexConfig(AppConfig):
default_auto_field = "django.db.models.BigAutoField"
name = "index"
| 2202_75604983/IPaddress | index/apps.py | Python | mit | 142 |
from django.utils.deprecation import MiddlewareMixin
from .models import Data_date, Access_ip
import datetime
class Access_ipMiddleware(MiddlewareMixin):
def process_request(self, request):
# 避免递归调用 - 检查是否是内部请求
if hasattr(request, '_access_ip_processed'):
return None
tr... | 2202_75604983/IPaddress | index/middleware.py | Python | mit | 1,161 |
from django.db import models
from django.utils import timezone
# Create your models here.
class Data_date(models.Model):
date = models.DateField(default=timezone.now, unique=True)
class Meta:
db_table = 'data_date'
ordering = ['date']
class Access_ip(models.Model):
ip_address =models.Generi... | 2202_75604983/IPaddress | index/models.py | Python | mit | 541 |
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>访问量监控页面</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
... | 2202_75604983/IPaddress | index/templates/monitor.html | HTML | mit | 8,990 |
from django.test import TestCase
# Create your tests here.
| 2202_75604983/IPaddress | index/tests.py | Python | mit | 60 |
from django.urls import path
from . import views
urlpatterns = [
path('index/', views.monitor, name='monitor'), # 监控页面
path('get_total/', views.get_total, name='get_total'), # 获取总访问量
] | 2202_75604983/IPaddress | index/urls.py | Python | mit | 215 |
from django.shortcuts import render
from django.http import HttpResponse, JsonResponse
from matplotlib import pyplot as plt
from .models import Data_date, Access_ip
import matplotlib, numpy as np
import io,base64
from datetime import datetime, timedelta
#一些配置
matplotlib.use('Agg') # 使用非交互式后端
# 配置 matplotlib 中文显示
plt.... | 2202_75604983/IPaddress | index/views.py | Python | mit | 3,902 |
#!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "IPaddress.settings")
try:
from django.core.management import execute_from_command_line
except Im... | 2202_75604983/IPaddress | manage.py | Python | mit | 665 |
#
# 'make' build executable file 'main'
# 'make clean' removes all .o and executable files
#
# define the C compiler to use
CC = gcc
# define any compile-time flags
CFLAGS := -Wall -Wextra -g
# define library paths in addition to /usr/lib
# if I wanted to include libraries not in /usr/lib I'd specify
# t... | 2301_76233439/shujujiegou | Makefile | Makefile | unknown | 2,371 |