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

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

Step 1: Analyze Requirements - Employee Handbook Generator

1. Project Overview & Goal

The "Employee Handbook Generator" is a sophisticated tool designed to streamline the creation of comprehensive, compliant, and professional employee handbooks. Its primary goal is to empower HR professionals, business owners, and legal teams to efficiently generate customized handbooks that cover essential company policies, benefits, code of conduct, leave policies, and legal compliance sections, tailored to their specific organizational needs. The output will be a highly structured, professionally formatted document, suitable for distribution to employees.

2. Functional Requirements

The generator will provide the following core functionalities:

  • Content Management System (CMS) for Handbook Sections:

* Pre-built Templates: Offer a library of legally vetted, customizable templates for standard sections (e.g., Introduction, Welcome Message, Employment At-Will, Anti-Discrimination, Workplace Safety).

* Section Categories: Group policies logically (e.g., General Policies, Compensation & Benefits, Leave Policies, Workplace Conduct, IT & Data Security, Compliance).

* Custom Section Creation: Allow users to add entirely new, custom sections and policies specific to their organization.

* Rich Text Editor: Provide a powerful WYSIWYG editor for content creation and modification, supporting text formatting (bold, italics, lists, headings), links, and image embedding.

* Drag-and-Drop Reordering: Enable easy reordering of sections and sub-sections within the handbook.

* Versioning & History: Track changes made to sections, allowing users to review past versions and revert if necessary.

  • Policy & Clause Library:

* Standard Clauses: Offer a repository of commonly used policy clauses that can be inserted, edited, or removed.

* Legal Guidance & Disclaimers: Integrate prompts or suggested legal disclaimers for specific policy areas to ensure compliance (e.g., "Consult legal counsel for state-specific requirements").

  • Company Information & Branding:

* Company Profile: Capture essential company details (name, address, mission, values) to auto-populate relevant sections.

* Branding Customization: Allow upload of company logo, selection of primary/secondary brand colors, and customization of fonts for a cohesive look.

  • Benefits Overview Module:

* Structured Input: Dedicated fields for entering details on health insurance, retirement plans, paid time off (PTO), holidays, life insurance, disability, and other perks.

* Benefit Tiering: Support different benefit tiers or plans if applicable.

  • Leave Policies Module:

* Categorized Leave Types: Dedicated sections for FMLA, Parental Leave, Sick Leave, Vacation, Bereavement, Jury Duty, etc.

* State-Specific Guidance: (Advanced) Potentially offer prompts or links to state-specific leave requirements.

  • Compliance & Legal Section:

* Mandatory Policies: Ensure inclusion of critical policies like EEO, ADA, Harassment, Whistleblower, Data Privacy (GDPR/CCPA considerations).

* Acknowledgement Forms: Generate an optional employee acknowledgement form at the end of the handbook, ready for signature.

  • Preview & Export:

* Real-time Preview: Display a live, interactive preview of the handbook as it's being built.

* Export Formats: Generate the final handbook in professional PDF format (print-ready) and potentially a web-viewable link.

* Table of Contents Generation: Automatically create an organized, clickable table of contents for both PDF and web versions.

  • User & Access Management (if multi-user):

* Role-Based Access: Define roles (e.g., Admin, Editor, Viewer) with specific permissions.

* Collaboration: Allow multiple users to contribute to the handbook creation process.

3. Non-Functional Requirements

  • Usability: Highly intuitive interface, minimal learning curve, clear navigation.
  • Performance: Fast loading times, responsive editing, efficient document generation.
  • Security: Secure data storage (encrypted), access control, regular security audits.
  • Scalability: Ability to handle increasing content, users, and generated handbooks without performance degradation.
  • Accessibility: Adherence to WCAG 2.1 AA standards to ensure usability for all users.
  • Maintainability: Well-structured codebase for easy updates and future enhancements.
  • Reliability: High uptime, robust error handling, data backup and recovery mechanisms.
  • Compatibility: Cross-browser compatibility (Chrome, Firefox, Edge, Safari).

4. User Roles

  • HR Manager/Administrator: Primary user, responsible for drafting, editing, and managing handbook content. Requires full access to all features.
  • Business Owner/Executive: Reviews and approves the final handbook. May require editing capabilities for specific sections.
  • Legal Counsel (Optional): Reviews legal compliance and wording. Primarily a "Viewer" role with annotation capabilities.
  • Team Collaborator (Optional): Assists HR with specific sections; limited editing permissions.

