temporary fixes
This commit is contained in:
parent
270f73a283
commit
2a8c4469c8
BIN
assets/Files/ducklife3.swf
Normal file
BIN
assets/Files/ducklife3.swf
Normal file
Binary file not shown.
@ -1,22 +1,34 @@
|
|||||||
html, body {
|
body {
|
||||||
width: 100%;
|
background-color: #111111;
|
||||||
height:100%;
|
margin: 0;
|
||||||
|
overflow-x: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
body {
|
.bg {
|
||||||
background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
|
position: fixed;
|
||||||
background-size: 400% 400%;
|
top: -50%;
|
||||||
animation: gradient 15s ease infinite;
|
left: -50%;
|
||||||
|
right: -50%;
|
||||||
|
bottom: -50%;
|
||||||
|
width: 200%;
|
||||||
|
height: 200vh;
|
||||||
|
background: transparent url('http://assets.iceable.com/img/noise-transparent.png') repeat 0 0;
|
||||||
|
background-repeat: repeat;
|
||||||
|
animation: bg-animation .2s infinite;
|
||||||
|
opacity: .9;
|
||||||
|
visibility: visible;
|
||||||
}
|
}
|
||||||
|
|
||||||
@keyframes gradient {
|
@keyframes bg-animation {
|
||||||
0% {
|
0% { transform: translate(0,0) }
|
||||||
background-position: 0% 50%;
|
10% { transform: translate(-5%,-5%) }
|
||||||
}
|
20% { transform: translate(-10%,5%) }
|
||||||
50% {
|
30% { transform: translate(5%,-10%) }
|
||||||
background-position: 100% 50%;
|
40% { transform: translate(-5%,15%) }
|
||||||
}
|
50% { transform: translate(-10%,5%) }
|
||||||
100% {
|
60% { transform: translate(15%,0) }
|
||||||
background-position: 0% 50%;
|
70% { transform: translate(0,10%) }
|
||||||
}
|
80% { transform: translate(-15%,0) }
|
||||||
|
90% { transform: translate(10%,5%) }
|
||||||
|
100% { transform: translate(5%,0) }
|
||||||
}
|
}
|
@ -18,23 +18,3 @@ background-color: #3e8e41;
|
|||||||
box-shadow: 0 5px #666;
|
box-shadow: 0 5px #666;
|
||||||
transform: translateY(4px);
|
transform: translateY(4px);
|
||||||
}
|
}
|
||||||
.noscroll::-webkit-scrollbar {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
.noscroll {
|
|
||||||
-ms-overflow-style: none;
|
|
||||||
scrollbar-width: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
.button2 {
|
|
||||||
padding: 15px 25px;
|
|
||||||
font-size: 24px;
|
|
||||||
text-align: center;
|
|
||||||
cursor: pointer;
|
|
||||||
outline: none;
|
|
||||||
color: #fff;
|
|
||||||
background-color: #3e8e41;
|
|
||||||
border: none;
|
|
||||||
border-radius: 15px;
|
|
||||||
box-shadow: 0 9px #999;
|
|
||||||
}
|
|
7
assets/styles/noscroll.css
Normal file
7
assets/styles/noscroll.css
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
.noscroll::-webkit-scrollbar {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
.noscroll {
|
||||||
|
-ms-overflow-style: none;
|
||||||
|
scrollbar-width: none;
|
||||||
|
}
|
38
index.html
38
index.html
@ -12,6 +12,8 @@
|
|||||||
<link rel="stylesheet" href="/assets/styles/style.css">
|
<link rel="stylesheet" href="/assets/styles/style.css">
|
||||||
<link rel="stylesheet" href="/assets/styles/border.css">
|
<link rel="stylesheet" href="/assets/styles/border.css">
|
||||||
<link rel="stylesheet" href="/assets/styles/button.css">
|
<link rel="stylesheet" href="/assets/styles/button.css">
|
||||||
|
<link rel="stylesheet" href="/assets/styles/backround.css">
|
||||||
|
<link rel="stylesheet" href="/assets/styles/noscroll.css">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div class="bg"></div>
|
<div class="bg"></div>
|
||||||
@ -28,42 +30,6 @@
|
|||||||
<a hidden href='/index.html'><button class="button">Home</button></a>
|
<a hidden href='/index.html'><button class="button">Home</button></a>
|
||||||
<a hidden href='/sitemap.html'><button class="button">Sitemap</button></a>
|
<a hidden href='/sitemap.html'><button class="button">Sitemap</button></a>
|
||||||
</body>
|
</body>
|
||||||
<style>
|
|
||||||
body {
|
|
||||||
background-color: #111111;
|
|
||||||
margin: 0;
|
|
||||||
overflow-x: hidden;
|
|
||||||
}
|
|
||||||
|
|
||||||
.bg {
|
|
||||||
position: fixed;
|
|
||||||
top: -50%;
|
|
||||||
left: -50%;
|
|
||||||
right: -50%;
|
|
||||||
bottom: -50%;
|
|
||||||
width: 200%;
|
|
||||||
height: 200vh;
|
|
||||||
background: transparent url('http://assets.iceable.com/img/noise-transparent.png') repeat 0 0;
|
|
||||||
background-repeat: repeat;
|
|
||||||
animation: bg-animation .2s infinite;
|
|
||||||
opacity: .9;
|
|
||||||
visibility: visible;
|
|
||||||
}
|
|
||||||
|
|
||||||
@keyframes bg-animation {
|
|
||||||
0% { transform: translate(0,0) }
|
|
||||||
10% { transform: translate(-5%,-5%) }
|
|
||||||
20% { transform: translate(-10%,5%) }
|
|
||||||
30% { transform: translate(5%,-10%) }
|
|
||||||
40% { transform: translate(-5%,15%) }
|
|
||||||
50% { transform: translate(-10%,5%) }
|
|
||||||
60% { transform: translate(15%,0) }
|
|
||||||
70% { transform: translate(0,10%) }
|
|
||||||
80% { transform: translate(-15%,0) }
|
|
||||||
90% { transform: translate(10%,5%) }
|
|
||||||
100% { transform: translate(5%,0) }
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
<style>
|
<style>
|
||||||
ul {
|
ul {
|
||||||
list-style-type: none;
|
list-style-type: none;
|
||||||
|
BIN
pdfs/test.pdf
BIN
pdfs/test.pdf
Binary file not shown.
35
sitemap.html
35
sitemap.html
@ -9,6 +9,7 @@
|
|||||||
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5">
|
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5">
|
||||||
<meta name="msapplication-TileColor" content="#da532c">
|
<meta name="msapplication-TileColor" content="#da532c">
|
||||||
<meta name="theme-color" content="#ff0000">
|
<meta name="theme-color" content="#ff0000">
|
||||||
|
<link rel="stylesheet" href="/assets/styles/backround.css">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<a href="index.html"><img src="/assets/imgs/back.png" alt="back" style="width: 32px; height: 32px;"> </a>
|
<a href="index.html"><img src="/assets/imgs/back.png" alt="back" style="width: 32px; height: 32px;"> </a>
|
||||||
@ -59,38 +60,4 @@
|
|||||||
|
|
||||||
<a href="/tools/flash/?swf=ducklife2.swf"><img src="/assets/imgs/ducklife2.jpg" alt="ducklife2" style="width: 100px;height:100px"></a>
|
<a href="/tools/flash/?swf=ducklife2.swf"><img src="/assets/imgs/ducklife2.jpg" alt="ducklife2" style="width: 100px;height:100px"></a>
|
||||||
</body>
|
</body>
|
||||||
<style>
|
|
||||||
html, body {
|
|
||||||
width: 100%;
|
|
||||||
height:100%;
|
|
||||||
}
|
|
||||||
|
|
||||||
body {
|
|
||||||
background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
|
|
||||||
background-size: 400% 400%;
|
|
||||||
animation: gradient 15s ease infinite;
|
|
||||||
}
|
|
||||||
|
|
||||||
@keyframes gradient {
|
|
||||||
0% {
|
|
||||||
background-position: 0% 50%;
|
|
||||||
}
|
|
||||||
50% {
|
|
||||||
background-position: 100% 50%;
|
|
||||||
}
|
|
||||||
100% {
|
|
||||||
background-position: 0% 50%;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
<style>
|
|
||||||
.noscroll::-webkit-scrollbar {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
.noscroll {
|
|
||||||
-ms-overflow-style: none;
|
|
||||||
scrollbar-width: none;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
</html>
|
</html>
|
@ -6,7 +6,7 @@
|
|||||||
<body>
|
<body>
|
||||||
<h1>Pdf Test</h1>
|
<h1>Pdf Test</h1>
|
||||||
<div>
|
<div>
|
||||||
<iframe src="/pdf/web/test.pdf#toolbar=0"></iframe>
|
<iframe src="/assets/pdfs/compressed.tracemonkey-pldi-09.pdf#toolbar=0"></iframe>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
<style>
|
<style>
|
||||||
|
Binary file not shown.
@ -1,11 +0,0 @@
|
|||||||
body {
|
|
||||||
margin: 0;
|
|
||||||
padding: 0;
|
|
||||||
display: flex;
|
|
||||||
justify-content: center;
|
|
||||||
align-items: center;
|
|
||||||
}
|
|
||||||
ruffle-embed {
|
|
||||||
width: 100%;
|
|
||||||
height: 100vh;
|
|
||||||
}
|
|
@ -1,243 +0,0 @@
|
|||||||
<!DOCTYPE html>
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<title>Flash Player</title>
|
|
||||||
<style>
|
|
||||||
body {
|
|
||||||
overflow: hidden;
|
|
||||||
font-family: sans-serif;
|
|
||||||
}
|
|
||||||
|
|
||||||
.main {
|
|
||||||
background: black;
|
|
||||||
position: absolute;
|
|
||||||
width: 100%;
|
|
||||||
height: 100%;
|
|
||||||
left: 0px;
|
|
||||||
right: 0px;
|
|
||||||
top: 0px;
|
|
||||||
bottom: 0px;
|
|
||||||
overflow: hidden;
|
|
||||||
}
|
|
||||||
|
|
||||||
.gembed {
|
|
||||||
width: 100%;
|
|
||||||
height: 100%;
|
|
||||||
top: 0;
|
|
||||||
bottom: 0;
|
|
||||||
left: 0;
|
|
||||||
right: 0;
|
|
||||||
position: absolute;
|
|
||||||
background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNTAiIGhlaWdodD0iNTAiPjx0ZXh0IHN0eWxlPSJmb250OiAzMHB4IHNhbnMtc2VyaWY7IiBmaWxsPSJ3aGl0ZSIgeD0iNTAlIiB5PSI1MCUiIGRvbWluYW50LWJhc2VsaW5lPSJtaWRkbGUiIHRleHQtYW5jaG9yPSJtaWRkbGUiPkxvYWRpbmc8L3RleHQ+PC9zdmc+");
|
|
||||||
background-repeat: no-repeat;
|
|
||||||
background-position: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
#ffd {
|
|
||||||
height: 200px;
|
|
||||||
width: 400px;
|
|
||||||
position: absolute;
|
|
||||||
background-color: #dddddd;
|
|
||||||
top: 50%;
|
|
||||||
left: 50%;
|
|
||||||
transform: translate(-50%, -50%);
|
|
||||||
text-align: center;
|
|
||||||
border-radius: 2px;
|
|
||||||
overflow: auto;
|
|
||||||
z-index: 5;
|
|
||||||
}
|
|
||||||
|
|
||||||
#ffd::before {
|
|
||||||
opacity: 0;
|
|
||||||
width: 100%;
|
|
||||||
height: 0px;
|
|
||||||
background-color: #333333;
|
|
||||||
content: "Drop File Here";
|
|
||||||
position: absolute;
|
|
||||||
top: 0px;
|
|
||||||
left: 0px;
|
|
||||||
z-index: 10;
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
justify-content: center;
|
|
||||||
font-size: 30px;
|
|
||||||
font-weight: bold;
|
|
||||||
color: white;
|
|
||||||
}
|
|
||||||
|
|
||||||
#ffd.filehover::before {
|
|
||||||
opacity: 1;
|
|
||||||
height: 100%;
|
|
||||||
}
|
|
||||||
|
|
||||||
#ffd.filehover {
|
|
||||||
border: 2px dashed #dddddd;
|
|
||||||
background-color: #333333;
|
|
||||||
}
|
|
||||||
|
|
||||||
input[type="file"] {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
#upload+label {
|
|
||||||
border: 1px solid rgb(118, 118, 118);
|
|
||||||
border-radius: 2px;
|
|
||||||
padding: 4px;
|
|
||||||
margin: 10px;
|
|
||||||
font-size: 13px;
|
|
||||||
background-color: white;
|
|
||||||
display: inline-block;
|
|
||||||
transition: ease .1s;
|
|
||||||
user-select: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
#upload+label:hover {
|
|
||||||
background-color: #eee;
|
|
||||||
}
|
|
||||||
|
|
||||||
#ffd .source {
|
|
||||||
display: block;
|
|
||||||
position: absolute;
|
|
||||||
left: 50%;
|
|
||||||
transform: translatex(-50%);
|
|
||||||
bottom: 5px;
|
|
||||||
text-decoration: none;
|
|
||||||
color: black;
|
|
||||||
font-size: 10px;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
<script>
|
|
||||||
// please dont use IE
|
|
||||||
if (!window.fetch) {
|
|
||||||
alert("Update your browser!");
|
|
||||||
throw "Update your browser!";
|
|
||||||
}
|
|
||||||
|
|
||||||
// query string into object
|
|
||||||
const search = decodeURIComponent(window.location.search).substring(1).split("&");
|
|
||||||
const queries = {};
|
|
||||||
for (let i = 0; i < search.length; i++) {
|
|
||||||
const p = search[i].split('=');
|
|
||||||
queries[p[0]] = p[1];
|
|
||||||
}
|
|
||||||
|
|
||||||
// xhr
|
|
||||||
function grab(url, type, success, fail) {
|
|
||||||
const req = new XMLHttpRequest();
|
|
||||||
req.open("GET", url, true);
|
|
||||||
req.overrideMimeType("text/plain; charset=x-user-defined");
|
|
||||||
req.responseType = type;
|
|
||||||
req.onload = function() {
|
|
||||||
if (req.status >= "400") {
|
|
||||||
fail(req.status);
|
|
||||||
} else {
|
|
||||||
success(this.response);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
req.send();
|
|
||||||
}
|
|
||||||
|
|
||||||
// file reader
|
|
||||||
function readFile(file, callback) {
|
|
||||||
const reader = new FileReader();
|
|
||||||
reader.onload = function() {
|
|
||||||
callback(this.result);
|
|
||||||
}
|
|
||||||
reader.readAsArrayBuffer(file);
|
|
||||||
}
|
|
||||||
|
|
||||||
let rplayer;
|
|
||||||
|
|
||||||
// start
|
|
||||||
function startPlayer(data) {
|
|
||||||
console.log("Initializing with " + data.byteLength + " bytes of data");
|
|
||||||
rplayer.load({data: data});
|
|
||||||
}
|
|
||||||
|
|
||||||
window.addEventListener("load", function() {
|
|
||||||
const mainarea = document.getElementById("mainarea");
|
|
||||||
const ffd = document.getElementById("ffd");
|
|
||||||
const upload = document.getElementById("upload");
|
|
||||||
|
|
||||||
// make ruffle player
|
|
||||||
window.RufflePlayer = window.RufflePlayer || {};
|
|
||||||
window.RufflePlayer.config = window.RufflePlayer.config || {};
|
|
||||||
window.RufflePlayer.config.letterbox = "on";
|
|
||||||
window.RufflePlayer.config.autoplay = "auto";
|
|
||||||
const rufflei = window.RufflePlayer.newest();
|
|
||||||
rplayer = rufflei.createPlayer();
|
|
||||||
rplayer.classList.add("gembed");
|
|
||||||
rplayer.playButton.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" width="250" height="100" style="margin: auto; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);"><svg viewBox="0 0 24 24" y="7pt" width="100%" height="36pt"><path fill="rgb(203, 203, 203)" d="M20.5 11H19V7c0-1.1-.9-2-2-2h-4V3.5C13 2.12 11.88 1 10.5 1S8 2.12 8 3.5V5H4c-1.1 0-1.99.9-1.99 2v3.8H3.5c1.49 0 2.7 1.21 2.7 2.7s-1.21 2.7-2.7 2.7H2V20c0 1.1.9 2 2 2h3.8v-1.5c0-1.49 1.21-2.7 2.7-2.7 1.49 0 2.7 1.21 2.7 2.7V22H17c1.1 0 2-.9 2-2v-4h1.5c1.38 0 2.5-1.12 2.5-2.5S21.88 11 20.5 11z"></path></svg><text style="font-family: sans-serif; font-size: 10pt; letter-spacing: normal; user-select: none;" fill="rgb(100, 100, 100)" x="50%" y="56pt" dominant-baseline="middle" text-anchor="middle">Click to enable Adobe Flash Player</text></svg>';
|
|
||||||
mainarea.appendChild(rplayer);
|
|
||||||
|
|
||||||
// ready for file upload
|
|
||||||
upload.onchange = function() {
|
|
||||||
ffd.style.display = "none";
|
|
||||||
rplayer.contextMenuElement.style.display = "none";
|
|
||||||
rplayer.contextMenuElement.style.zIndex = "auto";
|
|
||||||
let file = this.files[0];
|
|
||||||
readFile(file, function(data) {
|
|
||||||
console.log('Succesfully read SWF file "' + file.name + '"');
|
|
||||||
startPlayer(data);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
document.ondragenter = function(e) {
|
|
||||||
if (e.dataTransfer.types.includes("Files")) ffd.classList.add("filehover");
|
|
||||||
}
|
|
||||||
ffd.ondragover = function(e) {
|
|
||||||
e.preventDefault();
|
|
||||||
}
|
|
||||||
ffd.ondrop = function(e) {
|
|
||||||
if (e.dataTransfer.types.includes("Files")) {
|
|
||||||
e.preventDefault();
|
|
||||||
ffd.style.display = "none";
|
|
||||||
rplayer.contextMenuElement.style.display = "none";
|
|
||||||
rplayer.contextMenuElement.style.zIndex = "auto";
|
|
||||||
let file = event.dataTransfer.files[0];
|
|
||||||
readFile(file, function(data) {
|
|
||||||
console.log('Succesfully read SWF file "' + file.name + '"');
|
|
||||||
startPlayer(data);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (window.location.hash) {
|
|
||||||
const swfloc = `./${window.location.hash.slice(1)}.swf`;
|
|
||||||
grab(swfloc, "arraybuffer", function(data) {
|
|
||||||
// start
|
|
||||||
console.log("Succesfully fetched SWF from " + swfloc);
|
|
||||||
startPlayer(data);
|
|
||||||
}, function(error) {
|
|
||||||
// xhr error
|
|
||||||
alert("Could not get SWF at " + swfloc + " (Error " + error + ")");
|
|
||||||
ffd.style.display = "block";
|
|
||||||
rplayer.contextMenuElement.style.zIndex = "-100";
|
|
||||||
});
|
|
||||||
} else {
|
|
||||||
// prompt user to upload a file
|
|
||||||
ffd.style.display = "block";
|
|
||||||
rplayer.contextMenuElement.style.zIndex = "-100";
|
|
||||||
}
|
|
||||||
}, false);
|
|
||||||
</script>
|
|
||||||
<script src="ruffle/ruffle.js"></script>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<div class="main" id="mainarea">
|
|
||||||
<div id="ffd" style="display: none;">
|
|
||||||
<h2>Flash Player Emulator</h2>
|
|
||||||
<input type="file" id="upload" accept=".swf, .spl">
|
|
||||||
<label for="upload">Choose File</label>
|
|
||||||
<a href="https://ruffle.rs" target="_blank" class="source">Source</a>
|
|
||||||
<br>
|
|
||||||
<a href="portal2d.swf">portal2d</a>
|
|
||||||
<br>
|
|
||||||
<a href="a-fancy-pants-adventure-world1.swf">Fancy Pants</a>
|
|
||||||
<br>
|
|
||||||
<a href="alienhominid.swf">Alien Hominid</a>
|
|
||||||
<br>
|
|
||||||
<a href="ohtoodles.swf">Oh Toodles Clubhouse Stories</a>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
@ -1,176 +0,0 @@
|
|||||||
Apache License
|
|
||||||
Version 2.0, January 2004
|
|
||||||
http://www.apache.org/licenses/
|
|
||||||
|
|
||||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
||||||
|
|
||||||
1. Definitions.
|
|
||||||
|
|
||||||
"License" shall mean the terms and conditions for use, reproduction,
|
|
||||||
and distribution as defined by Sections 1 through 9 of this document.
|
|
||||||
|
|
||||||
"Licensor" shall mean the copyright owner or entity authorized by
|
|
||||||
the copyright owner that is granting the License.
|
|
||||||
|
|
||||||
"Legal Entity" shall mean the union of the acting entity and all
|
|
||||||
other entities that control, are controlled by, or are under common
|
|
||||||
control with that entity. For the purposes of this definition,
|
|
||||||
"control" means (i) the power, direct or indirect, to cause the
|
|
||||||
direction or management of such entity, whether by contract or
|
|
||||||
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
||||||
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
||||||
|
|
||||||
"You" (or "Your") shall mean an individual or Legal Entity
|
|
||||||
exercising permissions granted by this License.
|
|
||||||
|
|
||||||
"Source" form shall mean the preferred form for making modifications,
|
|
||||||
including but not limited to software source code, documentation
|
|
||||||
source, and configuration files.
|
|
||||||
|
|
||||||
"Object" form shall mean any form resulting from mechanical
|
|
||||||
transformation or translation of a Source form, including but
|
|
||||||
not limited to compiled object code, generated documentation,
|
|
||||||
and conversions to other media types.
|
|
||||||
|
|
||||||
"Work" shall mean the work of authorship, whether in Source or
|
|
||||||
Object form, made available under the License, as indicated by a
|
|
||||||
copyright notice that is included in or attached to the work
|
|
||||||
(an example is provided in the Appendix below).
|
|
||||||
|
|
||||||
"Derivative Works" shall mean any work, whether in Source or Object
|
|
||||||
form, that is based on (or derived from) the Work and for which the
|
|
||||||
editorial revisions, annotations, elaborations, or other modifications
|
|
||||||
represent, as a whole, an original work of authorship. For the purposes
|
|
||||||
of this License, Derivative Works shall not include works that remain
|
|
||||||
separable from, or merely link (or bind by name) to the interfaces of,
|
|
||||||
the Work and Derivative Works thereof.
|
|
||||||
|
|
||||||
"Contribution" shall mean any work of authorship, including
|
|
||||||
the original version of the Work and any modifications or additions
|
|
||||||
to that Work or Derivative Works thereof, that is intentionally
|
|
||||||
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
||||||
or by an individual or Legal Entity authorized to submit on behalf of
|
|
||||||
the copyright owner. For the purposes of this definition, "submitted"
|
|
||||||
means any form of electronic, verbal, or written communication sent
|
|
||||||
to the Licensor or its representatives, including but not limited to
|
|
||||||
communication on electronic mailing lists, source code control systems,
|
|
||||||
and issue tracking systems that are managed by, or on behalf of, the
|
|
||||||
Licensor for the purpose of discussing and improving the Work, but
|
|
||||||
excluding communication that is conspicuously marked or otherwise
|
|
||||||
designated in writing by the copyright owner as "Not a Contribution."
|
|
||||||
|
|
||||||
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
||||||
on behalf of whom a Contribution has been received by Licensor and
|
|
||||||
subsequently incorporated within the Work.
|
|
||||||
|
|
||||||
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
||||||
this License, each Contributor hereby grants to You a perpetual,
|
|
||||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
||||||
copyright license to reproduce, prepare Derivative Works of,
|
|
||||||
publicly display, publicly perform, sublicense, and distribute the
|
|
||||||
Work and such Derivative Works in Source or Object form.
|
|
||||||
|
|
||||||
3. Grant of Patent License. Subject to the terms and conditions of
|
|
||||||
this License, each Contributor hereby grants to You a perpetual,
|
|
||||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
||||||
(except as stated in this section) patent license to make, have made,
|
|
||||||
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
||||||
where such license applies only to those patent claims licensable
|
|
||||||
by such Contributor that are necessarily infringed by their
|
|
||||||
Contribution(s) alone or by combination of their Contribution(s)
|
|
||||||
with the Work to which such Contribution(s) was submitted. If You
|
|
||||||
institute patent litigation against any entity (including a
|
|
||||||
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
||||||
or a Contribution incorporated within the Work constitutes direct
|
|
||||||
or contributory patent infringement, then any patent licenses
|
|
||||||
granted to You under this License for that Work shall terminate
|
|
||||||
as of the date such litigation is filed.
|
|
||||||
|
|
||||||
4. Redistribution. You may reproduce and distribute copies of the
|
|
||||||
Work or Derivative Works thereof in any medium, with or without
|
|
||||||
modifications, and in Source or Object form, provided that You
|
|
||||||
meet the following conditions:
|
|
||||||
|
|
||||||
(a) You must give any other recipients of the Work or
|
|
||||||
Derivative Works a copy of this License; and
|
|
||||||
|
|
||||||
(b) You must cause any modified files to carry prominent notices
|
|
||||||
stating that You changed the files; and
|
|
||||||
|
|
||||||
(c) You must retain, in the Source form of any Derivative Works
|
|
||||||
that You distribute, all copyright, patent, trademark, and
|
|
||||||
attribution notices from the Source form of the Work,
|
|
||||||
excluding those notices that do not pertain to any part of
|
|
||||||
the Derivative Works; and
|
|
||||||
|
|
||||||
(d) If the Work includes a "NOTICE" text file as part of its
|
|
||||||
distribution, then any Derivative Works that You distribute must
|
|
||||||
include a readable copy of the attribution notices contained
|
|
||||||
within such NOTICE file, excluding those notices that do not
|
|
||||||
pertain to any part of the Derivative Works, in at least one
|
|
||||||
of the following places: within a NOTICE text file distributed
|
|
||||||
as part of the Derivative Works; within the Source form or
|
|
||||||
documentation, if provided along with the Derivative Works; or,
|
|
||||||
within a display generated by the Derivative Works, if and
|
|
||||||
wherever such third-party notices normally appear. The contents
|
|
||||||
of the NOTICE file are for informational purposes only and
|
|
||||||
do not modify the License. You may add Your own attribution
|
|
||||||
notices within Derivative Works that You distribute, alongside
|
|
||||||
or as an addendum to the NOTICE text from the Work, provided
|
|
||||||
that such additional attribution notices cannot be construed
|
|
||||||
as modifying the License.
|
|
||||||
|
|
||||||
You may add Your own copyright statement to Your modifications and
|
|
||||||
may provide additional or different license terms and conditions
|
|
||||||
for use, reproduction, or distribution of Your modifications, or
|
|
||||||
for any such Derivative Works as a whole, provided Your use,
|
|
||||||
reproduction, and distribution of the Work otherwise complies with
|
|
||||||
the conditions stated in this License.
|
|
||||||
|
|
||||||
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
||||||
any Contribution intentionally submitted for inclusion in the Work
|
|
||||||
by You to the Licensor shall be under the terms and conditions of
|
|
||||||
this License, without any additional terms or conditions.
|
|
||||||
Notwithstanding the above, nothing herein shall supersede or modify
|
|
||||||
the terms of any separate license agreement you may have executed
|
|
||||||
with Licensor regarding such Contributions.
|
|
||||||
|
|
||||||
6. Trademarks. This License does not grant permission to use the trade
|
|
||||||
names, trademarks, service marks, or product names of the Licensor,
|
|
||||||
except as required for reasonable and customary use in describing the
|
|
||||||
origin of the Work and reproducing the content of the NOTICE file.
|
|
||||||
|
|
||||||
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
||||||
agreed to in writing, Licensor provides the Work (and each
|
|
||||||
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
||||||
implied, including, without limitation, any warranties or conditions
|
|
||||||
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
||||||
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
||||||
appropriateness of using or redistributing the Work and assume any
|
|
||||||
risks associated with Your exercise of permissions under this License.
|
|
||||||
|
|
||||||
8. Limitation of Liability. In no event and under no legal theory,
|
|
||||||
whether in tort (including negligence), contract, or otherwise,
|
|
||||||
unless required by applicable law (such as deliberate and grossly
|
|
||||||
negligent acts) or agreed to in writing, shall any Contributor be
|
|
||||||
liable to You for damages, including any direct, indirect, special,
|
|
||||||
incidental, or consequential damages of any character arising as a
|
|
||||||
result of this License or out of the use or inability to use the
|
|
||||||
Work (including but not limited to damages for loss of goodwill,
|
|
||||||
work stoppage, computer failure or malfunction, or any and all
|
|
||||||
other commercial damages or losses), even if such Contributor
|
|
||||||
has been advised of the possibility of such damages.
|
|
||||||
|
|
||||||
9. Accepting Warranty or Additional Liability. While redistributing
|
|
||||||
the Work or Derivative Works thereof, You may choose to offer,
|
|
||||||
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
||||||
or other liability obligations and/or rights consistent with this
|
|
||||||
License. However, in accepting such obligations, You may act only
|
|
||||||
on Your own behalf and on Your sole responsibility, not on behalf
|
|
||||||
of any other Contributor, and only if You agree to indemnify,
|
|
||||||
defend, and hold each Contributor harmless for any liability
|
|
||||||
incurred by, or claims asserted against, such Contributor by reason
|
|
||||||
of your accepting any such warranty or additional liability.
|
|
||||||
|
|
||||||
END OF TERMS AND CONDITIONS
|
|
@ -1,25 +0,0 @@
|
|||||||
Copyright (c) 2018 Mike Welsh <mwelsh@gmail.com>
|
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any
|
|
||||||
person obtaining a copy of this software and associated
|
|
||||||
documentation files (the "Software"), to deal in the
|
|
||||||
Software without restriction, including without
|
|
||||||
limitation the rights to use, copy, modify, merge,
|
|
||||||
publish, distribute, sublicense, and/or sell copies of
|
|
||||||
the Software, and to permit persons to whom the Software
|
|
||||||
is furnished to do so, subject to the following
|
|
||||||
conditions:
|
|
||||||
|
|
||||||
The above copyright notice and this permission notice
|
|
||||||
shall be included in all copies or substantial portions
|
|
||||||
of the Software.
|
|
||||||
|
|
||||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
|
|
||||||
ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
|
|
||||||
TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
|
|
||||||
PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
|
|
||||||
SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
|
||||||
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
||||||
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
|
|
||||||
IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
|
||||||
DEALINGS IN THE SOFTWARE.
|
|
@ -1,57 +0,0 @@
|
|||||||
# ruffle-selfhosted
|
|
||||||
|
|
||||||
ruffle-selfhosted is the intended way to get Ruffle onto your website.
|
|
||||||
|
|
||||||
You may either include it and forget about it, and we will polyfill existing Flash content,
|
|
||||||
or use our APIs for custom configurations or more advanced usages of the Ruffle player.
|
|
||||||
|
|
||||||
## Using ruffle-selfhosted
|
|
||||||
|
|
||||||
For more examples and in-depth documentation on how to use Ruffle on your website, please
|
|
||||||
[check out our wiki](https://github.com/ruffle-rs/ruffle/wiki/Using-Ruffle#web).
|
|
||||||
|
|
||||||
### Host Ruffle
|
|
||||||
|
|
||||||
The `selfhosted` package is configured for websites that do not use bundlers or npm and just want
|
|
||||||
to get up and running. If you'd prefer to use Ruffle through npm and a bundler, please
|
|
||||||
[refer to ruffle core](https://github.com/ruffle-rs/ruffle/tree/master/web/packages/core).
|
|
||||||
|
|
||||||
Before you can get started with using Ruffle on your website, you must host its files yourself.
|
|
||||||
Either take the [latest build](https://github.com/ruffle-rs/ruffle/releases)
|
|
||||||
or [build it yourself](../../README.md), and make these files accessible by your web server.
|
|
||||||
|
|
||||||
Please note that the `.wasm` file must be served properly, and some web servers may not do that
|
|
||||||
correctly out of the box. Please see [our wiki](https://github.com/ruffle-rs/ruffle/wiki/Using-Ruffle#configure-wasm-mime-type)
|
|
||||||
for instructions on how to configure this, if you encounter a `Incorrect response MIME type` error.
|
|
||||||
|
|
||||||
### "Plug and Play"
|
|
||||||
|
|
||||||
If you have an existing website with flash content, you can simply include Ruffle as a script and
|
|
||||||
our polyfill magic will replace everything for you. No fuss, no mess.
|
|
||||||
|
|
||||||
```html
|
|
||||||
<script src="path/to/ruffle/ruffle.js"></script>
|
|
||||||
```
|
|
||||||
|
|
||||||
### Javascript API
|
|
||||||
|
|
||||||
If you want to control the Ruffle player, you may use our Javascript API.
|
|
||||||
|
|
||||||
```html
|
|
||||||
<script>
|
|
||||||
window.RufflePlayer = window.RufflePlayer || {};
|
|
||||||
|
|
||||||
window.addEventListener("DOMContentLoaded", () => {
|
|
||||||
let ruffle = window.RufflePlayer.newest();
|
|
||||||
let player = ruffle.createPlayer();
|
|
||||||
let container = document.getElementById("container");
|
|
||||||
container.appendChild(player);
|
|
||||||
player.load("movie.swf");
|
|
||||||
});
|
|
||||||
</script>
|
|
||||||
<script src="path/to/ruffle/ruffle.js"></script>
|
|
||||||
```
|
|
||||||
|
|
||||||
## Building, testing or contributing
|
|
||||||
|
|
||||||
Please see [the ruffle-web README](../../README.md).
|
|
Binary file not shown.
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user