Skip to content

Instantly share code, notes, and snippets.

@ikkou
Created March 27, 2017 23:14
Show Gist options
  • Save ikkou/335aba24c5cd9cca8509cc250b9ad500 to your computer and use it in GitHub Desktop.
Save ikkou/335aba24c5cd9cca8509cc250b9ad500 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>earth画面</title>
<meta name="viewport" content="width=device-width,initial-scale=1">
</head>
<body>
<h1>earth画面</h1>
<p><a href="javascript:void(0);" target="game" id="js-jump-to-game">game画面へ</a></p>
aaa
<script
src="https://code.jquery.com/jquery-3.1.1.min.js"
integrity="sha256-hVVnYaiADRTO2PzUGmuLJr8BLUSjGIZsDYGmIJLv2b8="
crossorigin="anonymous"></script>
<script>
console.log(window.name);
$(function(){
$('#js-jump-to-game').on('click', function(){
window.open( 'game.html', 'game' );
});
});
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment