summaryrefslogtreecommitdiffstats
path: root/demos/declarative/samegame
diff options
context:
space:
mode:
authorAlan Alpert <alan.alpert@nokia.com>2009-09-02 03:29:08 (GMT)
committerAlan Alpert <alan.alpert@nokia.com>2009-09-02 03:29:08 (GMT)
commit5477cb3bbc97e4b419c5ea5bbe4f137959b9140d (patch)
tree59612e3bd46840e3b731ef1987e1637da579b2cb /demos/declarative/samegame
parent18c9c9f52d658c0d6086af5823e99a4779d2cd90 (diff)
downloadQt-5477cb3bbc97e4b419c5ea5bbe4f137959b9140d.zip
Qt-5477cb3bbc97e4b419c5ea5bbe4f137959b9140d.tar.gz
Qt-5477cb3bbc97e4b419c5ea5bbe4f137959b9140d.tar.bz2
Don't need to tweet high scores too
Diffstat (limited to 'demos/declarative/samegame')
-rwxr-xr-xdemos/declarative/samegame/content/samegame.js17
1 files changed, 0 insertions, 17 deletions
diff --git a/demos/declarative/samegame/content/samegame.js b/demos/declarative/samegame/content/samegame.js
index d890cd2..9914edb 100755
--- a/demos/declarative/samegame/content/samegame.js
+++ b/demos/declarative/samegame/content/samegame.js
@@ -222,23 +222,6 @@ function startCreatingBlock(xIdx,yIdx){
return;
}
-function tweetHighScore(twitterName, twitterPass) {
- if(twitterName == '' || twitterPass == '')
- return false;//Can't login like that
-
- var scoreStr = "I just played the QML SameGame, and got " + gameCanvas.score + " points on a "
- + maxX + "x" + maxY + " grid. It took me " + timeStr(timer) + ".";
- var postData = "status=" + scoreStr;
- var postman = new XMLHttpRequest();
- postman.open("POST", "http://twitter.com/statuses/update.xml", true, twitterName, twitterPass);
- postman.onreadystatechange = function() {
- if (postman.readyState == postman.DONE) {
- dialog.show("Your score has been tweeted for you.");
- }
- }
- postman.send(postData);
-}
-
function sendHighScore(name) {
var postman = new XMLHttpRequest()
var postData = "name="+name+"&score="+gameCanvas.score