選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。
 
 
 

21 行
454 B

  1. 'use strict'
  2. function get(uri) {
  3. var xhr = new XMLHttpRequest()
  4. xhr.open('GET', uri, false)
  5. xhr.send()
  6. if(xhr.status !== 200)
  7. console.error('SVG.js fixture could not be loaded. Tests will fail.')
  8. return xhr.responseText
  9. }
  10. function main() {
  11. var style = document.createElement("style")
  12. document.head.appendChild(style)
  13. style.sheet.insertRule( get('/fixtures/fixture.css'), 0 )
  14. document.body.innerHTML = get('/fixtures/fixture.svg')
  15. }
  16. main()