Skip to content

Commit

Permalink
furhter fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
wiredearp committed Jun 5, 2018
1 parent e54a917 commit d77474d
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 20 deletions.
23 changes: 12 additions & 11 deletions docs/dist/getstarted/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,18 @@
<link rel="prefetch" title="Rules" href="rules.html">
<script>
ts.ui.ready(function nastyhack() {
new gui.Request('/dist/sri.json').get().then(function(status, json) {
ts.ui.ready(function nastyhack() {
var version = ts.ui.version;
var figure = document.querySelector('figure');
var markup = figure.innerHTML;
figure.innerHTML = markup
.replace(/\${ts.ui.version}/g, version)
.replace('${sricss}', json['@css'].integrity)
.replace('${srijs}', json['@js'].integrity);
});
});
new gui.Request('/dist/sri.json').get().then(function(status, json) {
ts.ui.ready(function nastyhack() {
var version = ts.ui.version;
var figure = document.querySelector('figure');
var markup = figure.innerHTML;
figure.innerHTML = markup
.replace(/\${ts.ui.version}/g, version)
.replace('${sricss}', json['@css'].integrity)
.replace('${srijs}', json['@js'].integrity);
});
});
});
</script>
<script>
ts.dox.tabs()
Expand Down
19 changes: 10 additions & 9 deletions docs/src/xhtml/getstarted/index.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,16 @@
<object data="tabs.xhtml"></object>
<script>
ts.ui.ready(function nastyhack() {
new gui.Request('/dist/sri.json').get().then(function(status, json) {
ts.ui.ready(function nastyhack() {
var version = ts.ui.version;
var figure = document.querySelector('figure');
var markup = figure.innerHTML;
figure.innerHTML = markup
.replace(/\${ts.ui.version}/g, version)
.replace('${sricss}', json['@css'].integrity)
.replace('${srijs}', json['@js'].integrity);
new gui.Request('/dist/sri.json').get().then(function(status, json) {
ts.ui.ready(function nastyhack() {
var version = ts.ui.version;
var figure = document.querySelector('figure');
var markup = figure.innerHTML;
figure.innerHTML = markup
.replace(/\${ts.ui.version}/g, version)
.replace('${sricss}', json['@css'].integrity)
.replace('${srijs}', json['@js'].integrity);
});
});
});
</script>
Expand Down

0 comments on commit d77474d

Please sign in to comment.