- one
- two
The quick brown fox jumps over the lazy dog.
``
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<title>20110524_prototype</title> | |
<link rel="stylesheet" href="http://yui.yahooapis.com/3.3.0/build/cssreset/reset-min.css"> | |
<link rel="stylesheet" href="style.css"> | |
<script src="http://visionmedia.github.com/move.js/move.min.js"></script> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6/jquery.js"></script> | |
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.js"></script> |
(function(exports) { | |
var Reel, Pane, Controller; | |
Reel = function(panes) { | |
this.panes = panes; | |
this._current = 0; | |
} | |
Reel.prototype = { | |
prev: function() { |
326c326 | |
< return Math.floor(t / 1000); | |
--- | |
> return Math.floor(t / 1000).toFixed(0); |
27,30d26 | |
< * This library currently works only with Twitter, although I'd like to | |
< * spend some more time to make it generally compatible with other services | |
< * too. | |
< * | |
48c44 | |
< // this function will be called as soon as the application is authorized | |
--- | |
> // this function will be called as soon as the application is authorized | |
50,53c46,48 |
2,4c2,8 | |
< Ti.include('./lib/sha1.js'); | |
< Ti.include('./lib/oauth.js'); | |
< Ti.include('./lib/oauth_adapter.js'); | |
--- | |
> var path_lib = ''; | |
> if(Titanium.Platform.osname == 'iphone' && Titanium.version<'1.7.0'){ | |
> path_lib = '/lib/'; | |
> } | |
> Ti.include(path_lib+'sha1.js'); |
window.console = window.console || { log: function() {} }; |
-function(window, document, $, undefined) { | |
// TODO: add your code here | |
}(window, document, jQuery); |
function Klass(name) { | |
if (!(this instanceof Klass)) { | |
return new Klass(name); | |
} | |
this.name = name; | |
} | |
Klass.prototype.greeting = function() { | |
alert('Hi, My name is ' + this.name + '!'); | |
}; |
$('div') | |
.css({ opacty: 0 }) | |
.animate({ opacity: 1 }, 1000, 'linear', function() { | |
if (this.style.filter) { | |
this.style.filter = ''; | |
} | |
}); |