flashcam-rails 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
@@ -9,7 +9,6 @@
|
|
9
9
|
// add flash to div
|
10
10
|
opts.id = this.id; // add id of plugin to the options structure
|
11
11
|
data = opts; // pass options to jquery internal data field to make them available to the outside world
|
12
|
-
data.path = decodeURIComponent(data.path); // convert URI back to normal string
|
13
12
|
|
14
13
|
$('#'+opts.id).html(opts.noFlashFound); // inject no flash found message
|
15
14
|
|
@@ -33,7 +32,7 @@
|
|
33
32
|
opts[key] = encodeURIComponent(opts[key]);
|
34
33
|
};
|
35
34
|
|
36
|
-
swfobject.embedSWF(
|
35
|
+
swfobject.embedSWF('/assets/flashcam.swf', opts.id, newWidth, newHeight, '11.4', false, opts, params);
|
37
36
|
});
|
38
37
|
};
|
39
38
|
|
@@ -49,7 +48,6 @@
|
|
49
48
|
$.fn.flashcam.defaults = {
|
50
49
|
width:320,
|
51
50
|
height:240,
|
52
|
-
path:'',
|
53
51
|
noFlashFound:'<p>You need <a href="http://www.adobe.com/go/getflashplayer">Adobe Flash Player 11.4</a> to use this software.<br/>Please click on the link to download the installer.</p>'
|
54
52
|
};
|
55
53
|
})(jQuery);
|
@@ -1 +1 @@
|
|
1
|
-
(function($){$.fn.flashcam=function(options){var opts=$.extend({},$.fn.flashcam.defaults,options);return this.each(function(){opts.id=this.id;data=opts
|
1
|
+
(function($){$.fn.flashcam=function(options){var opts=$.extend({},$.fn.flashcam.defaults,options);return this.each(function(){opts.id=this.id;data=opts;$("#"+opts.id).html(opts.noFlashFound);$.flashcam.FC_onError=data.onError;$.flashcam.FC_onShow=data.onShow;$.flashcam.FC_onConnect=data.onConnect;$.flashcam.FC_onDisconnect=data.onDisconnect;var newWidth=opts.width;var newHeight=opts.height;var params={menu:"false",wmode:"direct"};for(var key in opts){opts[key]=encodeURIComponent(opts[key])}swfobject.embedSWF("/assets/flashcam.swf",opts.id,newWidth,newHeight,"11.4",false,opts,params)})};$.flashcam={};$.flashcam.version=function(){return $("#"+data.id).get(0).FC_version()};$.fn.flashcam.defaults={width:320,height:240,noFlashFound:'<p>You need <a href="http://www.adobe.com/go/getflashplayer">Adobe Flash Player 11.4</a> to use this software.<br/>Please click on the link to download the installer.</p>'}})(jQuery);function FC_onError(errorId,errorMsg){$.flashcam.FC_onError(errorId,errorMsg)}function FC_onShow(){$.flashcam.FC_onShow()}function FC_onConnect(){$.flashcam.FC_onConnect()}function FC_onDisconnect(){$.flashcam.FC_onDisconnect()}
|