mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-03 17:59:55 +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(player, options) {
|
||||||
constructor: function () {
|
constructor: function () {
|
||||||
Button.apply(this, arguments);
|
Button.apply(this, arguments);
|
||||||
//this.addClass('vjs-chapters-button');
|
this.addClass('ypt-compress');
|
||||||
this.addClass('fa');
|
|
||||||
this.addClass('fa-compress');
|
|
||||||
this.addClass('vjs-button-fa-size');
|
this.addClass('vjs-button-fa-size');
|
||||||
this.controlText("Theater");
|
this.controlText("Theater");
|
||||||
if (Cookies.get('compress') === "true") {
|
if (Cookies.get('compress') === "true") {
|
||||||
|
|
|
@ -17,8 +17,8 @@ function compress(t) {
|
||||||
left = $('#mvideo').find('.secC').offset().left + $('#mvideo').find('.secC').width() + 30;
|
left = $('#mvideo').find('.secC').offset().left + $('#mvideo').find('.secC').width() + 30;
|
||||||
$(".compress").css('left', left);
|
$(".compress").css('left', left);
|
||||||
if(t!=undefined){
|
if(t!=undefined){
|
||||||
t.removeClass('fa-compress');
|
t.removeClass('ypt-compress');
|
||||||
t.addClass('fa-expand');
|
t.addClass('ypt-expand');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
function expand(t) {
|
function expand(t) {
|
||||||
|
@ -35,13 +35,13 @@ function expand(t) {
|
||||||
$('#mvideo').addClass('main-video');
|
$('#mvideo').addClass('main-video');
|
||||||
console.log("expand");
|
console.log("expand");
|
||||||
if(t!=undefined){
|
if(t!=undefined){
|
||||||
t.removeClass('fa-expand');
|
t.removeClass('ypt-expand');
|
||||||
t.addClass('fa-compress');
|
t.addClass('ypt-compress');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
function toogleEC(t) {
|
function toogleEC(t) {
|
||||||
if(t!=undefined){
|
if(t!=undefined){
|
||||||
if (t.hasClass('fa-expand')) {
|
if (t.hasClass('ypt-expand')) {
|
||||||
expand(t);
|
expand(t);
|
||||||
Cookies.set('compress', false, {
|
Cookies.set('compress', false, {
|
||||||
path: '/',
|
path: '/',
|
||||||
|
|
|
@ -5,3 +5,29 @@
|
||||||
footer{
|
footer{
|
||||||
margin-top: 100px;
|
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