Некодим© 2020-2026 Некодим
Готовые модификации для вашего сайта. Улучшайте функциональность и дизайн без программирования.
var checkedInputs = isCheckboxImg
814 ? parent.querySelectorAll('.t-img-select:checked')815 : parent.querySelectorAll('.t-checkbox:checked');818 Array.prototype.forEach.call(checkedInputs, function (input) {819 var value = input.getAttribute('data-calc-value');821 value = value.replace(/[^0-9.]/g, '');826 valSum += parseFloat(value);829 tcalc__getFieldsValues__saveToArr(objExpr.operands[i], valSum.toString());837 * Assigns value in object and converts value in number type839 * @param {Operand} operand - obj operand data840 * @param {string} value - value input checked842 function tcalc__getFieldsValues__saveToArr(operand, value) {843 var isNegative = parseInt(value, 10) < 0;846 value = value.replace(/,/g, '.').replace(/[^0-9.]/g, '');850 operand.value = !value ? 0 : parseFloat(value);853 operand.value = -operand.value;857 // Функция временно продублирована из tilda-scrits для избежания проблем с кэшем858 function t_triggerEvent(el, eventName) {861 if (document.createEvent) {862 event = document.createEvent('HTMLEvents');863 event.initEvent(eventName, true, false);864 } else if (document.createEventObject) {865 event = document.createEventObject();866 event.eventType = eventName;869 event.eventName = eventName;871 if (el.dispatchEvent) {872 el.dispatchEvent(event);873 } else if (el.fireEvent) {874 el.fireEvent('on' + event.eventType, event);875 } else if (el[eventName]) {877 } else if (el['on' + eventName]) {878 el['on' + eventName]();886 Copyright (c) 2013-2016 Jason Orendorff, toy-calculator888 Permission is hereby granted, free of charge, to any person obtaining a copy889 of this software and associated documentation files (the "Software"), to deal890 in the Software without restriction, including without limitation the rights891 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell892 copies of the Software, and to permit persons to whom the Software is893 furnished to do so, subject to the following conditions:895 The above copyright notice and this permission notice shall be included in all896 copies or substantial portions of the Software.898 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR899 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,900 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE