--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/web/rsln-opendata/res/metadataplayer/test/emission_fichiers/rf_player.js Tue Mar 15 13:46:46 2011 +0100
@@ -0,0 +1,45 @@
+Drupal.behaviors.rfPlayerOpeningLinks = function(context) {
+ $('a.rf-player-open:not(.rf-player-open-processed)', context).each(function () {
+ var common_settings = {
+ height: 458,
+ width: 560,
+ top: 150,
+ left: 250,
+ windowName: 'player'
+ }
+
+ var chrome_settings = {
+ height: 515,
+ width: 560,
+ top: 150,
+ left: 250,
+ windowName: 'player'
+ }
+
+ var chrome_settings_windows = {
+ height: 465,
+ width: 560,
+ top: 150,
+ left: 250,
+ windowName: 'player'
+ }
+
+ var is_chrome = /chrome/.test(navigator.userAgent.toLowerCase());
+ var is_windows = /windows/.test(navigator.userAgent.toLowerCase());
+
+ if (is_chrome == false) {
+ $(this).popupWindow(common_settings);
+ }
+ else {
+ if (is_windows == false) {
+ $(this).popupWindow(chrome_settings);
+ }
+ else {
+ $(this).popupWindow(chrome_settings_windows);
+ }
+ }
+
+ // We can add the processed class
+ $(this).addClass('rf-player-open-processed');
+ });
+};
\ No newline at end of file