diff --git a/index.html b/index.html deleted file mode 100644 index eae9162..0000000 --- a/index.html +++ /dev/null @@ -1,12 +0,0 @@ - - - - Simple firebase logon - - - - - -

Works!

-
- \ No newline at end of file diff --git a/README.md b/it1/README.md similarity index 100% rename from README.md rename to it1/README.md diff --git a/it1/bibliotek/bibliotek.js b/it1/bibliotek/bibliotek.js new file mode 100644 index 0000000..0e97a70 --- /dev/null +++ b/it1/bibliotek/bibliotek.js @@ -0,0 +1,4 @@ + +db = init().firestore() +bibliotekcoll = db.collection("bibliotek") + diff --git a/it1/bibliotek/index.html b/it1/bibliotek/index.html new file mode 100644 index 0000000..e2e04a3 --- /dev/null +++ b/it1/bibliotek/index.html @@ -0,0 +1,17 @@ + + + + Simple firebase logon + + + + + + + +
+
+
+ +
+ \ No newline at end of file diff --git a/it1/index.html b/it1/index.html new file mode 100644 index 0000000..32f8933 --- /dev/null +++ b/it1/index.html @@ -0,0 +1,21 @@ + + + + Simple firebase logon + + + + + + + +
+

Klikk oppgaver i menyen for å se hva jeg har laget med firebase i IT1!

+
+ +
+ \ No newline at end of file diff --git a/it1/init-firebase.js b/it1/init-firebase.js new file mode 100644 index 0000000..32c9f88 --- /dev/null +++ b/it1/init-firebase.js @@ -0,0 +1,13 @@ + +var init = function() { + var firebaseConfig = { + apiKey: "AIzaSyAhU3F-De17VAsUgpRjj25f48QiXycorD4", + authDomain: "it1-heimdal-vgs.firebaseapp.com", + databaseURL: "https://it1-heimdal-vgs.firebaseio.com", + projectId: "it1-heimdal-vgs", + storageBucket: "it1-heimdal-vgs.appspot.com", + messagingSenderId: "206703382262", + appId: "1:206703382262:web:be48f32d11a15fa28f26d7" + } + return firebase.initializeApp(firebaseConfig) +} diff --git a/main.css b/it1/main.css similarity index 100% rename from main.css rename to it1/main.css diff --git a/it1/main.js b/it1/main.js new file mode 100644 index 0000000..cbba420 --- /dev/null +++ b/it1/main.js @@ -0,0 +1,12 @@ + +var ocontent = $("#content").html() + +function reset() { + $("#content").html(ocontent) +} + +function oppgaver() { + $("#content").html(` +

Bibliotek

+ `) +} diff --git a/navbar.html b/it1/navbar.html similarity index 69% rename from navbar.html rename to it1/navbar.html index 098a3e4..675a3bd 100644 --- a/navbar.html +++ b/it1/navbar.html @@ -7,15 +7,18 @@ \ No newline at end of file