-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added code mirror for code visualization and improvement of UI/UX
- Loading branch information
Showing
3 changed files
with
86 additions
and
13 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
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 |
---|---|---|
|
@@ -9,6 +9,8 @@ | |
<link rel="icon" href="assets/favicon.ico" type="image/x-icon"> | ||
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet"> | ||
<link href="https://cdn.jsdelivr.net/npm/bootstrap-icons/font/bootstrap-icons.css" rel="stylesheet"> | ||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/codemirror/6.65.7/codemirror.min.css"> | ||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/codemirror/6.65.7/theme/material-darker.min.css"> | ||
<link rel="stylesheet" href="assets/css/app.css"> | ||
<script type="application/ld+json"> | ||
{ | ||
|
@@ -77,6 +79,7 @@ <h1 class="h3 mb-0"><a href="./" class="text-decoration-none text-white">Regex P | |
<option value="C#">C#</option> | ||
<option value="Java">Java</option> | ||
<option value="Ruby">Ruby</option> | ||
<option value="Rust">Rust</option> | ||
<option value="Go">Go</option> | ||
<option value="Swift">Swift</option> | ||
<option value="Perl">Perl</option> | ||
|
@@ -85,6 +88,9 @@ <h1 class="h3 mb-0"><a href="./" class="text-decoration-none text-white">Regex P | |
<button type="button" onclick="showPattern()" class="btn btn-primary"> | ||
<i class="bi bi-eye"></i> Show Pattern and Code | ||
</button> | ||
<button type="button" onclick="resetForm()" class="btn btn-outline-danger ms-2"> | ||
<i class="bi bi-arrow-clockwise"></i> Reset Form | ||
</button> | ||
</form> | ||
<div id="regexDisplay" class="alert alert-success mt-3">Regex pattern will be displayed here.</div> | ||
<div class="accordion mt-3" id="explanationAccordion" style="display: none;"> | ||
|
@@ -101,7 +107,7 @@ <h2 class="accordion-header" id="headingExplanation"> | |
</div> | ||
</div> | ||
</div> | ||
<div id="codeExampleDisplay" class="alert alert-info mt-3">Code example will be displayed here.</div> | ||
<div id="codeExampleDisplay" class="border border-3 border-success rounded p-3 mt-3">Code example will be displayed here.</div> | ||
<div id="actions" class="mt-3"> | ||
<button id="exportButton" type="button" class="btn btn-success" style="display: none;"> | ||
<i class="bi bi-download"></i> Export to File | ||
|
@@ -120,6 +126,14 @@ <h2 class="accordion-header" id="headingExplanation"> | |
</footer> | ||
</div> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.min.js"></script> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/6.65.7/codemirror.min.js"></script> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.65.5/mode/clike/clike.min.js"></script> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/6.65.7/mode/javascript/javascript.min.js"></script> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/6.65.7/mode/python/python.min.js"></script> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/6.65.7/mode/ruby/ruby.min.js"></script> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/6.65.7/mode/go/go.min.js"></script> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/6.65.7/mode/swift/swift.min.js"></script> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/6.65.7/mode/perl/perl.min.js"></script> | ||
<script src="assets/js/app.js"></script> | ||
</body> | ||
</html> |