forked from steveseguin/vdo.ninja
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'steveseguin:develop' into develop
- Loading branch information
Showing
61 changed files
with
71,186 additions
and
30,189 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# Simple workflow for deploying static content to GitHub Pages | ||
name: Deploy static content to Pages | ||
|
||
on: | ||
# Runs on pushes targeting the default branch | ||
push: | ||
branches: ["develop"] | ||
|
||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages | ||
permissions: | ||
contents: read | ||
pages: write | ||
id-token: write | ||
|
||
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. | ||
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. | ||
concurrency: | ||
group: "pages" | ||
cancel-in-progress: false | ||
|
||
jobs: | ||
# Single deploy job since we're just deploying | ||
deploy: | ||
environment: | ||
name: github-pages | ||
url: ${{ steps.deployment.outputs.page_url }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Setup Pages | ||
uses: actions/configure-pages@v5 | ||
- name: Upload artifact | ||
uses: actions/upload-pages-artifact@v3 | ||
with: | ||
# Upload entire repository | ||
path: '.' | ||
- name: Deploy to GitHub Pages | ||
id: deployment | ||
uses: actions/deploy-pages@v4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"semi": true, | ||
"singleQuote": false, | ||
"tabWidth": 4, | ||
"useTabs": true, | ||
"bracketSpacing": true, | ||
"jsxBracketSameLine": false, | ||
"arrowParens": "avoid", | ||
"trailingComma": "none", | ||
"printWidth": 10000 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>VDO.Ninja CSS to Base64 Converter</title> | ||
<style> | ||
body { | ||
font-family: Arial, sans-serif; | ||
background-color: #1E1E1E; | ||
color: #E0E0E0; | ||
max-width: 800px; | ||
margin: 0 auto; | ||
padding: 20px; | ||
} | ||
h1, h2 { | ||
color: #E0E0E0; | ||
} | ||
textarea { | ||
width: 100%; | ||
height: 200px; | ||
margin-bottom: 10px; | ||
background-color: #2D2D2D; | ||
color: #E0E0E0; | ||
border: 1px solid #3D3D3D; | ||
border-radius: 4px; | ||
padding: 10px; | ||
font-family: monospace; | ||
} | ||
#output { | ||
height: 100px; | ||
} | ||
button { | ||
padding: 10px 20px; | ||
background-color: #4ecca3; | ||
color: #1E1E1E; | ||
border: none; | ||
border-radius: 4px; | ||
cursor: pointer; | ||
font-weight: bold; | ||
transition: background-color 0.3s; | ||
} | ||
button:hover { | ||
background-color: #45b392; | ||
} | ||
.container { | ||
background-color: #2D2D2D; | ||
padding: 20px; | ||
border-radius: 8px; | ||
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<div class="container"> | ||
<h1>VDO.Ninja CSS to Base64 Converter</h1> | ||
<textarea id="cssInput" placeholder="Enter your CSS here..."></textarea> | ||
<button onclick="convertToBase64()">Convert</button><br><br> | ||
<i>💡Tip: Adding <b>!important</b> after your CSS values can help override existing values.</i> | ||
|
||
<h2>Output:</h2> | ||
<textarea id="output" readonly></textarea> | ||
<button onclick="copyToClipboard()">Copy to Clipboard</button> | ||
</div> | ||
<script> | ||
function convertToBase64() { | ||
const cssInput = document.getElementById('cssInput').value; | ||
// Remove tabs and extra spaces | ||
const sanitizedCSS = cssInput.replace(/\s+/g, ' ').trim(); | ||
const base64CSS = btoa(encodeURIComponent(sanitizedCSS)); | ||
document.getElementById('output').value = '&cssb64=' + base64CSS; | ||
} | ||
function copyToClipboard() { | ||
const output = document.getElementById('output'); | ||
output.select(); | ||
document.execCommand('copy'); | ||
alert('Copied to clipboard!'); | ||
} | ||
</script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.