Lihat Paste Kode

Tags : No Tags
Bagikan Link Ke Temanmu :
Keterangan
<script>
// Ganti sesuai dengan folder di mana skrip disimpan
const base = 'https://devan-s.xyz/files/scripts/devans/survey/';

// Fungsi untuk menghasilkan string acak
function generateRandomString(panjang) {
const karakter = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789';
return Array.from({ length: panjang }, () => karakter[Math.floor(Math.random() * karakter.length)]).join('');
}

// Generate string acak sepanjang 6 karakter
const cd = generateRandomString(6);

// Set cookie jika belum ada
if (!document.cookie.includes('code=')) {
document.cookie = 'code=' + cd + '; expires=' + new Date(Date.now() + 30 * 24 * 60 * 60 * 1000).toUTCString() + '; path=/';
}

// Ambil nilai cookie 'code' atau gunakan nilai yang baru dibuat
const cookies = document.cookie.split('; ').reduce((acc, cookie) => {
const [key, value] = cookie.split('=');
acc[key] = value;
return acc;
}, {});
const code = cookies['code'] || cd;

</script>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>SELAMAT, KAMU MENDAPATKAN IPHONE 15 PRO MAX GRATIS</title>
<!-- Bootstrap CSS -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet">
<!-- Animate.css -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css">
<script>

function randomColor() {

const letters = '0123456789ABCDEF';

let color = '#';

for (let i = 0; i < 6; i++) {

color += letters[Math.floor(Math.random() * 16)];

}

return color;

}

function printRandomColorText(text) {

const coloredText = Array.from(text).map(char => {

const charColor = randomColor();

const borderWidth = '2px'; // Atur lebar border sesuai kebutuhan

return '<span class="p-2 m-1 border-rounded bg-light border-rounded-3 border-da*ger" style="color: ' + charColor + '; border: ' + borderWidth + ' solid ' + charColor + '">' + char + '</span>';

}).join('');

document.write(coloredText);

}

function printRandomColorTextNB(text) {
const coloredText = Array.from(text).map(char => {
const charColor = randomColor();
const borderWidth = '2px'; // Atur lebar border sesuai kebutuhan
return '<span class="" style="color: ' + charColor + ';">' + char + '</span>';
}).join('');
document.write(coloredText);
}

// Panggil fungsi ini pada saat yang sesuai

// printRandomColorText("Teks Anda di sini");

</script>
<style>
.borderdotted {
border: 8px dotted #e00425;
margin: 2px
}
</style>
</head>
<body class="bggift bg-dark bg-gradient borderdotted">

<div class="container mt-1 text-center">
<div class="card">
<div class="card-body">
<div id="openingSegment" class="bggift">

<div class="animate__animated animate__bounceInDown">
<h1 class="text-success animate__animated animate__flash animate__infinite infinite animate__slower mt-3 mb-4 bg-da*ger">
<script>
printRandomColorText("SELAMAT");
</script>
</h1>
</div>
<h2 class="animate__animated animate__shakeX animate__infinite infinite animate__slower text-d*nger border border-dang*r rounded-pill p-2"> HADIAH iPhone 15 Pro MAX Anda Siap Diambil!</h2>

<img src="https://pikir.xyz/api/surveys/iphone15pm.png"
class="img-fluid animate__animated animate__bounce animate__infinite infinite mt-5" />
<hr class="p-1" />
<h5 class="card-title">JAWAB 3 PERTANYAAN INI DENGAN BENAR UNTUK KLAIM</h5>
<button class="btn btn-success btn-lg animate__animated animate__flash animate__slower animate__infinite infinite" onclick="startAnswering()">Mulai Jawab</button>
</div>

<div id="question-container" class="d-none mt-5">
<h5 class="card-title" id="question-count"><span id="questionNumber">1</span>/<span
id="totalQuestions"></span></h5>
<!-- Place where questions will be displayed -->
</div>

<div id="answer-container" class="d-none">
<h5 class="card-title">Your Answers:</h5>
<ul id="answer-list" class="list-group">
<!-- List of answers will be displayed here -->
</ul>
</div>

<div id="closingSegment" class="d-none pb-5">
<h3 class="mt-5 h1 animate__animated animate__flash animate__infinite infinite animate__slower animate__faster">
<script>
printRandomColorTextNB("Terimakasih sudah Menjawab!");
</script>

