Skip to content

Instantly share code, notes, and snippets.

@takanakahiko
Last active August 29, 2015 14:17
Show Gist options
  • Save takanakahiko/bf904889a976642e651d to your computer and use it in GitHub Desktop.
Save takanakahiko/bf904889a976642e651d to your computer and use it in GitHub Desktop.
ブログ掲載HTML
<html>
<script type="text/javascript" src="script.js"></script>
<link rel="stylesheet" type="text/css" href="test.css">
<body>
<h1>CSSの例</h1>
<p>
皆さんこんにちは。<a href="http://www.takushoku-u.ac.jp/">拓殖大学</a>のディジタルコンテンツ研究愛好会です。<br>
<a href="https://twitter.com/takanakahiko">Nakahiko</a>は<a href="http://www.cs.takushoku-u.ac.jp/">情報工学科</a>に在籍しています。<br>
趣味は<a href="http://t.co/og9wtHFqX8">プログラミング</a>と<a href="http://ja.wikipedia.org/wiki/%E9%87%8E%E7%90%83">野球</a>です。<br>
</p>
<h1>JavaScriptの例</h1>
<input type="button" onClick="addNumber()" value="ボタン">
<p id="hoge">1</p>
</body>
</html>
function addNumber(){
var element = document.getElementById("hoge");
element.innerHTML = parseInt(element.innerHTML)+1;
}
a {
color:#0F0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment