emscripten: use the fa-spin class

This commit is contained in:
Rob Loach 2016-09-11 00:19:18 -04:00
parent 37fe47c209
commit 842f6816ae
No known key found for this signature in database
GPG Key ID: 627C60834A74A21A
3 changed files with 4 additions and 19 deletions

View File

@ -54,21 +54,6 @@ canvas.webplayer {
outline: none;
}
.fa.spinning {
animation: spin 1s infinite linear;
-webkit-animation: spin2 1s infinite linear;
}
@keyframes spin {
from { transform: scale(1) rotate(0deg); }
to { transform: scale(1) rotate(360deg); }
}
@-webkit-keyframes spin2 {
from { -webkit-transform: rotate(0deg); }
to { -webkit-transform: rotate(360deg); }
}
textarea {
font-family: monospace;
font-size: 0.7em;

View File

@ -107,7 +107,7 @@
<div class="row">
<div class="col-sm-12 form-group btn-group text-xs-center p-t-2" id="openrom">
<button class="btn btn-primary disabled" id="btnRun" onclick="startRetroArch()">
<span class="fa fa-spinner spinning" id="icnRun"></span> Run
<span class="fa fa-spinner fa-spin" id="icnRun"></span> Run
</button>
<button class="btn btn-primary disabled" id="btnAdd" onclick="document.getElementById('btnRom').click()">
<span class="fa fa-plus" id="icnAdd"></span> Add Content

View File

@ -50,7 +50,7 @@ function dropboxInit()
document.getElementById('btnRun').disabled = true;
document.getElementById('btnDrop').disabled = true;
$('#icnDrop').removeClass('fa-dropbox');
$('#icnDrop').addClass('fa-spinner spinning');
$('#icnDrop').addClass('fa-spinner fa-spin');
client.authDriver(new Dropbox.AuthDriver.Redirect());
@ -66,7 +66,7 @@ function dropboxInit()
function success()
{
document.getElementById('btnRun').disabled = false;
$('#icnDrop').removeClass('fa-spinner spinning');
$('#icnDrop').removeClass('fa-spinner').removeClass('fa-spin');
$('#icnDrop').addClass('fa-check');
console.log("WEBPLAYER: Sync successful");
setupFileSystem("dropbox");
@ -311,7 +311,7 @@ $(function() {
// Activate the Start RetroArch button.
$('#btnRun').removeClass('disabled');
$('#icnRun').removeClass('fa-spinner spinning');
$('#icnRun').removeClass('fa-spinner').removeClass('fa-spin');
$('#icnRun').addClass('fa-play');
if (localStorage.getItem("backend") == "dropbox")