Cart 0
One More Step Forward
Click to zoom

Share this book

One More Step Forward : The Invincible Thinking to Get You Through Tough Times

Book Details

Format Paperback / Softback
ISBN-10 1958655252
ISBN-13 9781958655252
Publisher IRH Press
Imprint IRH Press
Country of Manufacture GB
Country of Publication GB
Publication Date Aug 28th, 2025
Print length 196 Pages
Weight 295 grams
Ksh 2,900.00
Temporarily out of stock, due soon 0 in stock

Delivery Location

Delivery fee: Select location

Secure
Quality
Fast
It is not our circumstances but how we think that definesour lives. Author Ryuho Okawa inspires us to rekindle the power of self-help tonavigate ourselves through challenging times. Ignite the indomitable spiritwithin to overcome life's obstacles.
Success in life is determined not by our circumstances but by our mindset and how we think. In this book, the author reveals from his first-hand experience how the spirit of self-help can create new values.
Ryuho Okawa is a true self-made man with an indomitable spirit to bring happiness to all humankind. His drive to keep moving forward by taking steady steps through the power of discipline has led to the publication of over 3,200 books in just 37 years.
Unlock the keys to lifelong growth and success by reading this book.
Topics Include:
The Power of Reading: Those who make a habit of reading quality and inspirational books will never run out of ideas. As a result, they will be able to create new values in society.<br><b>Abandoning Negative Mindsets: <plaintext>Self-pity, victim mentality, and desiring revenge in the name of justice will never lead to happiness and true wealth in life.<br><b>Mastering Three Elements of Success in Your Professional Life: <i>"The Ability to Receive ''Luck'' or Divine Blessings, Stolidity, and Perseverance." <plaintext> These are the key ingredients for long-term success, especially for young professionals today.<br><b>Focusing on Improving Abilities: <plaintext><P><P><P><P>Instead of relying on talent, focus on steadily improving your abilities through dedicated effort.</P></P></P></P></plaintext></b></plaintext></i></b></plaintext></b></plaintext></b></div> <hr class="my-8"> <p class="text-secondary-600">Get One More Step Forward by at the best price and quality guaranteed only at Werezi Africa's largest book ecommerce store. The book was published by IRH Press and it has pages.</p> </div> </div> <div id="content-reviews" class="tab-content hidden"> <!-- Reviews Header --> <div class="flex flex-wrap items-center justify-between gap-4 mb-8"> <div class="flex items-center gap-4"> <div class="flex items-center gap-1"> <svg class="w-6 h-6 text-secondary-300" fill="currentColor" viewBox="0 0 20 20"> <path d="M9.049 2.927c.3-.921 1.603-.921 1.902 0l1.07 3.292a1 1 0 00.95.69h3.462c.969 0 1.371 1.24.588 1.81l-2.8 2.034a1 1 0 00-.364 1.118l1.07 3.292c.3.921-.755 1.688-1.54 1.118l-2.8-2.034a1 1 0 00-1.175 0l-2.8 2.034c-.784.57-1.838-.197-1.539-1.118l1.07-3.292a1 1 0 00-.364-1.118L2.98 8.72c-.783-.57-.38-1.81.588-1.81h3.461a1 1 0 00.951-.69l1.07-3.292z" /> </svg> <svg class="w-6 h-6 text-secondary-300" fill="currentColor" viewBox="0 0 20 20"> <path d="M9.049 2.927c.3-.921 1.603-.921 1.902 0l1.07 3.292a1 1 0 00.95.69h3.462c.969 0 1.371 1.24.588 1.81l-2.8 2.034a1 1 0 00-.364 1.118l1.07 3.292c.3.921-.755 1.688-1.54 1.118l-2.8-2.034a1 1 0 00-1.175 0l-2.8 2.034c-.784.57-1.838-.197-1.539-1.118l1.07-3.292a1 1 0 00-.364-1.118L2.98 8.72c-.783-.57-.38-1.81.588-1.81h3.461a1 1 0 00.951-.69l1.07-3.292z" /> </svg> <svg class="w-6 h-6 text-secondary-300" fill="currentColor" viewBox="0 0 20 20"> <path d="M9.049 2.927c.3-.921 1.603-.921 1.902 0l1.07 3.292a1 1 0 00.95.69h3.462c.969 0 1.371 1.24.588 1.81l-2.8 2.034a1 1 0 00-.364 1.118l1.07 3.292c.3.921-.755 1.688-1.54 1.118l-2.8-2.034a1 1 0 00-1.175 0l-2.8 2.034c-.784.57-1.838-.197-1.539-1.118l1.07-3.292a1 1 0 00-.364-1.118L2.98 8.72c-.783-.57-.38-1.81.588-1.81h3.461a1 1 0 00.951-.69l1.07-3.292z" /> </svg> <svg class="w-6 h-6 text-secondary-300" fill="currentColor" viewBox="0 0 20 20"> <path d="M9.049 2.927c.3-.921 1.603-.921 1.902 0l1.07 3.292a1 1 0 00.95.69h3.462c.969 0 1.371 1.24.588 1.81l-2.8 2.034a1 1 0 00-.364 1.118l1.07 3.292c.3.921-.755 1.688-1.54 1.118l-2.8-2.034a1 1 0 00-1.175 0l-2.8 2.034c-.784.57-1.838-.197-1.539-1.118l1.07-3.292a1 1 0 00-.364-1.118L2.98 8.72c-.783-.57-.38-1.81.588-1.81h3.461a1 1 0 00.951-.69l1.07-3.292z" /> </svg> <svg class="w-6 h-6 text-secondary-300" fill="currentColor" viewBox="0 0 20 20"> <path d="M9.049 2.927c.3-.921 1.603-.921 1.902 0l1.07 3.292a1 1 0 00.95.69h3.462c.969 0 1.371 1.24.588 1.81l-2.8 2.034a1 1 0 00-.364 1.118l1.07 3.292c.3.921-.755 1.688-1.54 1.118l-2.8-2.034a1 1 0 00-1.175 0l-2.8 2.034c-.784.57-1.838-.197-1.539-1.118l1.07-3.292a1 1 0 00-.364-1.118L2.98 8.72c-.783-.57-.38-1.81.588-1.81h3.461a1 1 0 00.951-.69l1.07-3.292z" /> </svg> </div> <span class="text-secondary-600">Based on 0 reviews</span> </div> </div> <!-- Review List --> <div class="text-center py-12"> <svg class="w-16 h-16 mx-auto text-secondary-300 mb-4" fill="none" viewBox="0 0 24 24" stroke="currentColor"> <path stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M8 12h.01M12 12h.01M16 12h.01M21 12c0 4.418-4.03 8-9 8a9.863 9.863 0 01-4.255-.949L3 20l1.395-3.72C3.512 15.042 3 13.574 3 12c0-4.418 4.03-8 9-8s9 3.582 9 8z" /> </svg> <p class="text-secondary-500">No reviews yet. Be the first to review this book!</p> </div> <!-- Write Review Form --> </div> </div> </section> <!-- Customers Who Bought This Also Bought --> <!-- Customers Who Viewed This Also Viewed --> <!-- Related Books (Promotion) --> <section class="py-12 bg-white scroll-animate"> <div class="container mx-auto px-4"> <h2 class="text-2xl font-bold text-secondary-900 mb-8">Mind, Body, &amp; Spirit</h2> <div class="grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-6 gap-6"> <a href="https://werezi.com/book/the-mamba-mentality-9780374201234" class="group"> <div class="aspect-[2/3] rounded-xl overflow-hidden bg-secondary-100 shadow-md group-hover:shadow-xl transition-all mb-3 group-hover:scale-105"> <img src="https://werezi.com/image-proxy/9780374201234.webp" alt="The Mamba Mentality" class="w-full h-full object-cover" loading="lazy"> </div> <h3 class="text-sm font-medium text-secondary-900 line-clamp-2 group-hover:text-primary-600 transition-colors">The Mamba Mentality</h3> </a> </div> </div> </section> <!-- Image Zoom Modal --> <div id="image-modal" class="fixed inset-0 z-[100] hidden items-center justify-center bg-black/90 backdrop-blur-sm" onclick="closeImageModal(event)"> <button onclick="closeImageModal()" class="absolute top-4 right-4 p-2 text-white/80 hover:text-white transition-colors z-10"> <svg class="w-8 h-8" fill="none" viewBox="0 0 24 24" stroke="currentColor"> <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12" /> </svg> </button> <img id="modal-image" src="https://werezi.com/image-proxy/9781958655252.webp" alt="One More Step Forward" class="max-w-[90vw] max-h-[90vh] object-contain rounded-lg shadow-2xl animate-zoom-in"> </div> <!-- Mobile Sticky Add to Cart --> </main> <!-- Footer --> <footer class="bg-white border-t border-secondary-200 mt-auto"> <div class="container mx-auto px-4 py-8 md:py-12"> <div class="flex flex-col md:flex-row justify-between items-center gap-4"> <p class="text-secondary-500 text-sm">© 2026 Werezi Books. All rights reserved.</p> <div class="flex gap-6 text-sm text-secondary-500"> <a href="#" class="hover:text-primary-600 transition-colors">Privacy</a> <a href="#" class="hover:text-primary-600 transition-colors">Terms</a> <a href="#" class="hover:text-primary-600 transition-colors">Contact</a> </div> </div> </div> </footer> </div> <!-- Mini Cart Sidebar --> <div class="offCanvas__minicart" tabindex="-1"> <div class="minicart__header "> <div class="minicart__header--top d-flex justify-content-between align-items-center"> <h3 class="minicart__title"> Shopping Cart</h3> <button class="minicart__close--btn" aria-label="minicart close btn"> <svg class="minicart__close--icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="32" d="M368 368L144 144M368 144L144 368"/></svg> </button> </div> <p class="minicart__header--desc">Africa largest book store</p> </div> <div class="minicart__product renderMiniCart"> </div> <div class="minicart__amount"> <div class="minicart__amount_list d-flex justify-content-between"> <span>Sub Total:</span> <span id="miniCartTortal"><b></b></span> </div> </div> <div class="minicart__conditions text-center"></div> <div class="renderMiniCartBtns"></div> </div> <!-- Coming Soon Modal --> <div x-show="ebooksModal" x-transition:enter="transition ease-out duration-300" x-transition:enter-start="opacity-0 scale-95" x-transition:enter-end="opacity-100 scale-100" x-transition:leave="transition ease-in duration-200" x-transition:leave-start="opacity-100 scale-100" x-transition:leave-end="opacity-0 scale-95" class="fixed inset-0 z-[100] flex items-center justify-center p-4 bg-editorial/60 backdrop-blur-sm" x-cloak> <!-- Modal Container --> <div @click.away="ebooksModal = false" class="relative w-full max-w-lg overflow-hidden rounded-2xl bg-white shadow-2xl transition-all"> <!-- Close Button --> <button @click="ebooksModal = false" class="absolute top-4 right-4 z-10 p-2 text-secondary-400 hover:text-editorial transition-colors rounded-full hover:bg-secondary-50"> <svg class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor"> <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12" /> </svg> </button> <!-- Content --> <div class="p-8 sm:p-12 text-center"> <div class="mb-8 flex justify-center"> <div class="relative"> <div class="h-20 w-20 rounded-full bg-primary-50 flex items-center justify-center animate-pulse"> <img src="https://werezi.com/bookicon.png" class="h-10 w-10 opacity-60" alt="Ebooks"> </div> </div> </div> <h3 class="mb-4 font-serif text-3xl font-medium text-editorial lg:text-4xl">Digital Library <br /><span class="text-primary-600">Coming Soon</span></h3> <p class="mb-8 text-base leading-relaxed text-secondary-600 font-sans"> Our digital collection is currently being curated to ensure the best possible reading experience on Werezi. We'll be launching our Ebooks platform shortly. </p> <button @click="ebooksModal = false" class="inline-flex w-full items-center justify-center rounded-lg bg-editorial px-8 py-4 text-sm font-bold uppercase tracking-widest text-white transition-all hover:bg-primary-700 hover:shadow-lg focus:outline-none focus:ring-2 focus:ring-primary-500 focus:ring-offset-2"> Notify Me When Launched </button> </div> <!-- Progress Decoration --> <div class="h-1.5 w-full bg-secondary-100 overflow-hidden"> <div class="h-full bg-primary-600 animate-[loading_2s_ease-in-out_infinite]" style="width: 30%"></div> </div> </div> </div> <style> [x-cloak] { display: none !important; } @keyframes loading { 0% { transform: translateX(-100%); } 100% { transform: translateX(300%); } } </style> <!-- Legacy Scripts --> <script src="https://werezi.com/fronttheme/assets/js/vendor/popper.js" defer="defer"></script> <script src="https://werezi.com/fronttheme/assets/js/vendor/bootstrap.min.js" defer="defer"></script> <script src="https://werezi.com/fronttheme/assets/js/plugins/swiper-bundle.min.js" defer="defer"></script> <script src="https://werezi.com/fronttheme/assets/js/plugins/glightbox.min.js" defer="defer"></script> <!-- Customscript js --> <script src="https://werezi.com/fronttheme/assets/js/script.js" defer="defer"></script> <style> /* Custom animations */ @keyframes zoom-in { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } } @keyframes fade-in { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } } .animate-zoom-in { animation: zoom-in 0.3s ease-out; } .animate-fade-in { animation: fade-in 0.5s ease-out; } .scroll-animate { opacity: 0; transform: translateY(20px); transition: all 0.6s ease-out; } .scroll-animate.visible { opacity: 1; transform: translateY(0); } .scrollbar-hide::-webkit-scrollbar { display: none; } .scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; } </style> <script> // Image Zoom Modal function openImageModal() { const modal = document.getElementById('image-modal'); modal.classList.remove('hidden'); modal.classList.add('flex'); document.body.style.overflow = 'hidden'; } function closeImageModal(event) { if (event && event.target.id !== 'image-modal') return; const modal = document.getElementById('image-modal'); modal.classList.add('hidden'); modal.classList.remove('flex'); document.body.style.overflow = ''; } // Close modal on Escape key document.addEventListener('keydown', function(e) { if (e.key === 'Escape') closeImageModal(); }); // Carousel Scroll function scrollCarousel(id, direction) { const carousel = document.getElementById(id); const scrollAmount = 320; // approx 2 items carousel.scrollBy({ left: scrollAmount * direction, behavior: 'smooth' }); } // Copy Book Link function copyBookLink() { navigator.clipboard.writeText(window.location.href).then(() => { const btn = document.getElementById('copy-link-btn'); btn.innerHTML = '<svg class="w-5 h-5 text-green-600" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7"/></svg>'; btn.classList.add('bg-green-100'); setTimeout(() => { btn.innerHTML = '<svg class="w-5 h-5" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8 16H6a2 2 0 01-2-2V6a2 2 0 012-2h8a2 2 0 012 2v2m-6 12h8a2 2 0 002-2v-8a2 2 0 00-2-2h-8a2 2 0 00-2 2v8a2 2 0 002 2z"/></svg>'; btn.classList.remove('bg-green-100'); }, 2000); }); } // Tab switching document.querySelectorAll('.tab-btn').forEach(btn => { btn.addEventListener('click', function() { const tab = this.dataset.tab; // Update button states document.querySelectorAll('.tab-btn').forEach(b => { b.classList.remove('text-primary-600', 'border-b-2', 'border-primary-600'); b.classList.add('text-secondary-500'); }); this.classList.remove('text-secondary-500'); this.classList.add('text-primary-600', 'border-b-2', 'border-primary-600'); // Update content visibility document.querySelectorAll('.tab-content').forEach(c => c.classList.add('hidden')); document.getElementById('content-' + tab).classList.remove('hidden'); }); }); // Quantity controls document.querySelectorAll('.quantity__value').forEach(btn => { btn.addEventListener('click', function() { const input = this.parentElement.querySelector('.quantity__number'); let value = parseInt(input.value) || 1; const max = parseInt(input.max); if (this.classList.contains('decrease')) { value = Math.max(1, value - 1); } else { value = !isNaN(max) ? Math.min(max, value + 1) : value + 1; } input.value = value; }); }); // Clamp manual/pasted input to max stock document.querySelectorAll('.quantity__number').forEach(function(input) { function clamp() { const max = parseInt(input.max); let val = parseInt(input.value) || 1; if (!isNaN(max) && val > max) input.value = max; if (val < 1) input.value = 1; } input.addEventListener('blur', clamp); input.addEventListener('paste', function() { setTimeout(clamp, 0); }); }); // Location selectors $('#input-payment-country').on('change', function() { var county_id = $(this).val(); $.ajax({ headers: { 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content') }, type: "POST", url: "https://werezi.com/checkout/getlocations", data: { county_id: county_id }, success: function(response) { $('#input-payment-zone').html(response); } }); }); $('#input-payment-zone').on('change', function() { var location_id = $(this).val(); $.ajax({ headers: { 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content') }, type: "POST", url: "https://werezi.com/checkout/getshipping", data: { location_id: location_id }, success: function(response) { var rate = parseFloat(response).toFixed(2); $('#shipping').html("Ksh " + rate); } }); }); // Scroll animations (Intersection Observer) const scrollElements = document.querySelectorAll('.scroll-animate'); const observer = new IntersectionObserver((entries) => { entries.forEach(entry => { if (entry.isIntersecting) { entry.target.classList.add('visible'); } }); }, { threshold: 0.1 }); scrollElements.forEach(el => observer.observe(el)); // Check URL hash for reviews tab if (window.location.hash === '#reviews') { document.getElementById('tab-reviews').click(); } </script> <script src="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.13/js/select2.min.js"></script> <script> // go to banner location on click function goToBannerLocation(url) { // console.log(url) window.location.replace(url) } $(document).ready(function() { $(".select2").select2(); }); // Set the options that I want toastr.options = { "closeButton": true, "newestOnTop": false, "progressBar": true, "positionClass": "toast-bottom-center", "preventDuplicates": false, "onclick": null, "showDuration": "6000", "hideDuration": "2000", "timeOut": "9000", "extendedTimeOut": "1000", "showEasing": "swing", "hideEasing": "linear", "showMethod": "fadeIn", "hideMethod": "fadeOut" } // Save email newsletters $(document).on('submit', '#SubmitNewsLetters', function(e) { e.preventDefault(); const url = $(this).attr('action'); const method = $(this).attr('method'); const formData = $(this).serialize(); const button = $(this).find('button[type="submit"]'); // alert(url); $.ajax({ headers: { 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content') }, url: url, type: method, dataType: 'json', data: formData, beforeSend: function() { button.attr('disabled', true); button.html('Connecting Please wait...'); }, success: function(data) { if (data.status === 'success') { toastr.success(data.message, 'Success'); button.attr('disabled', false); button.html('Subscribe'); } }, error: function(xhr) { $.each(xhr.responseJSON.errors, function(key, value) { toastr.error(value, 'Validation Error'); button.attr('disabled', false); button.html('Subscribe'); }); } }); }) // Add Products to cart $(document).on('submit', '.addProductToCart', function(ev) { ev.preventDefault(); const form = $(this); const url = form.attr('action'); const method = form.attr('method'); const data = new FormData(this); const button = form.find("button[type='submit']"); // Send data to server $.ajax({ headers: { 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content') }, url: url, type: method, dataType: 'json', data: data, processData: false, contentType: false, beforeSend: function() { button.attr('disabled', true); button.html(`<svg class="animate-spin h-5 w-5" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"><circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4"></circle><path class="opacity-75" fill="currentColor" d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"></path></svg>`); }, success: function(data) { if (data.status == 'success') { getCartTotals() $('.offCanvas__minicart').addClass('active') toastr.success(data.message, 'Successfully added to cart'); button.attr('disabled', false); // Show checkmark briefly button.html(`<svg class="h-5 w-5" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7"/></svg>`); // Return to basket icon after delay setTimeout(function() { button.html(`<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M16 11V7a4 4 0 00-8 0v4M5 9h14l1 12H4L5 9z" /></svg>`); }, 1500); } }, error: function(xhr) { $.each(xhr.responseJSON.errors, function(key, value) { toastr.error(value, 'Validation Error'); button.attr('disabled', false); button.html(`<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M16 11V7a4 4 0 00-8 0v4M5 9h14l1 12H4L5 9z" /></svg>`); }); } }); // alert("Add Product") }) // Get cart totals getCartTotals(); function getCartTotals() { const url = $("input[name=countAllCartItems]").val(); $.ajax({ headers: { 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content') }, url: url, type: "get", dataType: 'json', success: function(data) { $('#cartCount').html(data.cartCount) $('.renderMiniCart').html(data.mini_cart_items); $('#miniCartTortal').html(data.cartTotal); if (data.cartCount > 0) { $('.renderMiniCartBtns').html(` <div style="display: flex; gap: 12px; padding: 16px 0;"> <a href="https://werezi.com/cart" style="flex: 1; display: inline-flex; align-items: center; justify-content: center; padding: 12px 16px; border: 2px solid #059669; color: #059669; font-weight: 600; font-size: 14px; text-decoration: none; border-radius: 10px; transition: all 0.2s ease;" onmouseover="this.style.background='#059669'; this.style.color='#fff';" onmouseout="this.style.background='transparent'; this.style.color='#059669';"> <svg style="width: 18px; height: 18px; margin-right: 6px;" fill="none" viewBox="0 0 24 24" stroke="currentColor"> <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M16 11V7a4 4 0 00-8 0v4M5 9h14l1 12H4L5 9z" /> </svg> View Cart </a> <a href="https://werezi.com/checkout" style="flex: 1; display: inline-flex; align-items: center; justify-content: center; padding: 12px 16px; background: linear-gradient(135deg, #059669 0%, #047857 100%); color: #fff; font-weight: 600; font-size: 14px; text-decoration: none; border-radius: 10px; border: none; transition: all 0.2s ease; box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);" onmouseover="this.style.transform='translateY(-1px)'; this.style.boxShadow='0 6px 16px rgba(5, 150, 105, 0.4)';" onmouseout="this.style.transform='translateY(0)'; this.style.boxShadow='0 4px 12px rgba(5, 150, 105, 0.3)';"> Checkout <svg style="width: 18px; height: 18px; margin-left: 6px;" fill="none" viewBox="0 0 24 24" stroke="currentColor"> <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M14 5l7 7m0 0l-7 7m7-7H3" /> </svg> </a> </div> `) } } }); } function getSearchInput(d, e) { e.preventDefault(); $(d).attr('readonly', true); $(".searchModalTrigger").click(); $("input[name=search]").focus() } // Debounce function to limit AJAX requests function debounce(func, wait) { let timeout; return function(...args) { const context = this; clearTimeout(timeout); timeout = setTimeout(() => func.apply(context, args), wait); }; } $(document).on('keyup', 'input[name=search]', debounce(function(ev) { ev.preventDefault(); const $input = $(ev.target); const $form = $input.closest('form'); const searchValue = $input.val(); const url = $input.attr('data-search-url'); const data = { search_value: searchValue }; // Find the results container - could be inside the form or outside (popup mode) let $container = $form.find('.searchDataResult').first(); if (!$container.length) { $container = $input.closest('.predictive__search--box').find('.searchDataResult').first(); } if (searchValue.length > 2 && searchValue !== '') { if ($container.length) { $container.html('<div class="p-4 text-center text-slate-400"><i class="fa fa-spinner fa-spin mr-2"></i> Searching...</div>'); } $.ajax({ headers: { 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content') }, url: url, type: 'GET', dataType: 'json', data: data, success: function(response) { if (response.status === 'success' && $container.length) { $container.html(response.data); } }, error: function(xhr) { console.error('Search error:', xhr); } }); } else { $container.empty(); } }, 300)); function numberWithCommas(x) { return x.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ","); } function viewAllSearchResults(d, ev) { ev.preventDefault(); $(".header__search--button").click(); } // Hide cookie Message hideCookieMessage function hideCookieMessage() { $('#cookieMessage').remove() } </script> <script async src='https://d2mpatx37cqexb.cloudfront.net/delightchat-whatsapp-widget/embeds/embed.min.js'></script> <script> var wa_btnSetting = { "btnColor": "#16BE45", "ctaText": "Chat With Us On WhatsApp", "cornerRadius": 40, "marginBottom": 80, "marginLeft": 20, "marginRight": 20, "btnPosition": "left", "whatsAppNumber": "254799626359", "welcomeMessage": "Hello\nI need help on Werezi Books Ecommerce", "zIndex": 999999, "btnColorScheme": "light" }; window.onload = () => { _waEmbed(wa_btnSetting); }; </script> <!-- Google tag (gtag.js) --> <script async src="https://www.googletagmanager.com/gtag/js?id=AW-11148198074"></script> <script> window.dataLayer = window.dataLayer || []; function gtag() { dataLayer.push(arguments); } gtag('js', new Date()); gtag('config', 'AW-11148198074'); </script> <!-- Page-Specific Scripts --> <!-- Minicart Toggle Handler (Fallback) --> <script> // Update mini cart quantity via AJAX function updateMiniCartQty(itemId, newQty, maxStock) { if (newQty < 1) return; if (maxStock !== undefined && newQty > maxStock) newQty = maxStock; $.ajax({ headers: { 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content') }, url: 'https://werezi.com/update-cart-ajax', type: 'POST', data: { id: itemId, quantity: newQty }, dataType: 'json', success: function(data) { // Update mini cart content $('.renderMiniCart').html(data.mini_cart_items); $('#miniCartTortal').html(data.cartTotal); $('#cartCount').html(data.cartCount); }, error: function(xhr, status, error) { console.error('Cart update failed:', error); } }); } $(document).ready(function() { // Minicart open handler $(document).on('click', '.minicart__open--btn, #minicart__btn', function(e) { e.preventDefault(); e.stopPropagation(); $('.offCanvas__minicart').addClass('active'); $('body').addClass('offCanvas__minicart_active'); }); // Minicart close handler $(document).on('click', '.minicart__close--btn', function(e) { e.preventDefault(); $('.offCanvas__minicart').removeClass('active'); $('body').removeClass('offCanvas__minicart_active'); }); // Close on overlay click $(document).on('click', function(e) { if ($('.offCanvas__minicart').hasClass('active')) { if (!$(e.target).closest('.offCanvas__minicart').length && !$(e.target).closest('.minicart__open--btn').length && !$(e.target).closest('#minicart__btn').length) { $('.offCanvas__minicart').removeClass('active'); $('body').removeClass('offCanvas__minicart_active'); } } }); }); </script> </body> </html><script src="/cdn-cgi/scripts/7d0fa10a/cloudflare-static/rocket-loader.min.js" data-cf-settings="ef4c744974981187200f7373-|49" defer></script>