Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

48 lines (32 sloc) 1.158 kb
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>ImageViewer Example</title>
<link rel="stylesheet" type="text/css" href="http://dev.sencha.com/deploy/touch/resources/css/sencha-touch.css">
<script type="text/javascript" src="http://dev.sencha.com/deploy/touch/sencha-touch.js"></script>
<script type="text/javascript" src="ImageViewer.js"></script>
<script type="text/javascript">
Ext.regApplication({
name: 'ImageExample'
,launch: function() {
// launch the ImageViewer-powered viewport
this.views.viewport = new Jarvus.mobile.ImageViewer({
fullscreen: true
,style: {
backgroundColor: '#000'
}
,imageSrc: 'http://placekitten.com/2048/1024'
/*
if you already have a low resolution thumbnail loaded,
supply its URL via previewSrc to provide a backdrop
for loading the full-res version
*/
//,previewSrc: 'http://placekitten.com/20/20'
});
}
});
</script>
</head>
<body></body>
</html>
Jump to Line
Something went wrong with that request. Please try again.