mirror of
https://github.com/PR0M3TH3AN/text_splitter.git
synced 2025-09-08 07:18:42 +00:00
update
This commit is contained in:
36
README.md
36
README.md
@@ -1,46 +1,44 @@
|
|||||||
# eCash Text Splitter for Meshtastic
|
# eCash Text Splitter for Meshtastic
|
||||||
|
|
||||||
A simple web tool for splitting large strings of text into smaller segments of up to 200 characters each. This tool is designed to help with sending eCash over Meshtastic, allowing you to easily copy and transmit chunks of text.
|
A web tool to split large text into segments of up to 150 characters each, perfect for sending eCash over Meshtastic.
|
||||||
|
|
||||||
## Features
|
## Features
|
||||||
|
|
||||||
- **Text Splitting**: Breaks down large text into smaller parts of up to 200 characters.
|
- **Text Splitting**: Breaks down text into 150-character chunks.
|
||||||
- **Copy Functionality**: Provides copy buttons for each text segment.
|
- **Copy Functionality**: Copy buttons for each segment.
|
||||||
- **Offline Use**: Fully functional in any modern web browser without the need for an internet connection.
|
- **Offline Use**: Works in any modern browser offline.
|
||||||
- **Live Version**: [Access the live version here](https://ecash-text-splitter.netlify.app/).
|
- **Live Version**: [Try it live here](https://ecash-text-splitter.netlify.app/).
|
||||||
|
|
||||||
## How to Use
|
## How to Use
|
||||||
|
|
||||||
1. **Open the Tool**: Navigate to the live version of the tool [here](https://ecash-text-splitter.netlify.app/) or download the HTML file from this repository.
|
1. **Open the Tool**: Access the live version [here](https://ecash-text-splitter.netlify.app/) or use the HTML file from this repo.
|
||||||
2. **Paste Your Text**: Enter your large eCash text into the provided textarea.
|
2. **Paste Your Text**: Enter your text in the textarea.
|
||||||
3. **Split the Text**: Click the "Split Text" button to divide your text into manageable chunks.
|
3. **Split the Text**: Click "Split Text" to divide it into chunks.
|
||||||
4. **Copy Chunks**: Use the "Copy" button next to each segment to copy the text to your clipboard.
|
4. **Copy Chunks**: Click the "Copy" button next to each segment.
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
To run the tool locally:
|
To run locally:
|
||||||
|
|
||||||
1. Clone the repository:
|
1. Clone the repo:
|
||||||
```bash
|
```bash
|
||||||
git clone https://github.com/PR0M3TH3AN/text_splitter.git
|
git clone https://github.com/PR0M3TH3AN/text_splitter.git
|
||||||
```
|
```
|
||||||
2. Open the `index.html` file in your preferred web browser.
|
2. Open `index.html` in your browser.
|
||||||
|
|
||||||
## Contributing
|
## Contributing
|
||||||
|
|
||||||
If you would like to contribute to this project, please follow these steps:
|
1. Fork the repo.
|
||||||
|
|
||||||
1. Fork the repository.
|
|
||||||
2. Create a new branch (`git checkout -b feature-branch`).
|
2. Create a new branch (`git checkout -b feature-branch`).
|
||||||
3. Make your changes.
|
3. Make your changes.
|
||||||
4. Commit your changes (`git commit -am 'Add new feature'`).
|
4. Commit (`git commit -am 'Add new feature'`).
|
||||||
5. Push to the branch (`git push origin feature-branch`).
|
5. Push (`git push origin feature-branch`).
|
||||||
6. Open a pull request.
|
6. Open a pull request.
|
||||||
|
|
||||||
## License
|
## License
|
||||||
|
|
||||||
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
|
MIT License - see the [LICENSE](LICENSE) file for details.
|
||||||
|
|
||||||
## Contact
|
## Contact
|
||||||
|
|
||||||
For questions or comments, please open an issue on the [GitHub repository](https://github.com/PR0M3TH3AN/text_splitter).
|
Open an issue on the [GitHub repository](https://github.com/PR0M3TH3AN/text_splitter) for questions.
|
@@ -30,14 +30,14 @@
|
|||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<h1>eCash Text Splitter for Meshtastic</h1>
|
<h1>eCash Text Splitter for Meshtastic</h1>
|
||||||
<p>Paste your eCash text below and click "Split Text" to divide it into smaller parts of up to 200 characters each, suitable for sending over Meshtastic.</p>
|
<p>Paste your eCash text below and click "Split Text" to divide it into smaller parts of up to 150 characters each, suitable for sending over Meshtastic.</p>
|
||||||
<textarea id="inputText" placeholder="Paste your eCash text here..."></textarea>
|
<textarea id="inputText" placeholder="Paste your eCash text here..."></textarea>
|
||||||
<button onclick="splitText()">Split Text</button>
|
<button onclick="splitText()">Split Text</button>
|
||||||
<div id="output"></div>
|
<div id="output"></div>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
function splitText() {
|
function splitText() {
|
||||||
const maxLength = 200;
|
const maxLength = 150;
|
||||||
const inputText = document.getElementById('inputText').value;
|
const inputText = document.getElementById('inputText').value;
|
||||||
const outputDiv = document.getElementById('output');
|
const outputDiv = document.getElementById('output');
|
||||||
outputDiv.innerHTML = '';
|
outputDiv.innerHTML = '';
|
||||||
@@ -80,6 +80,7 @@
|
|||||||
|
|
||||||
<div class="repo-link">
|
<div class="repo-link">
|
||||||
<p>Find the code for this eCash Text Splitter on GitHub: <a href="https://github.com/PR0M3TH3AN/text_splitter">https://github.com/PR0M3TH3AN/text_splitter</a></p>
|
<p>Find the code for this eCash Text Splitter on GitHub: <a href="https://github.com/PR0M3TH3AN/text_splitter">https://github.com/PR0M3TH3AN/text_splitter</a></p>
|
||||||
|
<p>Access the live version of the tool here: <a href="https://ecash-text-splitter.netlify.app/">https://ecash-text-splitter.netlify.app/</a></p>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
Reference in New Issue
Block a user