```
;(function($){
$(function(){
<?php if(
( !empty($consumer_info['type']) && $consumer_info['type']=='first' && !$this->session->userdata('welcome_message_closed') ) ||
( $consumer_info['signin_status'] == 2 && $this->session->userdata('scanned_clinic_id') )
):?>
```