Warning: file_get_contents(https://raw.githubusercontent.com/Den1xxx/Filemanager/master/languages/ru.json): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found
in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 88
Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 215
Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 216
Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 217
Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 218
Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 219
Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 220
/*!
* William DURAND
* MIT Licensed
*/
(function (document, $) {
"use strict";
var anchorify = (function() {
var _specialCharsRegex = /[ ;,.'?!_]/g;
function generateId(text) {
return text
.trim()
.replace(_specialCharsRegex, '-')
.replace(/[-]+/g, '-')
.replace(/-$/, '')
.toLowerCase();
}
function uniqId(id) {
var inc = 1,
originalId = id;
while (document.getElementById(id)) {
id = originalId + '-' + inc++;
}
return id;
}
function getText( elems ) {
var ret = "", elem;
for ( var i = 0; elems[i]; i++ ) {
elem = elems[i];
// Get the text from text nodes and CDATA nodes
if ( elem.nodeType === 3 || elem.nodeType === 4 ) {
ret += elem.nodeValue;
// Traverse everything else, except comment nodes
} else if ( elem.nodeType !== 8 ) {
ret += getText( elem.childNodes );
}
}
return ret;
}
return function anchorify(els, options) {
var text = options.text || '¶',
cssClass = options.cssClass || 'anchor-link',
skipExisting = options.skipExisting;
var el, id, anchor;
for (var i = 0; i < els.length; i++) {
el = els[i];
if (el.id && skipExisting) {
continue;
}
el.id = el.id || uniqId(generateId(getText([el])));
anchor = document.createElement('a');
anchor.className = cssClass;
anchor.href = '#' + el.id;
anchor.innerHTML = text;
if (options.position == 'prepend') {
el.insertBefore(anchor, el.firstChild);
} else {
el.appendChild(anchor);
}
}
};
})();
if (typeof $ !== 'undefined') {
$.fn.anchorify = function (options) {
anchorify($(this).get(), options || {});
return this;
};
} else {
window.anchorify = function(options) {
options = options || {};
var els = document.querySelectorAll(options.sel || 'h1, h2, h3, h4, h5');
return anchorify(els, options);
};
}
})(document, jQuery);