get rid of various console.log calls
This commit is contained in:
parent
3fad7f2d6d
commit
6cd9966041
|
|
@ -143,7 +143,6 @@ $(document).ready(function () {
|
|||
$('#reportrange span').html(moment(start).locale('de').format('D. MMM YYYY') + ' - ' + moment(stop).locale('de').format('D. MMM YYYY'));
|
||||
|
||||
refreshDatapoints(deveui, start, stop);
|
||||
console.log("End of document ready...");
|
||||
});
|
||||
|
||||
$(function () {
|
||||
|
|
@ -154,10 +153,8 @@ $(function () {
|
|||
|
||||
function cb(start, end) {
|
||||
$('#reportrange span').html(start.locale('de').format('D. MMM YYYY') + ' - ' + end.locale('de').format('D. MMM YYYY'));
|
||||
console.log("A new date selection was made: " + start.format() + ' to ' + end.format());
|
||||
s_start = start.utc().format('YYYY-MM-DDTHH:mm:ss[Z]');
|
||||
s_end = end.utc().format('YYYY-MM-DDTHH:mm:ss[Z]');
|
||||
console.log("Start: " + s_start + ' End: ' + s_end);
|
||||
refreshDatapoints(deveui, s_start, s_end);
|
||||
}
|
||||
|
||||
|
|
@ -221,16 +218,13 @@ function updateSliderTooltip(c) {
|
|||
}
|
||||
|
||||
last_slider_position = c.value;
|
||||
console.log("Slider position changed...");
|
||||
var unix_timestamp = datapoints[c.value][0];
|
||||
var date = new Date(unix_timestamp * 1000);
|
||||
var myhtml = '<p class="has-text-centered"><b>' + alias + '</b><br />' + moment(date).format('DD.MM.YYYY HH:mm') + '<br />' + vbat2icon(datapoints[c.value][4]) + '</p>';
|
||||
marker.bindPopup(myhtml).openPopup();
|
||||
console.log(myhtml);
|
||||
|
||||
var lat = datapoints[c.value][1];
|
||||
var lng = datapoints[c.value][2];
|
||||
var newLatLng = new L.LatLng(lat, lng);
|
||||
console.log("Lat: " + lat + ", Long: " + lng);
|
||||
marker.setLatLng(newLatLng);
|
||||
}
|
||||
|
|
@ -26,7 +26,6 @@ $(document).ready(function () {
|
|||
});
|
||||
|
||||
$(".abo_plus").click(function () {
|
||||
console.log("abo_plus");
|
||||
el = $(this).parent().find(".abo_add_years");
|
||||
el_text = $(this).parent().parent().find(".abo_add_years_text");
|
||||
counter = Number(el.html());
|
||||
|
|
@ -42,7 +41,6 @@ $(document).ready(function () {
|
|||
});
|
||||
|
||||
$(".abo_minus").click(function () {
|
||||
console.log("abo_minus");
|
||||
el = $(this).parent().find(".abo_add_years");
|
||||
el_text = $(this).parent().parent().find(".abo_add_years_text");
|
||||
counter = Number(el.html());
|
||||
|
|
@ -64,14 +62,12 @@ $(document).ready(function () {
|
|||
}
|
||||
|
||||
$(".abo_pay").click(function () {
|
||||
console.log("pay...");
|
||||
loadStripeLibrary();
|
||||
counter = 0;
|
||||
charge_data = '';
|
||||
abo_table = '<table class="table is-bordered is-fullwidth" >';
|
||||
abo_table += '<tr><th class="is-2">Alias</th><th>verlängern bis</th><th class="has-text-right">Betrag</th></tr>';
|
||||
$(".tracker").each(function (index) {
|
||||
console.log(index + ": " + $(this).find(".alias").html());
|
||||
this_count = Number($(this).find(".abo_add_years").html());
|
||||
if (this_count > 0) {
|
||||
counter += this_count;
|
||||
|
|
@ -88,14 +84,10 @@ $(document).ready(function () {
|
|||
charge_data += "," + $(this).find("div").first().attr('id') + ":" + this_count;
|
||||
}
|
||||
}
|
||||
console.log(counter);
|
||||
});
|
||||
abo_table += '<tr><td>Total CHF</td><td></td><td class="has-text-right">' + (counter * 24).toFixed(2) + '</td></tr>';
|
||||
console.log("Counter: " + counter);
|
||||
abo_table += "</table>";
|
||||
if (counter > 0) {
|
||||
console.log(abo_table);
|
||||
console.log("charge_data: " + charge_data);
|
||||
$("#abos_verlaengern").html(abo_table);
|
||||
$("#charge_data").html(charge_data);
|
||||
$("#cart").addClass("is-active");
|
||||
|
|
@ -103,7 +95,6 @@ $(document).ready(function () {
|
|||
});
|
||||
|
||||
$("#modal-close").click(function () {
|
||||
console.log("blabla");
|
||||
$("#modal").removeClass("is-active");
|
||||
});
|
||||
|
||||
|
|
@ -134,18 +125,15 @@ $(document).ready(function () {
|
|||
alias: $('#alias').val()
|
||||
},
|
||||
success: function (response) {
|
||||
console.log('save success');
|
||||
if (response.rc == 0) {
|
||||
$('#alias_' + $('#deveui').html()).html($('#alias').val());
|
||||
}
|
||||
},
|
||||
error: function (xhr) {
|
||||
console.log('save error');
|
||||
//Do Something to handle error
|
||||
}
|
||||
});
|
||||
|
||||
console.log("save");
|
||||
$("#modal").removeClass("is-active");
|
||||
});
|
||||
|
||||
|
|
@ -158,7 +146,6 @@ function loadStripeLibrary() {
|
|||
async: false, // <-- This is the key
|
||||
success: function () {
|
||||
// all good...
|
||||
console.log("loadStripeLibrary called...");
|
||||
SetupStripe();
|
||||
},
|
||||
error: function () {
|
||||
|
|
@ -168,7 +155,6 @@ function loadStripeLibrary() {
|
|||
}
|
||||
|
||||
function SetupStripe() {
|
||||
console.log("SetupStripe");
|
||||
// Set your publishable key: remember to change this to your live publishable key in production
|
||||
// See your keys here: https://dashboard.stripe.com/account/apikeys
|
||||
stripe = Stripe('pk_test_YkSGqH3Tk9WKK9HrlY63GhAg');
|
||||
|
|
@ -207,7 +193,6 @@ function ConfirmPayment(clientSecret) {
|
|||
}).then(function (result) {
|
||||
if (result.error) {
|
||||
// Show error to your customer (e.g., insufficient funds)
|
||||
console.log(result.error.message);
|
||||
$('#card-errors').text(result.error.message);
|
||||
$('#card-errors-article').show();
|
||||
//Do Something to handle error
|
||||
|
|
@ -220,7 +205,6 @@ function ConfirmPayment(clientSecret) {
|
|||
// execution. Set up a webhook or plugin to listen for the
|
||||
// payment_intent.succeeded event that handles any business critical
|
||||
// post-payment actions.
|
||||
console.log("Payment succeeded!!!");
|
||||
$('#card-errors').text("");
|
||||
$('#card-errors-article').hide();
|
||||
$("#cart").removeClass("is-active");
|
||||
|
|
@ -250,14 +234,11 @@ function PayMe() {
|
|||
charge_data: $("#charge_data").html()
|
||||
},
|
||||
success: function (response) {
|
||||
console.log('pay success');
|
||||
console.log('rc: ' + response.rc);
|
||||
if (response.rc == 0) {
|
||||
ConfirmPayment(response.stripeclientsecret);
|
||||
}
|
||||
},
|
||||
error: function (xhr) {
|
||||
console.log('getstripepaymentintent error');
|
||||
//Do Something to handle error
|
||||
EndPaymentProgress();
|
||||
}
|
||||
|
|
@ -283,7 +264,6 @@ $(document).ready(function () {
|
|||
deveui = $(this).find("div").first().attr("id");
|
||||
lat = $(this).find("#lat").html();
|
||||
lon = $(this).find("#lon").html();
|
||||
console.log("Deveui: " + deveui);
|
||||
var map = new L.Map('map_' + deveui, {
|
||||
crs: L.CRS.EPSG3857,
|
||||
zoomControl: false
|
||||
|
|
|
|||
Loading…
Reference in New Issue