web/js/initbuild.js
// Check if the preview is showing a card that is currently visible

Check if the preview is showing a card that is currently visible
Check if the preview is showing a card that is currently visible
function checkPreview() {
        let id = $(`.identity[data-code="${$('#cardimg').attr('data-code')}"]`);
        if (id.hasClass('hidden-format') || id.hasClass('hidden-misc')) {
            $('#cardimg').hide();
        }
    }
function checkPreview ( ) { let id = $ ( ` ${ $ ( '#cardimg' ) . attr ( 'data-code' ) } ` ) ; if ( id . hasClass ( 'hidden-format' ) || id . hasClass ( 'hidden-misc' ) ) { $ ( '#cardimg' ) . hide ( ) ; } }
Check if the preview is showing a card that is currently visible
Check if the preview is showing a card that is currently visible