first commit
This commit is contained in:
30
admin/assets/js/classic-editor.js
Normal file
30
admin/assets/js/classic-editor.js
Normal file
@@ -0,0 +1,30 @@
|
||||
jQuery(document).ready(function($) {
|
||||
// Smooth toggle for postboxes
|
||||
$('.postbox').each(function() {
|
||||
$(this).on('click', '.hndle', function() {
|
||||
$(this).next('.inside').slideToggle();
|
||||
});
|
||||
});
|
||||
|
||||
// Add class for better styling
|
||||
$('#title').attr('placeholder', 'Enter title here...');
|
||||
$('#publishing-action .spinner').html(`
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
|
||||
<rect width="6" height="14" x="1" y="4" fill="#0073aa">
|
||||
<animate id="svgSpinnersBarsScaleFade0" fill="freeze" attributeName="y" begin="0;svgSpinnersBarsScaleFade1.end-0.25s" dur="0.75s" values="1;5" />
|
||||
<animate fill="freeze" attributeName="height" begin="0;svgSpinnersBarsScaleFade1.end-0.25s" dur="0.75s" values="22;14" />
|
||||
<animate fill="freeze" attributeName="opacity" begin="0;svgSpinnersBarsScaleFade1.end-0.25s" dur="0.75s" values="1;0.2" />
|
||||
</rect>
|
||||
<rect width="6" height="14" x="9" y="4" fill="#0073aa" opacity="0.4">
|
||||
<animate fill="freeze" attributeName="y" begin="svgSpinnersBarsScaleFade0.begin+0.15s" dur="0.75s" values="1;5" />
|
||||
<animate fill="freeze" attributeName="height" begin="svgSpinnersBarsScaleFade0.begin+0.15s" dur="0.75s" values="22;14" />
|
||||
<animate fill="freeze" attributeName="opacity" begin="svgSpinnersBarsScaleFade0.begin+0.15s" dur="0.75s" values="1;0.2" />
|
||||
</rect>
|
||||
<rect width="6" height="14" x="17" y="4" fill="#0073aa" opacity="0.3">
|
||||
<animate id="svgSpinnersBarsScaleFade1" fill="freeze" attributeName="y" begin="svgSpinnersBarsScaleFade0.begin+0.3s" dur="0.75s" values="1;5" />
|
||||
<animate fill="freeze" attributeName="height" begin="svgSpinnersBarsScaleFade0.begin+0.3s" dur="0.75s" values="22;14" />
|
||||
<animate fill="freeze" attributeName="opacity" begin="svgSpinnersBarsScaleFade0.begin+0.3s" dur="0.75s" values="1;0.2" />
|
||||
</rect>
|
||||
</svg>
|
||||
`);
|
||||
});
|
||||
Reference in New Issue
Block a user