Create simple hello bar on elementor without plugin

first add this code on function.php or snippets plugin and then create new section like image below, or download json file have I made.

add_action( 'wp_head', function () { ?>
    jQuery( document ).ready( function( $ ) {
<?php } );
create new section
Create new section on elementor
add id on container hellobar
klik tab advance and add id ( hidehello ) on css field
add icon for button close hellobar
add icon as button close and add id ( hellobar ) on css field