Witam

Nie potrafię sobie poradzić z takim projektem

mam grafikę w svg (grafika.svg)



Oraz plik html z umieszoną grafiką.

  1. <!DOCTYPE html>
  2. <meta charset="UTF-8">
  3. <title>Title of the document</title>
  4. </head>
  5.  
  6.  
  7. <svg
  8. xmlns:dc="http://purl.org/dc/elements/1.1/"
  9. xmlns:cc="http://creativecommons.org/ns#"
  10. xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  11. xmlns:svg="http://www.w3.org/2000/svg"
  12. xmlns="http://www.w3.org/2000/svg"
  13. xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
  14. xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
  15. width="600"
  16. height="600"
  17. viewBox="0 0 600 600"
  18. id="svg3458"
  19. version="1.1"
  20. inkscape:version="0.91 r13725"
  21. sodipodi:docname="grafika.svg">
  22. <defs
  23. id="defs3460">
  24. <inkscape:perspective
  25. sodipodi:type="inkscape:persp3d"
  26. inkscape:vp_x="-39.672176 : 139.21828 : 1"
  27. inkscape:vp_y="0 : 517.37992 : 0"
  28. inkscape:vp_z="1284.7001 : 139.21828 : 1"
  29. inkscape:persp3d-origin="622.51391 : 87.480288 : 1"
  30. id="perspective3474" />
  31. </defs>
  32. <sodipodi:namedview
  33. id="base"
  34. pagecolor="#ffffff"
  35. bordercolor="#666666"
  36. borderopacity="1.0"
  37. inkscape:pageopacity="0.0"
  38. inkscape:pageshadow="2"
  39. inkscape:zoom="0.62"
  40. inkscape:cx="85.301343"
  41. inkscape:cy="215.84067"
  42. inkscape:document-units="px"
  43. inkscape:current-layer="layer1"
  44. showgrid="false"
  45. units="px"
  46. inkscape:window-width="1920"
  47. inkscape:window-height="1018"
  48. inkscape:window-x="-8"
  49. inkscape:window-y="-8"
  50. inkscape:window-maximized="1" />
  51. <metadata
  52. id="metadata3463">
  53. <rdf:RDF>
  54. <cc:Work
  55. rdf:about="">
  56. <dc:format>image/svg+xml</dc:format>
  57. <dc:type
  58. rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
  59. <dc:title></dc:title>
  60. </cc:Work>
  61. </rdf:RDF>
  62. </metadata>
  63. <g
  64. inkscape:label="Layer 1"
  65. inkscape:groupmode="layer"
  66. id="layer1"
  67. transform="translate(0,-452.36216)">
  68. xml:space="preserve"
  69. style="font-style:normal;font-weight:normal;font-size:50px;line-height:125%;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
  70. x="58.064518"
  71. y="595.91058"
  72. id="text3466"
  73. sodipodi:linespacing="125%"><tspan
  74. sodipodi:role="line"
  75. id="tspan3468"
  76. x="58.064518"
  77. y="595.91058">TextA</tspan></text>
  78. xml:space="preserve"
  79. style="font-style:normal;font-weight:normal;font-size:50px;line-height:125%;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
  80. x="67.741936"
  81. y="963.65247"
  82. id="text3470"
  83. sodipodi:linespacing="125%"><tspan
  84. sodipodi:role="line"
  85. id="tspan3472"
  86. x="67.741936"
  87. y="963.65247">TextB</tspan></text>
  88. <g
  89. sodipodi:type="inkscape:box3d"
  90. id="g3476"
  91. style="fill:#ffffff"
  92. inkscape:perspectiveID="#perspective3474"
  93. inkscape:corner0="5.8888889 : 1.7222222 : 0 : 1"
  94. inkscape:corner7="2.509434 : 1.1811321 : 0.25 : 1">
  95. <path
  96. sodipodi:type="inkscape:box3dside"
  97. id="path3488"
  98. style="fill:#e9e9ff;fill-rule:evenodd;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:round;stroke-opacity:1"
  99. inkscape:box3dsidetype="11"
  100. d="m 99.464203,795.57584 125.073377,-105.68503 0,74.46577 -125.073377,70.43392 z"
  101. points="224.53758,689.89081 224.53758,764.35658 99.464203,834.7905 99.464203,795.57584 " />
  102. <path
  103. sodipodi:type="inkscape:box3dside"
  104. id="path3478"
  105. style="fill:#353564;fill-rule:evenodd;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:round;stroke-opacity:1"
  106. inkscape:box3dsidetype="6"
  107. d="m 56.451611,791.30926 0,40.63778 43.012592,2.84346 0,-39.21466 z"
  108. points="56.451611,831.94704 99.464203,834.7905 99.464203,795.57584 56.451611,791.30926 " />
  109. <path
  110. sodipodi:type="inkscape:box3dside"
  111. id="path3480"
  112. style="fill:#4d4d9f;fill-rule:evenodd;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:round;stroke-opacity:1"
  113. inkscape:box3dsidetype="5"
  114. d="M 56.451611,791.30926 149.01526,673.98703 224.53758,689.89081 99.464203,795.57584 Z"
  115. points="149.01526,673.98703 224.53758,689.89081 99.464203,795.57584 56.451611,791.30926 " />
  116. <path
  117. sodipodi:type="inkscape:box3dside"
  118. id="path3486"
  119. style="fill:#afafde;fill-rule:evenodd;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:round;stroke-opacity:1"
  120. inkscape:box3dsidetype="13"
  121. d="m 56.451611,831.94704 92.563649,-78.18956 75.52232,10.5991 -125.073377,70.43392 z"
  122. points="149.01526,753.75748 224.53758,764.35658 99.464203,834.7905 56.451611,831.94704 " />
  123. <path
  124. sodipodi:type="inkscape:box3dside"
  125. id="path3484"
  126. style="fill:#d7d7ff;fill-rule:evenodd;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:round;stroke-opacity:1"
  127. inkscape:box3dsidetype="14"
  128. d="m 149.01526,673.98703 0,79.77045 75.52232,10.5991 0,-74.46577 z"
  129. points="149.01526,753.75748 224.53758,764.35658 224.53758,689.89081 149.01526,673.98703 " />
  130. <path
  131. sodipodi:type="inkscape:box3dside"
  132. id="path3482"
  133. style="fill:#8686bf;fill-rule:evenodd;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:round;stroke-opacity:1"
  134. inkscape:box3dsidetype="3"
  135. d="m 56.451611,791.30926 92.563649,-117.32223 0,79.77045 -92.563649,78.18956 z"
  136. points="149.01526,673.98703 149.01526,753.75748 56.451611,831.94704 56.451611,791.30926 " />
  137. </g>
  138. </g>
  139. </svg>
  140.  
  141.  
  142.  
  143. </body>
  144. </html>


Na początek chciałbym aby pola z grafiki TextA i TextB były pobierane z pliku np TextA.txt i TextB.txt i odświeżane co minutę z aktualnym tekstem który jest w plikach TextA.txt i TextB.txt bez przeładowywania strony index.html
Niestety nie mam pojecia jak to zrobić.