Advertisement
Anatoliy_Gerasimov

Untitled

May 14th, 2018
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 1.17 KB | None | 0 0
  1. @php ($id = uniqid("star_"))
  2. <svg
  3.        xmlns:dc="http://purl.org/dc/elements/1.1/"
  4.        xmlns:cc="http://creativecommons.org/ns#"
  5.        xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  6.        xmlns:svg="http://www.w3.org/2000/svg"
  7.        xmlns="http://www.w3.org/2000/svg"
  8.        version="1.1"
  9.        height="24"
  10.        width="24"
  11.        step="10"
  12.        style="overflow: visible;"
  13. >
  14.     <linearGradient id="{{ $id }}" x1="0" x2="100%" y1="0" y2="0">
  15.         <stop offset="{{ $star }}%" stop-color="#FFD700"></stop>
  16.         <stop offset="{{ $star }}%" stop-color="#eee"></stop>
  17.     </linearGradient>
  18.     <polygon
  19.            points="11.051162790697674,1.2279069767441861,3.6837209302325578,24.312558139534886,22.10232558139535,9.577674418604651,0,9.577674418604651,18.41860465116279,24.312558139534886"
  20.            fill="url(#{{ $id }})" stroke="#999" stroke-width="0"
  21.    ></polygon>
  22.     <polygon
  23.            points="11.051162790697674,1.2279069767441861,3.6837209302325578,24.312558139534886,22.10232558139535,9.577674418604651,0,9.577674418604651,18.41860465116279,24.312558139534886"
  24.            fill="url(#{{ $id }})"
  25.    ></polygon>
  26. </svg>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement