mirror of
https://github.com/Pomax/BezierInfo-2.git
synced 2025-02-24 09:33:19 +01:00
pontoon...
This commit is contained in:
parent
e6790157e8
commit
1fbd6d5de6
28
article.js
28
article.js
File diff suppressed because one or more lines are too long
@ -3,6 +3,11 @@ var ReactDOM = require("react-dom");
|
||||
var FullArticle = require("./FullArticle.jsx");
|
||||
|
||||
function addPontoon() {
|
||||
// It is entirely unclear when pontoon.js should be loading.
|
||||
// According to the people in #pontoon on mozilla.org, it should
|
||||
// be loaded after DOM content has finished loading, but running
|
||||
// this injection without a timeout clearly isn't late enough still.
|
||||
setTimeout( () => {
|
||||
var jquery = document.createElement("script");
|
||||
jquery.src = "https://localize-bezierinfo.herokuapp.com/static/js/jquery-1.11.1.min.js";
|
||||
document.head.appendChild(jquery);
|
||||
@ -10,6 +15,7 @@ function addPontoon() {
|
||||
var pontoon = document.createElement("script");
|
||||
pontoon.src = "https://localize-bezierinfo.herokuapp.com/pontoon.js";
|
||||
document.head.appendChild(pontoon);
|
||||
}, 5000);
|
||||
}
|
||||
|
||||
ReactDOM.render(<FullArticle/>, document.getElementById("article"), addPontoon);
|
||||
|
@ -25,10 +25,6 @@
|
||||
</style>
|
||||
|
||||
<link rel="stylesheet" href="stylesheets/style.css">
|
||||
|
||||
<!-- pontoon localization -->
|
||||
<script src="https://localize-bezierinfo.herokuapp.com/static/js/jquery-1.11.1.min.js"></script>
|
||||
<script src="https://localize-bezierinfo.herokuapp.com/pontoon.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user