Skip to content

Commit

Permalink
fix m.resume
Browse files Browse the repository at this point in the history
  • Loading branch information
AIboy996 committed Sep 12, 2023
1 parent 28ba794 commit 6d47398
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
9 changes: 9 additions & 0 deletions docs/About/resume.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,15 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="resume.css">
<script src="resume.js"></script>
<script>
var width = ((typeof screen !== 'undefined') ? screen.width : null)
|| window.innerWidth
|| document.documentElement.clientWidth
|| document.body.clientWidth;
if (width <= 800) {
window.location = "m.resume.html";
}
</script>
<title>Yang Zhang</title>
</head>

Expand Down
7 changes: 0 additions & 7 deletions docs/About/resume.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,4 @@
function myFunction() {
var popup = document.getElementById("myPopup");
popup.classList.toggle("show");
}
var width = ((typeof screen !== 'undefined') ? screen.width : null)
|| window.innerWidth
|| document.documentElement.clientWidth
|| document.body.clientWidth;
if (width <= 800) {
window.location = "m.resume.html";
}

0 comments on commit 6d47398

Please sign in to comment.