]>
Commit | Line | Data |
---|---|---|
6527f429 DM |
1 | Ext.define('TouchTomatoes.view.WelcomeOverlay', {\r |
2 | extend: 'Ext.Panel',\r | |
3 | xtype: "main",\r | |
4 | \r | |
5 | config: {\r | |
6 | cls: "welcomeOverlay",\r | |
7 | html: [\r | |
8 | "<div class='message'>",\r | |
9 | "<h2>Welcome to <em>Touch Tomatoes</em></h2>",\r | |
10 | "<p>Browse any of our lists by selecting a tab at the bottom, or swiping across the app. <br/>You can find a movie in our search section.</p>",\r | |
11 | "<div class='tap'>Tap anywhere to begin</div>",\r | |
12 | "</div>"\r | |
13 | ].join(""),\r | |
14 | hidden:true,\r | |
15 | showAnimation: Ext.browser.is.ie || Ext.browser.is.AndroidStock ? null : {\r | |
16 | type: "fadeIn",\r | |
17 | duration: 250\r | |
18 | },\r | |
19 | hideAnimation: Ext.browser.is.ie || Ext.browser.is.AndroidStock ? null : {\r | |
20 | type: "fadeOut",\r | |
21 | duration: 250\r | |
22 | }\r | |
23 | },\r | |
24 | \r | |
25 | initialize: function() {\r | |
26 | this.element.on({\r | |
27 | tap: {\r | |
28 | fn: function() {\r | |
29 | this.hide();\r | |
30 | },\r | |
31 | single:true,\r | |
32 | scope:this\r | |
33 | }\r | |
34 | })\r | |
35 | }\r | |
36 | }); |