Employee Handbook Generator
Run ID: 69cd227c3e7fb09ff16a84122026-04-01HR
PantheraHive BOS
BOS Dashboard

Generate a comprehensive employee handbook with company policies, benefits overview, code of conduct, leave policies, and compliance sections.

As part of the "Employee Handbook Generator" workflow, this document details the comprehensive requirements analysis for generating a professional, customizable employee handbook. This analysis covers the core content requirements, proposed design specifications, and user experience recommendations for the generator tool itself, ensuring a robust and intuitive solution.


1. Project Overview: Employee Handbook Generator

The objective is to develop an Employee Handbook Generator that enables organizations to create a comprehensive, tailored, and legally compliant employee handbook. The generator will guide users through various sections, allowing for customization of policies, benefits, code of conduct, leave policies, and compliance statements, ultimately producing a professional, ready-to-distribute document.

This step focuses on defining the "what" and "how" from a user and design perspective for the generator tool.


2. Core Requirements Analysis: Handbook Content & Customization

The generator must support the creation of a handbook with the following key sections, each requiring specific user inputs and customization options:

2.1. Introduction & Welcome

  • Purpose: Welcome message, company mission/vision, handbook purpose, at-will employment statement.
  • Customization Points:

* Company Name, Logo, Mission Statement, Vision Statement.

* Custom Welcome Message text field.

* Jurisdiction-specific "at-will" employment clauses (checkbox/toggle with editable text).

2.2. Company Policies & Culture

  • Purpose: Define the workplace environment, expectations, and operational guidelines.
  • Key Policies:

* Equal Employment Opportunity (EEO) & Anti-Discrimination.

* Harassment Policy (Sexual, Workplace, etc.).

* Workplace Safety & Health.

* Drug-Free Workplace.

* Data Privacy & Confidentiality.

* Social Media Usage.

* Work Hours & Scheduling.

* Remote Work Policy (if applicable).

* Dress Code.

* Company Property Use.

  • Customization Points:

* Pre-written templates for each policy, with editable text fields for specific details (e.g., reporting procedures, contact persons, specific examples).

* Checkboxes to include/exclude specific policies.

* Dropdowns for policy variations (e.g., strict vs. business casual dress code).

2.3. Code of Conduct & Ethics

  • Purpose: Outline expected behavior, ethical standards, and professional integrity.
  • Key Sections:

* Professionalism & Respect.

* Conflict of Interest.

* Gifts & Entertainment.

* Confidential Information & Trade Secrets.

* Reporting Misconduct (Whistleblower Policy).

  • Customization Points:

* Editable policy statements with placeholder fields for company-specific examples or contact information.

* Option to upload a separate Code of Ethics document.

2.4. Compensation & Benefits Overview

  • Purpose: Provide a high-level summary of employee compensation structure and benefits offerings.
  • Key Sections:

* Pay Periods & Overtime.

* Performance Reviews.

* Health & Dental Insurance (brief overview, refer to plan documents).

* Retirement Plans (e.g., 401k, pension).

* Life & Disability Insurance.

* Other Benefits (e.g., wellness programs, tuition reimbursement, employee assistance programs).

  • Customization Points:

* Input fields for pay frequency, performance review cycles.

* Checkboxes for available benefits.

* Brief editable text fields to describe each benefit, with a clear disclaimer to refer to official plan documents.

* Option to upload links or PDFs of detailed benefit summaries.

2.5. Leave Policies & Time Off

  • Purpose: Detail various types of leave and time-off provisions.
  • Key Policies:

* Paid Time Off (PTO) / Vacation / Sick Leave.

* Holidays (Company Observed).

* Family and Medical Leave Act (FMLA) / State-specific leave.

* Bereavement Leave.

* Jury Duty Leave.

* Military Leave.

* Voting Leave.

  • Customization Points:

* Input fields for accrual rates, maximums, carry-over rules for PTO/Vacation/Sick Leave.

* Editable list of company holidays.

* Jurisdiction selection (e.g., US Federal, California, etc.) to auto-populate relevant FMLA/State leave policies.

* Editable text for specific company policies on bereavement, jury duty, etc.

2.6. Compliance & Legal Disclaimers

  • Purpose: Ensure the handbook meets legal requirements and includes necessary disclaimers.
  • Key Sections:

* Disclaimer that the handbook is not a contract.

* Policy Modification Rights.

* Acknowledgement of Receipt (optional section).

* State/Federal specific legal notices.

  • Customization Points:

* Pre-written legal disclaimers with options for minor edits.

* Checkbox to include an Acknowledgement of Receipt form (printable/digital).

* Dropdown for legal jurisdiction to ensure relevant compliance statements are included.

2.7. General Customization & Branding

  • Output Format: PDF (primary), Word Document (secondary).
  • Branding: Ability to upload company logo, specify primary and secondary brand colors for headers/accents.
  • Table of Contents: Automatically generated and hyperlinked in PDF.
  • Version Control: Option to add a version number and effective date.

3. Design Specifications

The design for the Employee Handbook Generator will prioritize clarity, professionalism, and ease of use.

3.1. User Interface (UI) Design Principles

  • Clean & Uncluttered: Minimalist design to reduce cognitive load.
  • Intuitive Navigation: Clear progress indicators and logical flow.
  • Responsive: Adaptable across various devices (desktop, tablet).
  • Accessible: Adherence to WCAG 2.1 guidelines (contrast, keyboard navigation).
  • Professional & Trustworthy: Reflects the serious nature of an employee handbook.

3.2. Wireframe Descriptions (Multi-Step Wizard Approach)

The generator will operate as a multi-step wizard, guiding the user through the handbook creation process.

Screen 1: Welcome & Basic Company Information

  • Layout: Centralized content area.
  • Elements:

* Welcome message and brief explanation of the tool.

* Input fields for: Company Name, Company Logo upload (drag-and-drop or browse), Industry.

* Dropdown for Primary Legal Jurisdiction (e.g., "United States - Federal," "Canada - Ontario," "United Kingdom").

* "Next" button.

  • Purpose: Collect foundational information and set the stage.

Screen 2-5: Policy & Section Configuration (Iterative)

  • Layout: Left-hand navigation/progress bar showing steps (e.g., "Introduction," "Company Policies," "Benefits," "Leave," "Compliance," "Review").

* Main content area for current section.

* "Previous" and "Next" buttons at the bottom.

  • Elements (per section):

* Section Title & Description: Clearly states the purpose of the current section.

* Policy Cards/Modules: Each policy within a section (e.g., "EEO Policy," "Harassment Policy") will have its own expandable card or module.

* Toggle/Checkbox: To include or exclude the policy.

* Editable Text Area: For policy content, pre-populated with best-practice templates. Rich text editor features (bold, italics, bullet points, links).