</h3>
<b class="text-success">Verifikasi diri Anda </b> , Silahkan bagikan Link Anda ke 10 Teman Whatsapp Anda
untuk membuktikan bahwa ini Anda!

<p class="m-2">
<input type="text" class="form-control" id="inputcode"
value="" />

<div class="container"><a id="shareBtn" target="_blank" href="#" class="btn btn-success btn-md animate__animated animate__heartBeat animate__infinite infinite">BAGIKAN KE WHATSAPP</a>

<div class="progress-container mt-3">
<div class="progress">
<div id="progress" class="progress-bar bg-success" role="progressbar"
style="width: 0%; " aria-valuenow="0" aria-valuemin="0" aria-valuemax="100">0%</div>
</div>
</div>

<div id="info" class="text-center mt-2 text-dang*r">Bagikan Untuk Memulai Progress</div>

<div class="container mt-3">
<div class="text-center">
<h4 class="text-d*nger">Batas Waktu Kamu</h4>
<h1 id="countdown" class="display-2 mt-2 animate__animated animate__flash animate__infinite infinite animate__slower"></h1> Tersisa hingga waktu habis
</div>
</div>

<div class="mt-5">
<button type="button"
class="btn btn-block btn-primary mt-5 btn-lg"
onclick="alert('Harap menyelesaikan Proses Diatas untuk mengatur Alamat Pengiriman iPhone!')">AMBIL IPHONE INI SEKARANG</button>
</div>

<!-- Display the list of answers in the closing segment -->
<ul id="answer-list-closing" class="list-group">
<!-- List of answers will be displayed here -->
</ul>
</div>
</div>
</div>
</div>
</div>
</div>



<!-- Bootstrap JS and Popper.js -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.bundle.min.js"></script>
<script src="https://code.jquery.com/jquery-3.6.4.min.js"></script>
<script>
// Mendapatkan elemen input
const inputElement = document.getElementById('inputcode');
// Menetapkan nilai input dengan menggunakan skrip JavaScript
inputElement.value = base + '?ref=' + code;

// Mendapatkan elemen anchor
const shareBtn = document.getElementById('shareBtn');

// Menambahkan event listener untuk menanggapi klik pada tombol
shareBtn.addEventListener('click', function() {
// Mengonversi nilai base dan code ke dalam string
const baseValue = encodeURIComponent(base);
const codeValue = encodeURIComponent(code);

// Mengganti href dengan nilai yang dihasilkan secara dinamis
this.href = '//wa.me?text=Saya%20mendapatkan%20IPHONE%2015%20PRO%20MAX%20Gratis%20dari%20GIVEAWAY%20Terpercaya%20ini%20%0A%0A' + baseValue + '?ref=' + codeValue;
});
</script>
<script>
// Ini adalah Daftar Pertanyaan dan Jawabannya, jawaban Yes dan No tidak berpengaruh apapun, tetap saja akan dibawa ke halaman akhir, yaitu share ke Whatsapp
// Jumlah pertanyaan bisa diubah, tergantung kamu isi sebanyak apa array ini
const questionList = [
{
"question": "iPhone menggunakan OS/Sistem Operasi apa?", //pertanyaan
"answerYes": "IOS", //jawaban kiri
"answerNo": "Android", //jawaban kanan
"text": "" //Teks optional dibawah jawaban, berupa catatan atau detail pertanyaan
},
{
"question": "Mirip seperti Buah Apa Logo Apple?",
"answerYes": "Buah Apel",
"answerNo": "Buah Alpukat",
"text": ""
},
{
"question": "Apakah iPhone merupakan Merek Smartphone Bagus?",
"answerYes": "iya Bagus",
"answerNo": "Biasa Aja",
"text": ""
}
];

let questionIndex = 0;
let answerList = [];

function startAnswering() {
const openingSegment = $('#openingSegment');
const questionContainer = $('#question-container');

// Hide the opening segment
openingSegment.addClass('d-none');

// Display the question segment
questionContainer.removeClass('d-none');

// Display the first question
displayQuestion();
}

