-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathservices.js
37 lines (29 loc) · 1.03 KB
/
services.js
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
var config = {
apiKey: "AIzaSyBUp2bjPmPmPyz3s9IOHJGhpirhyAp9W_E",
authDomain: "booleana-s-portafolio.firebaseapp.com",
databaseURL: "https://booleana-s-portafolio.firebaseio.com",
projectId: "booleana-s-portafolio",
storageBucket: "booleana-s-portafolio.appspot.com",
messagingSenderId: "206543034569"
};
firebase.initializeApp(config);
var database = firebase.database();
var getDevSkills= database.ref('english/skills/developer');
var getDesignSkills= database.ref('english/skills/designer');
var getProtoSkills= database.ref('english/skills/prototyping');
var getProjects= database.ref('english/projects');
var developer= [];
getDevSkills.on('value', function (snapshot) {
developer = snapshot.val()
});/*
getDesignSkills.on('value', function (snapshot) {
//console.log(snapshot.val())
});
getProtoSkills.on('value', function (snapshot) {
//console.log(snapshot.val())
});*/
let gottenProjects
getProjects.once('value').then(function(snapshot) {
projects = snapshot.val();
carrousel(projects);
});