Mercurial > hg > webaudioevaluationtool
comparison test_create/test_core.js @ 2860:65b8d9ad75cc
Add XML exporting
author | Nicholas Jillings <nicholas.jillings@mail.bcu.ac.uk> |
---|---|
date | Thu, 27 Apr 2017 12:19:20 +0100 |
parents | d432bf25889b |
children | 79258b2a8245 |
comparison
equal
deleted
inserted
replaced
2859:d432bf25889b | 2860:65b8d9ad75cc |
---|---|
55 $s.specification = specification; | 55 $s.specification = specification; |
56 | 56 |
57 $s.addPage = function () { | 57 $s.addPage = function () { |
58 $s.specification.createNewPage(); | 58 $s.specification.createNewPage(); |
59 }; | 59 }; |
60 | |
61 $s.exportXML = function () { | |
62 var s = new XMLSerializer(); | |
63 var doc = specification.encode(); | |
64 var bb = new Blob([s.serializeToString(doc)], { | |
65 type: 'application/xml' | |
66 }); | |
67 var dnlk = window.URL.createObjectURL(bb); | |
68 window.location.href = dnlk; | |
69 } | |
60 }]); | 70 }]); |
61 | 71 |
62 AngularInterface.controller("introduction", ['$scope', '$element', '$window', function ($s, $e, $w) { | 72 AngularInterface.controller("introduction", ['$scope', '$element', '$window', function ($s, $e, $w) { |
63 $s.state = 0; | 73 $s.state = 0; |
64 $s.next = function () { | 74 $s.next = function () { |