Widget: MP3: Difference between revisions

From Audiopedia
Jump to: navigation, search
No edit summary
No edit summary
Tag: Manual revert
 
(16 intermediate revisions by the same user not shown)
Line 8: Line 8:


.bar {
.bar {
    position: fixed;
position: fixed;
    right: 0;
right: 0;
    left: 0;
left: 0;
    z-index: 1999;
z-index: 1999;
    height: 60px;
height: 60px;
    padding-right: 10px;
padding-right: 10px;
    padding-left: 10px;
padding-left: 10px;
    background-color: #E8E8E8;
background-color: #E8E8E8;
    -webkit-backface-visibility: hidden;
-webkit-backface-visibility: hidden;
    backface-visibility:hidden;
backface-visibility:hidden;




Line 23: Line 23:


.bar-nav {
.bar-nav {
    top:0;
top:0;
}
}


Line 29: Line 29:


.title {
.title {
    position: absolute;
position: absolute;
    display: block;
display: block;
    width: 100%;
width: 100%;
    padding: 0;
padding: 0;
    margin: 0 -10px;
margin: 0 -10px;
    font-size: 17px;
font-size: 17px;
    font-weight: 500;
font-weight: 500;
    line-height: 44px;
line-height: 44px;
    color: #000;
color: #000;
    text-align: center;
text-align: center;
    white-space:nowrap
white-space:nowrap
}
}


.title a {
.title a {
    color:inherit
color:inherit
}
}


.bar-tab {
.bar-tab {
    bottom: 0;
bottom: 0;
    display: table;
display: table;
    z-index: 999;
z-index: 999;
    width: 100%;
width: 100%;
    height: 60px;
height: 60px;
    padding: 0;
padding: 0;
    table-layout: fixed;
table-layout: fixed;
    border-bottom:0;
border-bottom:0;
    background: #E8E8E8;
background: #E8E8E8;
    position: fixed;
position: fixed;
    -webkit-backface-visibility: hidden;
-webkit-backface-visibility: hidden;
    backface-visibility:hidden;
backface-visibility:hidden;
}
}




.bar-tab .tab-item {
.bar-tab .tab-item {
    display: table-cell;
display: table-cell;
    width: 1%;
width: 1%;
    height: 70px;
height: 70px;
    color: #929292;
color: #929292;
    text-align: center;
text-align: center;
    vertical-align:middle
vertical-align:middle
}
}


.bar-tab .tab-item.active, .bar-tab .tab-item:active {
.bar-tab .tab-item.active, .bar-tab .tab-item:active {
    color:#5B437A
color:#5B437A
}
}
.bar {
.bar {
    max-width: 700px;
max-width: 700px;
    margin: 0 auto;
margin: 0 auto;
    -webkit-box-shadow: 0px 0px 12px 3px rgba(0,0,0,0.2);
-webkit-box-shadow: 0px 0px 12px 3px rgba(0,0,0,0.2);
-moz-box-shadow: 0px 0px 12px 3px rgba(0,0,0,0.2);
-moz-box-shadow: 0px 0px 12px 3px rgba(0,0,0,0.2);
box-shadow: 0px 0px 12px 3px rgba(0,0,0,0.2);
box-shadow: 0px 0px 12px 3px rgba(0,0,0,0.2);
Line 84: Line 84:


.bar-mp3 {
.bar-mp3 {
    width: 70%;
width: 70%;
  border-radius: 10px!important;
  border-radius: 10px!important;


Line 91: Line 91:




.footer {
 
    margin-top: 50px;
    text-align:center
}


.navigate-right:after, .push-right:after {
.navigate-right:after, .push-right:after {
    right: 15px;
right: 15px;
    font-family: 'Zapf Dingbats';
font-family: 'Zapf Dingbats';
    content: '\276F'
content: '\276F'
}
}


Line 134: Line 131:
   appearance: none;
   appearance: none;
   width: 90%;
   width: 90%;
  margin: auto;
  margin: auto;
   height: 2px;
   height: 2px;
   padding-top: 6px;
   padding-top: 6px;
Line 144: Line 141:
    
    
   progress.amplitude-song-played-progress:not([value]) {
   progress.amplitude-song-played-progress:not([value]) {
    background-color: #F8F8F8; }
background-color: #F8F8F8; }


progress[value]::-webkit-progress-bar {
progress[value]::-webkit-progress-bar {
Line 151: Line 148:
progress[value]::-moz-progress-bar {
progress[value]::-moz-progress-bar {
   background-color: #A9A9A9;
   background-color: #A9A9A9;
    height: 2px;}
height: 2px;}


progress[value]::-webkit-progress-value {
progress[value]::-webkit-progress-value {
   background-color: #A9A9A9;
   background-color: #A9A9A9;
    height: 2px; }
height: 2px; }


.time-container {
.time-container {
Line 163: Line 160:
   background-color: #F8F8F8;
   background-color: #F8F8F8;
   height: 22px;  
   height: 22px;  
    border-radius: 10px 10px 0px 0px;
border-radius: 10px 10px 0px 0px;


   }
   }
    
    
.time-container span.current-time {
.time-container span.current-time {
    float: left;
float: left;
    margin-left: 10px; }
margin-left: 10px; }
.time-container span.duration {
.time-container span.duration {
    float: right;
float: right;
    margin-right: 10px; }
margin-right: 10px; }




Line 449: Line 446:


<nav class="bar bar-tab bar-mp3">
<nav class="bar bar-tab bar-mp3">
 


  <div class="time-container" dir="ltr">
  <div class="time-container" dir="ltr">
<progress class="amplitude-song-played-progress" id="song-played-progress" amplitude-main-song-played-progress="true"></progress>
<progress class="amplitude-song-played-progress" id="song-played-progress" amplitude-main-song-played-progress="true"></progress>


          <span class="current-time">
  <span class="current-time">
            <span class="amplitude-current-time" amplitude-main-current-time="true"></span>
<span class="amplitude-current-time" amplitude-main-current-time="true"></span>
          </span>
  </span>
          <span class="duration">
  <span class="duration">
            <span class="amplitude-duration-time" amplitude-main-duration-time="true"></span>
<span class="amplitude-duration-time" amplitude-main-duration-time="true"></span>
          </span>
  </span>
        </div>
</div>




Line 472: Line 469:


<div id="repeat-container">
<div id="repeat-container">
<div id="prevtop" onclick="download('https://www.audiopedia.org/w/images/en/<!--{$id|escape:'urlpathinfo'}-->')"></div>
<div id="prevtop" onclick="download('<!--{$id}-->')"></div>
</div>
</div>
<div id="central-control-container">
<div id="central-control-container">
<div id="central-controls">
<div id="central-controls">
<div class="amplitude-play-pause" amplitude-main-play-pause="true" id="play-pause"></div>
<div class="amplitude-play-pause" amplitude-main-play-pause="true" id="play-pause" onclick="_paq.push(['trackEvent', 'Audioplay', 'Click Play', 'MP3 Playback']);"></div>


</div></div>
</div></div>
Line 493: Line 490:
   {
   {


    "url": "https://test.audiopedia.org/images/<!--{$id|escape:'urlpathinfo'}-->"}] });
"url": "<!--{$id}-->"}] });




Line 509: Line 506:
});
});


    </script>
</script>
   
<script>
<script>
function download(file)
function download(file)
Line 522: Line 519:
if (navigator.share) {
if (navigator.share) {
   navigator.share({
   navigator.share({
    title: '<!--{$pagename}-->',
title: '<!--{$pagename}-->',
    url: '<!--{$url}-->',
url: '<!--{$url}-->',
   })
   })
    .then(() => console.log('Successful share'))
.then(() => console.log('Successful share'))
    .catch((error) => console.log('Error sharing', error));
.catch((error) => console.log('Error sharing', error));
}
}
   };
   };

Latest revision as of 17:42, 15 February 2024