fibbu
Forum Replies Created
-
Forum: Plugins
In reply to: [Calculated Fields Form] Number of syllablesI was able to run the code this way. But it doesn’t calculate when a line space is inserted.
Example :
sample sample samplesample sample sample..sample sample
She cannot count the syllables in the second line.
Could it be something related to |r?
Thanks a lot.
(function() { var word = "fieldname14|r"; var countx1; if (word.length === 0) { countx1= 0; } else { word = word.toLowerCase(); if (word.length <= 3) { countx1 = 1; } else { word = word.replace(' ', '').replace(/(?:[^ae?io?uü]es|ed|[^ae?io?uü]e)$/, '').replace(/^y/, ''); countx1= (word.match(/[ae?io?uü]{1,2}/g) || []).length; } } jQuery('#calculation-countx1').html(countx1); jQuery('.countx1-aciklama').html('Hece Say?s? :'); jQuery('.countx1-sonuc').html(countx1 + ' hece'); return [countx1]; })();
Forum: Plugins
In reply to: [Calculated Fields Form] Number of syllablesHow do we print the result of this field in the countx1 part. I tried this way but the code gave an error.
thanks(function(){ function countx1(word) { if (word.length === 0) return 0; word = word.toLowerCase(); if (word.length <= 3) return 1; word = word.replace(' ', ' ').replace(/(?:[^laeiouy]es|ed|[^laeiouy]e)$/, '').replace(/^y/, ''); return word.match(/[aeiouy]{1,2}/g).length; } var result = countx1(fieldname14|r); jQuery('#calculation-countx1').html(countx1); jQuery('.countx1-text').html('Finally : '); jQuery('.countx1-finish').html(countx1 + ' xx'); })();
Forum: Plugins
In reply to: [Calculated Fields Form] Line Spacing (Textarea)Thank you, it worked.
Forum: Plugins
In reply to: [Calculated Fields Form] Arithmetic Code ErrorYes, yes, I ran it, I added letter character rules, it’s working fine now, thank you for your attention.
Forum: Plugins
In reply to: [Calculated Fields Form] Arithmetic Code ErrorI have written rules in the form of counting the numbers entered outside of the digits and counting the number of elements entered other than the numbers in the same way. Thanks.
Forum: Plugins
In reply to: [Calculated Fields Form] Arithmetic Code ErrorSo, do you have a better solution? Something we will do for this calculation tool without using textarea?
SampleThis is the site I took as an example.
Thanks.Forum: Plugins
In reply to: [Calculated Fields Form] Two date calculation problemsthanks
Forum: Plugins
In reply to: [Calculated Fields Form] Two date calculation problemsCould there be a problem with the code you sent?
additionally is the second main calculation equation correct?
so filedname 15-fieldname 14 needs to output date and write month number.Forum: Plugins
In reply to: [Calculated Fields Form] distance between 2 placesI solved the problem thanks.
var mesafe = aMesafe[s1 – 1][s2 – 1];
Forum: Plugins
In reply to: [Calculated Fields Form] distance between 2 places(function() { var mesafe; var s1 = fieldname29; var s2 = fieldname30; var aMesafe = [ [0,337,578], [337,0,915], [578,915,0], ]; var mesafe = aMesafe[s1][s2]; jQuery('#calculation-mesafe').html(mesafe); jQuery('.kriter3-aciklama').html('Mesafe: '); jQuery('.kriter3-sonuc').html(mesafe); return mesafe; })();
yes, the result is written. Thank you very much..
But there is one last little problem, I am amazed by the plugin, it does everything.
Now I am exemplifying;When fieldname29 dropdown 01 value is selected;
When fieldname30 dropdown 02 value is selected;According to these rules;
var aDistance = [
[0,337,578],
[337,0,915],
[578,915.0],
];In other words, it takes the number 915, while it should take 1 row 2nd cell.
Do you have an idea?I defined cell values as 01 02 03.
Thanks.
Forum: Plugins
In reply to: [Calculated Fields Form] Time difference between countriesyes i did it thanks superrr
Forum: Plugins
In reply to: [Calculated Fields Form] Time difference between countriesfieldname my fields are 29 and 30
to print them on the screen.
jQuery(‘.criter-one’).html (‘fieldname29|v ‘);
do i need to do?Can you show me how to write a small example in this code?
I have no other questions. thanksForum: Plugins
In reply to: [Calculated Fields Form] Time difference between countriesFirstly, thank you. I made the clocks of the countries with the method you said. Only one minor problem remained.
jQuery(‘.criter-one’).html(‘Saat Fark?: ‘);
(‘Saat Fark?: ‘); How to print the selected Country name in Dropdown?
Thanks- This reply was modified 1 year, 4 months ago by fibbu.
Forum: Plugins
In reply to: [Calculated Fields Form] Time difference between countriesForum: Plugins
In reply to: [Calculated Fields Form] Time difference between countriesSo how do we get the current time of the country? I made a dropdown menu. Argentine (A) and Brazil (B). In summary, how can we apply the time zones of all countries?
Your calculation method makes sense yes.