feat:添加控制台信息
This commit is contained in:
parent
a235a99c78
commit
3baac1df0e
@ -7,7 +7,7 @@
|
|||||||
<meta name="description" content="A website for MBTI test">
|
<meta name="description" content="A website for MBTI test">
|
||||||
<meta name="viewport" content="width=device-width">
|
<meta name="viewport" content="width=device-width">
|
||||||
<meta name="keywords" content="MBTI, mbti">
|
<meta name="keywords" content="MBTI, mbti">
|
||||||
<title>测试中|MBTI-TEST</title>
|
<title>测试中</title>
|
||||||
<link rel="shortcut icon" href="./static/img/favicon.ico">
|
<link rel="shortcut icon" href="./static/img/favicon.ico">
|
||||||
<link rel="stylesheet" type="text/css" href="./static/css/app.css" />
|
<link rel="stylesheet" type="text/css" href="./static/css/app.css" />
|
||||||
<link rel="stylesheet" href="./static/css/bootstrap.min.css">
|
<link rel="stylesheet" href="./static/css/bootstrap.min.css">
|
||||||
@ -16,6 +16,7 @@
|
|||||||
<script src="./static/js/bootstrap.min.js"></script>
|
<script src="./static/js/bootstrap.min.js"></script>
|
||||||
<script type="text/javascript" src="./static/js/jquery.cookie.js"></script>
|
<script type="text/javascript" src="./static/js/jquery.cookie.js"></script>
|
||||||
<script src="./static/js/MBTI.js"></script>
|
<script src="./static/js/MBTI.js"></script>
|
||||||
|
<script src="./static/js/printProjectInfo.js"></script>
|
||||||
<style>
|
<style>
|
||||||
.questionbox {
|
.questionbox {
|
||||||
height: 100vh;
|
height: 100vh;
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
<meta name="description" content="A website for MBTI test">
|
<meta name="description" content="A website for MBTI test">
|
||||||
<meta name="viewport" content="width=device-width">
|
<meta name="viewport" content="width=device-width">
|
||||||
<meta name="keywords" content="MBTI, mbti">
|
<meta name="keywords" content="MBTI, mbti">
|
||||||
<title>首页|MBTI-TEST</title>
|
<title>首页</title>
|
||||||
<link rel="shortcut icon" href="./static/img/favicon.ico">
|
<link rel="shortcut icon" href="./static/img/favicon.ico">
|
||||||
<link rel="stylesheet" href="./static/css/bootstrap.min.css">
|
<link rel="stylesheet" href="./static/css/bootstrap.min.css">
|
||||||
<link rel="stylesheet" href="./static/css/title.css">
|
<link rel="stylesheet" href="./static/css/title.css">
|
||||||
@ -15,6 +15,7 @@
|
|||||||
<link rel="stylesheet" href="./static/css/app.css">
|
<link rel="stylesheet" href="./static/css/app.css">
|
||||||
<script src="./static/js/jquery-3.7.1.min.js"></script>
|
<script src="./static/js/jquery-3.7.1.min.js"></script>
|
||||||
<script src="./static/js/bootstrap.min.js"></script>
|
<script src="./static/js/bootstrap.min.js"></script>
|
||||||
|
<script src="./static/js/printProjectInfo.js"></script>
|
||||||
<script type="text/javascript" src="./static/js/jquery.cookie.js"></script>
|
<script type="text/javascript" src="./static/js/jquery.cookie.js"></script>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
<meta name="description" content="A website for MBTI test">
|
<meta name="description" content="A website for MBTI test">
|
||||||
<meta name="viewport" content="width=device-width">
|
<meta name="viewport" content="width=device-width">
|
||||||
<meta name="keywords" content="MBTI, mbti">
|
<meta name="keywords" content="MBTI, mbti">
|
||||||
<title>十六种人格简介|MBTI-TEST</title>
|
<title>十六种人格简介</title>
|
||||||
<link rel="shortcut icon" href="./static/img/favicon.ico">
|
<link rel="shortcut icon" href="./static/img/favicon.ico">
|
||||||
<link rel="stylesheet" href="./static/css/bootstrap.min.css">
|
<link rel="stylesheet" href="./static/css/bootstrap.min.css">
|
||||||
<link rel="stylesheet" href="./static/css/personality-index.css">
|
<link rel="stylesheet" href="./static/css/personality-index.css">
|
||||||
@ -16,7 +16,7 @@
|
|||||||
<script src="./static/js/snap.svg-min.js"></script>
|
<script src="./static/js/snap.svg-min.js"></script>
|
||||||
<script src="./static/js/jquery-3.7.1.min.js"></script>
|
<script src="./static/js/jquery-3.7.1.min.js"></script>
|
||||||
<script src="./static/js/bootstrap.min.js"></script>
|
<script src="./static/js/bootstrap.min.js"></script>
|
||||||
|
<script src="./static/js/printProjectInfo.js"></script>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body style="">
|
<body style="">
|
||||||
|
@ -44,7 +44,7 @@ $(document).ready(function () {
|
|||||||
$("input[name='answer']").on("change", function () {
|
$("input[name='answer']").on("change", function () {
|
||||||
var answer = $(this).val();
|
var answer = $(this).val();
|
||||||
answers.push(answer);
|
answers.push(answer);
|
||||||
console.log(answers);
|
|
||||||
var form = $(this).parent().parent().parent();
|
var form = $(this).parent().parent().parent();
|
||||||
var next_form = form.next();
|
var next_form = form.next();
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
@ -53,7 +53,7 @@ $(document).ready(function () {
|
|||||||
}, 520);
|
}, 520);
|
||||||
if (answers.length == 93) {
|
if (answers.length == 93) {
|
||||||
var page = ObtainingAnswers(answers)
|
var page = ObtainingAnswers(answers)
|
||||||
console.log(page);
|
|
||||||
window.location.href = `./personalities/${page}.html`;
|
window.location.href = `./personalities/${page}.html`;
|
||||||
//$.ajax({
|
//$.ajax({
|
||||||
// type: 'post',
|
// type: 'post',
|
||||||
|
@ -137,4 +137,15 @@ $(document).ready(function () {
|
|||||||
|
|
||||||
window.addEventListener('scroll', scrollPage);
|
window.addEventListener('scroll', scrollPage);
|
||||||
trigger.addEventListener('click', function () { toggle('reveal'); });
|
trigger.addEventListener('click', function () { toggle('reveal'); });
|
||||||
|
|
||||||
|
var license = "MIT License";
|
||||||
|
var github = "https://github.com/MskTmi/MBTI";
|
||||||
|
var disclaimer = "This project is for learning and reference only, and does not bear any responsibility.";
|
||||||
|
console.group("Project Information");
|
||||||
|
|
||||||
|
console.log("%cThis project is licensed under the " + license, "color: darkorange; font-size: 20px;");
|
||||||
|
console.log("%cThe source code for this project is hosted on " + github, "color: darkorange; font-size: 20px;");
|
||||||
|
console.log("%cDisclaimer: " + disclaimer, "color: darkorange; font-size: 20px;");
|
||||||
|
|
||||||
|
console.groupEnd();
|
||||||
});
|
});
|
12
static/js/printProjectInfo.js
Normal file
12
static/js/printProjectInfo.js
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
$(document).ready(function () {
|
||||||
|
var license = "MIT License";
|
||||||
|
var github = "https://github.com/MskTmi/MBTI";
|
||||||
|
var disclaimer = "This project is for learning and reference only, and does not bear any responsibility.";
|
||||||
|
console.group("Project Information");
|
||||||
|
|
||||||
|
console.log("%cThis project is licensed under the " + license, "color: darkorange; font-size: 20px;");
|
||||||
|
console.log("%cThe source code for this project is hosted on " + github, "color: darkorange; font-size: 20px;");
|
||||||
|
console.log("%cDisclaimer: " + disclaimer, "color: darkorange; font-size: 20px;");
|
||||||
|
|
||||||
|
console.groupEnd();
|
||||||
|
})
|
@ -8,6 +8,7 @@
|
|||||||
<link rel="stylesheet" type="text/css" href="./static/css/welcome.css" />
|
<link rel="stylesheet" type="text/css" href="./static/css/welcome.css" />
|
||||||
<script type="text/javascript" src="./static/js/jquery-3.7.1.min.js"></script>
|
<script type="text/javascript" src="./static/js/jquery-3.7.1.min.js"></script>
|
||||||
<script type="text/javascript" src="./static/js/jquery.lettering.js"></script>
|
<script type="text/javascript" src="./static/js/jquery.lettering.js"></script>
|
||||||
|
<script src="./static/js/printProjectInfo.js"></script>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
|
Loading…
Reference in New Issue
Block a user