-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
css-visible.html
77 lines (65 loc) · 3.74 KB
/
css-visible.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
<!doctype html>
<html lang="en" class="h-100">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- SEO -->
<meta property="og:title" content="Simple JavaScript Language Switcher w/ css visible"/>
<meta property="og:url" content="https://chienhsiang-hung.github.io/javascript-language-switcher/css-visible"/>
<meta property="og:image" content="https://github.com/chienhsiang-hung/chienhsiang-hung.github.io/raw/main/android-chrome-512x512.png"/>
<meta name="keywords" content="Simple JavaScript Language Switcher, Simple JavaScript Language Switcher w/ css visible, Lang Switcher, 藉由CSS實現簡易JS語言切換, multilingual-websites"/>
<meta property="og:description" name="description" content="Simple JavaScript Language Switcher, use javascript switch language with a help of the css visible.">
<meta name="author" content="Hung, Chien-Hsiang"/>
<meta name="copyright" content="GNU General Public License v3.0"/>
<meta http-equiv="expires" content="0">
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<title>Simple JavaScript Language Switcher w/ css visible</title>
<meta name="google-site-verification" content="SyEY88jadkmY5tP6AMEBi5rqu2hNV4P81pJ6uTusYFM" />
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-EB1W4TXEV1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-EB1W4TXEV1');
</script>
<!-- AdSense -->
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-5348991030538024" crossorigin="anonymous"></script>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.0/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-gH2yIJqKdNHPEq0n4Mqa/HGKIhSkIHeL5AyhkYV8i59U5AR6csBvApHHNl/vI1Bx" crossorigin="anonymous">
<script src="https://code.jquery.com/jquery-3.6.0.js" integrity="sha256-H+K7U5CnXl1h5ywQfKtSj8PCmoN9aaq30gDh27Xc0jk=" crossorigin="anonymous"></script>
<link href="src/css/switch-lang.css" rel="stylesheet">
<link href="https://chienhsiang-hung.github.io/kaggle-profile-summary-card/src/css/github-markdown-light.css" rel="stylesheet">
<style>
span {
cursor: pointer;
}
</style>
</head>
<body class="d-flex flex-column h-100">
<div data-include="navbar"></div>
<!-- Begin page content -->
<main class="flex-shrink-0">
<div class="container">
<h1 class="mt-5 en">Simple JavaScript Language Switcher w/ css visible</h1>
<h1 class="mt-5 tw">藉由CSS實現簡易JS語言切換</h1>
<span class='en' onclick="switch_lang('.en', '.tw')">中文 (點我)</span><span class='tw' onclick="switch_lang('.tw', '.en')">EN (click me)</span>
<hr>
<div data-include="content"></div>
</div>
</main>
<div data-include="footer"></div>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.0/dist/js/bootstrap.bundle.min.js" integrity="sha384-A3rJD856KowSb7dwlZdYEkO39Gagi7vIsF0jrRAoQmDKKtQBHUuLZ9AsSv4jD4Xa" crossorigin="anonymous"></script>
<script src="src/js/include.js"></script>
<script src='src/js/switch-lang-w-visible.js'></script>
<script src='https://storage.ko-fi.com/cdn/scripts/overlay-widget.js'></script>
<script>
kofiWidgetOverlay.draw('chienhsianghung', {
'type': 'floating-chat',
'floating-chat.donateButton.text': 'Support me',
'floating-chat.donateButton.background-color': '#00b9fe',
'floating-chat.donateButton.text-color': '#fff'
});
</script>
</body>
</html>