Created
July 20, 2013 01:37
-
-
Save lacolaco/6043484 to your computer and use it in GitHub Desktop.
これおかしいところありますかね…
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@{ | |
var db = Database.Open("lacolaco"); | |
var Count = db.QueryValue("SELECT COUNT (Date) FROM Data"); | |
Func<object> Tweet = () => System.Diagnostics.Process.Start("https://twitter.com/intent/tweet?text=らこらこらこ~w"); | |
Func<object> Countup = () => db.Query("INSERT INTO Data (Date) VALUES ('" + DateTime.Now + "')"); | |
} | |
<!DOCTYPE html> | |
<html lang="ja"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> | |
<meta charset="utf-8" /> | |
<title>らこらこボタン</title> | |
<link href="~/favicon.ico" rel="shortcut icon" type="image/x-icon" /> | |
</head> | |
<body> | |
<form method="post" action=""> | |
<input type="submit" value="らこらこボタン" onclick="@Tweet();@Countup();"/> | |
<p>これまでに @Count 回らこらこされました</p> | |
</form> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment