Answer the question
In order to leave comments, you need to log in
Copied a fragment of js code, threatened with a court, is it possible?
The mail has arrived
function CalcPrice(id, car) {
var a = Number(id),
b = a+1,
id = 'p'+b;
var priceList = {
'p1':{'car1': [1500],'car2': [1700],'car3': [2500]},
'p2':{'car1': [1500],'car2': [1700],'car3': [2500]},
'p3':{'car1': [1500],'car2': [1700],'car3': [2500]},
'p4':{'car1': [1500],'car2': [1700],'car3': [2500]},
'p5':{'car1': [1700],'car2': [2000],'car3': [3000]},
'p6':{'car1': [5000],'car2': [6000],'car3': [10000]},
'p7':{'car1': [2500],'car2': [3000],'car3': [4500]},
'p8':{'car1': [4500],'car2': [5000],'car3': [7000]},
'p9':{'car1': [2500],'car2': [3000],'car3': [4000]},
'p10':{'car1': [1700],'car2': [2000],'car3': [3000]},
},
img = {'src':{'car1':['/img/kamaz.png'], 'car3':['img/kamaz2.png']}};
$('.calc-price').text(priceList[id][car]);
$('.calc-item').find('img').attr({'src': img['src'][car]});
$('.dn').css({'display':'flex'});
};
$('.calc-item').find('select').change(function() {
var id = $(this).val(),
car = $('.calc-step__input').find('input[name=car-type]:checked').val();
if (id === undefined){
id=0;
};
if (car === undefined){
car = car1;
};
CalcPrice(id, car);
});
$('.calc-step__input').find('input ').change(function() {
var id = $('.calc-item').find('select').val(),
car = $('.calc-step__input').find('input[name=car-type]:checked').val();
if (id === undefined){
id=0;
};
if (car === undefined){
car = car1;
};
CalcPrice(id, car);
});
$('#calc-price').change(function(){
$(this).find('#result').text('0');
var result = 0;
var prevResult = parseInt($(this).find('#result').text());
var carImg = '';
var carType = $(this).find('input[name=car-type]:checked').val();
var place = $(this).find('select').val();
var priceList = {
'p1':{'car1': [1500],'car2': [1700],'car3': [2500]},
'p2':{'car1': [1500],'car2': [1700],'car3': [2500]},
'p3':{'car1': [1500],'car2': [1700],'car3': [2500]},
'p4':{'car1': [1500],'car2': [1700],'car3': [2500]},
'p5':{'car1': [1700],'car2': [2000],'car3': [3000]},
'p6':{'car1': [5000],'car2': [6000],'car3': [10000]},
'p7':{'car1': [2500],'car2': [3000],'car3': [4500]},
'p8':{'car1': [4500],'car2': [5000],'car3': [7000]},
'p9':{'car1': [2500],'car2': [3000],'car3': [4000]},
'p10':{'car1': [1700],'car2': [2000],'car3': [3000]},
};
if(carType && place) {
$(this).find('.result-row').show(300);
switch(carType){
case 'car1': carImg = 'car-1'; break;
case 'car2': carImg = 'car-2'; break;
case 'car3': carImg = 'car-3'; break;
}
$(this).find('#calc-img').html('<img src="/wp-content/themes/tatvakuum/img/cars/' + carImg + '.png">');
$(this).find('#calc-img img').fadeOut(0);
$(this).find('#calc-img img').fadeIn(300);
if(priceList[place][carType] > 0) {
$(this).find('#result').countTo({
from: 1000,
to: priceList[place][carType],
speed: 300,
refreshInterval: 30,
formatter: function (value, options) {
return value.toFixed(options.decimals).replace(/(\d)(?=(\d\d\d)+([^\d]|$))/g, '$1 ');
}
});
} else {
$(this).find('#result').text('0');
}
}
});
Answer the question
In order to leave comments, you need to log in
>This is copyright infringement.
the usual empty bullshit, they don’t have these copyrights in any way.
especially since your programs are different, albeit similar - you can no longer worry.
I, too, regularly receive all kinds of threats, I have long been accustomed to the fact that we have a lot of costumed clowns who like to fence all sorts of nonsense trying to frighten them (you understand that if they could ALWAYS somehow cut half a lemon off you, you would already they sat in court, and didn’t read them bullshit by mail)
They need to apply for a patent for the calculator, and in general then everyone should be prohibited from any variations of "calculators"))) I doubt that it is even possible to make it an object of copyright.
my advice is to troll them, copy them their own letter demanding to delete their calculator, which steals yours, and the whole word for word is shorter, with the same threats))))
and in general, you are doing business, you need to be more daring and arrogant, otherwise you crushed.
First, the authors of the claim are bluffing.
If they really "Screenshots of fragments of the code" Cost Calculation "certified by a notary and our lawyer is preparing a statement to the court.". then no one would have asked you to delete the code, if only because each page at the notary costs up to 10K rubles.
Secondly, they did not quite accurately describe the responsibility that threatens, so there is no lawyer there (otherwise, at least he would write a claim)
Thirdly, you better know whether you stole the code from them or not. If yes, then remove it.
Fourthly, no one will ever give you any forecasts on such cases even in a face-to-face meeting.
If the program is not registered and the code is not deposited, then the dispute is long, complex and difficult with the involvement of experts.
And listening to oracles on the Internet, who clearly see the outcome of this case, relying on their sense of beauty, is generally the last thing.
yes, shove it into an obussifier and sleep peacefully
and in general it’s extremely stupid to commune from competitors when the entire Internet is open for you
Copyright prevents other people from impersonating the author of a work. No more. This means that you do not have the right to impersonate the author of someone else's work, but it does not mean that you do not have the right to use it. However, authorship must be proven and certified, request documents confirming the authorship of this work (code). If there are any and are valid from the point of view of your lawyer - add on your web system until the moment of correction that someone else's code is used and correct it. Otherwise - send to yuh what will happen with a probability of 99%
You can actually say. It's without question.
You can actually sue something.
The consequences are at the discretion of the court. There will be no criminal charges, but it is quite realistic to sue 10 thousand or more.
It's just that they won't bother. And if there is an examination, it will show that your code is very different.
Write to them the answer that they are wrong, and your code is not copied from them.
IMHO, any adequate competent judge should send them to the forest. Yes, the arrays are the same. But, damn it, you can also patent the use of i in iterators. But, of course, the law is that the drawbar ...
Tell us later about the results, the precedent is interesting.
Good luck!
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question