Declare PyAMS_media resources
authorThierry Florac <thierry.florac@onf.fr>
Tue, 16 May 2017 11:15:35 +0200
changeset 39 fb55452c24d9
parent 38 57fd58ea854b
child 40 0ee62085ea82
Declare PyAMS_media resources
src/pyams_media/skin/__init__.py
src/pyams_media/skin/resources/js/pyams_media.js
--- a/src/pyams_media/skin/__init__.py	Tue Nov 15 10:01:50 2016 +0100
+++ b/src/pyams_media/skin/__init__.py	Tue May 16 11:15:35 2017 +0200
@@ -18,7 +18,18 @@
 # import interfaces
 
 # import packages
-from fanstatic import Library
+from fanstatic import Library, Resource
 
 
 library = Library('pyams_media', 'resources')
+
+flowplayer = Resource(library, 'flowplayer/flowplayer.js',
+                      minified='flowplayer/flowplayer.min.js',
+                      bottom=True)
+
+functional_css = Resource(library, 'flowplayer/skin/functional.css',
+                          minified='flowplayer/skin/functional.min.css')
+
+pyams_media = Resource(library, 'js/pyams_media.js',
+                       minified='js/pyams_media.min.js',
+                       bottom=True)
--- a/src/pyams_media/skin/resources/js/pyams_media.js	Tue Nov 15 10:01:50 2016 +0100
+++ b/src/pyams_media/skin/resources/js/pyams_media.js	Tue May 16 11:15:35 2017 +0200
@@ -51,7 +51,6 @@
 			player.shutdown();
 		}
 	};
-
 	globals.PyAMS_media = PyAMS_media;
 
 })(jQuery, this);