Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- "use strict";
- /*
- * This Program created by Pratama "Sam1D" Dimas with "JavaScript" Programming Language
- * ©2020 ShunharuKi
- */
- /* IMPORT : LIBRARY */
- const readline = require("readline");
- const rl = readline.createInterface({
- input: process.stdin,
- output: process.stdout,
- });
- /* GLOBAL VARIABLE */
- const token = "aitv-28062020";
- /* FUNCTION */
- const sceneOne = () => {
- console.log("");
- rl.question("Masukkan Token untuk mlihat pesan Rahasia : ", (answer) => {
- if (answer === token) {
- console.clear();
- console.log();
- console.log(
- "---------------------------------------------------- [MEMVERIFIKASI] ----------------------------------------------------"
- );
- setTimeout(() => {
- console.clear();
- console.log();
- sceneTwo();
- }, 2500);
- } else {
- console.log("Token Salah!!");
- }
- // rl.close();
- });
- };
- const sceneTwo = () => {
- let bar = "";
- const loop = (i, totalLoop) => {
- setTimeout(() => {
- if (i < totalLoop) {
- bar += "X";
- console.clear();
- console.log();
- console.log(
- " [LOADING] "
- );
- console.log(bar);
- loop(i + 1, totalLoop);
- } else {
- console.clear();
- sceneThree();
- }
- }, 75);
- };
- loop(0, 121);
- };
- const sceneThree = () => {
- console.log();
- console.log(
- "-------------------------------------------------------------------------------------------------------------------------"
- );
- console.log();
- console.log();
- console.log(
- " SELAMAT ULANG TAHUN YANG KE-2 "
- );
- console.log(
- " ANIME INDONESIA TV "
- );
- console.log();
- console.log(
- ' "SEMOGA SUKSES SELALU ANIME INDONESIA TV UNTUK KEDEPANNYA!! :D" '
- );
- console.log();
- console.log();
- console.log(
- "-------------------------------------------------------------------------------------------------------------------------"
- );
- console.log();
- console.log(
- " by @pratama_dimas01 "
- );
- console.log(
- " (https://github.com/Sam1D) "
- );
- };
- /* MAIN */
- // Awal Loading
- console.clear();
- console.log("");
- console.log(
- "------------------------------------------------------- [LOADING] -------------------------------------------------------"
- );
- console.log("");
- setTimeout(() => {
- console.clear();
- sceneOne();
- }, 2500);
Add Comment
Please, Sign In to add comment