File tree 2 files changed +191
-163
lines changed
2 files changed +191
-163
lines changed Original file line number Diff line number Diff line change 10
10
11
11
< script >
12
12
// CHANGE YOUR URL HERE!
13
- Feed . feedUrl = "http://feeds.bbci.co.uk/news/technology/rss.xml" ;
13
+ var feedUrl = "http://feeds.bbci.co.uk/news/technology/rss.xml" ;
14
14
15
15
$ ( function ( ) {
16
- Feed . watchClick ( ) ;
17
- Feed . load ( ) ;
18
16
17
+ var feed = new Feed ( {
18
+ url : feedUrl
19
+ } ) ;
20
+
19
21
if ( monaca . isIOS ) {
20
22
$ ( '.toolbar' ) . css ( 'margin-top' , '20px' ) ;
21
23
$ ( '.button' ) . css ( 'top' , '20px' ) ;
22
24
}
23
25
24
- } ) ;
25
-
26
- document . addEventListener ( "deviceready" , onDeviceReady , false ) ;
27
- function onDeviceReady ( ) {
28
- // Enable reload button
29
- monaca . updateUIStyle ( "reload-button" , "disable" , false ) ;
30
-
31
- $ ( ".button" ) . click ( function ( ) {
26
+ $ ( '.button' ) . click ( function ( ) {
32
27
console . log ( 'Reload.' ) ;
33
- Feed . load ( ) ;
28
+ feed . load ( ) ;
34
29
} ) ;
35
- }
30
+
31
+ feed . load ( ) ;
32
+
33
+ } ) ;
34
+
36
35
</ script >
37
36
</ head >
38
37
< body >
You can’t perform that action at this time.
0 commit comments