Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

uploaded sample

  • Loading branch information...
commit 79156d2052878370751f8cb427c22f30f5f69a48 1 parent e50f948
@teleject teleject authored
View
10 README.md
@@ -1,4 +1,10 @@
-svg-swap
+SVG-Swap
========
-A simple jQuery plugin for swapping SVG image with a raster image for older IE versions.
+A simple jQuery plugin for swapping SVG image with a raster image for older IE versions.
+
+Requirements:
+========
+
+* Link to jQuery
+* Use HTML5 Boilerplate, specifically the HTML **head** block
View
BIN  example.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
56 example.svg
@@ -0,0 +1,56 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+
+<svg
+ xmlns:svg="http://www.w3.org/2000/svg"
+ xmlns="http://www.w3.org/2000/svg"
+ version="1.1"
+ width="450"
+ height="340.98618"
+ id="svg2"
+ xml:space="preserve"><defs
+ id="defs6" /><g
+ transform="matrix(1.25,0,0,-1.25,-54.676498,382.42034)"
+ id="g12"><path
+ d="m 61.925318,305.93627 c -10.043443,0 -18.18412,-8.14234 -18.18412,-18.18353 l 0,-236.419629 c 0,-10.043443 8.140677,-18.185779 18.18412,-18.185779 l 323.630312,0 c 10.04323,0 18.18557,8.142336 18.18557,18.185779 l 0,236.419629 c 0,10.04119 -8.14234,18.18353 -18.18557,18.18353 l -323.630312,0"
+ id="path18"
+ style="fill:#d52b1e;fill-opacity:1;fill-rule:evenodd;stroke:none" /><path
+ d="m 195.96681,182.84873 c 4.89851,36.22162 21.04635,101.55081 51.84302,101.55081 35.95328,0 78.19715,-120.77081 78.18691,-220.756855 l -33.15518,0 c 0,104.870215 -25.68677,199.361455 -44.16936,199.365555 -19.28002,0.002 -36.17675,-64.27427 -36.17675,-186.734386 l -33.11033,0 c 0,122.460116 -16.79431,186.734386 -36.17717,186.734386 -18.44899,0 -44.117119,-94.51296 -44.117119,-199.365555 l -33.154977,0 c 0.03113,100.072485 42.167876,220.769145 78.185886,220.756855 30.75386,-0.0102 46.90723,-65.321 51.84507,-101.55081"
+ id="path20"
+ style="fill:#fdc82f;fill-opacity:1;fill-rule:evenodd;stroke:none" /><path
+ d="m 174.29775,103.82465 152.72073,0 0,38.59365 -152.72073,0 0,-38.59365 z"
+ id="path22"
+ style="fill:#d52b1e;fill-opacity:1;fill-rule:evenodd;stroke:none" /><path
+ d="m 311.61297,107.69733 9.60982,0 0,31.61562 -9.60982,0 0,-31.61562 z"
+ id="path24"
+ style="fill:#ffffff;fill-opacity:1;fill-rule:evenodd;stroke:none" /><path
+ d="m 356.56276,139.31295 6.5446,0 -2.2225,-8.61593 -4.7584,0 0.4363,8.61593"
+ id="path26"
+ style="fill:#ffffff;fill-opacity:1;fill-rule:evenodd;stroke:none" /><path
+ d="m 374.38373,134.62972 c 6.39301,0 12.39888,-1.6131 12.42756,-7.88875 l -9.12557,0 c 0,2.16208 -1.2618,3.14469 -3.39212,3.14469 -1.26386,0 -2.97221,-0.525 -2.97221,-2.5062 0.002,-3.28766 5.20085,-2.63013 9.61512,-3.94069 3.96568,-1.17618 6.71461,-3.54227 6.71461,-7.36292 0,-5.85306 -4.59248,-9.09136 -13.26739,-9.12577 -9.09689,-0.0361 -12.51974,3.243 -12.54842,9.12577 l 9.24642,0 c 0,-2.22046 1.38061,-3.54228 3.33067,-3.54228 2.33516,0 3.39418,0.88654 3.39418,2.53713 0,3.43679 -6.37458,3.34789 -10.13337,4.57774 -2.55638,0.83779 -4.87925,2.73254 -4.87925,6.75578 0,3.3614 2.52156,8.2255 11.58977,8.2255"
+ id="path28"
+ style="fill:#ffffff;fill-opacity:1;fill-rule:evenodd;stroke:none" /><path
+ d="m 177.5721,117.27845 c -1.59467,-6.28527 -6.80863,-10.35951 -13.31144,-10.36114 -7.85106,0 -13.82334,5.94114 -13.81535,14.53862 0.006,8.58643 5.31454,14.52839 13.81535,14.53638 7.0485,0.006 11.90153,-4.08879 13.35855,-10.38266 l -8.99283,-8.2e-4 c -0.68969,1.89148 -2.01479,3.36693 -4.36572,3.36857 -3.96793,8.2e-4 -5.01445,-4.20472 -5.01281,-7.52147 8.2e-4,-3.319 1.04488,-7.52208 5.01281,-7.52208 2.3413,0 3.66395,1.46255 4.3561,3.34378 l 8.95534,8.2e-4"
+ id="path30"
+ style="fill:#ffffff;fill-opacity:1;fill-rule:evenodd;stroke:none" /><path
+ d="m 111.27463,139.30987 11.48141,0 4.99786,-18.67718 4.99766,18.67718 11.48939,0 5.02019,-32.39256 -9.47297,0 -2.5021,18.93077 -5.17709,-18.93077 -8.71036,0 -5.17627,18.93077 -2.50354,-18.93077 -9.47952,0 5.03534,32.39256"
+ id="path32"
+ style="fill:#ffffff;fill-opacity:1;fill-rule:evenodd;stroke:none" /><path
+ d="m 258.54133,123.18518 c 0,-1.1051 0,-15.49338 0,-15.49338 l -9.50042,0 0,27.62126 9.50042,0 0,-2.15797 c 2.40481,1.87386 4.57814,2.83722 9.50861,2.83722 5.35448,0 9.66838,-3.57833 9.67043,-7.33487 l 0,-20.96564 -9.56801,0 0,15.20374 c 0.004,2.52525 -2.25732,4.58408 -4.71948,4.58408 -3.16681,0 -4.74202,-2.80219 -4.89155,-4.29444"
+ id="path34"
+ style="fill:#ffffff;fill-opacity:1;fill-rule:evenodd;stroke:none" /><path
+ d="m 343.30151,132.57335 0,6.7396 9.60898,0 0,-31.61562 -9.60898,0 0,1.53404 c -1.26181,-1.13952 -2.9169,-2.30362 -7.05874,-2.30362 -4.66008,0 -12.06295,2.58916 -12.06909,13.71211 -0.006,11.10696 7.40082,13.98986 12.66927,13.98986 3.82638,0 5.63306,-1.321 6.45856,-2.05637 z m -9.97154,-11.93349 c 0,-4.32312 2.01151,-7.08537 5.31556,-7.08537 1.98079,0 3.63793,0.86339 4.66008,2.66454 l 0,8.2935 c -0.5121,1.83085 -2.2901,3.18074 -4.66008,3.18135 -3.31019,0.002 -5.31556,-2.73152 -5.31556,-7.05402"
+ id="path36"
+ style="fill:#ffffff;fill-opacity:1;fill-rule:evenodd;stroke:none" /><path
+ d="m 217.14426,121.45204 c 0.008,8.58643 5.57632,14.52982 14.49356,14.53781 8.92073,0.008 14.48824,-5.95138 14.49438,-14.53781 0.008,-8.59605 -5.5757,-14.53637 -14.49438,-14.53637 -8.90843,-8.2e-4 -14.50073,5.94032 -14.49356,14.53637 z m 19.99963,0 c 0.002,3.31818 -1.1471,7.52209 -5.50607,7.52209 -4.35794,0.002 -5.50708,-4.20391 -5.50626,-7.52209 0.002,-3.31757 1.14832,-7.52147 5.50626,-7.52147 4.35897,0 5.50607,4.2039 5.50607,7.52147"
+ id="path38"
+ style="fill:#ffffff;fill-opacity:1;fill-rule:evenodd;stroke:none" /><path
+ d="m 180.92059,139.30987 16.50959,0 c 10.32919,0 17.36888,-6.41575 17.36888,-16.19597 0,-9.77941 -7.03805,-16.19659 -17.36888,-16.19659 l -16.50959,0 0,32.39256 z m 10.92139,-24.73508 4.9913,0 c 3.2342,0 7.17099,1.97218 7.17099,8.53911 0,6.55893 -3.93679,8.53849 -7.17099,8.53849 l -4.9913,0 0,-17.0776"
+ id="path40"
+ style="fill:#ffffff;fill-opacity:1;fill-rule:evenodd;stroke:none" /><path
+ d="m 294.85922,135.98841 c 6.81908,0.006 12.43985,-2.5021 12.87821,-8.00796 l 0,-20.28455 -9.61718,0 0,2.7348 c -2.33516,-2.00107 -4.66213,-3.50233 -8.86541,-3.50233 -4.89565,0 -8.84084,3.87042 -8.84084,8.40719 0,4.53779 2.794,9.57866 13.98024,9.57621 2.88412,-6.2e-4 3.72396,1.13398 3.72601,2.4853 0.004,1.65961 -1.90909,2.58527 -3.51093,2.58527 -1.60184,0 -3.41876,-0.66716 -3.41876,-2.40194 l -9.0088,0 c 0,4.07035 2.73664,8.39839 12.67746,8.40801 z m -0.53258,-15.56466 c -2.2184,0 -4.27089,-1.18417 -4.27089,-3.45255 0,-1.46911 0.86852,-2.73726 3.13608,-2.73665 2.16925,0 4.48392,1.2868 4.92842,3.95441 l 0,2.52689 c -0.73332,-0.40087 -2.39251,-0.2921 -3.79361,-0.2921"
+ id="path42"
+ style="fill:#ffffff;fill-opacity:1;fill-rule:evenodd;stroke:none" /><path
+ d="m 340.69801,85.199493 5.90345,0 c 2.92305,0 4.86902,-1.569883 4.86902,-3.643874 0,-1.915446 -1.47484,-3.172541 -3.29791,-3.329447 l 0,-0.06309 c 2.79605,-0.941848 3.20368,-2.889454 3.23645,-5.528185 l -2.63832,0 c -0.0942,3.172541 -0.78658,4.554382 -3.58058,4.554382 l -2.16924,0 0,-4.554382 -2.32287,0 0,12.564597 z m 2.32287,-5.999519 2.76532,0 c 2.1672,0 3.04595,0.753807 3.04595,2.167603 0,1.068233 -0.65958,1.82204 -2.66904,1.82204 l -3.14223,0 0,-3.989643 z m 2.51337,10.366065 c 5.969,0 10.80524,-4.80572 10.80524,-10.806058 0,-5.999519 -4.83624,-10.805238 -10.80524,-10.805238 -5.969,0 -10.80524,4.805719 -10.80524,10.805238 0,6.000338 4.83624,10.806058 10.80524,10.806058 z m 0,-20.449451 c 5.30942,0 9.6438,4.30325 9.6438,9.643393 0,5.340143 -4.33438,9.643394 -9.6438,9.643394 -5.30737,0 -9.6438,-4.303251 -9.6438,-9.643394 0,-5.340143 4.33643,-9.643393 9.6438,-9.643393"
+ id="path44"
+ style="fill:#fdc82f;fill-opacity:1;fill-rule:evenodd;stroke:none" /></g></svg>
View
1  svg-swap.html
@@ -0,0 +1 @@
+<!doctype html>
View
1  svgwap.jquery.js
@@ -0,0 +1 @@
+(function($){
Please sign in to comment.
Something went wrong with that request. Please try again.