export default {
data() {
return {
actualColor: 'light'
};
},
methods: {
changeColorLight: function(event){
if(event){
if(this.actualColor === 'monokai') {
this.actualColor = "light";
this.changeColorClass();
};
};
},
changeColorMonokai: function(event){
if(event){
if(this.actualColor === 'light') {
this.actualColor = "monokai";
this.changeColorClass();
};
};
},
changeColorClass: function() {
let html = document.documentElement;
html.className = this.actualColor;
}
}
/******************************************************************************
Colorscheme variables
******************************************************************************/
html.light{
--background:#ffffff;
--background_nav:#f3f3f3;
--foreground:#800000;
--foreground_script:#000000;
--foreground_brackets:#800000;
--foreground_script-brackets:#000000;
--foreground_cursor:#000000;
--selection:#add6ff;
--counter:#237893;
}
html.monokai{
--background:#272822;
--background_nav:#1e1f1c;
--foreground:#f92672;
--foreground_script:#a6e22e;
--foreground_brackets:#f8f8f0;
--foreground_script-brackets:#f8f8f0;
--foreground_cursor:#f8f8f0;
--selection:#575b61;
--counter:#90908a;
}
.content{
grid-column:content;
grid-row:1;
background-color:var(--background);
}
/* ну и т.д. */
let audiourl = $(this).attr('data-audio');
console.log(audiourl);
player.source = {
.penci-archive__list_posts .entry-media img{
padding-top:56%;
}