Skip to content

Commit

Permalink
fixed copy buttons on website.
Browse files Browse the repository at this point in the history
  • Loading branch information
pokepetter committed May 13, 2024
1 parent 20852fd commit e46d973
Show file tree
Hide file tree
Showing 31 changed files with 176 additions and 210 deletions.
12 changes: 6 additions & 6 deletions docs/animation.html
Original file line number Diff line number Diff line change
Expand Up @@ -162,12 +162,12 @@ <h2><div id="FrameAnimation3D (3D)"/><br>
</div><br>
<script>
function copy_to_clipboard(containerid) {
var range = document.createRange();
range.selectNode(containerid); //changed here
window.getSelection().removeAllRanges();
window.getSelection().addRange(range);
document.execCommand("copy");
window.getSelection().removeAllRanges();
var range = document.createRange()
range.selectNode(containerid)
window.getSelection().removeAllRanges()
window.getSelection().addRange(range)
document.execCommand("copy")
window.getSelection().removeAllRanges()
}
</script>

Expand Down
12 changes: 6 additions & 6 deletions docs/asset_store.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@
<br>
<script>
function copy_to_clipboard(containerid) {
var range = document.createRange();
range.selectNode(containerid); //changed here
window.getSelection().removeAllRanges();
window.getSelection().addRange(range);
document.execCommand("copy");
window.getSelection().removeAllRanges();
var range = document.createRange()
range.selectNode(containerid)
window.getSelection().removeAllRanges()
window.getSelection().addRange(range)
document.execCommand("copy")
window.getSelection().removeAllRanges()
}
</script>

Expand Down
12 changes: 6 additions & 6 deletions docs/building.html
Original file line number Diff line number Diff line change
Expand Up @@ -161,12 +161,12 @@ <h2><div id="Building Your App with auto-py-to-exe"/><br>
<br>
<script>
function copy_to_clipboard(containerid) {
var range = document.createRange();
range.selectNode(containerid); //changed here
window.getSelection().removeAllRanges();
window.getSelection().addRange(range);
document.execCommand("copy");
window.getSelection().removeAllRanges();
var range = document.createRange()
range.selectNode(containerid)
window.getSelection().removeAllRanges()
window.getSelection().addRange(range)
document.execCommand("copy")
window.getSelection().removeAllRanges()
}
</script>

Expand Down
12 changes: 6 additions & 6 deletions docs/clicker_game.html
Original file line number Diff line number Diff line change
Expand Up @@ -85,12 +85,12 @@
app.run()
</div><script>
function copy_to_clipboard(containerid) {
var range = document.createRange();
range.selectNode(containerid); //changed here
window.getSelection().removeAllRanges();
window.getSelection().addRange(range);
document.execCommand("copy");
window.getSelection().removeAllRanges();
var range = document.createRange()
range.selectNode(containerid)
window.getSelection().removeAllRanges()
window.getSelection().addRange(range)
document.execCommand("copy")
window.getSelection().removeAllRanges()
}
</script>

Expand Down
12 changes: 6 additions & 6 deletions docs/collision.html
Original file line number Diff line number Diff line change
Expand Up @@ -263,12 +263,12 @@ <h2><div id="Mouse Collision"/><br>
</div><br>
<script>
function copy_to_clipboard(containerid) {
var range = document.createRange();
range.selectNode(containerid); //changed here
window.getSelection().removeAllRanges();
window.getSelection().addRange(range);
document.execCommand("copy");
window.getSelection().removeAllRanges();
var range = document.createRange()
range.selectNode(containerid)
window.getSelection().removeAllRanges()
window.getSelection().addRange(range)
document.execCommand("copy")
window.getSelection().removeAllRanges()
}
</script>

Expand Down
12 changes: 6 additions & 6 deletions docs/column_graph.html
Original file line number Diff line number Diff line change
Expand Up @@ -88,12 +88,12 @@
app.run()
</div><script>
function copy_to_clipboard(containerid) {
var range = document.createRange();
range.selectNode(containerid); //changed here
window.getSelection().removeAllRanges();
window.getSelection().addRange(range);
document.execCommand("copy");
window.getSelection().removeAllRanges();
var range = document.createRange()
range.selectNode(containerid)
window.getSelection().removeAllRanges()
window.getSelection().addRange(range)
document.execCommand("copy")
window.getSelection().removeAllRanges()
}
</script>

Expand Down
12 changes: 6 additions & 6 deletions docs/coordinate_system.html
Original file line number Diff line number Diff line change
Expand Up @@ -191,12 +191,12 @@ <h2><div id="Origin"/><br>
</div><br>
<script>
function copy_to_clipboard(containerid) {
var range = document.createRange();
range.selectNode(containerid); //changed here
window.getSelection().removeAllRanges();
window.getSelection().addRange(range);
document.execCommand("copy");
window.getSelection().removeAllRanges();
var range = document.createRange()
range.selectNode(containerid)
window.getSelection().removeAllRanges()
window.getSelection().addRange(range)
document.execCommand("copy")
window.getSelection().removeAllRanges()
}
</script>

Expand Down
12 changes: 6 additions & 6 deletions docs/doc_index.html
Original file line number Diff line number Diff line change
Expand Up @@ -85,12 +85,12 @@
<br>
<script>
function copy_to_clipboard(containerid) {
var range = document.createRange();
range.selectNode(containerid); //changed here
window.getSelection().removeAllRanges();
window.getSelection().addRange(range);
document.execCommand("copy");
window.getSelection().removeAllRanges();
var range = document.createRange()
range.selectNode(containerid)
window.getSelection().removeAllRanges()
window.getSelection().addRange(range)
document.execCommand("copy")
window.getSelection().removeAllRanges()
}
</script>

Expand Down
12 changes: 6 additions & 6 deletions docs/doc_index_sidebar.html
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,12 @@
<br>
<script>
function copy_to_clipboard(containerid) {
var range = document.createRange();
range.selectNode(containerid); //changed here
window.getSelection().removeAllRanges();
window.getSelection().addRange(range);
document.execCommand("copy");
window.getSelection().removeAllRanges();
var range = document.createRange()
range.selectNode(containerid)
window.getSelection().removeAllRanges()
window.getSelection().addRange(range)
document.execCommand("copy")
window.getSelection().removeAllRanges()
}
</script>

Expand Down
12 changes: 6 additions & 6 deletions docs/documentation.html
Original file line number Diff line number Diff line change
Expand Up @@ -103,12 +103,12 @@ <h2><div id="Tutorials"/><br>
<br>
<script>
function copy_to_clipboard(containerid) {
var range = document.createRange();
range.selectNode(containerid); //changed here
window.getSelection().removeAllRanges();
window.getSelection().addRange(range);
document.execCommand("copy");
window.getSelection().removeAllRanges();
var range = document.createRange()
range.selectNode(containerid)
window.getSelection().removeAllRanges()
window.getSelection().addRange(range)
document.execCommand("copy")
window.getSelection().removeAllRanges()
}
</script>

Expand Down
12 changes: 6 additions & 6 deletions docs/entity_basics.html
Original file line number Diff line number Diff line change
Expand Up @@ -321,12 +321,12 @@ <h2><div id="Other Magic Functions"/><br>
</div><br>
<script>
function copy_to_clipboard(containerid) {
var range = document.createRange();
range.selectNode(containerid); //changed here
window.getSelection().removeAllRanges();
window.getSelection().addRange(range);
document.execCommand("copy");
window.getSelection().removeAllRanges();
var range = document.createRange()
range.selectNode(containerid)
window.getSelection().removeAllRanges()
window.getSelection().addRange(range)
document.execCommand("copy")
window.getSelection().removeAllRanges()
}
</script>

Expand Down
12 changes: 6 additions & 6 deletions docs/faq.html
Original file line number Diff line number Diff line change
Expand Up @@ -155,12 +155,12 @@ <h2><div id="How can I use panda3d alongside ursina?"/><br>
<br>
<script>
function copy_to_clipboard(containerid) {
var range = document.createRange();
range.selectNode(containerid); //changed here
window.getSelection().removeAllRanges();
window.getSelection().addRange(range);
document.execCommand("copy");
window.getSelection().removeAllRanges();
var range = document.createRange()
range.selectNode(containerid)
window.getSelection().removeAllRanges()
window.getSelection().addRange(range)
document.execCommand("copy")
window.getSelection().removeAllRanges()
}
</script>

Expand Down
12 changes: 6 additions & 6 deletions docs/fps.html
Original file line number Diff line number Diff line change
Expand Up @@ -132,12 +132,12 @@
app.run()
</div><script>
function copy_to_clipboard(containerid) {
var range = document.createRange();
range.selectNode(containerid); //changed here
window.getSelection().removeAllRanges();
window.getSelection().addRange(range);
document.execCommand("copy");
window.getSelection().removeAllRanges();
var range = document.createRange()
range.selectNode(containerid)
window.getSelection().removeAllRanges()
window.getSelection().addRange(range)
document.execCommand("copy")
window.getSelection().removeAllRanges()
}
</script>

Expand Down
12 changes: 6 additions & 6 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -142,12 +142,12 @@ <h2><div id="Platforms"/><br>
<br>
<script>
function copy_to_clipboard(containerid) {
var range = document.createRange();
range.selectNode(containerid); //changed here
window.getSelection().removeAllRanges();
window.getSelection().addRange(range);
document.execCommand("copy");
window.getSelection().removeAllRanges();
var range = document.createRange()
range.selectNode(containerid)
window.getSelection().removeAllRanges()
window.getSelection().addRange(range)
document.execCommand("copy")
window.getSelection().removeAllRanges()
}
</script>