5. Design Specifications

5.1 User Interface (UI) Design Principles

  • Clarity & Simplicity: Clean layouts, ample white space, intuitive iconography, and minimal visual clutter.
  • Professionalism: A polished, modern aesthetic that instills confidence in the tool's output.
  • Consistency: Uniformity in design elements (buttons, forms, typography) across all screens.
  • Efficiency: Streamlined workflows, fewer clicks to achieve tasks, intelligent defaults.
  • Feedback: Clear visual and textual feedback for user actions (e.g., saving, errors, progress).

5.2 Wireframe Descriptions (Key Screens)

  1. Dashboard/Project Overview:

* Layout: Central content area with quick statistics (e.g., "Handbooks in Progress," "Published Handbooks"). Left-hand navigation for "My Handbooks," "Templates," "Settings."

* Elements: "Create New Handbook" button, list of existing handbooks with status (Draft, Published, Archived), last modified date, and quick action buttons (Edit, Preview, Publish, Delete).

* Purpose: Entry point for managing multiple handbook projects.

  1. Handbook Editor (Main Content Area):

* Layout: Three-column layout.

* Left Column (Navigation): Hierarchical tree view of handbook sections and sub-sections, with drag-and-drop reordering. "Add Section" button.

* Middle Column (Content Editor): Rich Text Editor (WYSIWYG) for the currently selected section. Toolbar with formatting options (bold, italic, lists, headings, links, images, tables).

* Right Column (Contextual Panel/Preview Toggle): Live preview of the current section or full handbook preview toggle. Section-specific options (e.g., "Mark as Mandatory," "Legal Disclaimer").

* Elements: Save button (auto-save recommended), "Preview Full Handbook" button, "Export" button.

* Purpose: Central workspace for creating and editing handbook content.

  1. Branding & Settings Page:

* Layout: Form-based input fields grouped logically.

* Elements:

* "Company Information" section: Company Name, Address, Website, Mission Statement.

* "Logo Upload" section: Drag-and-drop or file picker for logo, preview of uploaded logo.

* "Color Palette" section: Color pickers for primary, secondary, accent colors, with real-time preview of how they affect the handbook header/footer.

* "Font Selection" section: Dropdowns for heading and body fonts, with preview text.

* Purpose: Customize the aesthetic and core company information for the handbook.

  1. Preview & Export Modal:

* Layout: Full-screen modal or dedicated page showing the complete handbook.

* Elements: Interactive Table of Contents on the left, full handbook content on the right. "Download PDF" button, "Generate Web Link" button, "Print" button.

* Purpose: Final review of the handbook before publishing or exporting.

5.3 Color Palette

A professional, clean, and accessible color palette is crucial.

  • Primary Brand Color: #0056B3 (A professional, trustworthy blue) - Used for primary buttons, active states, main headers.
  • Secondary Brand Color: #5A6268 (A muted charcoal gray) - Used for secondary buttons, subtle accents, less prominent text.
  • Accent Color: #28A745 (A vibrant green) - Used for success messages, "Save" buttons, key calls-to-action, highlights.
  • Neutral Backgrounds: #F8F9FA (Light gray) or #FFFFFF (Pure white) - For content areas and main backgrounds, ensuring readability.
  • Text Colors:

* Primary Text: #212529 (Dark charcoal) - For body text, ensuring high contrast.

* Secondary Text: #6C757D (Medium gray) - For less important information, labels, helper text.

  • System Colors:

* Success: #28A745 (Green)

* Warning: #FFC107 (Amber)

* Error: #DC3545 (Red)

* Info: #17A2B8 (Cyan)

5.4 Typography

  • Headings (H1, H2, H3): A clean, modern sans-serif font like "Inter" or "Open Sans". These fonts offer excellent readability and a contemporary feel. Use varying weights (e.g., Semi-bold for H1, Regular for H3) to establish hierarchy.
  • Body Text: A highly readable sans-serif font like "Roboto" or "Lato". Maintain a comfortable font size (e.g., 16px) and line height (e.g., 1.5) for optimal readability on screen and in print.
  • Monospace (for code/technical excerpts if any): "Fira Code" or "JetBrains Mono".

5.5 Iconography

  • Style: Modern, minimalist, outlined or filled icons with a consistent stroke weight.
  • Library: Utilize a well-known library like Font Awesome, Material Icons, or Feather Icons for consistency and broad coverage.
  • Usage: For navigation, action buttons (edit, delete, save), status indicators, and to visually break up content.