* Placeholder Tags: Clearly visible tags (e.g., [Company Name], [HR Contact]) that the user can fill in or which are auto-filled from Screen 1.

* Help Text/Tooltips: Explanations for complex legal terms or customization options.

* Add Custom Policy (Optional): Button to add a completely new policy text field.

  • Purpose: Allow detailed configuration and customization of each handbook section.

Screen 6: Branding & Final Touches

  • Layout: Similar to policy screens, with branding options.
  • Elements:

* Color Picker: For primary and secondary brand colors (hex code input or color palette selection).

* Typography Selection: Dropdowns for header font and body font (limited professional options).

* Version & Date Inputs: Fields for "Handbook Version" and "Effective Date."

* Output Format Selection: Radio buttons for PDF (default) or Word Document.

* "Previous," "Review Handbook," and "Generate Handbook" buttons.

  • Purpose: Apply branding and final metadata before generation.

Screen 7: Review & Generate

  • Layout: Full-page preview area.
  • Elements:

* Interactive Preview: A scrollable, near-final rendering of the handbook. Users can click on sections in a generated Table of Contents to jump to specific parts.

* Edit Section Buttons: Small "Edit" icons next to each section title in the preview, linking back to the relevant step in the wizard.

* "Generate Handbook" and "Download Handbook" buttons (after generation).

* "Go Back to Edit" button.

  • Purpose: Allow users to review the complete handbook before final generation and download.

Screen 8: Download & Confirmation

  • Layout: Success message.
  • Elements:

* "Congratulations! Your Employee Handbook is Ready."

* Download button for the generated PDF/DOCX.

* Option to save the configuration for future edits.

* "Start New Handbook" or "Go to Dashboard" buttons.

  • Purpose: Provide the final output and options for next actions.

3.3. Color Palette Recommendations

A professional, approachable, and trustworthy palette is essential.

  • Primary Brand Color: #0056B3 (Deep Ocean Blue) - Represents trust, stability, professionalism. Used for primary buttons, active states, main headings.
  • Secondary Accent Color: #28A745 (Success Green) or #FFC107 (Warning Yellow) - Used for success messages, highlights, or secondary action buttons.
  • Neutral Palette:

* Backgrounds: #F8F9FA (Light Gray) - Clean, subtle background.

* Text (Primary): #343A40 (Dark Gray) - Highly readable body text.

* Text (Secondary/Labels): #6C757D (Medium Gray) - For helper text, labels, inactive states.

* Borders/Dividers: #E9ECEF (Lighter Gray) - Subtle separation.

  • Error/Alert: #DC3545 (Danger Red) - For validation errors or critical alerts.

3.4. Typography

  • Headings (H1, H2, H3): Open Sans Bold - Modern, clear, and professional.
  • Body Text: Open Sans Regular - Highly readable, widely available, and clean.
  • Font Sizes: Varied for hierarchy; e.g., H1 (2.5rem), H2 (2rem), H3 (1.75rem), Body (1rem), Small Text (0.875rem).
  • Line Height: 1.5-1.6 for body text to improve readability.

3.5. Imagery & Iconography

  • Style: Flat or subtly outlined icons. Consistent style throughout.
  • Purpose: To visually represent actions (e.g., upload, edit, download), indicate policy status (included/excluded), and enhance navigation.
  • Examples: Checkmarks for selected policies, pencil icons for editing, cloud icon for upload, download arrow for output.

4. User Experience (UX) Recommendations

4.1. Workflow & User Journey

  • Wizard-Based Approach: A clear, step-by-step wizard ensures users don't miss any critical sections.
  • Save & Resume: Allow users to save their progress at any point and return later.
  • Dynamic Content: Policies and options should dynamically adjust based on initial selections (e.g., legal jurisdiction).
  • Clear Progress Indicator: A visual progress bar or breadcrumbs showing current step and overall progress.

4.2. Feedback & Guidance

  • Inline Validation: Provide immediate feedback on input fields (e.g., "Company Name is required").
  • Contextual Help: Tooltips, info icons (i), and expandable sections to explain legal terms or best practices.
  • Pre-populated Templates: Offer robust, legally sound default text for policies, minimizing the need for extensive user input while allowing for customization.
  • Warning Messages: Alert users to potentially risky policy exclusions or omissions.
  • Success Messages: Clearly confirm successful actions (e.g., "Policy Saved," "Handbook Generated").

4.3. Accessibility

  • Keyboard Navigation: Ensure all interactive elements are reachable and operable via keyboard.
  • Screen Reader Compatibility: Use semantic HTML and ARIA attributes.
  • Color Contrast: Adhere to WCAG 2.1 AA standards for text and interactive elements.
  • Clear Labels: All input fields and buttons must have descriptive labels.

4.4. Output & Review

  • Real-time Preview (or near real-time): As much as possible, show how changes will appear
gemini Output

Here is a comprehensive, detailed, and professional employee handbook, ready for publishing. This document outlines key policies, benefits, and expectations to ensure a clear and productive work environment for all employees at [Company Name].


Employee Handbook: Your Guide to Success at [Company Name]

Welcome to [Company Name]!

Dear Valued Employee,

On behalf of the entire leadership team, we extend a warm welcome to you as a member of the [Company Name] family! We are thrilled to have you join us and look forward to your contributions to our continued success.

This Employee Handbook is designed to be your comprehensive guide to our company's policies, procedures, benefits, and expectations. It reflects our commitment to fostering a positive, productive, and fair workplace where everyone can thrive. By understanding and adhering to the guidelines outlined herein, you contribute directly to our collective success and maintain the high standards that define [Company Name].

We believe that our employees are our greatest asset, and we are dedicated to providing an environment that supports your professional growth and personal well-being. We encourage you to read this handbook carefully, as it contains important information that will help you navigate your journey with us.

If you have any questions or require clarification on any policy, please do not hesitate to reach out to your manager or the Human Resources Department.

Welcome aboard! We are excited about what we will achieve together.

Sincerely,

The Leadership Team

[Company Name]


1. About Our Company

Our Mission

[Company Name]'s mission is to [Insert Company Mission Statement - e.g., "innovate solutions that empower our customers, foster a collaborative environment for our employees, and contribute positively to our community."].

Our Vision

Our vision is to [Insert Company Vision Statement - e.g., "be the leading provider of [industry/service] by consistently delivering exceptional value and service."].

Our Core Values

At [Company Name], our values guide our actions and define our culture:

  • Integrity: We operate with honesty, transparency, and ethical conduct in all our dealings.
  • Excellence: We strive for the highest standards in everything we do, continuously seeking improvement.
  • Collaboration: We believe in the power of teamwork, respect diverse perspectives, and work together to achieve common goals.
  • Innovation: We embrace creativity, encourage new ideas, and adapt to change to drive progress.
  • Customer Focus: We are dedicated to understanding and exceeding the expectations of our customers.
  • Respect: We treat everyone with dignity, valuing individual differences and contributions.

