flashcam-rails 0.0.4 → 0.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  module Flashcam
2
2
  module Rails
3
- VERSION = "0.0.4"
3
+ VERSION = "0.0.5"
4
4
  end
5
5
  end
@@ -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(data.path + 'flashcam.swf', opts.id, newWidth, newHeight, '11.4', false, opts, params);
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;data.path=decodeURIComponent(data.path);$("#"+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(data.path+"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,path:"",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()}
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()}
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flashcam-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: