Notes
Notes - notes.io |
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous">
<script src="https://code.jquery.com/jquery-3.5.0.min.js"
integrity="sha256-xNzN2a4ltkB44Mc/Jz3pT4iU1cmeR0FkXs4pru/JxaQ=" crossorigin="anonymous"></script>
<style>
#sortable {
list-style-type: none;
margin: 0;
padding: 0;
width: 60%;
}
#sortable li {
margin: 0 3px 3px 3px;
padding: 0.4em;
padding-left: 1.5em;
font-size: 1.4em;
/* height: 18px; */
}
#sortable li span {
position: absolute;
margin-left: -1.3em;
}
</style>
</head>
<body>
<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
<a class="navbar-brand" href="#">Menu Düzenleme Ekranı</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent"
aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav mr-auto custom-menu">
</ul>
</div>
</nav>
<div class="container">
<div class="row mt-5">
<div class="col ">
<div class="card card-default">
<div class="card-body">
<a href="https://jqueryui.com/sortable/" target="_blank">https://jqueryui.com/sortable/</a>
<ul id="sortable" class="main-menu list-group list-group-flush"></ul>
<br />
<button id="btnMenu" class="btn btn-outline-dark btn-sm ">Menü Düzenle</button>
</div>
</div>
</div>
</div>
</div>
<script>
$(document).ready(function () {
const menu = ["Anasayfa", "Hakkımızda", "Biz Kimiz", "Siz Kimsiniz", "Onlar Kim", "İletişim", "Galeri", "Referanslar"];
let navMenu = []
let mainMenu = []
for (var m in menu) {
navMenu.push('<li class="nav-item"> <a class="nav-link" href="#">' + menu[m] + '</a> </li>')
mainMenu.push('<li class="list-group-item"> <a href="#">' + menu[m] + '</a> </li>')
}
$(".custom-menu").html(navMenu.join(""));
$(".main-menu").html(mainMenu.join(""));
})
</script>
</body>
</html>
<!-- .append() puts data inside an element at last index and
.prepend() puts the prepending elem at first index -->
<!-- https://medium.com/batech/stringbuilder-%C4%B1n-performansa-etkisi-ve-kullan%C4%B1m-deneyimi-2b7a30b70d7b -->
|
Notes.io is a web-based application for taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000 notes created and continuing...
With notes.io;
- * You can take a note from anywhere and any device with internet connection.
- * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
- * You can quickly share your contents without website, blog and e-mail.
- * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
- * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.
Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.
Easy: Notes.io doesn’t require installation. Just write and share note!
Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )
Free: Notes.io works for 12 years and has been free since the day it was started.
You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;
Email: [email protected]
Twitter: http://twitter.com/notesio
Instagram: http://instagram.com/notes.io
Facebook: http://facebook.com/notesio
Regards;
Notes.io Team