2. Employment Basics

2.1 Equal Employment Opportunity (EEO)

[Company Name] is an Equal Opportunity Employer. We are committed to creating a diverse and inclusive workplace where all employees and applicants are treated with respect and dignity, free from discrimination. We do not discriminate on the basis of race, color, religion, sex (including pregnancy, gender identity, and sexual orientation), national origin, age, disability, genetic information, veteran status, or any other legally protected status. This policy applies to all aspects of employment, including recruitment, hiring, promotions, transfers, compensation, benefits, training, and termination.

2.2 Employment At-Will

Employment with [Company Name] is "at-will." This means that either the employee or the company may terminate the employment relationship at any time, for any reason, with or without cause or notice, subject to applicable laws. Nothing in this handbook is intended to create a contract of employment, express or implied, between [Company Name] and any employee.

2.3 Employee Classifications

Employees are generally classified as follows:

  • Full-Time Exempt: Employees who regularly work 40 or more hours per week and meet the criteria for exemption from overtime pay under federal and state wage and hour laws.
  • Full-Time Non-Exempt: Employees who regularly work 40 or more hours per week and are eligible for overtime pay.
  • Part-Time Non-Exempt: Employees who regularly work less than 40 hours per week and are eligible for overtime pay for hours worked over 40 in a workweek (if applicable by law).
  • Temporary/Contract: Individuals hired for a specific period or project, often through a third-party agency. These individuals may not be eligible for certain company benefits.

2.4 Work Hours and Attendance

Our standard workweek is [e.g., Monday through Friday, 9:00 AM to 5:00 PM], totaling [e.g., 40] hours. Specific work schedules may vary by department or role. Employees are expected to arrive on time, be prepared to work, and remain at their workstations for their scheduled hours, excluding approved breaks. Punctuality and consistent attendance are essential for operational efficiency.

  • Reporting Absences: If you are unable to come to work due to illness or other unforeseen circumstances, you must notify your manager as early as possible, ideally at least [e.g., two hours] before your scheduled start time.
  • Breaks and Meal Periods: Employees are provided with appropriate break and meal periods as required by federal and state law. Your manager will provide specific guidelines for your department.

2.5 Personnel Records

It is crucial that your personnel records are accurate and up-to-date. Please notify the HR Department promptly of any changes to your:

  • Legal name
  • Address
  • Telephone number
  • Emergency contact information
  • Marital status
  • Number of dependents
  • Beneficiary designations

3. Workplace Conduct & Expectations

3.1 Code of Conduct

[Company Name] expects all employees to uphold the highest standards of professionalism, integrity, and ethical behavior. Our Code of Conduct is built on mutual respect, honesty, and accountability.

  • Respectful Workplace: Treat colleagues, customers, vendors, and all others with courtesy and respect.
  • Honesty and Integrity: Be truthful in all business dealings and avoid any actions that could be perceived as dishonest or unethical.
  • Compliance with Laws: Adhere to all applicable federal, state, and local laws and regulations.
  • Company Property: Use company property and resources responsibly and only for legitimate business purposes.
  • Conflict of Interest: Avoid situations where personal interests could conflict with the best interests of [Company Name]. Disclose any potential conflicts to your manager or HR.

3.2 Harassment and Discrimination Policy

[Company Name] is committed to providing a workplace free from all forms of harassment and discrimination. We strictly prohibit harassment based on race, color, religion, sex (including pregnancy, gender identity, and sexual orientation), national origin, age, disability, genetic information, veteran status, or any other legally protected characteristic. This includes verbal, physical, or visual harassment.

  • Reporting Procedure: If you experience or witness harassment or discrimination, you are encouraged to report it immediately to your manager, the HR Department, or any member of management. All complaints will be investigated promptly and thoroughly, with appropriate corrective action taken.
  • No Retaliation: [Company Name] prohibits retaliation against any employee who reports harassment or discrimination in good faith or participates in an investigation.

3.3 Workplace Violence Policy

[Company Name] is committed to maintaining a safe working environment free from violence, threats, and intimidation. Any act or threat of violence, including verbal threats, physical assaults, or property damage, will not be tolerated.

  • Reporting Procedure: All employees are responsible for reporting any threats, acts of violence, or suspicious behavior immediately to their manager, HR, or security personnel.
  • Zero Tolerance: Violations of this policy will result in immediate disciplinary action, up to and including termination of employment and potential legal action.

3.4 Drug-Free Workplace Policy

[Company Name] is committed to providing a safe, healthy, and productive work environment. The unlawful manufacture, distribution, dispensation, possession, or use of controlled substances or alcohol in the workplace or while on company business is strictly prohibited. Employees are also prohibited from working under the influence of illegal drugs or alcohol.

3.5 Confidentiality and Data Security

During your employment, you may have access to confidential and proprietary information belonging to [Company Name], our customers, or partners. This includes, but is not limited to, financial data, trade secrets, customer lists, marketing strategies, product development, and employee information.

  • Protection of Information: All employees are required to protect such information and not disclose it to unauthorized individuals or use it for personal gain.
  • Data Security: Adhere to all company policies regarding data security, password protection, and the use of company systems.

3.6 Use of Company Property and Resources

Company property, including computers, software, vehicles, tools, and supplies, is provided for business use. While incidental personal use may be permitted with manager approval, employees must ensure that such use does not interfere with job duties, violate company policies, or incur significant costs to the company.

3.7 Social Media Policy

Employees are encouraged to use good judgment and common sense when participating in social media. When identifying yourself as an employee of [Company Name] online, remember that you are representing the company. Avoid posting confidential information, disparaging remarks about the company, colleagues, or customers, or engaging in any online activity that could negatively impact [Company Name]'s reputation.

3.8 Dress Code

Employees are expected to dress in a manner that is appropriate for a professional business environment and their specific job duties. Your manager will provide specific guidelines for your department. Generally, clothing should be neat, clean, and in good repair.

3.9 Ethics and Integrity

Every employee is expected to act with the highest degree of ethics and integrity. This includes avoiding conflicts of interest, not accepting inappropriate gifts or favors, and reporting any unethical behavior witnessed.


4. Compensation & Benefits

4.1 Pay Periods and Direct Deposit

Employees are paid [e.g., bi-weekly] on [e.g., Friday]. Paychecks are issued via direct deposit to your designated bank account. You can view your pay stubs and year-to-date information through our online payroll portal.

4.2 Overtime Policy (for Non-Exempt Employees)

Non-exempt employees are eligible for overtime pay at one and one-half times their regular rate of pay for all hours worked over 40 in a single workweek. All overtime must be pre-approved by your manager.

