googledocviewer 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4f59ccd843abbc313f245bfb962ae478a18a5e43
|
4
|
+
data.tar.gz: aebc627ad7e7f573b1313ed96086919212ade94c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8525a76174996bfde97d7e143136fd4658d2525bf4f42cf46ae24e8b60ba9046d3dca16ba2a54017052d3c974fb9b1a4bd0b5a2516dcd3c0f8f21d4ad50f73da
|
7
|
+
data.tar.gz: a978e9b0403af91a35c06876323cbfa1d44e6f9b00daacb59b1fdd92919d47bdc124640137dfb2c82e55ab0ce0749a69f90acc15a9c3ea9d5a31553455031dee
|
@@ -27,7 +27,7 @@
|
|
27
27
|
$(this).after(function () {
|
28
28
|
var id = $(this).attr('id');
|
29
29
|
var gdvId = (typeof id !== 'undefined' && id !== false) ? id + '-gdocsviewer' : '';
|
30
|
-
return '<div id="' + gdvId + '" class="gdocsviewer"><iframe src="'settings.security + '://docs.google.com/viewer?embedded=true&url=' + encodeURIComponent(file) + '" width="' + settings.width + '" height="' + settings.height + '" style="border: none;"></iframe></div>';
|
30
|
+
return '<div id="' + gdvId + '" class="gdocsviewer"><iframe src="' + settings.security + '://docs.google.com/viewer?embedded=true&url=' + encodeURIComponent(file) + '" width="' + settings.width + '" height="' + settings.height + '" style="border: none;"></iframe></div>';
|
31
31
|
})
|
32
32
|
}
|
33
33
|
});
|
@@ -6,4 +6,4 @@
|
|
6
6
|
* @author Jawish Hameed
|
7
7
|
* @version 1.0
|
8
8
|
*/
|
9
|
-
(function(a){a.fn.gdocsViewer=function(b){var c={width:"600",height:"700"};if(b){a.extend(c,b)}return this.each(function(){var d=a(this).attr("href");var e=d.substring(d.lastIndexOf(".")+1);if(/^(tiff|pdf|ppt|pps|doc|docx)$/.test(e)){a(this).after(function(){var g=a(this).attr("id");var f=(typeof g!=="undefined"&&g!==false)?g+"-gdocsviewer":"";return'<div id="'+f+'" class="gdocsviewer"><iframe src="
|
9
|
+
(function(a){a.fn.gdocsViewer=function(b){var c={width:"600",height:"700", security:"http"};if(b){a.extend(c,b)}return this.each(function(){var d=a(this).attr("href");var e=d.substring(d.lastIndexOf(".")+1);if(/^(tiff|pdf|ppt|pps|doc|docx)$/.test(e)){a(this).after(function(){var g=a(this).attr("id");var f=(typeof g!=="undefined"&&g!==false)?g+"-gdocsviewer":"";return'<div id="'+f+'" class="gdocsviewer"><iframe src=' + settings.security + '"://docs.google.com/viewer?embedded=true&url='+encodeURIComponent(d)+'" width="'+c.width+'" height="'+c.height+'" style="border: none;"></iframe></div>'})}})}})(jQuery);
|