Expand Down
12 changes: 6 additions & 6 deletions docs/installation.html
Original file line number Diff line number Diff line change
Expand Up @@ -146,12 +146,12 @@ <h2><div id="Troubleshooting"/><br>
<br>
<script>
function copy_to_clipboard(containerid) {
var range = document.createRange();
range.selectNode(containerid); //changed here
window.getSelection().removeAllRanges();
window.getSelection().addRange(range);
document.execCommand("copy");
window.getSelection().removeAllRanges();
var range = document.createRange()
range.selectNode(containerid)
window.getSelection().removeAllRanges()
window.getSelection().addRange(range)
document.execCommand("copy")
window.getSelection().removeAllRanges()
}
</script>

Expand Down
12 changes: 6 additions & 6 deletions docs/introduction_tutorial.html
Original file line number Diff line number Diff line change
Expand Up @@ -100,12 +100,12 @@ <h2><div id="Creating and running a game"/><br>
<br>
<script>
function copy_to_clipboard(containerid) {
var range = document.createRange();
range.selectNode(containerid); //changed here
window.getSelection().removeAllRanges();
window.getSelection().addRange(range);
document.execCommand("copy");
window.getSelection().removeAllRanges();
var range = document.createRange()
range.selectNode(containerid)
window.getSelection().removeAllRanges()
window.getSelection().addRange(range)
document.execCommand("copy")
window.getSelection().removeAllRanges()
}
</script>

Expand Down
12 changes: 6 additions & 6 deletions docs/inventory.html
Original file line number Diff line number Diff line change
Expand Up @@ -140,12 +140,12 @@
app.run()
</div><script>
function copy_to_clipboard(containerid) {
var range = document.createRange();
range.selectNode(containerid); //changed here
window.getSelection().removeAllRanges();
window.getSelection().addRange(range);
document.execCommand("copy");
window.getSelection().removeAllRanges();
var range = document.createRange()
range.selectNode(containerid)
window.getSelection().removeAllRanges()
window.getSelection().addRange(range)
document.execCommand("copy")
window.getSelection().removeAllRanges()
}
</script>

Expand Down
12 changes: 6 additions & 6 deletions docs/inventory_tutorial.html
Original file line number Diff line number Diff line change
Expand Up @@ -492,12 +492,12 @@ <h2><div id="12 Bugfix: Make the dragged items render on top"/><br>
</div><br>
<script>
function copy_to_clipboard(containerid) {
var range = document.createRange();
range.selectNode(containerid); //changed here
window.getSelection().removeAllRanges();
window.getSelection().addRange(range);
document.execCommand("copy");
window.getSelection().removeAllRanges();
var range = document.createRange()
range.selectNode(containerid)
window.getSelection().removeAllRanges()
window.getSelection().addRange(range)
document.execCommand("copy")
window.getSelection().removeAllRanges()
}
</script>

Expand Down
12 changes: 6 additions & 6 deletions docs/menu.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@
<br>
<script>
function copy_to_clipboard(containerid) {
var range = document.createRange();
range.selectNode(containerid); //changed here
window.getSelection().removeAllRanges();
window.getSelection().addRange(range);
document.execCommand("copy");
window.getSelection().removeAllRanges();
var range = document.createRange()
range.selectNode(containerid)
window.getSelection().removeAllRanges()
window.getSelection().addRange(range)
document.execCommand("copy")
window.getSelection().removeAllRanges()
}
</script>

Expand Down
12 changes: 6 additions & 6 deletions docs/minecraft_clone.html
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,12 @@
app.run()
</div><script>
function copy_to_clipboard(containerid) {
var range = document.createRange();
range.selectNode(containerid); //changed here
window.getSelection().removeAllRanges();
window.getSelection().addRange(range);
document.execCommand("copy");
window.getSelection().removeAllRanges();
var range = document.createRange()
range.selectNode(containerid)
window.getSelection().removeAllRanges()
window.getSelection().addRange(range)
document.execCommand("copy")
window.getSelection().removeAllRanges()
}
</script>

Expand Down
12 changes: 6 additions & 6 deletions docs/networking.html
Original file line number Diff line number Diff line change
Expand Up @@ -517,12 +517,12 @@ <h2><div id="Samples"/><br>
<br>
<script>
function copy_to_clipboard(containerid) {
var range = document.createRange();
range.selectNode(containerid); //changed here
window.getSelection().removeAllRanges();
window.getSelection().addRange(range);
document.execCommand("copy");
window.getSelection().removeAllRanges();
var range = document.createRange()
range.selectNode(containerid)
window.getSelection().removeAllRanges()
window.getSelection().addRange(range)
document.execCommand("copy")
window.getSelection().removeAllRanges()
}
</script>

Expand Down
Loading

0 comments on commit e46d973

Please sign in to comment.