-
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.
- Loading branch information
Showing
12 changed files
with
131 additions
and
24 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,13 @@ | ||
import { NavItemSelected, SideNavCollapse, AddNewWebLinkInit,WebLinkActionsInit } from './home/index.js'; | ||
import { DeleteAccountModelInit, DisableMyAccountInit } from './setting/index.js'; | ||
import {NavItemSelected, SideNavCollapse, AddNewWebLinkInit, WebLinkActionsInit, ShareLinkInit} from './home/index.js'; | ||
import {DeleteAccountModelInit, DisableMyAccountInit} from './setting/index.js'; | ||
|
||
document.addEventListener('DOMContentLoaded', function () { | ||
NavItemSelected(); | ||
SideNavCollapse(); | ||
DeleteAccountModelInit(); | ||
DisableMyAccountInit(); | ||
AddNewWebLinkInit(); | ||
WebLinkActionsInit(); | ||
console.info('App is loaded'); | ||
NavItemSelected(); | ||
SideNavCollapse(); | ||
DeleteAccountModelInit(); | ||
DisableMyAccountInit(); | ||
AddNewWebLinkInit(); | ||
WebLinkActionsInit(); | ||
ShareLinkInit(); | ||
console.info('App is loaded'); | ||
}, false); |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
<div class="relative z-10 mx-right h-auto group visible"> | ||
<div class="flex items-center px-2 py-1 text-gray-700 group select-none hover:cursor-pointer hover:text-indigo-500"> | ||
<p id="add-weblink">Add Link</p> | ||
</div> | ||
</div> | ||
<!-- Modal Background --> | ||
<div id="add-weblink-modal" class="fixed inset-0 bg-gray-900 bg-opacity-50 flex justify-center pt-10 hidden"> | ||
<!-- Modal Content --> | ||
<div class="fixed bg-white w-full max-w-md mx-4 sm:mx-6 md:mx-8 lg:mx-12 p-6 sm:p-8 rounded-lg shadow-lg"> | ||
<!-- Close Button (Cross Icon) --> | ||
<button class="absolute top-4 right-4 text-gray-500 hover:text-black-700" id="close-modal"> | ||
<svg xmlns="http://www.w3.org/2000/svg" class="h-4 w-4" fill="none" viewBox="0 0 24 24" stroke="currentColor"> | ||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12" /> | ||
</svg> | ||
</button> | ||
|
||
<h2 class="text-sm sm:text-sm font-bold mb-4">Add Link</h2> | ||
|
||
<!-- Input Box --> | ||
<input autocomplete="on" required autofocus type="text" id="add-weblink-input-box" placeholder="Enter link" class="w-full p-1 border rounded mb-3 focus:outline-none focus:ring-2 focus:ring-indigo-500"> | ||
<p class="text-base text-red-600 text-left hidden" id="weblink-err"></p> | ||
<div class="flex select-none"> | ||
<div class="colors flex items-center" id="tags"> | ||
<ul> | ||
<li> | ||
<label> | ||
<input type="radio" name="tag" value="black" id="tag"/> | ||
<span class="swatch" style="background-color: #222;"></span> | ||
</label> | ||
</li> | ||
<li> | ||
<label> | ||
<input type="radio" name="tag" value="yellow" id="tag"/> | ||
<span class="swatch" style="background-color: #ffde21;"></span> | ||
</label> | ||
</li> | ||
<li> | ||
<label> | ||
<input type="radio" name="tag" value="red" id="tag"/> | ||
<span class="swatch" style="background-color: #ffa896;"></span> | ||
</label> | ||
</li> | ||
<li> | ||
<label> | ||
<input type="radio" name="tag" value="blue" id="tag"/> | ||
<span class="swatch" style="background-color: #6e8cd5;"></span> | ||
</label> | ||
</li> | ||
<li> | ||
<label> | ||
<input type="radio" name="tag" value="green" id="tag"/> | ||
<span class="swatch" style="background-color: #44c28d;"></span> | ||
</label> | ||
</li> | ||
</ul> | ||
</div> | ||
<div class="flex flex-1 justify-end"> | ||
<button class="bg-blue-500 text-white text-sm px-4 py-2 rounded hover:bg-blue-600" id="add-link-btn">Add Link</button> | ||
</div> | ||
</div> | ||
</div> | ||
</div> |