Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <title>Enkripsi-Dekripsi LZ String</title>
- <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN" crossorigin="anonymous">
- <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js" integrity="sha384-C6RzsynM9kWDrMNeT87bh95OGNyZPhcTNXj1NW7RuBCsyN/o0jlpcV8Qyq46cDfL" crossorigin="anonymous"></script>
- <link rel="canonical" href="https://getbootstrap.com/docs/5.3/examples/navbar-fixed/">
- <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@docsearch/css@3">
- <link href="css/style.css" rel="stylesheet">
- </head>
- <body class="bg-secondary">
- <nav class="navbar navbar-expand-md navbar-dark fixed-top bg-dark">
- <div class="container-fluid">
- <a class="navbar-brand" href="">Enkripsi/Dekripsi LZ String</a>
- <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarCollapse" aria-controls="navbarCollapse" aria-expanded="false" aria-label="Toggle navigation">
- <span class="navbar-toggler-icon"></span>
- </button>
- </div>
- </nav>
- <main class="container mt-5">
- <div class="p-5 rounded">
- <div class="row mb-3">
- <div class="col-md-6 mb-3">
- <div class="card">
- <div class="card-header">
- <b>Enkripsi Dengan LZ String</b>
- </div>
- <div class="card-body">
- <div class="row mb-3">
- <div class="col-3">
- <label for="string">String</label>
- </div>
- <div class="col-md-9">
- <textarea name="string" id="string" class="form-control"></textarea>
- </div>
- </div>
- <div class="row mb-3">
- <div class="col-3">
- <label for="hasil_enkripsi">Hasil Enkripsi</label>
- </div>
- <div class="col-md-9">
- <textarea readonly name="hasil_enkripsi" id="hasil_enkripsi" class="form-control"></textarea>
- </div>
- </div>
- </div>
- <div class="card-footer">
- <button type="button" class="btn btn-md btn-primary" id="MulaiEnkripsi">
- Enkripsi
- </button>
- </div>
- </div>
- </div>
- <div class="col-md-6">
- <div class="card">
- <div class="card-header">
- <b>Deskripsi Dengan LZ String</b>
- </div>
- <div class="card-body">
- <div class="row mb-3">
- <div class="col-3">
- <label for="string2">String</label>
- </div>
- <div class="col-md-9">
- <textarea name="string2" id="string2" class="form-control"></textarea>
- </div>
- </div>
- <div class="row mb-3">
- <div class="col-3">
- <label for="hasil_dekripsi">Hasil Dekripsi</label>
- </div>
- <div class="col-md-9">
- <textarea readonly name="hasil_dekripsi" id="hasil_dekripsi" class="form-control"></textarea>
- </div>
- </div>
- </div>
- <div class="card-footer">
- <button type="button" class="btn btn-md btn-primary" id="MulaiDeskripsi">
- Deskripsi
- </button>
- </div>
- </div>
- </div>
- </div>
- </div>
- </main>
- <script type="text/javascript" src="vendor/jquery/dist/jquery.min.js"></script>
- <script>
- //Enkripsi
- $('#MulaiEnkripsi').click(function(){
- var string=$('#string').val();
- $('#hasil_enkripsi').val('Loading...');
- $.ajax({
- type : 'POST',
- url : 'ProsesEnkripsi.php',
- data : {string: string},
- success : function(data){
- $('#hasil_enkripsi').val(data);
- }
- });
- });
- //Deskripsi
- $('#MulaiDeskripsi').click(function(){
- var string=$('#string2').val();
- $('#hasil_dekripsi').val('Loading...');
- $.ajax({
- type : 'POST',
- url : 'ProsesDekripsi.php',
- data : {string: string},
- success : function(data){
- $('#hasil_dekripsi').val(data);
- }
- });
- });
- </script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement