first import
This commit is contained in:
23
sites/all/modules/piecemaker/js/Piecemaker.js
Normal file
23
sites/all/modules/piecemaker/js/Piecemaker.js
Normal file
@@ -0,0 +1,23 @@
|
||||
(function ($) {
|
||||
|
||||
Drupal.behaviors.Piecemaker = {
|
||||
attach: function (context, settings) {
|
||||
$.each(settings.Piecemaker, function($id, $piecemaker) {
|
||||
Drupal.Piecemaker.embed($id, $piecemaker, settings);
|
||||
});
|
||||
}
|
||||
}
|
||||
Drupal.Piecemaker = {
|
||||
embed: function($id, $piecemaker, settings) {
|
||||
$attributes = {
|
||||
id: $id + '-flash',
|
||||
styleclass: 'piecemaker ' + $id + '-style',
|
||||
name: $id,
|
||||
};
|
||||
$url = settings.Piecemaker_URI + '/piecemaker.swf';
|
||||
swfobject.embedSWF($url , $id, $piecemaker.width, $piecemaker.height, '10', false, $piecemaker.flashvars,
|
||||
$piecemaker.params, $attributes);
|
||||
},
|
||||
}
|
||||
|
||||
})(jQuery);
|
Reference in New Issue
Block a user