This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const localStorage = window.localStorage || {}; | |
class LStorage { | |
constructor() { | |
const self = this; | |
self.setData = self.setData; | |
self.getData = self.getData; | |
self.removeData = self.removeData; | |
self.clearData = self.clearData; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Подсчёт суммы переплаты: | |
// не передавать аргументов или указать аргументом одну из строк: 'процент' или percent' | |
// Подсчёт общей суммы, включая переплату | |
// в качестве аргумента указать одну из строк: 'сумма' или total' | |
function getMyPayments(type) { | |
var creditID = window.location.search.substr(4); | |
var isParamID = window.location.search.substr(1,2) === 'id'; |