4.3 Performance Reviews and Salary Adjustments

Regular performance reviews are conducted to provide feedback on job performance, discuss career development, and set goals. Salary adjustments are typically considered annually based on individual performance, company performance, and market conditions.

4.4 Health & Wellness Benefits

[Company Name] is proud to offer a comprehensive benefits package designed to support the health and well-being of our employees and their families. Eligibility for benefits typically begins on the first day of the month following [e.g., 30 days] of employment.

  • Medical Insurance: [Brief description, e.g., "Choice of PPO and HMO plans with prescription drug coverage."].
  • Dental Insurance: [Brief description, e.g., "Comprehensive dental coverage for preventative and restorative care."].
  • Vision Insurance: [Brief description, e.g., "Coverage for eye exams, glasses, and contact lenses."].
  • Employee Assistance Program (EAP): Confidential counseling and referral services for personal and work-related issues.
  • Wellness Programs: [e.g., "On-site fitness classes, health screenings, and wellness challenges."].

4.5 Retirement Plans

  • 401(k) Plan: [Company Name] offers a 401(k) retirement savings plan with a company match [e.g., "of 100% on the first 3% contributed, and 50% on the next 2% contributed."]. Employees are eligible to enroll after [e.g., 90 days] of employment.

4.6 Life & Disability Insurance

  • Company-Paid Life Insurance: [Company Name] provides basic life insurance coverage for all eligible full-time employees.
  • Voluntary Life Insurance: Employees may purchase additional life insurance coverage for themselves and their dependents.
  • Short-Term Disability (STD): Provides income replacement for a limited period if you are unable to work due to a non-work-related illness or injury.
  • Long-Term Disability (LTD): Provides income replacement for extended periods of disability.

4.7 Other Benefits

  • Tuition Reimbursement: Support for employees pursuing further education relevant to their role or career development.
  • Professional Development: Opportunities for training, workshops, and conferences.
  • Employee Discount Programs: [If applicable, e.g., "Discounts on company products/services or through partner vendors."].

For detailed information on all benefits, including eligibility requirements and enrollment procedures, please refer to the official plan documents available from the HR Department or through our benefits portal.


5. Leave Policies

5.1 Paid Time Off (PTO) / Vacation

[Company Name] provides a combined Paid Time Off (PTO) bank that can be used for vacation, personal appointments, or minor illnesses.

  • Accrual: PTO accrues on a [e.g., bi-weekly] basis, starting from your date of hire.
  • Accrual Rate:

* Years 0-2: [e.g., 10 days] per year

* Years 3-5: [e.g., 15 days] per year

* Years 6+: [e.g., 20 days] per year

  • Usage: PTO requests should be submitted to your manager at least [e.g., two weeks] in advance for approval.
  • Carryover: Employees may carry over up to [e.g., 40 hours] of unused PTO into the next calendar year.

5.2 Sick Leave

In addition to PTO, employees accrue separate sick leave for personal illness or to care for an ill family member, as required by state and local laws.

  • Accrual: [e.g., 1 hour for every 30 hours worked, up to 40 hours per year].
  • Usage: Sick leave should be used for legitimate health-related reasons. Notification to your manager is required as soon as possible. A doctor's note may be required for extended absences.

5.3 Holidays

[Company Name] observes the following paid holidays:

  • New Year's Day
  • Martin Luther King, Jr. Day
  • Memorial Day
  • Independence Day
  • Labor Day
  • Thanksgiving Day
  • Day after Thanksgiving
  • Christmas Day
  • [Add any other company-specific holidays, e.g., one floating holiday]

5.4 Family and Medical Leave Act (FMLA)

Eligible employees may take up to 12 weeks of unpaid, job-protected leave per year for specific family and medical reasons, as defined by the FMLA. These reasons include:

  • The birth of a child and to care for the newborn child within one year of birth.
  • The placement with the employee of a child for adoption or foster care and to care for the newly placed child within one year of placement.
  • To care for the employee’s spouse, child, or parent who has a serious health condition.
  • A serious health condition that makes the employee unable
gemini Output

The following comprehensive Employee Handbook template has been generated to provide a foundational structure for your company's policies, procedures, and expectations. This output is designed to be detailed, professional, and actionable, serving as a robust starting point for your organization.


Employee Handbook

Last Updated: [Date]

Version: [e.g., 1.0]


Welcome Message

Dear [Company Name] Team Member,

Welcome to [Company Name]! We are thrilled to have you join our team and embark on this journey with us. This Employee Handbook is your essential guide to understanding our company culture, policies, and the expectations we have for every team member.

At [Company Name], we believe that our success is built upon the dedication, talent, and collaboration of our employees. We are committed to fostering a positive, inclusive, and productive work environment where everyone feels valued, respected, and empowered to contribute their best.

Please take the time to read this handbook thoroughly. It outlines important information regarding your employment, benefits, workplace conduct, and our commitment to compliance with all applicable laws. While this handbook provides a comprehensive overview, it is not an exhaustive list of all policies or terms of employment. It is a guide to help you navigate your role and understand the principles that govern our workplace.

We encourage you to ask questions if anything is unclear. Your manager, Human Resources, or a member of the leadership team is always available to provide clarification.

Thank you for being a part of [Company Name]. We look forward to achieving great things together!

Sincerely,

[CEO/Leadership Team Name]

[Company Name]


1. About Our Company

This section provides an overview of [Company Name]'s identity, values, and commitment to its mission.

