This commit is contained in:
2026-03-20 17:13:38 +01:00
parent 4c84735b75
commit c043ee9a52
1152 changed files with 317560 additions and 0 deletions
File diff suppressed because one or more lines are too long
+52
View File
@@ -0,0 +1,52 @@
var baseURL = window.location.hostname.indexOf('github.') !== -1 ? '//rawcdn.githack.com/Alex-D/Trumbowyg/v2.25.0/' : '../../../';
var styleLoadingContainer = document.querySelector('.loading-head');
var scriptLoadingContainer = document.querySelector('.loading-body');
function loadTag(tagToInsert, container, comment, tagForDocumentation) {
'use strict';
document.write(tagToInsert);
var html = '';
if (container.innerHTML.trim().length > 0) {
html = '\n' + container.innerHTML.trim() + '\n';
}
if (comment !== undefined) {
html += '\n<!-- ' + comment + ' -->';
}
html += tagForDocumentation.replace(/</g, '&lt;');
container.innerHTML = html;
}
function loadStyle(stylePath, comment) {
'use strict';
loadTag(
'<link rel="stylesheet" href="' + baseURL + stylePath + '"/>',
styleLoadingContainer,
comment,
'\n<link rel="stylesheet" href="trumbowyg/' + stylePath + '">\n\n'
);
}
function loadScript(scriptPath, comment) {
'use strict';
loadTag(
'<script src="' + baseURL + scriptPath + '"></script>',
scriptLoadingContainer,
comment,
'\n<script src="trumbowyg/' + scriptPath + '"></script>\n\n'
);
}
(function($) {
'use strict';
$('a').click(function() {
window.top.location = $(this).attr('href');
return false;
});
})(jQuery);
@@ -0,0 +1,12 @@
(function($) {
'use strict';
$('.js-code-to-eval').each(function() {
eval($(this).text()); // jshint ignore:line
$(this).text(
$(this).text()
.replace(/'Client-ID\s[a-z0-9]+'/, '\'Client-ID xxxxxxxxxxxx\'')
.replace(/apiKey:\s+'.*'/, 'apiKey: \'xxxxxxxxxxxx\'')
);
});
})(jQuery);