Skip to content

Commit

Permalink
fix: href url
Browse files Browse the repository at this point in the history
  • Loading branch information
YangPengFe1 committed Nov 7, 2019
1 parent 70b0213 commit 295b07b
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 24 deletions.
2 changes: 1 addition & 1 deletion html/photos.html
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
</div>
</div>
</body>
<script src="../js/photos/jquery.js" type="text/javascript"></script>
<script src="../js/jquery.js" type="text/javascript"></script>
<script src="../js/photos/portfolio.js" type="text/javascript"></script>
<script src="../js/photos/init.js" type="text/javascript"></script>

Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
</div>
</div>
</body>
<script src="http://code.jquery.com/jquery-2.1.1.min.js"></script>
<script src="./js/jquery.js"></script>
<script src="./js/index.js"></script>

</html>
7 changes: 3 additions & 4 deletions js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ document.addEventListener('mousemove', function(_ref) {
});
}, false);

$(function() {
$('.card__one').on('click', function() {
window.location.href = './html/photos.html'
})
var goPhotosPage = document.getElementsByClassName('card__one')[0]
goPhotosPage.addEventListener('click', function() {
window.location.href = './html/photos.html'
})
30 changes: 30 additions & 0 deletions js/jquery.js

Large diffs are not rendered by default.

18 changes: 0 additions & 18 deletions js/photos/jquery.js

This file was deleted.

0 comments on commit 295b07b

Please sign in to comment.