1.1 Our Mission, Vision, and Values

  • Mission Statement: [Insert Company's Mission Statement - e.g., To empower businesses with innovative technology solutions that drive growth and efficiency.]
  • Vision Statement: [Insert Company's Vision Statement - e.g., To be the leading provider of enterprise software, recognized for our cutting-edge products and exceptional customer service.]
  • Core Values:

* Integrity: We act with honesty and strong moral principles.

* Innovation: We continuously seek new and better ways to solve challenges.

* Collaboration: We believe in teamwork and mutual support to achieve common goals.

* Excellence: We strive for the highest standards in everything we do.

* Customer Focus: We put our customers at the center of our decisions.

1.2 Company History and Culture

  • Brief History: [Provide a brief overview of the company's founding, key milestones, and growth.]
  • Company Culture: Describe the desired workplace atmosphere – e.g., collaborative, innovative, supportive, results-oriented, customer-centric. Emphasize teamwork, open communication, and respect.

2. Employment Basics

This section covers fundamental aspects of employment at [Company Name].

2.1 Employment-at-Will Statement

  • Employment with [Company Name] is "at-will." This means that either the employee or the company can terminate the employment relationship at any time, with or without cause, and with or without notice, subject to applicable laws. This policy cannot be modified except in writing, signed by an authorized company representative.

2.2 Equal Employment Opportunity (EEO)

  • [Company Name] is an Equal Opportunity Employer. We are committed to providing equal employment opportunities to all individuals regardless of race, color, religion, sex, sexual orientation, gender identity, national origin, age, disability, veteran status, or any other legally protected characteristic. This commitment applies to all aspects of employment, including recruitment, hiring, training, promotion, compensation, benefits, and termination.

2.3 Anti-Discrimination and Harassment Policy

  • [Company Name] strictly prohibits discrimination and harassment of any kind, including sexual harassment. This policy applies to all employees, contractors, vendors, and visitors.
  • Harassment Definition: Unwelcome conduct based on a protected characteristic that creates an intimidating, hostile, or offensive work environment.
  • Reporting Procedure: Employees who experience or witness discrimination or harassment are strongly encouraged to report it immediately to their manager, Human Resources, or any member of the leadership team. All reports will be investigated promptly and confidentially to the extent possible, and appropriate corrective action will be taken. Retaliation against anyone who reports discrimination or harassment or participates in an investigation is strictly prohibited.

2.4 Accommodation for Disabilities (ADA Compliance)

  • [Company Name] complies with the Americans with Disabilities Act (ADA) and similar state laws. We are committed to providing reasonable accommodations to qualified individuals with disabilities unless doing so would cause undue hardship.
  • Requesting Accommodation: Employees needing an accommodation should contact Human Resources to initiate a confidential discussion and interactive process.

2.5 Confidentiality and Data Privacy

  • Employees are required to maintain the strict confidentiality of company proprietary information, trade secrets, customer data, employee data, and other sensitive information. This obligation continues even after employment ends.
  • Employees must adhere to all company policies and procedures regarding data security and privacy, including those related to GDPR, CCPA, HIPAA, or other relevant regulations, if applicable.

2.6 Background Checks and Onboarding

  • All offers of employment are contingent upon the successful completion of a background check, which may include criminal history, education verification, and employment references.
  • New hires must complete all required onboarding paperwork, including Form I-9 for employment eligibility verification, within the specified legal timeframes.

3. Workplace Conduct & Expectations

This section outlines the standards of behavior and professionalism expected from all employees.

3.1 Code of Conduct and Ethics

  • Employees are expected to conduct themselves professionally, ethically, and with integrity in all work-related activities.
  • Adhere to all company policies, procedures, and applicable laws and regulations.
  • Treat colleagues, customers, partners, and vendors with respect and courtesy.
  • Avoid conflicts of interest and situations that could compromise your objectivity or the company's reputation.

3.2 Professionalism and Respectful Workplace

  • Maintain a positive and respectful attitude towards all colleagues, customers, and business partners.
  • Engage in constructive communication and conflict resolution.
  • Refrain from gossip, disruptive behavior, or any actions that undermine team morale.

3.3 Dress Code

  • [Company Name] expects employees to dress in a manner that is appropriate for our professional work environment and reflective of our company's image.
  • General Guidelines: [e.g., Business casual attire is generally appropriate. Specific departments or roles may have more formal requirements. Clothing should be neat, clean, and well-maintained.]
  • [Specify any forbidden attire, e.g., overly revealing clothing, clothing with offensive slogans.]

3.4 Conflict of Interest

  • Employees must avoid any situation where their personal interests conflict, or appear to conflict, with the best interests of [Company Name].
  • Disclose any potential conflicts of interest to your manager or Human Resources immediately. This includes outside employment, financial interests in competitors or vendors, or accepting gifts that could influence business decisions.

3.5 Drug and Alcohol-Free Workplace

  • [Company Name] is committed to maintaining a safe, healthy, and productive work environment. The use, possession, distribution, or being under the influence of illegal drugs or alcohol on company premises or during work hours is strictly prohibited.
  • Employees may be subject to drug and alcohol testing in accordance with applicable laws and company policy.

3.6 Workplace Safety and Health

  • [Company Name] is dedicated to providing a safe and healthy work environment for all employees, complying with OSHA standards and other relevant safety regulations.
  • Employees are responsible for adhering to all safety rules and procedures, reporting hazards, and using personal protective equipment (PPE) when required.
  • Report all workplace accidents, injuries, or near-misses immediately to your manager and/or Human Resources.

3.7 Workplace Violence Prevention

  • [Company Name] has a zero-tolerance policy for workplace violence. Threats, intimidation, harassment, or any acts of violence will not be tolerated.
  • Report any concerns about potential violence or threatening behavior immediately to your manager or Human Resources.

3.8 Attendance and Punctuality

  • Regular and punctual attendance is an essential function of every job at [Company Name].
  • Employees are expected to adhere to their scheduled work hours and notify their supervisor in advance of any anticipated tardiness or absence.
  • Repeated unexcused absences or tardiness may result in disciplinary action.

4. Compensation & Benefits

This section provides an overview of how employees are compensated and the benefits offered.

4.1 Pay Periods and Methods

  • Pay Frequency: Employees are paid [e.g., bi-weekly, semi-monthly] on [e.g., Friday, the 15th and 30th of each month].
  • Pay Method: Wages are paid via [e.g., direct deposit. Paper checks are available upon request/in exceptional circumstances].
  • Timesheets: [If applicable, describe timesheet submission requirements and deadlines.]

4.2 Overtime Policy

  • Non-exempt employees are eligible for overtime pay at a rate of one-and-one-half times their regular rate of pay for all hours worked over 40 in a workweek, in accordance with federal and state laws.
  • All overtime must be pre-approved by a supervisor. Unauthorized overtime may result in disciplinary action.
  • Exempt employees are not eligible for overtime pay.

4.3 Benefits Overview

  • [Company Name] offers a comprehensive benefits package designed to support the health and well-being of our employees.
  • Health Insurance: [Briefly describe - e.g., Medical, Dental, and Vision plans with employer contribution.]
  • Life Insurance: [Briefly describe - e.g., Company-paid basic life insurance.]
  • Disability Insurance: [Briefly describe - e.g., Short-term and Long-term disability coverage.]
  • Retirement Plans: [e.g., 401(k) plan with employer matching contributions after a waiting period.]
  • Employee Assistance Program (EAP): [Briefly describe - e.g., Confidential counseling and referral services for personal and work-related issues.]

4.4 Paid Time Off (PTO) & Company Holidays

  • Paid Time Off (PTO): [Briefly describe - e.g., A combined bank of hours for vacation, sick leave, and personal time. Specific accrual rates and usage policies are detailed in Section 5.]
  • Company Holidays: [List observed paid holidays, e.g., New Year's Day, Memorial Day, Independence Day, Labor Day, Thanksgiving Day, Christmas Day, etc. Note if floating holidays are offered.]

4.5 Other Perks

  • Professional Development: [e.g., Opportunities for training, workshops, and tuition reimbursement for approved courses.]
  • Employee Recognition Programs: [e.g., Awards, bonuses, or other forms of recognition for outstanding performance.]
  • [List any other company-specific perks, e.g., wellness programs, gym membership discounts, commuter benefits, company-sponsored events.]

5. Leave Policies

This section details the various types of leave available to employees.

5.1 Vacation Leave / PTO

  • Accrual: [Describe how PTO/vacation is accrued, e.g., X hours per pay period, based on years of service.]
  • Usage: [e.g., Employees must request vacation time in advance and obtain supervisor approval. Minimum/maximum days for requests. Blackout periods if any.]
  • Carryover/Cash-out: [Policy on carrying over unused PTO to the next year, or cashing out upon termination.]

5.2 Sick Leave / Paid Sick Leave

  • Accrual: [Describe how sick leave is accrued, e.g., X hours per pay period, in compliance with state/local laws.]
  • Usage: For personal illness, injury, medical appointments, or caring for a sick family member.
  • Notification: Employees must notify their supervisor as soon as possible, preferably [e.g., at least 2 hours] before their scheduled start time.
  • [Mention any requirements for doctor's notes for extended absences.]

5.3 Bereavement Leave

  • Eligibility: Employees are eligible for [e.g., 3-5] days of paid bereavement leave for the death of an immediate family member (e.g., spouse, child, parent, sibling, grandparent).
  • Notification: Employees should notify their supervisor and Human Resources promptly.

5.4 Jury Duty Leave

  • Eligibility: Employees summoned for jury duty will be granted paid leave for the duration of their service.
  • Notification: Employees must provide a copy of the jury summons to their supervisor and Human Resources upon receipt. Any compensation received for jury duty must be endorsed to the company, or the employee may elect to use available PTO.

5.5 Military Leave (USERRA)

  • [Company Name] complies with the Uniformed Services Employment and Reemployment Rights Act (USERRA).
  • Employees who are members of the U.S. uniformed services will be granted leave for military service and are eligible for reemployment in accordance with USERRA.
  • Employees must provide advance notice of military service whenever possible.

5.6 Family and Medical Leave Act (FMLA)

  • Eligibility:
employee_handbook_generator.md
Download as Markdown
Copy all content
Full output as text
Download ZIP
IDE-ready project ZIP
Copy share link
Permanent URL for this run
Get Embed Code
Embed this result on any website
Print / Save PDF
Use browser print dialog
"); var hasSrcMain=Object.keys(extracted).some(function(k){return k.indexOf("src/main")>=0;}); if(!hasSrcMain) zip.file(folder+"src/main."+ext,"import React from 'react' import ReactDOM from 'react-dom/client' import App from './App' import './index.css' ReactDOM.createRoot(document.getElementById('root')!).render( ) "); var hasSrcApp=Object.keys(extracted).some(function(k){return k==="src/App."+ext||k==="App."+ext;}); if(!hasSrcApp) zip.file(folder+"src/App."+ext,"import React from 'react' import './App.css' function App(){ return(

"+slugTitle(pn)+"

Built with PantheraHive BOS

) } export default App "); zip.file(folder+"src/index.css","*{margin:0;padding:0;box-sizing:border-box} body{font-family:system-ui,-apple-system,sans-serif;background:#f0f2f5;color:#1a1a2e} .app{min-height:100vh;display:flex;flex-direction:column} .app-header{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:40px} h1{font-size:2.5rem;font-weight:700} "); zip.file(folder+"src/App.css",""); zip.file(folder+"src/components/.gitkeep",""); zip.file(folder+"src/pages/.gitkeep",""); zip.file(folder+"src/hooks/.gitkeep",""); Object.keys(extracted).forEach(function(p){ var fp=p.startsWith("src/")?p:"src/"+p; zip.file(folder+fp,extracted[p]); }); zip.file(folder+"README.md","# "+slugTitle(pn)+" Generated by PantheraHive BOS. ## Setup ```bash npm install npm run dev ``` ## Build ```bash npm run build ``` ## Open in IDE Open the project folder in VS Code or WebStorm. "); zip.file(folder+".gitignore","node_modules/ dist/ .env .DS_Store *.local "); } /* --- Vue (Vite + Composition API + TypeScript) --- */ function buildVue(zip,folder,app,code,panelTxt){ var pn=pkgName(app); var C=cc(pn); var extracted=extractCode(panelTxt); zip.file(folder+"package.json",'{ "name": "'+pn+'", "version": "0.0.0", "type": "module", "scripts": { "dev": "vite", "build": "vue-tsc -b && vite build", "preview": "vite preview" }, "dependencies": { "vue": "^3.5.13", "vue-router": "^4.4.5", "pinia": "^2.3.0", "axios": "^1.7.9" }, "devDependencies": { "@vitejs/plugin-vue": "^5.2.1", "typescript": "~5.7.3", "vite": "^6.0.5", "vue-tsc": "^2.2.0" } } '); zip.file(folder+"vite.config.ts","import { defineConfig } from 'vite' import vue from '@vitejs/plugin-vue' import { resolve } from 'path' export default defineConfig({ plugins: [vue()], resolve: { alias: { '@': resolve(__dirname,'src') } } }) "); zip.file(folder+"tsconfig.json",'{"files":[],"references":[{"path":"./tsconfig.app.json"},{"path":"./tsconfig.node.json"}]} '); zip.file(folder+"tsconfig.app.json",'{ "compilerOptions":{ "target":"ES2020","useDefineForClassFields":true,"module":"ESNext","lib":["ES2020","DOM","DOM.Iterable"], "skipLibCheck":true,"moduleResolution":"bundler","allowImportingTsExtensions":true, "isolatedModules":true,"moduleDetection":"force","noEmit":true,"jsxImportSource":"vue", "strict":true,"paths":{"@/*":["./src/*"]} }, "include":["src/**/*.ts","src/**/*.d.ts","src/**/*.tsx","src/**/*.vue"] } '); zip.file(folder+"env.d.ts","/// "); zip.file(folder+"index.html"," "+slugTitle(pn)+"
"); var hasMain=Object.keys(extracted).some(function(k){return k==="src/main.ts"||k==="main.ts";}); if(!hasMain) zip.file(folder+"src/main.ts","import { createApp } from 'vue' import { createPinia } from 'pinia' import App from './App.vue' import './assets/main.css' const app = createApp(App) app.use(createPinia()) app.mount('#app') "); var hasApp=Object.keys(extracted).some(function(k){return k.indexOf("App.vue")>=0;}); if(!hasApp) zip.file(folder+"src/App.vue"," "); zip.file(folder+"src/assets/main.css","*{margin:0;padding:0;box-sizing:border-box}body{font-family:system-ui,sans-serif;background:#fff;color:#213547} "); zip.file(folder+"src/components/.gitkeep",""); zip.file(folder+"src/views/.gitkeep",""); zip.file(folder+"src/stores/.gitkeep",""); Object.keys(extracted).forEach(function(p){ var fp=p.startsWith("src/")?p:"src/"+p; zip.file(folder+fp,extracted[p]); }); zip.file(folder+"README.md","# "+slugTitle(pn)+" Generated by PantheraHive BOS. ## Setup ```bash npm install npm run dev ``` ## Build ```bash npm run build ``` Open in VS Code or WebStorm. "); zip.file(folder+".gitignore","node_modules/ dist/ .env .DS_Store *.local "); } /* --- Angular (v19 standalone) --- */ function buildAngular(zip,folder,app,code,panelTxt){ var pn=pkgName(app); var C=cc(pn); var sel=pn.replace(/_/g,"-"); var extracted=extractCode(panelTxt); zip.file(folder+"package.json",'{ "name": "'+pn+'", "version": "0.0.0", "scripts": { "ng": "ng", "start": "ng serve", "build": "ng build", "test": "ng test" }, "dependencies": { "@angular/animations": "^19.0.0", "@angular/common": "^19.0.0", "@angular/compiler": "^19.0.0", "@angular/core": "^19.0.0", "@angular/forms": "^19.0.0", "@angular/platform-browser": "^19.0.0", "@angular/platform-browser-dynamic": "^19.0.0", "@angular/router": "^19.0.0", "rxjs": "~7.8.0", "tslib": "^2.3.0", "zone.js": "~0.15.0" }, "devDependencies": { "@angular-devkit/build-angular": "^19.0.0", "@angular/cli": "^19.0.0", "@angular/compiler-cli": "^19.0.0", "typescript": "~5.6.0" } } '); zip.file(folder+"angular.json",'{ "$schema": "./node_modules/@angular/cli/lib/config/schema.json", "version": 1, "newProjectRoot": "projects", "projects": { "'+pn+'": { "projectType": "application", "root": "", "sourceRoot": "src", "prefix": "app", "architect": { "build": { "builder": "@angular-devkit/build-angular:application", "options": { "outputPath": "dist/'+pn+'", "index": "src/index.html", "browser": "src/main.ts", "tsConfig": "tsconfig.app.json", "styles": ["src/styles.css"], "scripts": [] } }, "serve": {"builder":"@angular-devkit/build-angular:dev-server","configurations":{"production":{"buildTarget":"'+pn+':build:production"},"development":{"buildTarget":"'+pn+':build:development"}},"defaultConfiguration":"development"} } } } } '); zip.file(folder+"tsconfig.json",'{ "compileOnSave": false, "compilerOptions": {"baseUrl":"./","outDir":"./dist/out-tsc","forceConsistentCasingInFileNames":true,"strict":true,"noImplicitOverride":true,"noPropertyAccessFromIndexSignature":true,"noImplicitReturns":true,"noFallthroughCasesInSwitch":true,"paths":{"@/*":["src/*"]},"skipLibCheck":true,"esModuleInterop":true,"sourceMap":true,"declaration":false,"experimentalDecorators":true,"moduleResolution":"bundler","importHelpers":true,"target":"ES2022","module":"ES2022","useDefineForClassFields":false,"lib":["ES2022","dom"]}, "references":[{"path":"./tsconfig.app.json"}] } '); zip.file(folder+"tsconfig.app.json",'{ "extends":"./tsconfig.json", "compilerOptions":{"outDir":"./dist/out-tsc","types":[]}, "files":["src/main.ts"], "include":["src/**/*.d.ts"] } '); zip.file(folder+"src/index.html"," "+slugTitle(pn)+" "); zip.file(folder+"src/main.ts","import { bootstrapApplication } from '@angular/platform-browser'; import { appConfig } from './app/app.config'; import { AppComponent } from './app/app.component'; bootstrapApplication(AppComponent, appConfig) .catch(err => console.error(err)); "); zip.file(folder+"src/styles.css","* { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: system-ui, -apple-system, sans-serif; background: #f9fafb; color: #111827; } "); var hasComp=Object.keys(extracted).some(function(k){return k.indexOf("app.component")>=0;}); if(!hasComp){ zip.file(folder+"src/app/app.component.ts","import { Component } from '@angular/core'; import { RouterOutlet } from '@angular/router'; @Component({ selector: 'app-root', standalone: true, imports: [RouterOutlet], templateUrl: './app.component.html', styleUrl: './app.component.css' }) export class AppComponent { title = '"+pn+"'; } "); zip.file(folder+"src/app/app.component.html","

"+slugTitle(pn)+"

Built with PantheraHive BOS

"); zip.file(folder+"src/app/app.component.css",".app-header{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:60vh;gap:16px}h1{font-size:2.5rem;font-weight:700;color:#6366f1} "); } zip.file(folder+"src/app/app.config.ts","import { ApplicationConfig, provideZoneChangeDetection } from '@angular/core'; import { provideRouter } from '@angular/router'; import { routes } from './app.routes'; export const appConfig: ApplicationConfig = { providers: [ provideZoneChangeDetection({ eventCoalescing: true }), provideRouter(routes) ] }; "); zip.file(folder+"src/app/app.routes.ts","import { Routes } from '@angular/router'; export const routes: Routes = []; "); Object.keys(extracted).forEach(function(p){ var fp=p.startsWith("src/")?p:"src/"+p; zip.file(folder+fp,extracted[p]); }); zip.file(folder+"README.md","# "+slugTitle(pn)+" Generated by PantheraHive BOS. ## Setup ```bash npm install ng serve # or: npm start ``` ## Build ```bash ng build ``` Open in VS Code with Angular Language Service extension. "); zip.file(folder+".gitignore","node_modules/ dist/ .env .DS_Store *.local .angular/ "); } /* --- Python --- */ function buildPython(zip,folder,app,code){ var title=slugTitle(app); var pn=pkgName(app); var src=code.replace(/^```[w]* ?/m,"").replace(/ ?```$/m,"").trim(); var reqMap={"numpy":"numpy","pandas":"pandas","sklearn":"scikit-learn","tensorflow":"tensorflow","torch":"torch","flask":"flask","fastapi":"fastapi","uvicorn":"uvicorn","requests":"requests","sqlalchemy":"sqlalchemy","pydantic":"pydantic","dotenv":"python-dotenv","PIL":"Pillow","cv2":"opencv-python","matplotlib":"matplotlib","seaborn":"seaborn","scipy":"scipy"}; var reqs=[]; Object.keys(reqMap).forEach(function(k){if(src.indexOf("import "+k)>=0||src.indexOf("from "+k)>=0)reqs.push(reqMap[k]);}); var reqsTxt=reqs.length?reqs.join(" "):"# add dependencies here "; zip.file(folder+"main.py",src||"# "+title+" # Generated by PantheraHive BOS print(title+" loaded") "); zip.file(folder+"requirements.txt",reqsTxt); zip.file(folder+".env.example","# Environment variables "); zip.file(folder+"README.md","# "+title+" Generated by PantheraHive BOS. ## Setup ```bash python3 -m venv .venv source .venv/bin/activate pip install -r requirements.txt ``` ## Run ```bash python main.py ``` "); zip.file(folder+".gitignore",".venv/ __pycache__/ *.pyc .env .DS_Store "); } /* --- Node.js --- */ function buildNode(zip,folder,app,code){ var title=slugTitle(app); var pn=pkgName(app); var src=code.replace(/^```[w]* ?/m,"").replace(/ ?```$/m,"").trim(); var depMap={"mongoose":"^8.0.0","dotenv":"^16.4.5","axios":"^1.7.9","cors":"^2.8.5","bcryptjs":"^2.4.3","jsonwebtoken":"^9.0.2","socket.io":"^4.7.4","uuid":"^9.0.1","zod":"^3.22.4","express":"^4.18.2"}; var deps={}; Object.keys(depMap).forEach(function(k){if(src.indexOf(k)>=0)deps[k]=depMap[k];}); if(!deps["express"])deps["express"]="^4.18.2"; var pkgJson=JSON.stringify({"name":pn,"version":"1.0.0","main":"src/index.js","scripts":{"start":"node src/index.js","dev":"nodemon src/index.js"},"dependencies":deps,"devDependencies":{"nodemon":"^3.0.3"}},null,2)+" "; zip.file(folder+"package.json",pkgJson); var fallback="const express=require("express"); const app=express(); app.use(express.json()); app.get("/",(req,res)=>{ res.json({message:""+title+" API"}); }); const PORT=process.env.PORT||3000; app.listen(PORT,()=>console.log("Server on port "+PORT)); "; zip.file(folder+"src/index.js",src||fallback); zip.file(folder+".env.example","PORT=3000 "); zip.file(folder+".gitignore","node_modules/ .env .DS_Store "); zip.file(folder+"README.md","# "+title+" Generated by PantheraHive BOS. ## Setup ```bash npm install ``` ## Run ```bash npm run dev ``` "); } /* --- Vanilla HTML --- */ function buildVanillaHtml(zip,folder,app,code){ var title=slugTitle(app); var isFullDoc=code.trim().toLowerCase().indexOf("=0||code.trim().toLowerCase().indexOf("=0; var indexHtml=isFullDoc?code:" "+title+" "+code+" "; zip.file(folder+"index.html",indexHtml); zip.file(folder+"style.css","/* "+title+" — styles */ *{margin:0;padding:0;box-sizing:border-box} body{font-family:system-ui,-apple-system,sans-serif;background:#fff;color:#1a1a2e} "); zip.file(folder+"script.js","/* "+title+" — scripts */ "); zip.file(folder+"assets/.gitkeep",""); zip.file(folder+"README.md","# "+title+" Generated by PantheraHive BOS. ## Open Double-click `index.html` in your browser. Or serve locally: ```bash npx serve . # or python3 -m http.server 3000 ``` "); zip.file(folder+".gitignore",".DS_Store node_modules/ .env "); } /* ===== MAIN ===== */ var sc=document.createElement("script"); sc.src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.10.1/jszip.min.js"; sc.onerror=function(){ if(lbl)lbl.textContent="Download ZIP"; alert("JSZip load failed — check connection."); }; sc.onload=function(){ var zip=new JSZip(); var base=(_phFname||"output").replace(/.[^.]+$/,""); var app=base.toLowerCase().replace(/[^a-z0-9]+/g,"_").replace(/^_+|_+$/g,"")||"my_app"; var folder=app+"/"; var vc=document.getElementById("panel-content"); var panelTxt=vc?(vc.innerText||vc.textContent||""):""; var lang=detectLang(_phCode,panelTxt); if(_phIsHtml){ buildVanillaHtml(zip,folder,app,_phCode); } else if(lang==="flutter"){ buildFlutter(zip,folder,app,_phCode,panelTxt); } else if(lang==="react-native"){ buildReactNative(zip,folder,app,_phCode,panelTxt); } else if(lang==="swift"){ buildSwift(zip,folder,app,_phCode,panelTxt); } else if(lang==="kotlin"){ buildKotlin(zip,folder,app,_phCode,panelTxt); } else if(lang==="react"){ buildReact(zip,folder,app,_phCode,panelTxt); } else if(lang==="vue"){ buildVue(zip,folder,app,_phCode,panelTxt); } else if(lang==="angular"){ buildAngular(zip,folder,app,_phCode,panelTxt); } else if(lang==="python"){ buildPython(zip,folder,app,_phCode); } else if(lang==="node"){ buildNode(zip,folder,app,_phCode); } else { /* Document/content workflow */ var title=app.replace(/_/g," "); var md=_phAll||_phCode||panelTxt||"No content"; zip.file(folder+app+".md",md); var h=""+title+""; h+="

"+title+"

"; var hc=md.replace(/&/g,"&").replace(//g,">"); hc=hc.replace(/^### (.+)$/gm,"

$1

"); hc=hc.replace(/^## (.+)$/gm,"

$1

"); hc=hc.replace(/^# (.+)$/gm,"

$1

"); hc=hc.replace(/**(.+?)**/g,"$1"); hc=hc.replace(/ {2,}/g,"

"); h+="

"+hc+"

Generated by PantheraHive BOS
"; zip.file(folder+app+".html",h); zip.file(folder+"README.md","# "+title+" Generated by PantheraHive BOS. Files: - "+app+".md (Markdown) - "+app+".html (styled HTML) "); } zip.generateAsync({type:"blob"}).then(function(blob){ var a=document.createElement("a"); a.href=URL.createObjectURL(blob); a.download=app+".zip"; a.click(); URL.revokeObjectURL(a.href); if(lbl)lbl.textContent="Download ZIP"; }); }; document.head.appendChild(sc); }function phShare(){navigator.clipboard.writeText(window.location.href).then(function(){var el=document.getElementById("ph-share-lbl");if(el){el.textContent="Link copied!";setTimeout(function(){el.textContent="Copy share link";},2500);}});}function phEmbed(){var runId=window.location.pathname.split("/").pop().replace(".html","");var embedUrl="https://pantherahive.com/embed/"+runId;var code='';navigator.clipboard.writeText(code).then(function(){var el=document.getElementById("ph-embed-lbl");if(el){el.textContent="Embed code copied!";setTimeout(function(){el.textContent="Get Embed Code";},2500);}});}