fixed deprecated link
This commit is contained in:
parent
a20cfd1f37
commit
75f0b138cb
@ -43,14 +43,14 @@ function create_theme_switcher() {
|
||||
$('body').append('<div class="themeBtn"><i class="fas fa-'
|
||||
.concat(light ? 'moon' : 'sun').concat('"></i></div>'));
|
||||
// set the correct css file in the HTML head
|
||||
$('head').append('<link id="theme" rel="stylesheet" href="https://langue.phundrak.fr/css/'
|
||||
$('head').append('<link id="theme" rel="stylesheet" href="https://langue.phundrak.com/css/'
|
||||
.concat(light ? 'light' : 'dark').concat('.css">'));
|
||||
|
||||
// switch CSS files and button icon, set new cookie on theme switcher click
|
||||
$('.themeBtn').click(function() {
|
||||
var light = !isThemeLight();
|
||||
// Switch the CSS between light and dark
|
||||
$("#theme").first().attr('href', 'https://langue.phundrak.fr/css/'
|
||||
$("#theme").first().attr('href', 'https://langue.phundrak.com/css/'
|
||||
.concat(light ? 'light' : 'dark')
|
||||
.concat('.css'));
|
||||
// Switch the icon in the theme switcher button
|
||||
|
Reference in New Issue
Block a user