-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
157 additions
and
87 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 |
---|---|---|
|
@@ -8,15 +8,14 @@ | |
<meta name="keywords" content="draw, canvas, javascript, mouse, pointer, no-code, HTML, Canvascript" /> | ||
<meta name="author" content="Viraj Bijpuria" /> | ||
<meta property="og:title" content="CanvaScript - Draw on the HTML canvas without writing code" /> | ||
<meta property="og:description" | ||
content="Draw with your pointer on the HTML canvas, then get the code to render it." /> | ||
<meta property="og:description" content="Draw with your pointer on the HTML canvas, then get the code to render it." /> | ||
<meta property="og:image" content="https://vbprodev.github.io/Canvascript/CanvaScript.png" /> | ||
<meta property="og:url" content="https://vbprodev.github.io/Canvascript/" /> | ||
<meta property="og:type" content="website" /> | ||
<meta name="google-site-verification" content="2nZEIGfRoHGC-BS3L-BIv6bkhVUZDpoGNgUK9Z4Pub8" /> | ||
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" /> | ||
<link rel="icon" href="assets/CanvaScript.png" type="image/icon type" /> | ||
<link rel="canonical" href="https://github.com/VBproDev/Canvascript"> | ||
<link rel="canonical" href="https://github.com/VBproDev/Canvascript" /> | ||
<link href="./stylesheet.css" rel="stylesheet" /> | ||
<title>CanvaScript - Draw on the HTML canvas without writing code</title> | ||
<script type="application/ld+json"> | ||
|
@@ -59,12 +58,11 @@ | |
"https://discord.gg/ZXMEkzfZXx" | ||
] | ||
} | ||
</script> | ||
<script src="./script.js" defer></script> | ||
</script> | ||
<script src="./script.js" defer></script> | ||
</head> | ||
|
||
<body> | ||
<!-- Schema.org structured data --> | ||
<div itemscope itemtype="https://schema.org/SoftwareApplication"> | ||
<meta itemprop="name" content="Canvascript" /> | ||
<meta itemprop="url" content="https://vbprodev.github.io/Canvascript/" /> | ||
|
@@ -73,90 +71,71 @@ | |
<meta itemprop="applicationCategory" content="DeveloperApplication" /> | ||
<meta itemprop="operatingSystem" content="Web" /> | ||
<meta itemprop="softwareVersion" content="1.0" /> | ||
|
||
<div itemprop="author" itemscope itemtype="https://schema.org/Person"> | ||
<meta itemprop="name" content="Viraj Bijpuria" /> | ||
<meta itemprop="name" content="Viraj Bijpuria" /> | ||
</div> | ||
|
||
<div itemprop="publisher" itemscope itemtype="https://schema.org/Organization"> | ||
<meta itemprop="name" content="VBproDev" /> | ||
<meta itemprop="url" content="https://github.com/VBproDev" /> | ||
<meta itemprop="name" content="VBproDev" /> | ||
<meta itemprop="url" content="https://github.com/VBproDev" /> | ||
</div> | ||
|
||
<meta itemprop="image" content="assets/CanvaScript.png" /> | ||
|
||
<div itemprop="offers" itemscope itemtype="https://schema.org/Offer"> | ||
<meta itemprop="price" content="0" /> | ||
<meta itemprop="priceCurrency" content="USD" /> | ||
<meta itemprop="category" content="Open Source" /> | ||
<meta itemprop="price" content="0" /> | ||
<meta itemprop="priceCurrency" content="USD" /> | ||
<meta itemprop="category" content="Open Source" /> | ||
</div> | ||
|
||
<div itemprop="potentialAction" itemscope itemtype="https://schema.org/UseAction"> | ||
<meta itemprop="target" content="https://vbprodev.github.io/Canvascript/" /> | ||
<meta itemprop="target" content="https://vbprodev.github.io/Canvascript/" /> | ||
</div> | ||
|
||
<meta itemprop="keywords" content="javascript, performance, html5, canvas-api, no-code, web-game-dev, draw, mouse, pointer" /> | ||
|
||
<div itemprop="featureList" itemscope itemtype="https://schema.org/ItemList"> | ||
<div itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem"> | ||
<meta itemprop="name" content="Free-hand drawing on HTML canvas" /> | ||
</div> | ||
<div itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem"> | ||
<meta itemprop="name" content="Automatic code generation" /> | ||
</div> | ||
<div itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem"> | ||
<meta itemprop="name" content="Curved line support" /> | ||
</div> | ||
<div itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem"> | ||
<meta itemprop="name" content="Design import/export" /> | ||
</div> | ||
<div itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem"> | ||
<meta itemprop="name" content="Preview modes" /> | ||
</div> | ||
<div itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem"> | ||
<meta itemprop="name" content="Free-hand drawing on HTML canvas" /> | ||
</div> | ||
<div itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem"> | ||
<meta itemprop="name" content="Automatic code generation" /> | ||
</div> | ||
<div itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem"> | ||
<meta itemprop="name" content="Curved line support" /> | ||
</div> | ||
<div itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem"> | ||
<meta itemprop="name" content="Design import/export" /> | ||
</div> | ||
<div itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem"> | ||
<meta itemprop="name" content="Preview modes" /> | ||
</div> | ||
</div> | ||
|
||
<div itemprop="mainEntityOfPage" itemscope itemtype="https://schema.org/WebPage"> | ||
<meta itemprop="@id" content="https://vbprodev.github.io/Canvascript/" /> | ||
<meta itemprop="@id" content="https://vbprodev.github.io/Canvascript/" /> | ||
</div> | ||
|
||
<meta itemprop="sameAs" content="https://github.com/VBproDev/Canvascript" /> | ||
<meta itemprop="sameAs" content="https://discord.gg/ZXMEkzfZXx" /> | ||
|
||
<div itemprop="applicationSuite" itemscope itemtype="https://schema.org/CreativeWorkSeries"> | ||
<meta itemprop="name" content="Web Game Development Tools" /> | ||
<meta itemprop="name" content="Web Game Development Tools" /> | ||
</div> | ||
|
||
<meta itemprop="requirements" content="Modern web browser with HTML5 Canvas support" /> | ||
<meta itemprop="installUrl" content="https://vbprodev.github.io/Canvascript/" /> | ||
</div> | ||
|
||
<!-- Existing content --> | ||
<div class="d-flex justify-content-center"> | ||
<div | ||
class="popup_saved d-flex align-items-center bg-success text-white rounded-pill py-2 px-4 position-fixed top-0 mt-3 transition-opacity"> | ||
<div class="popup_saved d-flex align-items-center bg-success text-white rounded-pill py-2 px-4 position-fixed top-0 mt-3 transition-opacity"> | ||
<span>Design has been saved</span> | ||
<button class="btn-close btn-close-white ms-2" aria-label="Close"></button> | ||
</div> | ||
</div> | ||
|
||
<div class="d-flex justify-content-center p-2"> | ||
<h4 class="me-1">Line Color:</h4> | ||
<input class="color me-3" type="color" /> | ||
|
||
<h4 class="me-1">Line width:</h4> | ||
<input class="stroke-width" placeholder="1" min="1" type="number" id="stroke-width" /> | ||
</div> | ||
|
||
<div class="d-flex justify-content-center"> | ||
<div class="form-check form-switch"> | ||
<input class="form-check-input isFreehand" type="checkbox" id="freehandSwitch"> Draw freehand? | ||
</div> | ||
</div> | ||
|
||
<div class="d-flex justify-content-center"> | ||
<canvas class="canvas"></canvas> | ||
</div> | ||
|
||
<div class="actions"> | ||
<div> | ||
<button class="undo">Undo</button> | ||
|
@@ -167,9 +146,7 @@ <h4 class="me-1">Line width:</h4> | |
<button class="generate primary">Generate code</button> | ||
</div> | ||
</div> | ||
|
||
<code class="space"></code> | ||
|
||
<div class="container curve-input-container" id="0"> | ||
<div> | ||
<div class="title">Line curvature</div> | ||
|
@@ -185,13 +162,11 @@ <h4 class="me-1">Line width:</h4> | |
</div> | ||
</div> | ||
</div> | ||
|
||
<div class="code"> | ||
<pre> | ||
<code class="space"></code> | ||
</pre> | ||
<code class="space"></code> | ||
</pre> | ||
</div> | ||
|
||
<div class="container"> | ||
<div> | ||
<div class="title">Project resolution (in pixels)</div> | ||
|
@@ -202,7 +177,6 @@ <h4 class="me-1">Line width:</h4> | |
</div> | ||
</div> | ||
</div> | ||
|
||
<div class="design_code"> | ||
<div> | ||
<div> | ||
|
@@ -214,16 +188,26 @@ <h4 class="me-1">Line width:</h4> | |
</div> | ||
</div> | ||
</div> | ||
|
||
<div class="use_design"> | ||
<button class="user-design success">Use design</button> | ||
</div> | ||
|
||
<footer> | ||
<a href="https://discord.gg/ZXMEkzfZXx" target="_blank">Join us on Discord</a> | ||
- | ||
<a href="https://github.com/vbprodev/Canvascript" target="_blank">Star us on GitHub</a> | ||
</footer> | ||
<div class="footer_wrapper"> | ||
<footer class="footer"> | ||
<div class="waves"> | ||
<div class="wave" id="wave1"></div> | ||
<div class="wave" id="wave2"></div> | ||
<div class="wave" id="wave3"></div> | ||
<div class="wave" id="wave4"></div> | ||
</div> | ||
<ul class="menu"> | ||
<li><a href="https://discord.gg/ZXMEkzfZXx">Discord</a></li> | ||
<li><a href="https://github.com/vbprodev/Canvascript">GitHub</a></li> | ||
<li><a href="https://github.com/VBproDev/Canvascript/graphs/contributors">Team</a></li> | ||
<li><a href="https://github.com/VBproDev/Canvascript/issues">Support</a></li> | ||
</ul> | ||
<p>©2024 Canvascript</p> | ||
</footer> | ||
</div> | ||
</body> | ||
|
||
</html> | ||
</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