/* Floating Chat Icon (Launcher) */ /* Chatbox Container */ /* Chat Header */ /* Chat Messages Container */ /* Chat Footer */ /* Message Bubbles */ /* Ad container inside bot messages */ // On page load, try to get user location // Toggle chat visibility // Close chat when clicking the X // Listen for "Send" button // Listen for Enter key in the input // Send user message to server // Append the user's message // Show a temporary "thinking..." message from the bot // Make AJAX call to your Laravel route (POST /api/v1/search) // Remove "thinking..." message // If the server returned a chat_response let reply = data.chat_response.replace(/\n/g, '
'); // format newlines // If we have results, append them to reply // Append user message to chat // Append bot message to chat (can also pass an ID for easy removal/updates)

Create your account, It's 100% free


or
 Hide

At least 8 characters

Post a Free Classified

Do you have something to sell, to rent, any service to offer or a job offer? Post it at Installment Mart, its free, for local business and very easy to use!

Create and Manage Items

Become a best seller or buyer. Create and Manage your ads. Repost your old ads, etc.

Create your Favorite ads list.

Create your Favorite ads list. And save your search. Don't forget any deal.