Update templates with viewport meta tag
This addition helps ensure proper rendering and responsiveness of the webpage across different devices and screen sizes.
This commit is contained in:
parent
de49f8fbc7
commit
bcc9135851
4 changed files with 117 additions and 88 deletions
|
@ -3,11 +3,14 @@
|
|||
|
||||
<head>
|
||||
<title>Edit File</title>
|
||||
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.2/css/all.min.css">
|
||||
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css">
|
||||
<link rel="stylesheet" type="text/css"
|
||||
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.2/css/all.min.css">
|
||||
<link rel="stylesheet" type="text/css"
|
||||
href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css">
|
||||
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js"></script>
|
||||
<script>
|
||||
</script>
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<link rel="icon" href="/static/favicon.ico" type="image/x-icon">
|
||||
<script src="/static/build/editor.js" type="text/javascript"></script>
|
||||
<style>
|
||||
|
@ -40,26 +43,37 @@
|
|||
<div class="d-flex justify-content-between bg-light-grey border-bottom p-2">
|
||||
<div>
|
||||
<div class="dropdown d-inline-block">
|
||||
<button class="btn dropdown-toggle" type="button" id="headingDropdown" data-bs-toggle="dropdown"
|
||||
aria-expanded="false">
|
||||
<button class="btn dropdown-toggle" type="button" id="headingDropdown"
|
||||
data-bs-toggle="dropdown" aria-expanded="false">
|
||||
<i class="fas fa-heading"></i>
|
||||
</button>
|
||||
<ul class="dropdown-menu" aria-labelledby="headingDropdown">
|
||||
<li><button class="dropdown-item" type="button" onclick="formatText('heading', 'h1')">Heading 1</button></li>
|
||||
<li><button class="dropdown-item" type="button" onclick="formatText('heading', 'h2')">Heading 2</button></li>
|
||||
<li><button class="dropdown-item" type="button" onclick="formatText('heading', 'h3')">Heading 3</button></li>
|
||||
<li><button class="dropdown-item" type="button" onclick="formatText('heading', 'h4')">Heading 4</button></li>
|
||||
<li><button class="dropdown-item" type="button" onclick="formatText('heading', 'h5')">Heading 5</button></li>
|
||||
<li><button class="dropdown-item" type="button" onclick="formatText('heading', 'h6')">Heading 6</button></li>
|
||||
<li><button class="dropdown-item" type="button"
|
||||
onclick="formatText('heading', 'h1')">Heading 1</button></li>
|
||||
<li><button class="dropdown-item" type="button"
|
||||
onclick="formatText('heading', 'h2')">Heading 2</button></li>
|
||||
<li><button class="dropdown-item" type="button"
|
||||
onclick="formatText('heading', 'h3')">Heading 3</button></li>
|
||||
<li><button class="dropdown-item" type="button"
|
||||
onclick="formatText('heading', 'h4')">Heading 4</button></li>
|
||||
<li><button class="dropdown-item" type="button"
|
||||
onclick="formatText('heading', 'h5')">Heading 5</button></li>
|
||||
<li><button class="dropdown-item" type="button"
|
||||
onclick="formatText('heading', 'h6')">Heading 6</button></li>
|
||||
</ul>
|
||||
</div>
|
||||
<button type="button" class="btn" onclick="formatText('bold')" aria-label="Bold"><i class="fas fa-bold"></i></button>
|
||||
<button type="button" class="btn " onclick="formatText('italic')"><i class="fas fa-italic"></i></button>
|
||||
<button type="button" class="btn " onclick="formatText('underline')"><i class="fas fa-underline"></i></button>
|
||||
<button type="button" class="btn " onclick="formatText('strikeThrough')"><i class="fas fa-strikethrough"></i></button>
|
||||
<button type="button" class="btn" onclick="formatText('bold')" aria-label="Bold"><i
|
||||
class="fas fa-bold"></i></button>
|
||||
<button type="button" class="btn " onclick="formatText('italic')"><i
|
||||
class="fas fa-italic"></i></button>
|
||||
<button type="button" class="btn " onclick="formatText('underline')"><i
|
||||
class="fas fa-underline"></i></button>
|
||||
<button type="button" class="btn " onclick="formatText('strikeThrough')"><i
|
||||
class="fas fa-strikethrough"></i></button>
|
||||
<button type="button" class="btn " onclick="undo()"><i class="fas fa-undo"></i></button>
|
||||
<button type="button" class="btn " onclick="redo()"><i class="fas fa-redo"></i></button>
|
||||
<button type="button" class="btn " onclick="formatText('removeFormat')"><i class="fas fa-eraser"></i></button>
|
||||
<button type="button" class="btn " onclick="formatText('removeFormat')"><i
|
||||
class="fas fa-eraser"></i></button>
|
||||
</div>
|
||||
|
||||
<!-- First few buttons visible on small screens -->
|
||||
|
@ -67,19 +81,22 @@
|
|||
<button class="btn " onclick="addTable()"><i class="fas fa-table" disabled></i></button>
|
||||
<button class="btn " onclick="addVideo()"><i class="fas fa-video"></i></button>
|
||||
|
||||
<button type="button" class="btn " onclick="formatText('insertUnorderedList')"><i class="fas fa-list-ul"></i></button>
|
||||
<button type="button" class="btn " onclick="formatText('insertOrderedList')"><i class="fas fa-list-ol"></i></button>
|
||||
<button type="button" class="btn " onclick="formatText('insertUnorderedList')"><i
|
||||
class="fas fa-list-ul"></i></button>
|
||||
<button type="button" class="btn " onclick="formatText('insertOrderedList')"><i
|
||||
class="fas fa-list-ol"></i></button>
|
||||
<button type="button" class="btn " onclick="insertImage()"><i class="fas fa-image"></i></button>
|
||||
<!--- <button type="button" class="btn " onclick="formatText('formatBlock', '<blockquote>')" disabled><i class="fas fa-quote-right"></i></button>
|
||||
<button type="button" class="btn " onclick="formatText('formatBlock', '<code>')" disabled><i class="fas fa-code"></i></button> -->
|
||||
<button type="button" class="btn " onclick="formatText('insertHorizontalRule')"><i class="fas fa-grip-lines"></i></button>
|
||||
<button type="button" class="btn " onclick="formatText('insertHorizontalRule')"><i
|
||||
class="fas fa-grip-lines"></i></button>
|
||||
<button class="btn " onclick="insertLink()"><i class="fas fa-link"></i></button>
|
||||
</div>
|
||||
|
||||
<!-- Dropdown with remaining buttons on small screens -->
|
||||
<div class="dropdown position-relative d-md-none">
|
||||
<button class="btn dropdown-toggle" type="button" id="dropdownMenuButton" data-bs-toggle="dropdown"
|
||||
aria-expanded="false">
|
||||
<button class="btn dropdown-toggle" type="button" id="dropdownMenuButton"
|
||||
data-bs-toggle="dropdown" aria-expanded="false">
|
||||
<i class="fas fa-ellipsis-v"></i>
|
||||
</button>
|
||||
<ul class="dropdown-menu dropdown-menu-end" aria-labelledby="dropdownMenuButton">
|
||||
|
@ -87,15 +104,20 @@
|
|||
<li><button class="dropdown-item" type="button" onclick="addVideo()">Add Video</button></li>
|
||||
<li><button class="dropdown-item" type="button"
|
||||
onclick="formatText('insertUnorderedList')">Insert Unordered List</button></li>
|
||||
<li><button class="dropdown-item" type="button" onclick="formatText('insertOrderedList')">Insert Ordered List</button></li>
|
||||
<li><button class="dropdown-item" type="button" onclick="insertImage()">Insert Image</button></li>
|
||||
<li><button class="dropdown-item" type="button" onclick="formatText('insertHorizontalRule')">Insert Horizontal Rule</button></li>
|
||||
<li><button class="dropdown-item" type="button" onclick="insertLink()">Insert Link</button></li>
|
||||
<li><button class="dropdown-item" type="button"
|
||||
onclick="formatText('insertOrderedList')">Insert Ordered List</button></li>
|
||||
<li><button class="dropdown-item" type="button" onclick="insertImage()">Insert
|
||||
Image</button></li>
|
||||
<li><button class="dropdown-item" type="button"
|
||||
onclick="formatText('insertHorizontalRule')">Insert Horizontal Rule</button></li>
|
||||
<li><button class="dropdown-item" type="button" onclick="insertLink()">Insert Link</button>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<button class="btn " onclick="confirmOverwrite()"> <i class="fa fa-notes-medical"></i> Templates</i></button>
|
||||
<button class="btn " onclick="confirmOverwrite()"> <i class="fa fa-notes-medical"></i>
|
||||
Templates</i></button>
|
||||
<button class="btn " onclick="saveForm()"><i class="fas fa-save"></i></button>
|
||||
<button class="btn " onclick="confirmDeletion()"><i class="fas fa-trash"></i></button>
|
||||
</div>
|
||||
|
|
|
@ -5,6 +5,8 @@
|
|||
<title>Notatio</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<link rel="icon" href="/static/favicon.ico" type="image/x-icon">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
|
||||
<!-- Font Awesome CSS for spinner -->
|
||||
<link rel="stylesheet" type="text/css"
|
||||
|
|
|
@ -8,6 +8,9 @@
|
|||
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
|
||||
<script src="/static/build/list.js" type="text/javascript"></script>
|
||||
<script src="/static/build/darkmode.js" type="text/javascript"></script>
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
|
|
@ -8,6 +8,8 @@
|
|||
<link rel="icon" href="/static/favicon.ico" type="image/x-icon">
|
||||
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css">
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
|
Loading…
Reference in a new issue