Detailansicht verbessert
This commit is contained in:
		@@ -44,6 +44,8 @@ var config = {
 | 
			
		||||
  firebase.initializeApp(config);
 | 
			
		||||
 | 
			
		||||
  getAllShoppinglists();
 | 
			
		||||
  //updateUser();
 | 
			
		||||
  displayShoppinglist();
 | 
			
		||||
 | 
			
		||||
function movePurchases(text) {
 | 
			
		||||
    firebase.auth().onAuthStateChanged(function(user){if(user){firebase.auth().currentUser.getIdToken(/* forceRefresh */ true).then(function(idtoken) {
 | 
			
		||||
@@ -186,3 +188,59 @@ var loading = false;
 | 
			
		||||
    });
 | 
			
		||||
}
 | 
			
		||||
*/
 | 
			
		||||
 | 
			
		||||
function updateUser() {
 | 
			
		||||
    firebase.auth().onAuthStateChanged(function(user){if(user){firebase.auth().currentUser.getIdToken(/* forceRefresh */ true).then(function(idtoken) {
 | 
			
		||||
        $.ajax({
 | 
			
		||||
            type: "POST",
 | 
			
		||||
            url: "/user",
 | 
			
		||||
            data:{
 | 
			
		||||
                idtoken: idtoken,
 | 
			
		||||
                message_id: "msgtest"
 | 
			
		||||
            },
 | 
			
		||||
            success(){
 | 
			
		||||
                console.log("USer updated");
 | 
			
		||||
            },
 | 
			
		||||
            error(err){
 | 
			
		||||
                console.error("Error: " + err);
 | 
			
		||||
            }
 | 
			
		||||
        });
 | 
			
		||||
    }).catch((error) => console.error("Get id token client error: ", error));}else{console.log("Check Auth error", user)}});
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
function updateUser() {
 | 
			
		||||
    firebase.auth().onAuthStateChanged(function(user){if(user){firebase.auth().currentUser.getIdToken(/* forceRefresh */ true).then(function(idtoken) {
 | 
			
		||||
        $.ajax({
 | 
			
		||||
            type: "POST",
 | 
			
		||||
            url: "/user",
 | 
			
		||||
            data:{
 | 
			
		||||
                idtoken: idtoken,
 | 
			
		||||
                message_id: "msgtest"
 | 
			
		||||
            },
 | 
			
		||||
            success(){
 | 
			
		||||
                console.log("USer updated");
 | 
			
		||||
            },
 | 
			
		||||
            error(err){
 | 
			
		||||
                console.error("Error: " + err);
 | 
			
		||||
            }
 | 
			
		||||
        });
 | 
			
		||||
    }).catch((error) => console.error("Get id token client error: ", error));}else{console.log("Check Auth error", user)}});
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
function displayShoppinglist() {
 | 
			
		||||
    firebase.auth().onAuthStateChanged(function(user){if(user){firebase.auth().currentUser.getIdToken(/* forceRefresh */ true).then(function(idtoken) {
 | 
			
		||||
        $.ajax({
 | 
			
		||||
            type: "GET",
 | 
			
		||||
            url: "/shoppinglist_json/4tezJYMK",
 | 
			
		||||
            data:{
 | 
			
		||||
                idtoken: idtoken
 | 
			
		||||
            },
 | 
			
		||||
            success(data){
 | 
			
		||||
                console.log("Result: ", data.sl_id);
 | 
			
		||||
            },
 | 
			
		||||
            error(err){
 | 
			
		||||
                console.error("Error: " + err);
 | 
			
		||||
            }
 | 
			
		||||
        });
 | 
			
		||||
    }).catch((error) => console.error("Get id token client error: ", error));}else{console.log("Check Auth error", user)}});
 | 
			
		||||
}
 | 
			
		||||
@@ -23,32 +23,16 @@
 | 
			
		||||
.r1 {
 | 
			
		||||
    height: 100%;
 | 
			
		||||
    max-height: 100%;
 | 
			
		||||
    transform: translateY(100%);
 | 
			
		||||
    margin-top: 100%;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.r2 {
 | 
			
		||||
    height: 100%;
 | 
			
		||||
    max-height: 100%;
 | 
			
		||||
    transform: translateY(100%);
 | 
			
		||||
    background-color: #242424;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.row {
 | 
			
		||||
    margin-bottom: 0px !important;
 | 
			
		||||
    margin-top: 0px !important;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.container {
 | 
			
		||||
    margin-bottom: 0px !important;
 | 
			
		||||
    margin-top: 0px !important;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
html, body {
 | 
			
		||||
    height: 100%;
 | 
			
		||||
    margin: 0;
 | 
			
		||||
    max-height: 100%;
 | 
			
		||||
    overflow: hidden;
 | 
			
		||||
    background-color: #242424;
 | 
			
		||||
    background-color: #161616;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
.ico {
 | 
			
		||||
@@ -60,23 +44,5 @@ html, body {
 | 
			
		||||
 | 
			
		||||
.collection .collection-item.active {
 | 
			
		||||
    /* background-color: #00c853; */
 | 
			
		||||
    background-color: rgb(0, 195, 255);
 | 
			
		||||
    color: rgb(24, 24, 24);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.collection-item {
 | 
			
		||||
    /* background-color: #00c853; */
 | 
			
		||||
    color: rgb(24, 24, 24) !important;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.btn-choose {
 | 
			
		||||
    width: 100%;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.progress .indeterminate {
 | 
			
		||||
    background-color: #f4511e;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.progress {
 | 
			
		||||
    background-color: #f8cfc3;
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user