Skip to content

Commit

Permalink
Hidden logs
Browse files Browse the repository at this point in the history
  • Loading branch information
juanatsap committed Mar 11, 2021
1 parent 2091293 commit 4548937
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 11 deletions.
2 changes: 1 addition & 1 deletion edit-profile.html
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ <h3 class="title site-title has-text-grey is-hidden">
</div>

<!-- Gigya EXAMPLE!!. Remove with after setting your __API_KEY__ -->
<script type="text/javascript" lang="javascript" src="https://cdns.gigya.com/js/gigya.js?apikey=3_gRq1MaCq77LfHT2SITkHpxCK-_7WJi_H2yVkhha9yZaIKLxY2t5u37JRIC4W3m0s"></script>
<script type="text/javascript" lang="javascript" src="https://cdns.gigya.com/js/gigya.js?apikey=3_P6eTVo5EpI6zoB2c1ZgblyCrmx8OMOlrA932HVKEhhHCHwTdUJbBBEpAocpkb_nM"></script>

<!-- Gigya script. Put here your __API_KEY__ -->
<!-- <script type="text/javascript" lang="javascript" src="https://cdns.gigya.com/js/gigya.js?apikey=__API_KEY__"></script> -->
Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ <h3 class="title site-title has-text-grey">
</div>

<!-- Gigya EXAMPLE!!. Remove with after setting your __API_KEY__ -->
<script type="text/javascript" lang="javascript" src="https://cdns.gigya.com/js/gigya.js?apikey=3_gRq1MaCq77LfHT2SITkHpxCK-_7WJi_H2yVkhha9yZaIKLxY2t5u37JRIC4W3m0s"></script>
<script type="text/javascript" lang="javascript" src="https://cdns.gigya.com/js/gigya.js?apikey=3_P6eTVo5EpI6zoB2c1ZgblyCrmx8OMOlrA932HVKEhhHCHwTdUJbBBEpAocpkb_nM"></script>

<!-- Gigya script. Put here your __API_KEY__ -->
<!-- <script type="text/javascript" lang="javascript" src="https://cdns.gigya.com/js/gigya.js?apikey=__API_KEY__"></script> -->
Expand Down
2 changes: 1 addition & 1 deletion js/engine.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
const query = document.querySelector.bind(document);
const queryAll = document.querySelectorAll.bind(document);
const logConfigFile = false; // Shows/hides config file into the console
var LOGS = true;
var LOGS = false;
var showLog = LOGS;
var showEventsLog = LOGS;
var currentUser = null;
Expand Down
14 changes: 6 additions & 8 deletions js/ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,12 +124,11 @@ function includeConfigCss(config) {
*/
function showLoggedHTML(user) {
// Put some dummy data if this does not exist
if (!user.data.wallet.purchasedProducts) {
user.data.wallet.purchasedProducts = 4;
}

if (!user.data.wallet.credits) {
user.data.wallet.credits = 165;
if (!user.data.wallet) {
user.data.wallet = {
credits: 250,
purchasedProducts: 2
}
}

/* Hide Registration Screenset */
Expand Down Expand Up @@ -676,8 +675,7 @@ function showPurchaseModal(element) {
const enabledButton = !isLogged || hasCredits;
const priceClass = enabledButton ? "accent-button" : "red-button";
if (!imagePath || !title || !description || !buttonText) {

debugger;
// debugger;
}
// Get proper text for button
const textForButton = isLogged ? "Buy product for &nbsp;" + buttonText : "LOGIN to buy this product";
Expand Down

0 comments on commit 4548937

Please sign in to comment.