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
const routes = [ | |
{ | |
path: "/", | |
redirect: "/dashboard", | |
component: () => import("../views/themes/dashboard"), | |
meta:{ | |
requiresAuth: true | |
} | |
] |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Bottom Navbar Bootstrap</title> | |
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"> | |
<style type="text/css"> | |
svg{ | |
color: white; |
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
<?php | |
$kd_manual = createBase32Key(); | |
$tokenkey = helperb322hex($kd_manual); | |
$qrcode = helperhex2b32($tokenkey); | |
$backupcode = "123456789012345"; | |
$init = [ | |
"tokenkey" => $tokenkey, | |
"tokentype" => "TOTP", |
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
v-add-letsencrypt-domain [username] [domainname.com] | |
// change [username] with your name of user | |
// change [domainname.com] with domain what you want to add ssl |
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
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script> | |
<script src="main.js"></script> | |
<link href="style.css"> | |
<div class="left"> | |
<div class="js_scrollTo">test1</div> | |
<div class="js_scrollTo">test2</div> | |
<div class="js_scrollTo">test3</div> | |
</div> | |
<div class="right"> |
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
// i am use ext .js because if i use .vue doesn't higlihgt | |
computed: { | |
listenSelectMessage() { | |
return this.$store.state.staffChat._searchMessage.selected; | |
}, | |
}, | |
watch:{ | |
listenSelectMessage: function (baru, lama) { | |
console.log(baru, lama) | |
// event here |
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
<?php | |
// please place this script to index.php in root folder | |
// in first line after open tag php | |
header('Access-Control-Allow-Origin: *'); | |
header("Access-Control-Allow-Methods: GET, POST, PUT, PATCH, DELETE, OPTIONS"); | |
header("Access-Control-Allow-Headers: X-API-KEY, Origin, X-Requested-With, Content-Type, Accept, Access-Control-Request-Method,Access-Control-Request-Headers, Authorization"); | |
if ($_SERVER['REQUEST_METHOD'] == "OPTIONS") { | |
header("HTTP/1.1 200 OK"); | |
die(); |
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
window.addEventListener('message', function(e) { | |
// Get the sent data | |
const data = e.data; | |
// If you encode the message in JSON before sending them, | |
// then decode here | |
// const decoded = JSON.parse(data); | |
}); |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Loop each jQuery</title> | |
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script> | |
</head> | |
<body> | |
<select multiple id="hari"> | |
<option value="Senin">Senin</option> |
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
<div class="rating"> | |
<input type="radio" name="rating" value="5" id="5"><label for="5">☆</label> | |
<input type="radio" name="rating" value="4" id="4"><label for="4">☆</label> | |
<input type="radio" name="rating" value="3" id="3"><label for="3">☆</label> | |
<input type="radio" name="rating" value="2" id="2"><label for="2">☆</label> | |
<input type="radio" name="rating" value="1" id="1"><label for="1">☆</label> | |
</div> |