Skip to content

Instantly share code, notes, and snippets.


Coxxs/index.html Secret

Created November 6, 2020 21:48
What would you like to do?
FLAG 提取器
<!DOCTYPE html>
<html lang="zh">
<meta charset="UTF-8">
<link rel="stylesheet" href="static/bootstrap/css/bootstrap.min.css">
<link rel="stylesheet" href="static/main.css">
<meta name="viewport" content="width=device-width,initial-scale=1.0,user-scalable=no">
<title>FLAG 提取器</title>
<body class="text-center">
<form class="form-getflag">
<div id="app">
<h1>FLAG 提取器</h1>
<p>你想提取的 flag 数量:<span id="show"></span></p>
<input type="range" id="number" name="number" class="form-control" value="0" min="0" max="1.5" step="0.00001"/>
<input type="submit" class="btn btn-lg btn-primary btn-block" value="提取" />
<script src="static/jquery.min.js"></script>
<script src="static/bootstrap/js/bootstrap.min.js"></script>
<script type="text/javascript">
var prevVal = 0;
$(document).ready(function() {
$('#number').on('input', function() {
if ($('#number')[0].value.toString() === "1") {
$('#number')[0].value = 1.00001;
if (prevVal == 1.00001) $('#number')[0].value = 0.99999;
if (prevVal == 0.99999) $('#number')[0].value = 1.00001;
prevVal = $('#number')[0].value;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment