Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/websdk/static/js/jquery.plugin.svgimg.js
diff options
context:
space:
mode:
Diffstat (limited to 'websdk/static/js/jquery.plugin.svgimg.js')
-rw-r--r--websdk/static/js/jquery.plugin.svgimg.js33
1 files changed, 0 insertions, 33 deletions
diff --git a/websdk/static/js/jquery.plugin.svgimg.js b/websdk/static/js/jquery.plugin.svgimg.js
deleted file mode 100644
index 4e2f9be..0000000
--- a/websdk/static/js/jquery.plugin.svgimg.js
+++ /dev/null
@@ -1,33 +0,0 @@
-(function(){
- jQuery.fn.svgimg = function(options) {
- return $(this).each(function() {
- var _a, _b, _c, attribute, img, object;
- img = $(this);
- img.attr('style', 'display: inline-block');
- if (img.height() > 0) {
- if (img.width() > 0) {
- $('body').addClass('has_svg_images');
- }
- } else {
- if (img.height() > 0) {
- $('body').addClass('has_svg_images');
- }
- }
- if ($('body').hasClass('has_svg_images')) {
- return img.removeAttr('style');
- } else {
- object = $('<object>');
- _b = ['height', 'width', 'id', 'class'];
- for (_a = 0, _c = _b.length; _a < _c; _a++) {
- attribute = _b[_a];
- if (img.attr(attribute)) {
- object.attr(attribute, img.attr(attribute));
- }
- }
- object.attr('data', img.attr('src'));
- img.after(object);
- return img.remove();
- }
- });
- };
-})();