mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-11-26 09:53:34 +03:00
d2eb0b6400
- Προβολή λεπτομερειών ραντεβού - Δημιουργία διαλόγου επεξεργασίας (δεν ολοκληρώθηκε ακόμα) - Παραγωγή code docs (js + php)
17 lines
480 B
JavaScript
17 lines
480 B
JavaScript
(function() {
|
|
var counter = 0;
|
|
var numbered;
|
|
var source = document.getElementsByClassName('prettyprint source');
|
|
|
|
if (source && source[0]) {
|
|
source = source[0].getElementsByTagName('code')[0];
|
|
|
|
numbered = source.innerHTML.split('\n');
|
|
numbered = numbered.map(function(item) {
|
|
counter++;
|
|
return '<span id="line' + counter + '"></span>' + item;
|
|
});
|
|
|
|
source.innerHTML = numbered.join('\n');
|
|
}
|
|
})();
|