# HG changeset patch # User Nicholas Jillings # Date 1493291960 -3600 # Node ID 65b8d9ad75cc2a0034fa938ad36a8e7371e34506 # Parent d432bf25889b5addb227a0348454f7ce125f1308 Add XML exporting diff -r d432bf25889b -r 65b8d9ad75cc test_create.html --- a/test_create.html Thu Apr 27 12:02:28 2017 +0100 +++ b/test_create.html Thu Apr 27 12:19:20 2017 +0100 @@ -19,6 +19,7 @@

Web Audio Evaluation Tool - Test Creator

+

Setup

diff -r d432bf25889b -r 65b8d9ad75cc test_create/test_core.js --- a/test_create/test_core.js Thu Apr 27 12:02:28 2017 +0100 +++ b/test_create/test_core.js Thu Apr 27 12:19:20 2017 +0100 @@ -57,6 +57,16 @@ $s.addPage = function () { $s.specification.createNewPage(); }; + + $s.exportXML = function () { + var s = new XMLSerializer(); + var doc = specification.encode(); + var bb = new Blob([s.serializeToString(doc)], { + type: 'application/xml' + }); + var dnlk = window.URL.createObjectURL(bb); + window.location.href = dnlk; + } }]); AngularInterface.controller("introduction", ['$scope', '$element', '$window', function ($s, $e, $w) {