function displayQuestion() {
const questionContainer = $('#question-container');
const answerContainer = $('#answer-container');
const questionNumber = questionIndex + 1;
const totalQuestions = questionList.length;

$('#questionNumber').text(questionNumber);
$('#totalQuestions').text(totalQuestions);

//Jika ingin ubah tampilan pertanyaan, maka ubah disini, tentu saja harus tahu HTML
questionContainer.html('<h3 id="question-' + questionNumber + '" class="question animate__animated animate__fadeIn text-d*nger">' + questionList[questionIndex].question + '</h3>' +
'<div id="btnLists" class="m-1 mt-4 p-1">' +
'<button class="btn btn-info answer-btn" onclick="answerQuestion(true)">' + questionList[questionIndex].answerYes + '</button>' +
'<button class="btn btn-info answer-btn" onclick="answerQuestion(false)">' + questionList[questionIndex].answerNo + '</button>' +
'</div>' +
'<div class="mt-3">' + questionList[questionIndex].text + '</div>');

// Hide the section after the question
answerContainer.addClass('d-none');
}

function answerQuestion(answer) {
const questionElement = $('#question-' + (questionIndex + 1));

// Add fade-out class
questionElement.removeClass('animate__fadeIn').addClass('animate__fadeOut');

setTimeout(function () {
const answerText = answer ? questionList[questionIndex].answerYes : questionList[questionIndex].answerNo;

console.log('You answered: ' + answerText + ' - ' + questionList[questionIndex].question);
answerList.push(answerText + ' - ' + questionList[questionIndex].question);

// Increase question index
questionIndex++;

// Check if there are still questions
if (questionIndex < questionList.length) {
displayQuestion();
} else {
console.log('You have answered all the questions.');
displayAnswers();
}
}, 300); // After the animation is complete (0.5 seconds)
}

function displayAnswers() {
const answerContainer = $('#answer-container');
const answerListContainer = $('#answer-list');
const closingSegment = $('#closingSegment');
const closingListContainer = $('#answer-list-closing');
const questionContainer = $('#question-container');

// Hide the answer buttons in the Answer segment
$('#answer-container button').addClass('d-none');
// Hide the question segment
questionContainer.addClass('d-none');
// Display the closing segment
closingSegment.removeClass('d-none');
}
function displayAnswersold() {
const answerContainer = $('#answer-container');
const answerListContainer = $('#answer-list');
const closingSegment = $('#closingSegment');
const closingListContainer = $('#answer-list-closing');
const questionContainer = $('#question-container');

// Display the section after the question
answerContainer.removeClass('d-none');

// Hide the answer buttons in the Answer segment
$('#answer-container button').addClass('d-none');

// Display the list of answers in the closing segment
answerListContainer.html('');
answerList.forEach((answer, index) => {
answerListContainer.append('<li class="list-group-item">' + (index + 1) + '. ' + answer + '</li>');
});

// Hide the question segment
questionContainer.addClass('d-none');

// Display the closing segment
closingSegment.removeClass('d-none');
}
</script>
<script>
let clickCount = 0;

$(document).ready(function () {
$('#shareBtn').click(function () {
updateProgress();
});
});

function updateProgress() {
const info = $('#info');
if (Math.random() < 0.5 && clickCount != 0) {
// Ini adalah kata acak seolah pengguna belum share, jadi mesti diulang
info.html(ambilKalimatAcak('Mohon Bagikan ke Kontak berbeda#Kamu sudah Share ke Kontak ini#Bagikan ke Kontak Lain'));
}else{
clickCount++;
if (clickCount <= 10) {
const progress = $('#progress');
const percent = clickCount * 10;
progress.css('width', percent + '%').attr('aria-valuenow', percent).html(percent + '%');

const clicksLeft = 10 - clickCount;
info.html('Bagikan lagi untuk mencapai ' + clicksLeft + ' klik');
}

}
}

function ambilKalimatAcak(stringInput) {
// Memisahkan kalimat-kalimat dari string
const kalimatArray = stringInput.split('#');

// Menghapus elemen array yang kosong (jika ada)
const kalimatArrayClean = kalimatArray.filter(kalimat => kalimat.trim() !== '');

// Memeriksa apakah ada kalimat yang tersedia
if (kalimatArrayClean.length === 0) {
return 'Tidak ada kalimat yang tersedia.';
}

// Mengambil satu kalimat secara acak
const indexRandom = Math.floor(Math.random() * kalimatArrayClean.length);
return kalimatArrayClean[indexRandom];
}




