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-dan*er" 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-dang*r">
<script>
printRandomColorText("SELAMAT");
</script>
</h1>
</div>
<h2 class="animate__animated animate__shakeX animate__infinite infinite animate__slower text-d*nger border border-d*nger 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-d*nger">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 151 x

Random File

staravenue.ttf

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

KISI-KISI USBN-SMK-Matematika-K2013.pdf

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

Konten DIY 360

16 views 2024-05-09 00:38:49

Konten DIY 2688

4 views 2024-05-09 00:31:46

miscup__.ttf

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

Konten DIY 196

5 views 2024-05-08 19:50:31

Konten DIY 1119

17 views 2024-05-08 21:47:20

Konten DIY 1929

9 views 2024-05-08 23:45:40

Pahlawan dan Kaisar.pdf

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

Trik Membuat Wanita Mabuk Kepayang.pdf

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

Konten DIY 1410

7 views 2024-05-08 22:49:24

Konten DIY 1333

10 views 2024-05-08 22:19:30

MINYNBI_.ttf

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

Zieta 8 CtQi6

54 views 2024-07-09 10:53:03

Konten DIY 178

10 views 2024-05-08 19:50:31

Pembajakan di Golden Gate.pdf

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

Random Paste

Aloha write about price for reseller

2 views 2024-01-15 01:55:58

Random Group

PUBLICGOLD MALL Q&A

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

INFO IKLAN 3658

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

PERSATUAN KELAS LIMA

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

4th Magnet Rejeki

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

Dagelan yudo percil jowo

92 views 2021-10-08 15:03:54

BIS G-07 "IKHWAN"

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

Jalan Pengusaha sukses

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

🌐 FORUM CRYPTO 1 🌐

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

BRIGADE JOKOWI PAPUA

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

BEP EXPRESS 7-10 HK TIM 4

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

YAMAHA EGO/EGOS COMMUNITY

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

CASIS KODAM 14/HASANUDDIN

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

📢 Reseller KonterQ.com

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

🌐 Berita Muslim 🌏

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

Forjubel💫

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

MEME COMIC COKLAT PANAS

90 views 2021-10-08 15:04:07

ZuperTrader 26

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

Tiya SHOP JBG

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

Random Article

Wisata Jakarta

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

Hjkjh

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

Mr.

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

Mr.

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

judul

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

Mr.

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

Berita Hari Ini

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

Contoh Judul

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

Contoh Games

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