mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-03 09:49:28 +02:00
Fix for fonts awesome 5
This commit is contained in:
parent
3a204b1f55
commit
54d4716427
3 changed files with 32 additions and 8 deletions
|
@ -9,9 +9,7 @@ $(document).ready(function () {
|
|||
//constructor: function(player, options) {
|
||||
constructor: function () {
|
||||
Button.apply(this, arguments);
|
||||
//this.addClass('vjs-chapters-button');
|
||||
this.addClass('fa');
|
||||
this.addClass('fa-compress');
|
||||
this.addClass('ypt-compress');
|
||||
this.addClass('vjs-button-fa-size');
|
||||
this.controlText("Theater");
|
||||
if (Cookies.get('compress') === "true") {
|
||||
|
|
|
@ -17,8 +17,8 @@ function compress(t) {
|
|||
left = $('#mvideo').find('.secC').offset().left + $('#mvideo').find('.secC').width() + 30;
|
||||
$(".compress").css('left', left);
|
||||
if(t!=undefined){
|
||||
t.removeClass('fa-compress');
|
||||
t.addClass('fa-expand');
|
||||
t.removeClass('ypt-compress');
|
||||
t.addClass('ypt-expand');
|
||||
}
|
||||
}
|
||||
function expand(t) {
|
||||
|
@ -35,13 +35,13 @@ function expand(t) {
|
|||
$('#mvideo').addClass('main-video');
|
||||
console.log("expand");
|
||||
if(t!=undefined){
|
||||
t.removeClass('fa-expand');
|
||||
t.addClass('fa-compress');
|
||||
t.removeClass('ypt-expand');
|
||||
t.addClass('ypt-compress');
|
||||
}
|
||||
}
|
||||
function toogleEC(t) {
|
||||
if(t!=undefined){
|
||||
if (t.hasClass('fa-expand')) {
|
||||
if (t.hasClass('ypt-expand')) {
|
||||
expand(t);
|
||||
Cookies.set('compress', false, {
|
||||
path: '/',
|
||||
|
|
|
@ -5,3 +5,29 @@
|
|||
footer{
|
||||
margin-top: 100px;
|
||||
}
|
||||
|
||||
.ypt-compress:before {
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
display: inline-block;
|
||||
font-style: normal;
|
||||
font-variant: normal;
|
||||
text-rendering: auto;
|
||||
line-height: 1;
|
||||
content: "\f010";
|
||||
font-family: 'Font Awesome 5 Free';
|
||||
font-weight: 900;
|
||||
}
|
||||
|
||||
.ypt-expand:before {
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
display: inline-block;
|
||||
font-style: normal;
|
||||
font-variant: normal;
|
||||
text-rendering: auto;
|
||||
line-height: 1;
|
||||
content: "\f00e";
|
||||
font-family: 'Font Awesome 5 Free';
|
||||
font-weight: 900;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue