Skip to content

Commit 202a8c6

Browse files
committed
Add web3dsurvey data gathering to specs and extensions.
Thanks to @greggman for suggesting the web3dsurvey refactoring to put the data collector into a separate iframe. Thanks to @kainino0x for helping me understand why the iframe was breaking in the XSL-generated files, and for the workaround.
1 parent f599fd5 commit 202a8c6

File tree

4 files changed

+9
-1
lines changed

4 files changed

+9
-1
lines changed

extensions/extension.xsl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,9 @@
7676
<p><strong>DO NOT IMPLEMENT!!!</strong></p>
7777
</xsl:if>
7878

79+
<xsl:comment>Help the community by recording statistics on availability of 3D APIs. Trick to prevent XSL processor from creating an illegal self-closing iframe tag.</xsl:comment>
80+
<iframe src="https://web3dsurvey.com/collector-iframe.html" style="width: 1px; height: 1px;" frameborder="0"><xsl:text>&#160;</xsl:text></iframe>
81+
7982
<h2 class="no-toc">Name</h2>
8083
<p> <xsl:value-of select="name" /> </p>
8184

@@ -184,7 +187,6 @@
184187
<xsl:apply-templates select="history/revision">
185188
<xsl:sort select="@date" />
186189
</xsl:apply-templates>
187-
188190
</body>
189191
</html>
190192
</xsl:template>

extensions/registry.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@
2424
<script src="../resources/generateTOC.js" type="text/javascript"></script>
2525
</head>
2626
<body>
27+
<!-- Help the community by recording statistics on availability of 3D APIs -->
28+
<iframe src="https://web3dsurvey.com/collector-iframe.html" style="width: 1px; height: 1px;" frameborder="0"></iframe>
2729
<!--begin-logo-->
2830
<div class="head">
2931
<div class="left">

specs/latest/1.0/index.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
<script src="../../../resources/generateTOC.js" type="application/javascript"></script>
1111
</head>
1212
<body onload="generateTOC(document.getElementById('toc'))">
13+
<!-- Help the community by recording statistics on availability of 3D APIs -->
14+
<iframe src="https://web3dsurvey.com/collector-iframe.html" style="width: 1px; height: 1px;" frameborder="0"></iframe>
1315
<!--begin-logo-->
1416
<div class="head">
1517
<div class="left">

specs/latest/2.0/index.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
<script src="../../../resources/generateTOC.js" type="application/javascript"></script>
1010
</head>
1111
<body onload="generateTOC(document.getElementById('toc'))">
12+
<!-- Help the community by recording statistics on availability of 3D APIs -->
13+
<iframe src="https://web3dsurvey.com/collector-iframe.html" style="width: 1px; height: 1px;" frameborder="0"></iframe>
1214
<!--begin-logo-->
1315
<div class="head">
1416
<div class="left">

0 commit comments

Comments
 (0)