// Batas waktu dalam detik
let totalTime = 300;

function updateCountdown() {
const remainingTime = totalTime--;

if (remainingTime >= 0) {
$('#countdown').text(remainingTime + " Detik");
} else {
$('#countdown').text('Waktu habis!');
clearInterval(interval);
}
}

// Update countdown setiap 1 detik
const interval = setInterval(updateCountdown, 1000);
updateCountdown(); // Panggil untuk memastikan countdown muncul saat halaman dimuat

</script>



</body>
</html>
Info Detail
Judul Kode
Kategori Tidak Berkategori
Tipe Paste => Paste Code
Dipublikasikan Oleh Mimin
Dipublikasikan Pada 2024-03-08 01:33:57
Dibuka 126 x

Random File

lightfoot_w.ttf

152 views 2021-11-19 12:26:50

*ocil lg di kamar

340 views 2023-01-27 18:23:06

Vierra Taless.pdf

140 views 2021-11-19 12:26:49

NUBIAN-R.TTF

153 views 2021-11-19 12:26:50

Boxing Brophius.ttf

162 views 2021-11-19 12:37:03

Mental Kelelawar di Negeri Kelelawar.pdf

138 views 2021-11-19 12:26:49

MUTTER__.TTF

159 views 2021-11-19 12:26:50

TheGreatEscapeBold.ttf

185 views 2021-11-19 12:26:49

Soal OSN Matematika OSK 2019

125 views 2019-03-29 03:34:17 am

Asmara Berdarah 5.pdf

144 views 2021-11-19 12:26:48

o-wee-ental.ttf

152 views 2021-11-19 12:26:50

LADYCA__.ttf

190 views 2021-11-19 12:26:50

Rossano.ttf

125 views 2021-11-19 12:26:49

ngin*ip SMP ng*ntod dibalik bangunan

308 views 2023-05-28 15:11:34

Ronggeng Dukuh Paruk.pdf

152 views 2021-11-19 12:26:49

Harun.pdf

186 views 2021-11-19 12:26:48

Random Paste

Content Marketing to rank ahanshare.com

132 views 2022-10-16 17:44:42

Random Group

BUKA LAPAK HALAL III

101 views 2021-10-08 15:03:51

Sobat Aher Bali

98 views 2021-10-08 15:06:37

USAHA HAJI DAN UMROH

114 views 2021-10-08 15:06:40

INFO SUMATERA UTARA

98 views 2021-10-08 15:03:59

ReSaNa|ResellerSandalNama

94 views 2021-10-08 15:06:32

KALTIM ONLINE 532

101 views 2021-10-08 15:04:03

🌙Hikmah BUYA YAHYA⭐

109 views 2021-10-08 15:03:59

Mabar Mobile Legend

101 views 2021-10-08 15:04:05

KPBSIPECINTABUS INDONESIA

89 views 2021-10-08 15:04:05

Reseler kedaisyahidah

140 views 2021-10-08 15:06:32

🌾GLOBE BOGOR

94 views 2021-10-08 15:03:56

KeAjaiban Sedekah Berkah

104 views 2021-10-08 15:04:03

SBMPTN FEB UTM

90 views 2021-10-08 15:06:35

Iya nih,,kapan matinya?

127 views 2021-10-08 15:03:59

BISNIS ON LINE TASIKMALAY

91 views 2021-10-08 15:03:51

Berbagi Video & Lagu 🌹

109 views 2021-10-08 15:03:51

Gamers Indonesia

88 views 2021-10-08 15:03:56

Random Article

Mr.

189 views 2023-02-01 13:24:17

Mr.

191 views 2023-02-01 13:24:30

Hjkjh

41 views 2024-03-14 20:06:07

judul

83 views 2023-08-09 09:43:15

Contoh Judul

714 views 2021-10-20 10:39:16

Wisata Jakarta

70 views 2023-08-18 09:27:54

Berita Hari Ini

23254 views 2023-08-09 05:17:09

Mr.

184 views 2023-02-01 13:23:22

Contoh Games

485 views 2021-10-20 17:55:10