Skip to content

Commit

Permalink
首页背景,统计访问量,第四关白块判断
Browse files Browse the repository at this point in the history
  • Loading branch information
zljkarry committed Sep 30, 2019
1 parent 703a9ef commit e16894e
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 6 deletions.
9 changes: 9 additions & 0 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,15 @@
localStorage.setItem('id_token_puzzle', token)
}
</script>
<script>
var _hmt = _hmt || [];
(function () {
var hm = document.createElement("script");
hm.src = "https://hm.baidu.com/hm.js?c4b58ab4b706abaed483ae18a69c106a";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();
</script>
</head>

<body>
Expand Down
3 changes: 2 additions & 1 deletion src/assets/styles/common.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@

html,
body {
overflow: hidden;
overflow-x: hidden;
overflow-y: scroll;
width: 100%;
height: 100%;
position: absolute;
Expand Down
2 changes: 1 addition & 1 deletion src/store/result.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const initialState = {
first_flag: 'unlock',
second_flag: 'lock',
third_flag: 'lock',
fourth_flag: 'lock',
fourth_flag: 'unlock',
current_pass: null,
default_pass: 'first',
user_time: 0,
Expand Down
9 changes: 6 additions & 3 deletions src/views/fourth.vue
Original file line number Diff line number Diff line change
Expand Up @@ -167,9 +167,12 @@ export default {
}
},
successIF(a, b) {
for (var i = 0; i < this.num; i++) {
for (var j = 0; j < this.num; j++) {
if (!(a[i][j] === b[i][j])) {
if(!(a[0][3] === b[0][3])){
return false;
}
for (var i = 0; i < this.num; i++) {
for (var j = 5; j < this.num; j++) {
if (!(i==2&&j==4)&&!(a[i][j] === b[i][j])) {
return false;
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/views/home.vue
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export default {
// height: 1207px;
height: 100%;
background-image: url("../assets/img/home/home_bg.jpg");
background-repeat: repeat-y;
background-repeat: repeat;
background-position: 0% 0%;
background-size: contain;
.btn {
Expand Down

0 comments on commit e16894e

Please sign in to comment.