Advertisement
Guest User

SVG

a guest
May 26th, 2016
189
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. Obrázok SVG "up.svg" -- jeho obsah:
  2.  
  3. <svg version="1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48" enable-background="new 0 0 48 48">
  4. <g fill="#ffffff" fill-opacity="0.5">
  5. <polygon points="24,4 35.7,18 12.3,18"/>
  6. <rect x="20" y="17.95" width="8" height="24"/>
  7. </g>
  8. </svg>
  9.  
  10. Po vložení napr. do JavaScriptu:
  11.  
  12. /* image: up.svg */
  13. $("body").append("<div id='imgsvg'><img src='data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA0OCA0OCIgZW5hYmxlLWJhY2tncm91bmQ9Im5ldyAwIDAgNDggNDgiPiAgICA8ZyBmaWxsPSIjZmZmZmZmIiBmaWxsLW9wYWNpdHk9IjAuNSI+ICAgICAgICA8cG9seWdvbiBwb2ludHM9IjI0LDQgMzUuNywxOCAxMi4zLDE4Ii8+ICAgICAgICA8cmVjdCB4PSIyMCIgeT0iMTcuOTUiIHdpZHRoPSI4IiBoZWlnaHQ9IjI0Ii8+ICAgIDwvZz48L3N2Zz4=;' title=''/></div>");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement