This file is indexed.

/usr/share/faust/webaudio/export-wrapper.html is in faust-common 0.9.95~repack1-2.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
<!-- Add FaustWeb Compilation service to Page -->
<div id="export" style="color:white; position: absolute; width:400px; padding:2px 2px 2px 2px; background-color:7F7F7F; visibility:hidden; ">

<div id="centerDiv" style="position:relative; margin-right:auto; margin-left:auto; text-align:center;">
<input id="exportUrl" style="color:white; border:0px; text-align:center; font-size:16px; background-color:transparent; outline: 0px solid transparent; position:relative; margin-left:auto; maring-right: auto; text-align:center;" contenteditable="true" value="http://faustservice.grame.fr" onkeyup="onEnterKey()"/>
</br>
</br>
</br>
  <div id="refreshButton" style="position:absolute; left:10px; top:46px;">
	<svg version="1.0" xmlns="http://www.w3.org/2000/svg"
	 width="50.000000pt" height="50.000000pt" viewBox="0 0 50.000000 50.000000"
	 preserveAspectRatio="xMidYMid meet">
	<g transform="translate(0.000000,50.000000) scale(0.100000,-0.100000)"
	fill="#000000" stroke="none">
	<path d="M186 309 c-37 -29 -37 -89 0 -118 28 -22 69 -27 93 -12 23 15 3 30
	-33 24 -29 -4 -37 -1 -51 21 -16 24 -16 28 -1 51 18 27 63 34 84 13 17 -17 15
	-31 -3 -24 -20 7 -19 1 6 -28 l22 -25 18 24 c20 25 25 40 9 30 -5 -3 -16 7
	-24 23 -25 47 -75 56 -120 21z"/>
	</g>
	</svg>
</div>
  <select id="Platform" style="width:250px;" onChange="changeArchs()">
  </select>
  </br>
    <select id="Architecture" style="width:250px;">
  </select>
  </br>
  </br>
  <input id="exportButton" type="button" value="Export" onclick="getFaustSource()" style="border: 2px solid white; border-radius:8px; color:white; font-size:16px;  background-color:transparent;"/>
	</br>
  </br>
  <div id="qrDiv">
  
  <div id="loader" style="visibility:hidden;">
  <svg width='50px' height='50px' xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid" class="uil-ring">
  <rect x="0" y="0" width="100" height="100" fill="none" class="bk"></rect>
  <defs>
    <filter id="uil-ring-shadow" x="-100%" y="-100%" width="300%" height="300%">
      <feOffset result="offOut" in="SourceGraphic" dx="0" dy="0"></feOffset>
      <feGaussianBlur result="blurOut" in="offOut" stdDeviation="0"></feGaussianBlur>
      <feBlend in="SourceGraphic" in2="blurOut" mode="normal"></feBlend>
    </filter>
  </defs>
  <path d="M10,50c0,0,0,0.5,0.1,1.4c0,0.5,0.1,1,0.2,1.7c0,0.3,0.1,0.7,0.1,1.1c0.1,0.4,0.1,0.8,0.2,1.2c0.2,0.8,0.3,1.8,0.5,2.8 c0.3,1,0.6,2.1,0.9,3.2c0.3,1.1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5-1.6-1-2.4-1.5c-3.1-2.1-5.9-4.5-8.1-7.1c-1.2-1.2-2.1-2.7-3.1-4c-0.5-0.6-0.8-1.4-1.2-2 c-0.4-0.7-0.8-1.3-1.1-2c-0.3-0.7-0.6-1.3-0.9-2c-0.3-0.7-0.6-1.3-0.8-1.9c-0.4-1.3-0.9-2.5-1.2-3.7c-0.3-1.2-0.5-2.3-0.7-3.3 c-0.2-1-0.3-2-0.4-2.8c-0.1-0.4-0.1-0.8-0.1-1.2c0-0.4,0-0.7,0-1.1c0-0.7,0-1.2,0-1.7C10,50.5,10,50,10,50z" fill="white" filter="url(#uil-ring-shadow)">
    <animateTransform attributeName="transform" type="rotate" from="0 50 50" to="360 50 50" repeatCount="indefinite" dur="1.5s"></animateTransform>
  </path>
</svg>
</div>
  </div>
</div>
  </br>
</div>


<div id="plusImg" style="position: absolute; z-index=4; visibility:visible;">
<svg version="1.0" xmlns="http://www.w3.org/2000/svg"
 width="50.000000pt" height="51.000000pt" viewBox="0 0 50.000000 51.000000"
 preserveAspectRatio="xMidYMid meet">
<g transform="translate(0.000000,51.000000) scale(0.100000,-0.100000)"
fill="#f9be0d" stroke="none">
<path d="M205 481 c-89 -22 -153 -85 -175 -174 -25 -96 28 -204 122 -251 84
-42 166 -31 239 33 126 107 95 315 -56 376 -43 18 -95 24 -130 16z m153 -54
c58 -38 97 -120 89 -188 -7 -60 -36 -109 -84 -146 -51 -39 -154 -45 -212 -12
-116 65 -137 235 -39 326 64 60 173 69 246 20z"/>
<path d="M190 373 l0 -53 -55 0 -55 0 0 -60 0 -60 55 0 55 0 0 -55 0 -55 60 0
60 0 0 55 0 55 53 0 53 0 0 60 -1 60 -52 0 -52 0 -3 52 -3 51 -58 1 -57 1 0
-52z m100 -18 l0 -55 50 0 50 0 0 -40 0 -40 -50 0 -50 0 0 -55 0 -55 -40 0
-40 0 0 55 0 55 -55 0 -55 0 0 40 0 40 55 0 55 0 0 55 0 55 40 0 40 0 0 -55z"/>
</g>
</svg>
</div>
<div id="moinsImg" style="position: absolute; z-index=4; visibility:hidden;">
<svg version="1.0" xmlns="http://www.w3.org/2000/svg"
 width="50.000000pt" height="51.000000pt" viewBox="0 0 50.000000 51.000000"
 preserveAspectRatio="xMidYMid meet" >
<g transform="translate(0.000000,51.000000) scale(0.100000,-0.100000)"
fill="#f9be0d" stroke="none">
<path d="M187 466 c-92 -34 -157 -123 -157 -217 0 -100 79 -196 180 -218 143
-31 270 72 270 219 0 66 -16 107 -59 153 -57 62 -161 90 -234 63z m162 -36
c78 -39 118 -115 107 -204 -19 -167 -227 -236 -342 -114 -46 48 -57 76 -58
139 -1 74 39 142 103 176 56 29 136 31 190 3z"/>
<path d="M90 250 l0 -60 170 0 170 0 0 60 0 60 -170 0 -170 0 0 -60z m320 0
l0 -40 -150 0 -150 0 0 40 0 40 150 0 150 0 0 -40z"/>
</g>
</svg>
</div>

<script src="ExportLib.js"></script>
<script src="qrcode.js"></script>

<script >

function onEnterKey(e)
{
	if (!e) { var e = window.event; } 
	
	if (e.keyCode == 13) { 
		e.preventDefault(); 
		updateFWTargets();
	}
}

function openExport()
{
	document.getElementById("plusImg").style.visibility = "hidden";
	document.getElementById("moinsImg").style.visibility = "visible";
	document.getElementById("export").style.visibility = "visible";
}

function closeExport(event)
{
	if (!event) { event = window.event; } 

	var target = event.target
	while(target && target != document.getElementById("export") && target != document.getElementById("plusImg") )
		target= target.parentNode;

	if (!target) {
		document.getElementById("plusImg").style.visibility = "visible";
		document.getElementById("moinsImg").style.visibility = "hidden";
		document.getElementById("export").style.visibility = "hidden";	
	}
}

function updateQrCode(sha)
{
    // Empty Div before adding new qrcode
	var toEmpty = document.getElementById("qrDiv");

	document.getElementById("loader").style.visibility = "hidden";
	
	for (var i = toEmpty.children.length-1; i >= 0;  i--) {
		if (toEmpty.children[i].id != "loader") {
	    	toEmpty.removeChild(toEmpty.children[i]);
        }
	}
	
	var plateform = document.getElementById("Platform").options[document.getElementById("Platform").selectedIndex].value;
	var architecture = document.getElementById("Architecture").options[document.getElementById("Architecture").selectedIndex].value;
	var output = "binary.zip";
	
	if (plateform == "android") {
		output = "binary.apk";
    }
	
	var link = document.createElement('a');
	link.href = document.getElementById("exportUrl").value + "/" + sha + "/" + plateform + "/" + architecture + "/" + output;

	// 	Delete existing content if existing
	var qrcodeSpan = document.getElementById('qrcodeDiv');
	if (qrcodeSpan) {
		qrcodeSpan.parentNode.removeChild(qrcodeSpan);
    }
	
	var myWhiteDiv = getQrCode(document.getElementById("exportUrl").value, sha, plateform, architecture, output, 130);

	document.getElementById("qrDiv").appendChild(link);
	link.appendChild(myWhiteDiv);
}

function cancelLoader()
{
	document.getElementById("loader").style.visibility = "hidden";
}

function getFaustSource()
{
    document.getElementById("loader").style.visibility = "visible";
    
    if (dsp_code == null) {

        var url = window.location.href.split('.html').shift() + ".dsp";
        var filename = url.toString().split( '/' ).pop();
        filename = filename.toString().split('.').shift();
        var xmlhttp = new XMLHttpRequest();

        xmlhttp.onreadystatechange=function(){
            if (xmlhttp.readyState==4 && xmlhttp.status == 200) {
                var dsp_code = xmlhttp.responseText;
                getSHAKey(document.getElementById("exportUrl").value, filename, dsp_code, updateQrCode, cancelLoader);
            }
        }
        xmlhttp.open("GET", url, false );
        xmlhttp.send(); 
    } else {
        // Global 'dsp_code', so use it
        getSHAKey(document.getElementById("exportUrl").value, "FaustDSP", dsp_code, updateQrCode, cancelLoader);
    }
}

function cleanComboBox(id)
{
	while(document.getElementById(id).childNodes.length > 0) {
		document.getElementById(id).removeChild(document.getElementById(id).childNodes[0]);
	}
}

function changeArchs()
{
    // CLEAN COMBOBOX BEFORE ADDING NEW OPTIONS
	cleanComboBox("Architecture");

	var plat = document.getElementById("Platform").options[document.getElementById("Platform").selectedIndex].value;
	var archs = getArchitectures(window.json, plat);
		
	for (var j = 0; j < archs.length; j++) {
        var a = document.createElement('option');
		a.text = archs[j];
		document.getElementById("Architecture").options.add(a);
	}
}

function updateFWTargets()
{
    // CLEAN COMBOBOX BEFORE ADDING NEW OPTIONS
	cleanComboBox("Platform");
	cleanComboBox("Architecture");

	getTargets(document.getElementById("exportUrl").value, function(json) {
	
		window.json = json;
		var plats = getPlatforms(json);	
	
		for (var i = 0; i < plats.length; i++) {
			var o=document.createElement('option');
			o.text=plats[i];
			document.getElementById("Platform").options.add(o);
		}
		
        changeArchs();
	}, function(){});
}

function changeOrientation(orientation)
{
	if (orientation == "topright") {
		document.getElementById("plusImg").style.top = "0px";
		document.getElementById("plusImg").style.right = "0px";		
		document.getElementById("moinsImg").style.top = "0px";
		document.getElementById("moinsImg").style.right = "0px";		
		
		document.getElementById("export").style.top = "0%";
		document.getElementById("export").style.right = "0%";
		document.getElementById("export").style.boxShadow ="0px 2px 2px 0px white";
		document.getElementById("export").style.borderRadius ="0px 0px 0px 25px";
		document.getElementById("export").style.borderBottom = "3px solid white";
		document.getElementById("export").style.borderLeft ="3px solid white";
	} else if(orientation == "bottomright") {
	
		document.getElementById("plusImg").style.bottom = "0px";
		document.getElementById("plusImg").style.right = "0px";			
		document.getElementById("moinsImg").style.bottom = "0px";
		document.getElementById("moinsImg").style.right = "0px";			
		
		document.getElementById("export").style.bottom = "0%";
		document.getElementById("export").style.right = "0%";
		document.getElementById("export").style.boxShadow ="2px 2px 0px px white";
		document.getElementById("export").style.borderRadius ="25px 0px 0px 0px";
		document.getElementById("export").style.borderTop = "3px solid white";
		document.getElementById("export").style.borderLeft ="3px solid white";
	} else if(orientation == "bottomleft") {
		document.getElementById("plusImg").style.bottom = "0px";
		document.getElementById("plusImg").style.left = "0px";		
		document.getElementById("moinsImg").style.bottom = "0px";
		document.getElementById("moinsImg").style.left = "0px";
		
		document.getElementById("export").style.bottom = "0%";
		document.getElementById("export").style.left = "0%";
		document.getElementById("export").style.boxShadow ="2px 0px 2px 0px white";
		document.getElementById("export").style.borderRadius ="0px 25px 0px 0px";
		document.getElementById("export").style.borderTop = "3px solid white";
		document.getElementById("export").style.borderRight ="3px solid white";		
	} else if(orientation == "topleft") {
		document.getElementById("plusImg").style.top = "0px";
		document.getElementById("plusImg").style.left = "0px";		
		document.getElementById("moinsImg").style.top = "0px";
		document.getElementById("moinsImg").style.left = "0px";

		document.getElementById("export").style.top = "0%";
		document.getElementById("export").style.left = "0%";
		document.getElementById("export").style.boxShadow ="0px 0px 2px 2px white";
		document.getElementById("export").style.borderRadius ="0px 0px 25px 0px";
		document.getElementById("export").style.borderBottom = "3px solid white";
		document.getElementById("export").style.borderRight ="3px solid white";		
	}
}

changeOrientation("topright");
// changeOrientation("bottomright");
// changeOrientation("bottomleft");
// changeOrientation("topleft");

updateFWTargets();

document.getElementById("refreshButton").onclick=updateFWTargets;
document.getElementById("plusImg").onclick=openExport;
document.getElementById("moinsImg").onclick=closeExport;
document.body.addEventListener("click", closeExport, false);
</script>

<!-- End FaustWeb Compilation Service -->