6. User Experience (UX) Recommendations

  • Guided Workflow: Implement a clear, step-by-step process for first-time users to create a handbook, potentially with a progress bar.
  • Intuitive Navigation: Use a persistent left-hand sidebar for main navigation and a hierarchical tree view for handbook sections.
  • "Save As You Go" / Auto-Save: Automatically save user changes to prevent data loss and reduce user anxiety.
  • Rich Text Editor Enhancements:

* Markdown Support: (Optional but powerful) Allow users familiar with Markdown to use it alongside the WYSIWYG editor.

* Template Snippets: Quick-insert common clauses or policy structures from a sidebar.

  • Real-time Feedback: Provide immediate visual feedback for actions (e.g., "Section saved successfully," form validation errors).
  • Contextual Help: Tooltips, inline help text, and a comprehensive help center/documentation.
  • Version Control & Audit Trail: Clearly display who made changes, when, and what was changed. Allow easy rollback to previous versions.
  • Accessibility First: Ensure keyboard navigation, screen reader compatibility, sufficient color contrast, and clear focus states for interactive elements.
  • Responsive Design: The application should be fully responsive, adapting seamlessly to various screen sizes (desktop, tablet). While primary creation might happen on desktop, review and minor edits should be possible on tablets.
  • Intelligent Defaults: Pre-populate fields with sensible defaults (e.g., standard policy language) to reduce initial setup time.
  • Search Functionality: A powerful search within the handbook content and the policy/clause library.
  • Undo/Redo: Standard undo/redo functionality within the rich text editor.
  • Confirmation Dialogs: For destructive actions (e.g., deleting a section, publishing a draft).

7. Output & Integrations

  • Generated Handbook Output:

* PDF: High-quality, print-ready PDF with customizable headers, footers, page numbers, and a clickable table of contents.

* Web Link: A secure, shareable web link to a hosted version of the handbook, optimized for online viewing.

* Editable Document (Optional): Potentially exportable to Word (.docx) for advanced offline editing, with a warning about potential formatting loss.

  • Potential Integrations (Future Consideration):

* HRIS/HRM Systems: Integrate with popular HR platforms (e.g., BambooHR, Workday) to pull employee data or push handbook updates.

* Legal Research Platforms: (Advanced) Link to or integrate with legal databases to provide up-to-date compliance information and alerts.

* E-Signature Platforms: Integrate with DocuSign or Adobe Sign for digital employee acknowledgements.

gemini Output

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

Welcome to [Company Name]!

We are thrilled to welcome you to the [Company Name] team! This handbook serves as your essential guide to our company culture, policies, benefits, and expectations. It's designed to help you understand what it means to be a valued member of our organization and to ensure a positive and productive work environment for everyone.

At [Company Name], we believe that our success is built upon the talent, dedication, and collaboration of our employees. We are committed to fostering a workplace where you can thrive, grow, and contribute your best work.

We encourage you to read this handbook carefully, as it contains important information that will help you navigate your journey with us. Should you have any questions, please do not hesitate to reach out to your manager or the HR Department.

Welcome aboard! We look forward to achieving great things together.

Sincerely,

[Your CEO/Leadership Name]

CEO, [Company Name]


Section 1: Our Company – Mission, Vision, and Values

1.1 Our Mission

[Company Name]'s Mission Statement:

[Insert your company's concise and inspiring mission statement here. E.g., "To innovate and deliver exceptional [products/services] that empower our customers and enrich their lives, while fostering a culture of creativity and collaboration."]

1.2 Our Vision

[Company Name]'s Vision Statement:

[Insert your company's forward-looking vision statement here. E.g., "To be the leading [industry] provider globally, recognized for our commitment to excellence, sustainability, and positive impact on society."]

1.3 Our Core Values

Our values are the foundation of our culture and guide our decisions and interactions. We live by:

  • Integrity: We act with honesty, transparency, and ethical conduct in all we do.
  • Innovation: We embrace creativity, continuous improvement, and forward-thinking solutions.
  • Collaboration: We foster teamwork, open communication, and mutual respect to achieve shared goals.
  • Customer Focus: We are dedicated to understanding and exceeding the expectations of our customers.
  • Excellence: We strive for the highest standards in our work, our products, and our services.
  • [Add other relevant company values]

1.4 Purpose of This Handbook

This handbook outlines the policies, procedures, benefits, and expectations that apply to all employees of [Company Name]. It is intended to:

  • Provide a clear understanding of our workplace environment.
  • Communicate your rights and responsibilities as an employee.
  • Ensure consistency and fairness in the application of company policies.
  • Serve as a resource for frequently asked questions about employment at [Company Name].

Important Note: This handbook is a guide, not a contract of employment. [Company Name] reserves the right to modify, add, or delete any policies, procedures, or benefits described herein at any time, with or without notice, subject to applicable law.

1.5 Employment at [Company Name]

  • At-Will Employment: Employment with [Company Name] is "at-will." This means that either you or the company may terminate the employment relationship at any time, for any reason, with or without cause or notice, subject to applicable law. No statement or promise by a company representative can create an employment contract.
  • Equal Opportunity Employer: [Company Name] is an Equal Opportunity Employer and is committed to providing a workplace free from discrimination and harassment. We prohibit discrimination based on race, color, religion, creed, gender, sex, sexual orientation, gender identity or expression, national origin or ancestry, age, disability, marital status, veteran status, genetic information, or any other characteristic protected by federal, state, or local law.

Section 2: Company Policies and Workplace Expectations

2.1 Workplace Conduct and Professionalism

We expect all employees to conduct themselves professionally and respectfully at all times. This includes:

  • Treating colleagues, customers, and partners with courtesy and respect.
  • Maintaining a positive and collaborative attitude.
  • Avoiding disruptive or inappropriate behavior.
  • Adhering to all company policies and procedures.

2.2 Work Hours and Attendance

  • Standard Workday/Workweek: Our standard work schedule is [e.g., Monday through Friday, 9:00 AM to 5:00 PM], totaling [e.g., 40] hours per week. Specific department schedules may vary.
  • Punctuality: Employees are expected to be punctual and ready to begin work at their scheduled start time.
  • Absences and Tardiness: If you anticipate being late or absent, you must notify your manager as soon as possible, ideally at least [e.g., two hours] before your scheduled start time. Unexplained absences may lead to disciplinary action.
  • Breaks and Lunch: Employees are provided with [e.g., a 30-minute unpaid lunch break] and [e.g., two 15-minute paid rest breaks] during a standard workday.

2.3 Dress Code

Our dress code is [e.g., business casual/professional/smart casual]. We expect employees to dress appropriately for a professional work environment, considering their role and interactions with clients or the public.

  • Acceptable Attire: [Provide examples, e.g., collared shirts, blouses, slacks, skirts, dresses, clean jeans (if permitted)].
  • Unacceptable Attire: [Provide examples, e.g., ripped clothing, flip-flops, excessively revealing clothing, clothing with offensive graphics].
  • Special Circumstances: Certain roles may require specific attire for safety or operational reasons. Your manager will provide guidance.

2.4 Communication and Technology Use

  • Company Equipment: Company-provided equipment (laptops, phones, software) is for business purposes. Limited personal use is permissible if it does not interfere with work duties or violate company policy.
  • Email and Internet Use: Company email and internet access are provided for business use. Incidental personal use is permitted but must not be excessive, interfere with work, or access inappropriate content. All communications and data on company systems are subject to monitoring.
  • Social Media: While employees are free to express themselves on personal social media, they must not:

* Disclose confidential company information.

* Misrepresent their personal views as those of [Company Name].

* Engage in harassment, bullying, or discriminatory behavior.

* Post content that could damage the company's reputation.

  • Personal Devices: Use of personal cell phones or other devices during working hours should be kept to a minimum and not interfere with job duties or team collaboration.

2.5 Confidentiality and Data Security

Employees are entrusted with confidential and proprietary information, including business strategies, customer data, financial information, and intellectual property.

  • Protection of Information: All employees must safeguard confidential information and not disclose it to unauthorized individuals or outside parties. This obligation continues after employment ends.
  • Data Security: Adhere to all company guidelines regarding passwords, data storage, and information sharing to prevent security breaches.

2.6 Conflict of Interest

Employees must avoid situations where their personal interests conflict with the interests of [Company Name]. This includes:

  • Working for or having a financial interest in a competitor, supplier, or client.
  • Using company resources or confidential information for personal gain.
  • Accepting gifts or favors that could improperly influence business decisions.
  • Any potential conflict must be disclosed to your manager or HR immediately.

2.7 Drug-Free Workplace

[Company Name] is committed to maintaining a safe, healthy, and productive work environment.

  • Prohibition: The unlawful manufacture, distribution, dispensation, possession, or use of controlled substances, and the abuse of alcohol, is strictly prohibited on company premises or during work hours.
  • Testing: The company reserves the right to conduct drug and alcohol testing in accordance with applicable laws.

2.8 Workplace Safety

Your safety is a top priority.

  • Responsibility: All employees are responsible for following safety procedures, using equipment properly, and reporting any hazards or unsafe conditions immediately to their manager.
  • Emergency Procedures: Familiarize yourself with emergency exits, fire extinguishers, and evacuation plans.

2.9 Smoking Policy

[Company Name] is a smoke-free workplace. Smoking (including e-cigarettes/vaping) is prohibited inside all company buildings and within [e.g., 25 feet] of entrances. Designated smoking areas may be provided.

2.10 Workplace Violence Prevention

[Company Name] has zero tolerance for any form of workplace violence, threats, intimidation, or harassment. Any such behavior will result in immediate disciplinary action, up to and including termination and legal prosecution. Report any concerns immediately.

2.11 Visitors in the Workplace

For security and safety reasons, all visitors must check in at [e.g., reception/front desk]. Employees are responsible for their guests and must ensure they adhere to company policies.


Section 3: Compensation and Benefits Overview

3.1 Compensation

  • Pay Periods: Employees are paid [e.g., bi-weekly/semi-monthly] on [e.g., Friday]. Pay stubs are available via [e.g., online portal/email].
  • Overtime: Non-exempt employees are eligible for overtime pay at [e.g., 1.5 times] their regular rate for hours worked over [e.g., 40] in a workweek, in accordance with federal and state laws. All overtime must be pre-approved by your manager.
  • Pay Deductions: Deductions from pay may include federal, state, and local taxes, social security, and authorized benefits contributions.

3.2 Health and Wellness Benefits

[Company Name] offers a comprehensive benefits package designed to support your health and well-being. Eligibility for benefits may vary based on employment status (full-time, part-time).

  • Medical Insurance: [Briefly describe, e.g., "Choice of PPO and HMO plans with employer contribution."]. Details are available from HR.
  • Dental Insurance: [Briefly describe, e.g., "Coverage for preventative and major dental services."].
  • Vision Insurance: [Briefly describe, e.g., "Coverage for eye exams and eyewear."].
  • Wellness Programs: [Briefly describe, e.g., "Access to fitness discounts, health screenings, and wellness challenges."].

3.3 Retirement Plans

  • 401(k) Plan: We offer a 401(k) retirement savings plan with [e.g., employer matching contributions after one year of service]. Employees can enroll and manage their contributions through [e.g., our benefits portal].

3.4 Life and Disability Insurance

  • Basic Life Insurance: [Company Name] provides [e.g., company-paid basic life insurance equivalent to your annual salary].
  • Supplemental Life Insurance: Employees may purchase additional life insurance for themselves and their dependents.
  • Short-Term Disability (STD): Provides income replacement for non-work-related illnesses or injuries that prevent you from working for a limited period.
  • Long-Term Disability (LTD): Provides income replacement for extended periods of disability.

3.5 Employee Assistance Program (EAP)

Our EAP offers confidential counseling and resources for a variety of personal and work-related issues, including stress, family matters, financial concerns, and mental health support. This is a free and confidential benefit.

3.6 Other Perks and Programs

  • Professional Development: We support continuous learning through training programs, workshops, and tuition reimbursement for approved courses.
  • Employee Discounts: Access to discounts on various products and services.
  • [Add other specific company perks, e.g., commuter benefits, gym memberships, free snacks]

Action Item: For detailed information on all benefits, including eligibility, enrollment periods, and plan specifics, please contact the HR Department or visit our benefits portal at [Benefits Portal URL].


Section 4: Code of Conduct and Ethics

4.1 Our Commitment to Ethical Behavior

[Company Name] is built on a foundation of trust, integrity, and respect. Our Code of Conduct outlines the ethical standards and expectations for all employees, ensuring we operate with the highest level of professionalism and accountability.

4.2 Respect in the Workplace

We are committed to creating a workplace free from harassment, discrimination, and bullying.

  • Harassment: Any unwelcome conduct based on a protected characteristic (race, gender, age, etc.) that creates a hostile, intimidating, or offensive work environment is prohibited. This includes verbal, physical, and visual harassment.
  • Discrimination: Treating an individual unfairly based on a protected characteristic is strictly prohibited.
  • Bullying: Repeated, unreasonable behavior directed towards an employee or group of employees that creates a risk to health and safety is unacceptable.
  • Zero Tolerance: [Company Name] has a zero-tolerance policy for harassment, discrimination, and bullying. Violations will result in disciplinary action, up to and including termination.

4.3 Reporting Concerns and Whistleblower Protection

  • Reporting Procedure: If you experience or witness any behavior that violates our Code of Conduct or company policies, you are obligated to report it immediately. You can report concerns to:

* Your direct manager

* The HR Department ([HR Email] or [HR Phone Number])

* [A designated senior leader, if applicable]

* Our confidential ethics hotline: [Hotline Number/URL]

  • Whistleblower Protection: [Company Name] is committed to protecting employees who report concerns in good faith. We prohibit any form of retaliation against individuals who report potential violations or cooperate in an investigation.

4.4 Non-Retaliation Policy

No employee will suffer adverse employment action for making a good-faith report of a violation or suspected violation of company policy or law, or for participating in an investigation of such a report. Any employee found to have engaged in retaliation will be subject to disciplinary action.

4.5 Anti-Bribery and Corruption

[Company Name] prohibits all forms of bribery and corruption. Employees must not offer, promise, give, or accept any bribe, kickback, or improper payment to or from any person or entity, whether in the public or private sector.


Section 5: Leave Policies

5.1 Paid Time Off (PTO) / Vacation Policy

  • Accrual: Employees begin accruing PTO from their first day of employment. Full-time employees accrue [e.g., X hours] of PTO per pay period, equivalent to [e.g., Y days/weeks] per year. Part-time employees accrue PTO on a prorated basis.
  • Usage: PTO can be used
gemini Output

Employee Handbook: [Company Name]

Version: 1.0

Effective Date: [Date]


Welcome to [Company Name]!

On behalf of the entire leadership team, welcome to [Company Name]! We are thrilled to have you join our dynamic and innovative team. This Employee Handbook serves as a comprehensive guide to our company's culture, policies, procedures, and expectations. It is designed to help you understand what it means to be a part of [Company Name] and to provide you with important information regarding your employment.

At [Company Name], we believe our success is driven by the talent, dedication, and collaboration of our employees. We are committed to fostering a supportive, inclusive, and challenging work environment where everyone can thrive, contribute their best work, and grow professionally.

We encourage you to read this handbook carefully, as it contains vital information that will help you navigate your role and understand your rights and responsibilities. Should you have any questions, please do not hesitate to reach out to your manager or the HR Department.

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

Sincerely,

The Leadership Team

[Company Name]


1. About [Company Name]

1.1 Our Mission

[Company Name]'s mission is to [State the company's core purpose and why it exists. E.g., "revolutionize the industry by delivering innovative solutions that empower our customers and enrich their lives."].

1.2 Our Vision

Our vision is to [Describe the company's future aspiration and what it aims to achieve. E.g., "to be the leading provider of cutting-edge technology, recognized for our excellence, integrity, and positive impact on society."].

1.3 Our Values

Our core values guide our actions, decisions, and interactions every day. We are committed to:

  • Integrity: Acting with honesty, transparency, and ethical principles in all we do.
  • Innovation: Continuously seeking new and better ways to solve problems and create value.
  • Collaboration: Working together, leveraging diverse perspectives, and fostering a spirit of teamwork.
  • Excellence: Striving for the highest quality in our work, products, and services.
  • Customer Focus: Prioritizing the needs of our customers and exceeding their expectations.
  • Respect: Treating everyone with dignity, valuing diversity, and promoting an inclusive environment.

2. Employment Policies

2.1 Equal Employment Opportunity (EEO)

[Company Name] is an Equal Opportunity Employer and is committed to providing a workplace free of discrimination and harassment. All employment decisions are based on business needs, job requirements, and individual qualifications, without regard to race, color, religion, sex, sexual orientation, gender identity, national origin, age, disability, veteran status, or any other status protected by the laws or regulations in the locations where we operate.

2.2 Workplace Harassment and Discrimination

[Company Name] has a zero-tolerance policy for harassment and discrimination of any kind. This includes, but is not limited to, harassment based on sex, race, color, religion, national origin, age, disability, veteran status, or any other protected characteristic. Prohibited conduct includes verbal, physical, or visual harassment, and sexual harassment (unwelcome sexual advances, requests for sexual favors, and other verbal or physical conduct of a sexual nature).

  • Reporting Procedure: Any employee who believes they have been subjected to or witnessed harassment or discrimination should immediately report the incident to their manager, the HR Department, 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.
  • Anti-Retaliation: [Company Name] strictly prohibits retaliation against any employee who reports harassment or discrimination in good faith, or who participates in an investigation.

2.3 At-Will Employment

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

2.4 Employment Classifications

Employees are generally classified as follows:

  • Full-Time: Employees regularly scheduled to work [e.g., 40] hours per week.
  • Part-Time: Employees regularly scheduled to work less than [e.g., 40] hours per week.
  • Temporary: Employees hired for a specific project or period, typically with an anticipated end date.
  • Exempt: Employees whose positions meet specific legal criteria and are exempt from overtime pay provisions under the Fair Labor Standards Act (FLSA).
  • Non-Exempt: Employees whose positions are subject to minimum wage and overtime pay provisions under the FLSA.

2.5 Recruitment and Hiring

[Company Name] is committed to fair and objective hiring practices. All candidates are evaluated based on their qualifications, experience, and suitability for the role.

2.6 Background Checks

All offers of employment are contingent upon the satisfactory completion of a background check, which may include criminal history, education verification, employment verification, and drug screening, in accordance with applicable laws.

2.7 Onboarding and Orientation

New employees will participate in an onboarding and orientation program designed to introduce them to [Company Name]'s culture, policies, procedures, and their specific role.

2.8 Performance Management and Reviews

Employees will receive regular feedback on their performance. Formal performance reviews are conducted [e.g., annually] to discuss achievements, areas for development, and career goals.

2.9 Disciplinary Action

[Company Name] believes in providing clear expectations and fair treatment. When performance or conduct issues arise, the company may employ a progressive disciplinary process, which may include verbal warnings, written warnings, performance improvement plans, suspension, and ultimately, termination of employment. The specific action taken will depend on the severity and frequency of the issue.

2.10 Termination of Employment

Employment may be terminated by either the employee or [Company Name].

  • Employee-Initiated Termination: Employees are requested to provide at least [e.g., two weeks'] written notice to their manager and HR Department.
  • Company-Initiated Termination: The company may terminate employment for various reasons, including but not limited to, poor performance, misconduct, violation of company policies, or business necessity.

3. Workplace Conduct and Expectations (Code of Conduct)

3.1 Professionalism

All employees are expected to conduct themselves professionally, respectfully, and ethically in all work-related interactions. This includes communication, appearance, and demeanor.

3.2 Attendance and Punctuality

Regular and punctual attendance is essential for the efficient operation of [Company Name]. Employees are expected to arrive on time, be prepared to work at the start of their shift, and adhere to their scheduled work hours. Absences or tardiness must be reported to your manager as soon as possible.

3.3 Dress Code

Employees are expected to dress appropriately for a professional work environment. The dress code for [Company Name] is [e.g., business casual]. Certain roles may require specific attire (e.g., uniforms, safety gear).

3.4 Workplace Safety and Health

[Company Name] is committed to providing a safe and healthy work environment. All employees are responsible for adhering to safety policies and procedures, reporting hazards, and participating in safety training.

  • Emergency Procedures: Familiarize yourself with emergency exits, assembly points, and procedures for fire, medical emergencies, and other critical incidents.
  • Accident Reporting: All workplace accidents, injuries, or near-misses, no matter how minor, must be reported immediately to your manager and HR Department.

3.5 Drug-Free Workplace Policy

[Company Name] is committed to maintaining a drug-free workplace. 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 may be subject to drug and alcohol testing in accordance with applicable laws.

3.6 Workplace Violence Prevention

[Company Name] has a zero-tolerance policy for workplace violence. Threats, intimidation, harassment, or acts of violence will not be tolerated. Employees who engage in such behavior will face disciplinary action, up to and including termination, and may be reported to law enforcement.

3.7 Confidentiality and Data Security

Employees may have access to confidential and proprietary information, including business strategies, financial data, customer lists, and personal employee information. All such information must be treated with the utmost confidentiality and used only for legitimate business purposes.

  • Data Protection: Employees are responsible for protecting company data and systems. This includes using strong passwords, locking computers when away from the desk, and avoiding sharing sensitive information.

3.8 Use of Company Property and Resources

Company property, including computers, software, internet access, email, telephones, vehicles, and equipment, are provided for business use. Incidental personal use is permitted if it does not interfere with work duties, violate company policies, or involve illegal or inappropriate activities.

  • Monitoring: Employees should have no expectation of privacy when using company resources. [Company Name] reserves the right to monitor, access, and disclose all communications and data created, sent, or stored on company systems, in accordance with applicable laws.

3.9 Social Media Policy

Employees are expected to exercise good judgment and professionalism when using social media, especially when identifying as an employee of [Company Name]. Avoid posting confidential company information, disparaging remarks about the company or its employees, or content that could damage the company's reputation.

3.10 Conflict of Interest

Employees must avoid situations where their personal interests conflict with the interests of [Company Name]. Any potential or actual conflict of interest must be disclosed to your manager or HR Department.

3.11 Ethics and Integrity

All employees are expected to uphold the highest standards of ethics and integrity. This includes honest dealings, fair competition, and adherence to all applicable laws and regulations.

3.12 Reporting Misconduct (Whistleblower Policy)

[Company Name] encourages employees to report any suspected illegal or unethical conduct without fear of retaliation. Reports can be made to your manager, HR Department, or through the [Company's designated anonymous reporting channel, if applicable].


4. Compensation and Benefits Overview

4.1 Pay Periods and Direct Deposit

Employees are paid [e.g., bi-weekly] on [e.g., Friday]. Direct deposit is mandatory for all employees.

4.2 Overtime (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 [e.g., 40] in a workweek. All overtime must be pre-approved by your manager.

4.3 Benefits Eligibility

Eligibility for benefits varies based on employment classification (e.g., full-time vs. part-time) and length of service. Detailed information on eligibility and enrollment will be provided by the HR Department.

4.4 Health Insurance

[Company Name] offers comprehensive health insurance plans, including:

  • Medical Insurance: [Brief description, e.g., "Multiple plan options, including PPO and HMO, with employer contribution."].
  • Dental Insurance: [Brief description, e.g., "Coverage for preventative, basic, and major dental care."].
  • Vision Insurance: [Brief description, e.g., "Coverage for eye exams, glasses, and contact lenses."].

4.5 Retirement Plans

  • 401(k) Plan: [Company Name] offers a 401(k) retirement savings plan with [e.g., a company match of X% on employee contributions up to Y% of salary]. Employees are eligible to participate after [e.g., 90 days of employment].
  • Financial Wellness Resources: [Optional: Mention any financial planning tools or resources].

4.6 Life Insurance

[Company Name] provides [e.g., basic life insurance coverage equivalent to 1x annual salary] at no cost to eligible employees. Optional supplemental life insurance may be purchased.

4.7 Disability Insurance

  • Short-Term Disability (STD): Provides income replacement for eligible employees unable to work due to a non-work-related illness or injury for a short period.
  • Long-Term Disability (LTD): Provides income replacement for eligible employees unable to work due to a non-work-related illness or injury for an extended period.

4.8 Employee Assistance Program (EAP)

A confidential Employee Assistance Program (EAP) is available to all employees and their immediate family members, offering support for personal and work-related issues, including counseling, financial advice, and legal consultation.

4.9 Other Perks and Benefits

  • Professional Development: Opportunities for training, workshops, and conferences.
  • Tuition Reimbursement: [Policy details, e.g., "Partial tuition reimbursement for job-related courses or degrees."].
  • Wellness Programs: [e.g., "On-site fitness classes, wellness challenges, and healthy living resources."].
  • Employee Discounts: [e.g., "Access to various employee discount programs."].

5. Leave Policies

5.1 Paid Time Off (PTO) / Vacation Policy

[Company Name] offers a comprehensive PTO program that combines vacation, sick leave, and personal days into a single bank of hours.

  • Accrual: PTO hours accrue [e.g., per pay period] based on employment classification and length of service.
  • Usage: Employees must request PTO in advance through [e.g., the HR portal] and obtain manager approval.
  • Carryover: [State policy, e.g., "Up to X hours of unused PTO may be carried over to the next year."].
  • Payout: [State policy, e.g., "Unused PTO is not paid out upon termination of employment, or is paid out up to X hours."].

5.2 Sick Leave Policy

(If separate from PTO)

Employees accrue [e.g., X hours] of sick leave per [e.g., month/year] for personal illness, injury, or

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);}});}