Changed around line 1
- // Sample data
- const painPoints = [
+ // Pain Points Data
+ let painPoints = [
Changed around line 10: const painPoints = [
- successRate: 85
- }
+ successRate: 85,
+ },
- date: "2023-10-01"
- }
+ date: "2023-10-01",
+ },
+ {
+ id: 2,
+ name: "Disparate Systems Leading to Inefficiency",
+ scripts: [
+ {
+ id: 2,
+ title: "Unified Platform Script",
+ content:
+ "OptimizeONE consolidates all essential business tools into a single, unified platform, saving time and reducing operational costs.",
+ tone: "Professional",
+ length: "Medium",
+ successRate: 85,
+ },
+ ],
+ date: "2023-10-02",
+ },
+ {
+ id: 3,
+ name: "Difficulty Engaging Audience Across Multiple Channels",
+ scripts: [
+ {
+ id: 3,
+ title: "Engagement Optimization Script",
+ content:
+ "Ensure seamless interaction with your audience by unifying email, SMS, and social media communications through OptimizeONE.",
+ tone: "Conversational",
+ length: "Medium",
+ successRate: 82,
+ },
+ ],
+ date: "2023-10-03",
+ },
+ {
+ id: 4,
+ name: "High Cost of Operating Multiple Tools",
+ scripts: [
+ {
+ id: 4,
+ title: "Cost Efficiency Script",
+ content:
+ "Reduce subscription and training costs by consolidating multiple tools into a single platform with OptimizeONE's comprehensive functionalities.",
+ tone: "Informative",
+ length: "Short",
+ successRate: 79,
+ },
+ ],
+ date: "2023-10-04",
+ },
+ {
+ id: 5,
+ name: "Struggling to Build and Convert Leads",
+ scripts: [
+ {
+ id: 5,
+ title: "Lead Conversion Script",
+ content:
+ "Utilize OptimizeONE’s high-converting website and sales funnel builders to attract, engage, and convert leads into loyal customers.",
+ tone: "Convincing",
+ length: "Medium",
+ successRate: 88,
+ },
+ ],
+ date: "2023-10-05",
+ },
+ {
+ id: 6,
+ name: "Lack of Automation Hindering Productivity",
+ scripts: [
+ {
+ id: 6,
+ title: "Automation Efficiency Script",
+ content:
+ "Free up valuable time with OptimizeONE's robust automation tools, allowing your business to operate efficiently and effectively.",
+ tone: "Persuasive",
+ length: "Medium",
+ successRate: 84,
+ },
+ ],
+ date: "2023-10-06",
+ },
+ {
+ id: 7,
+ name: "Limited Customer Support Availability",
+ scripts: [
+ {
+ id: 7,
+ title: "24/7 Support Script",
+ content:
+ "Ensure your customers receive immediate support 24/7 with OptimizeONE's AI Employee, handling customer interactions without requiring after-hours staff.",
+ tone: "Reassuring",
+ length: "Medium",
+ successRate: 87,
+ },
+ ],
+ date: "2023-10-07",
+ },
+ {
+ id: 8,
+ name: "Inefficient Sales Conversion",
+ scripts: [
+ {
+ id: 8,
+ title: "Sales Funnel Optimization Script",
+ content:
+ "Implement OptimizeONE's sales funnel tools to streamline prospect conversion and increase sales efficiency.",
+ tone: "Persuasive",
+ length: "Short",
+ successRate: 83,
+ },
+ ],
+ date: "2023-10-08",
+ },
+ {
+ id: 9,
+ name: "Complex Payment Processes",
+ scripts: [
+ {
+ id: 9,
+ title: "Payment Simplification Script",
+ content:
+ "Simplify your transaction process with OptimizeONE’s integrated payment solutions, supporting various payment providers for ease and flexibility.",
+ tone: "Reassuring",
+ length: "Short",
+ successRate: 81,
+ },
+ ],
+ date: "2023-10-09",
+ },
+ {
+ id: 10,
+ name: "Inconsistent Branding Across Platforms",
+ scripts: [
+ {
+ id: 10,
+ title: "Brand Consistency Script",
+ content:
+ "Use OptimizeONE's Brand Boards to ensure consistent branding and unified visuals across all business communications.",
+ tone: "Informative",
+ length: "Medium",
+ successRate: 80,
+ },
+ ],
+ date: "2023-10-10",
+ },
+ {
+ id: 11,
+ name: "Time-Consuming Customer Onboarding",
+ scripts: [
+ {
+ id: 11,
+ title: "Onboarding Streamline Script",
+ content:
+ "Streamline your onboarding with OptimizeONE’s automated workflows and task management tools.",
+ tone: "Efficient",
+ length: "Short",
+ successRate: 86,
+ },
+ ],
+ date: "2023-10-11",
+ },
+ {
+ id: 12,
+ name: "Limited Insight into Performance Metrics",
+ scripts: [
+ {
+ id: 12,
+ title: "Performance Insight Script",
+ content:
+ "Leverage OptimizeONE's custom dashboards to track key performance indicators and make data-driven decisions.",
+ tone: "Analytical",
+ length: "Short",
+ successRate: 82,
+ },
+ ],
+ date: "2023-10-12",
+ },
+ {
+ id: 13,
+ name: "Difficulty Managing Team Schedules",
+ scripts: [
+ {
+ id: 13,
+ title: "Schedule Management Script",
+ content:
+ "OptimizeONE’s team and calendar management tools keep your team organized and appointments synchronized.",
+ tone: "Organized",
+ length: "Medium",
+ successRate: 84,
+ },
+ ],
+ date: "2023-10-13",
+ },
+ {
+ id: 14,
+ name: "Lack of Customer Feedback Integration",
+ scripts: [
+ {
+ id: 14,
+ title: "Feedback Integration Script",
+ content:
+ "Use OptimizeONE’s online forms, quizzes, and surveys to capture and integrate valuable customer insights.",
+ tone: "Interactive",
+ length: "Medium",
+ successRate: 80,
+ },
+ ],
+ date: "2023-10-14",
+ },
+ {
+ id: 15,
+ name: "Manual Task Overload",
+ scripts: [
+ {
+ id: 15,
+ title: "Task Automation Script",
+ content:
+ "Automate routine tasks with OptimizeONE's workflow automations to enhance productivity and focus on strategic initiatives.",
+ tone: "Efficient",
+ length: "Short",
+ successRate: 89,
+ },
+ ],
+ date: "2023-10-15",
+ },
- const painPointsList = document.getElementById('painPointsList');
- const searchInput = document.getElementById('searchInput');
- const searchButton = document.getElementById('searchButton');
- const scriptModal = document.getElementById('scriptModal');
- const scriptDetails = document.getElementById('scriptDetails');
- const closeModal = document.querySelector('.close');
+ const painPointsList = document.getElementById("painPointsList");
+ const searchInput = document.getElementById("searchInput");
+ const searchButton = document.getElementById("searchButton");
+ const scriptModal = document.getElementById("scriptModal");
+ const scriptDetails = document.getElementById("scriptDetails");
+ const closeModal = document.querySelector(".close");
- painPointsList.innerHTML = painPoints.map(point => `
+ painPointsList.innerHTML = painPoints
+ .map(
+ (point) => `
- `).join('');
+ `,
+ )
+ .join("");
- const point = painPoints.find(p => p.id === pointId);
+ const point = painPoints.find((p) => p.id === pointId);
- scriptDetails.innerHTML = point.scripts.map(script => `
+ scriptDetails.innerHTML = point.scripts
+ .map(
+ (script) => `
Changed around line 278: function showScriptDetails(pointId) {
- `).join('');
- scriptModal.style.display = 'block';
+ `,
+ )
+ .join("");
+ scriptModal.style.display = "block";
- document.addEventListener('DOMContentLoaded', displayPainPoints);
-
- painPointsList.addEventListener('click', (e) => {
- const point = e.target.closest('.pain-point');
+ document.addEventListener("DOMContentLoaded", displayPainPoints);
+ painPointsList.addEventListener("click", (e) => {
+ const point = e.target.closest(".pain-point");
-
- closeModal.addEventListener('click', () => {
- scriptModal.style.display = 'none';
+ closeModal.addEventListener("click", () => {
+ scriptModal.style.display = "none";
-
- window.addEventListener('click', (e) => {
+ window.addEventListener("click", (e) => {
- scriptModal.style.display = 'none';
+ scriptModal.style.display = "none";
-
- searchButton.addEventListener('click', () => {
+ searchButton.addEventListener("click", () => {
- const filteredPoints = painPoints.filter(point =>
- point.name.toLowerCase().includes(searchTerm)
+ const filteredPoints = painPoints.filter((point) =>
+ point.name.toLowerCase().includes(searchTerm),
- painPointsList.innerHTML = filteredPoints.map(point => `
+ painPointsList.innerHTML = filteredPoints
+ .map(
+ (point) => `
- `).join('');
- });
+ `,
+ )
+ .join("");
+ });