chore: Formatted demo index.html

This commit is contained in:
Nathan Adams 2020-05-26 20:16:30 +02:00 committed by Mike Welsh
parent 75759d9b3b
commit d02223c816
1 changed files with 158 additions and 152 deletions

View File

@ -1,175 +1,181 @@
<!DOCTYPE html>
<html data-ruffle-optout>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Ruffle Web Demo</title>
<link
href="https://fonts.googleapis.com/css?family=Lato"
rel="stylesheet"
/>
<style>
body {
position: absolute;
top: 0;
left: 0;
margin: 0;
padding: 0;
width: 100%;
height: 100%;
font-family: "Lato", sans-serif;
display: flex;
flex-direction: column;
align-items: center;
background-color: black;
}
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Ruffle Web Demo</title>
<link href="https://fonts.googleapis.com/css?family=Lato" rel="stylesheet">
<style>
body {
position: absolute;
top: 0;
left: 0;
margin: 0;
padding: 0;
width: 100%;
height: 100%;
font-family: 'Lato', sans-serif;
display: flex;
flex-direction: column;
align-items: center;
background-color: black;
}
#main {
margin: 15px;
width: 100%;
height: 100%;
align-self: center;
max-height: calc(100vh - 70px);
}
#main {
margin: 15px;
width: 100%;
height: 100%;
align-self: center;
max-height: calc(100vh - 70px);
}
#container {
height: calc(100vh - 70px);
width: 100vw;
}
#container
{
height: calc(100vh - 70px);
width: 100vw;
}
#player {
width: 100vw;
height: calc(100vh - 70px);
display: block;
}
#player {
width: 100vw;
height: calc(100vh - 70px);
display: block;
}
#nav {
width: 100%;
background: #37528c;
border: 0;
border-color: darkgray;
border-bottom: 2px #37528c;
border-style: solid;
box-shadow: 0 5px 5px #37528c;
display: flex;
flex-direction: row;
justify-content: space-around;
align-items: center;
align-self: flex-start;
color: white;
min-height: 45px;
}
#nav {
width: 100%;
background: #37528C;
border: 0;
border-color: darkgray;
border-bottom: 2px #37528C;
border-style: solid;
box-shadow: 0 5px 5px #37528C;
display: flex;
flex-direction: row;
justify-content: space-around;
align-items: center;
align-self: flex-start;
color: white;
min-height: 45px;
}
#title:hover {
opacity: 0.5;
cursor: pointer;
transition-duration: 0.5s;
}
#title:hover {
opacity: 0.5;
cursor: pointer;
transition-duration: 0.5s;
}
#title img {
display: inline-block;
height: 32px;
margin-top: 5px;
}
#title img {
display: inline-block;
height: 32px;
margin-top: 5px;
}
#file-picker {
margin-top: 7px;
}
#file-picker {
margin-top: 7px;
}
#local-file-container {
display: inline-block;
vertical-align: middle;
}
#local-file-container {
display: inline-block;
vertical-align: middle;
}
#sample-swfs-container {
display: none;
vertical-align: middle;
}
#sample-swfs-container {
display: none;
vertical-align: middle;
}
#author-container {
display: none;
font-size: 13px;
text-align: left;
}
#author-container {
display: none;
font-size: 13px;
text-align: left;
}
#author {
padding-left: 5px;
color: #ffad33;
}
#author {
padding-left: 5px;
color: #ffad33;
}
@media only screen and (max-width: 800px) {
#local-file-container,
#sample-swfs-container {
display: block;
}
@media only screen and (max-width: 800px) {
#local-file-container,#sample-swfs-container {
display: block;
}
#nav {
min-height: 65px;
}
#nav {
min-height: 65px;
}
#player {
height: calc(100vh - 90px) !important;
}
}
#player {
height: calc(100vh - 90px) !important;
}
}
@media only screen and (max-width: 600px) {
#local-file-container {
display: none;
}
@media only screen and (max-width: 600px) {
#local-file-container {
display: none;
}
#sample-swfs-label {
display: none;
}
#sample-swfs-label {
display: none;
}
#author-container {
font-size: 12px;
text-align: center;
}
#author-container {
font-size: 12px;
text-align: center;
}
#nav {
min-height: 85px;
flex-direction: column;
padding-bottom: 2px;
}
}
#nav {
min-height: 85px;
flex-direction: column;
padding-bottom: 2px;
}
}
select,
input {
margin: 0 5px;
}
select,
input {
margin: 0 5px;
}
#player {
width: 100%;
height: 100%;
}
</style>
</head>
#player {
width: 100%;
height: 100%;
}
</style>
</head>
<body>
<div id="nav">
<div id="title">
<a href="https://ruffle.rs" target="_blank">
<img src="https://ruffle.rs/assets/logo.png" alt="Ruffle" data-canonical-src="https://ruffle.rs/assets/logo.png">
</a>
</div>
<div id="file-picker">
<div id="local-file-container">
Local SWF:
<input type="file" id="local-file">
</div>
<div id="sample-swfs-container">
<span id="sample-swfs-label">Sample SWF:</span>
<select id="sample-swfs">
<option value="none">None</option>
<optgroup id="anim-optgroup" label="Animations">
</optgroup>
<optgroup id="games-optgroup" label="Games">
</optgroup>
</select>
<span id="author-container">Author: <a href="#" target="_blank" id="author"></a></span>
</div>
</div>
</div>
<div id="main">
</div>
<script src="./index.js"></script>
</body>
<body>
<div id="nav">
<div id="title">
<a href="https://ruffle.rs" target="_blank">
<img
src="https://ruffle.rs/assets/logo.png"
alt="Ruffle"
data-canonical-src="https://ruffle.rs/assets/logo.png"
/>
</a>
</div>
<div id="file-picker">
<div id="local-file-container">
Local SWF:
<input type="file" id="local-file" />
</div>
<div id="sample-swfs-container">
<span id="sample-swfs-label">Sample SWF:</span>
<select id="sample-swfs">
<option value="none">None</option>
<optgroup id="anim-optgroup" label="Animations">
</optgroup>
<optgroup id="games-optgroup" label="Games"> </optgroup>
</select>
<span id="author-container"
>Author: <a href="#" target="_blank" id="author"></a
></span>
</div>
</div>
</div>
<div id="main"></div>
<script src="./index.js"></script>
</body>
</html>