Przycisk podglądu tekstu #31

Closed
opened 2018-05-14 08:15:18 +02:00 by krzysiej · 1 comment
Owner

Przycisk którego wciśnięcie spowoduje zmianę wyglądu okienka tekstu na takie jak będzie po wydrukowaniu notatki

Przycisk którego wciśnięcie spowoduje zmianę wyglądu okienka tekstu na takie jak będzie po wydrukowaniu notatki
Author
Owner

Dzielenie teksty na równej długości odcinki:

[..."text"].chunk(2);

Array.prototype.chunk = function(groupsize){
    var sets = [], chunks, i = 0;
    chunks = this.length / groupsize;

    while(i < chunks){
        sets[i] = this.splice(0,groupsize).join('');
	i++;
    }
    return sets;
};
Dzielenie teksty na równej długości odcinki: ``` [..."text"].chunk(2); Array.prototype.chunk = function(groupsize){ var sets = [], chunks, i = 0; chunks = this.length / groupsize; while(i < chunks){ sets[i] = this.splice(0,groupsize).join(''); i++; } return sets; }; ```
This repo is archived. You cannot comment on issues.
1 Participants
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: krzysiej/paper-pi#31