Mercurial > hg > webaudioevaluationtool
comparison test_create/test_core.js @ 2412:18f88a726ccd
Potential fix for #70
author | Nicholas Jillings <n.g.r.jillings@se14.qmul.ac.uk> |
---|---|
date | Fri, 27 May 2016 10:39:23 +0100 |
parents | 32f077f5849a |
children | de547cf9a4e7 |
comparison
equal
deleted
inserted
replaced
2411:c31f73252af5 | 2412:18f88a726ccd |
---|---|
1327 obj.content.id = "finish"; | 1327 obj.content.id = "finish"; |
1328 var span = document.createElement("span"); | 1328 var span = document.createElement("span"); |
1329 span.textContent = "Your XML document is linked below. On most browsers, simply right click on the link and select 'Save As'. Or clicking on the link may download the file directly. " | 1329 span.textContent = "Your XML document is linked below. On most browsers, simply right click on the link and select 'Save As'. Or clicking on the link may download the file directly. " |
1330 obj.content.appendChild(span); | 1330 obj.content.appendChild(span); |
1331 var link = document.createElement("div"); | 1331 var link = document.createElement("div"); |
1332 link.appendChild(doc.firstElementChild); | 1332 link.appendChild(doc.firstChild); |
1333 var file = [link.innerHTML]; | 1333 var file = [link.innerHTML]; |
1334 var bb = new Blob(file,{type : 'application/xml'}); | 1334 var bb = new Blob(file,{type : 'application/xml'}); |
1335 var dnlk = window.URL.createObjectURL(bb); | 1335 var dnlk = window.URL.createObjectURL(bb); |
1336 var a = document.createElement("a"); | 1336 var a = document.createElement("a"); |
1337 a.hidden = ''; | 1337 a.hidden = ''; |