diff --git a/index.html b/index.html index 08f15e3..fa8bab5 100644 --- a/index.html +++ b/index.html @@ -1,76 +1,195 @@ - + + LINE Ultimate Stable @@ -79,9 +198,11 @@
LINE Ultimate
-

-

-

+

ログインしてチャットを始めましょう

+

Google またはメールアドレスでサインインできます。

+ + +
@@ -90,9 +211,11 @@
- - - +
+ + +
+
@@ -102,10 +225,10 @@ import { initializeApp } from "https://www.gstatic.com/firebasejs/10.12.0/firebase-app.js"; import { getAuth, GoogleAuthProvider, signInWithPopup, createUserWithEmailAndPassword, signInWithEmailAndPassword, -onAuthStateChanged, signOut } +onAuthStateChanged, signOut } from "https://www.gstatic.com/firebasejs/10.12.0/firebase-auth.js"; import { getFirestore, collection, addDoc, onSnapshot, -query, orderBy, serverTimestamp } +query, orderBy, serverTimestamp } from "https://www.gstatic.com/firebasejs/10.12.0/firebase-firestore.js"; const firebaseConfig = { @@ -116,9 +239,9 @@ messagingSenderId: "35972275719", appId: "1:35972275719:web:383fd1ac8a47ceca96d4a2" }; - + const GEMMA_KEY = "AIzaSyDY0Jcd-72QPZlfOJAtUCYxeRrjHBvJRtQ"; - + const app = initializeApp(firebaseConfig); const auth = getAuth(app); const db = getFirestore(app); @@ -155,7 +278,7 @@ /* 認証監視 */ onAuthStateChanged(auth,user=>{ if(!user){ - authDiv.style.display="block"; + authDiv.style.display="grid"; chatDiv.style.display="none"; return; }