-
Notifications
You must be signed in to change notification settings - Fork 0
/
scanner.html
1 lines (1 loc) · 8.11 KB
/
scanner.html
1
<!DOCTYPE html><html lang="en"><head><meta charset="UTF-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Scanner</title><link rel="apple-touch-icon" href="https://cusmedroid.github.io/favicon.ico"><meta name="description" content="Cusmedroid is an android studio application development project name. the name was created by iyortml alias suryo dwijayanto. Initially cusmedroid was a custom rom project on android, at that time in 2014 - 2015 cusmedroid was still looking for identity, until now in 2022 - then cusmedroid will be the unique name of me who doesn’t have a team."><meta name="keywords" content="cusmedroid, iyortml, learn php with cusmedroid, learn php with iyortml, cusmedroid android, cusmedroid developer, developer indonesia, made in indonesia, website, php, html, css, js, xml, java, api, apikey, mysqli, phpmyadmin, android studio, android-studio, barcode, livemakingbarcode, live making barcode, live making barcode cusmedroid, qrcode, scanner"><meta name="author" content="CusMeDroid"><meta property="og:description" content="This is a live making barcode. write url or text in input field and instantly barcode will appear."><meta property="og:image" content="https://cusmedroid.github.io/favicon.ico"><meta property="og:image:type" content="image/jpeg"><meta property="og:image:width" content="200"><meta property="og:image:height" content="200"><script src="https://cdnjs.cloudflare.com/ajax/libs/html5-qrcode/2.3.4/html5-qrcode.min.js" integrity="sha512-k/KAe4Yff9EUdYI5/IAHlwUswqeipP+Cp5qnrsUjTPCgl51La2/JhyyjNciztD7mWNKLSXci48m7cctATKfLlQ==" crossorigin="anonymous" referrerpolicy="no-referrer"></script><link rel="stylesheet" href="https://cusmedroid.github.io/fontawesome-4/css/font-awesome.min.css"><script async src="https://www.googletagmanager.com/gtag/js?id=G-5PNEYV8WW8"></script><script>function gtag(){dataLayer.push(arguments)}window.dataLayer=window.dataLayer||[],gtag("js",new Date),gtag("config","G-5PNEYV8WW8")</script><script src="https://publisher.linkvertise.com/cdn/linkvertise.js"></script><script>linkvertise(693923,{whitelist:["cusmedroid.ink","cusmedroid.github.io"],blacklist:[]})</script><style>::-webkit-scrollbar {width: 5px;height: 4px;}::-webkit-scrollbar-thumb {background: #fdfdfd;-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.5);}::-webkit-scrollbar-thumb:window-inactive {background: #fdfdfd;}h2{color:#262a2f}main{justify-content:center;align-items:center;padding:20px}#reader{width:100%;background:#fff;border:1px solid #262a2f;outline:0;border-radius:5px}#html5-qrcode-button-camera-permission{background:#494eea;color:#fff;border:0;outline:0;border-radius:5px;box-shadow:0 10px 10px rgba(0,0,0,.1);cursor:pointer;padding:8px;margin:6px 0;font-weight:500}#html5-qrcode-button-file-selection{background:#494eea;color:#fff;border:0;outline:0;border-radius:5px;box-shadow:0 10px 10px rgba(0,0,0,.1);cursor:pointer;padding:8px;margin:6px 0;font-weight:500}#html5-qrcode-button-camera-start{background:#494eea;color:#fff;border:0;outline:0;border-radius:5px;box-shadow:0 10px 10px rgba(0,0,0,.1);cursor:pointer;padding:8px;margin:6px 0;font-weight:500}#html5-qrcode-button-camera-stop{background:#494eea;color:#fff;border:0;outline:0;border-radius:5px;box-shadow:0 10px 10px rgba(0,0,0,.1);cursor:pointer;padding:8px;margin:6px 0;font-weight:500}#html5-qrcode-anchor-scan-type-change{cursor:pointer;text-decoration:none}#result{width:100%;border-radius:5px;text-align:center;font-size:1.5rem;padding-bottom:20px}#rotie{width:auto;height:36px;background:#fff;margin-bottom:20px;padding:8px;border:1px solid #262a2f;border-radius:5px}.switch{position:relative;display:inline-block;width:60px;height:34px}.switch input{opacity:0;width:0;height:0}.slider{position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;background-color:#ccc;-webkit-transition:.4s;transition:.4s}.slider:before{position:absolute;content:"";height:26px;width:26px;left:4px;bottom:4px;background-color:#fff;-webkit-transition:.4s;transition:.4s}input:checked+.slider{background-color:#494eea}input:focus+.slider{box-shadow:0 0 1px #494eea}input:checked+.slider:before{-webkit-transform:translateX(26px);-ms-transform:translateX(26px);transform:translateX(26px)}.slider.round{border-radius:50px}.slider.round:before{border-radius:50%}.fle{float:left}.fri{float:right}</style></head><body id="myCopyright"><main><div id="rotie"><div class="fle"><p style="margin:0;padding:8px">Jump to link<b id="rbtxt" style="margin-left:4px">No</b></p></div><div class="fri"><label class="switch"><input type="checkbox" id="myCheck" onclick="myCheckCok()"><span class="slider round"></span></label></div></div><div id="reader"></div><div id="result"></div></main><script>let mpos = "";function myCheckCok() {var checkBox = document.getElementById("myCheck");var text = document.getElementById("rbtxt");if (checkBox.checked == true){text.innerHTML = "Yes";mpos = "1";} else {text.innerHTML = "No";mpos = "0";}}const scanner = new Html5QrcodeScanner('reader', {qrbox: {width: 250,height: 250,},fps: 20,});scanner.render(success, error);function success(result) {let myresult = document.getElementById("result");myresult.style.background = "#FFF";myresult.style.border = "1px solid #262a2f";if (mpos == "" || mpos == 0) {myresult.innerHTML = `<h2>Success</h2><h6 style="margin:0;padding:0;size:16px;">Result</h6><p style="padding:4px;overflow:auto;color:#262a2f;">${result}</p><div style="width:100%;height:40px;"><a title="Google" alt="Google" style="text-decoration:none;padding:4px;text-shadow: 2px 2px 4px #262a2f;" href="https://google.com/search?q=${result}"><img width="28px" height="28px" src="https://cusmedroid.github.io/livemakingbarcode/assets/reference/logo/google.png" /></a><a title="YouTube" alt="YouTube" style="text-decoration:none;padding:4px;text-shadow: 2px 2px 4px #262a2f;" href="https://youtube.com/${result}"><img width="28px" height="28px" src="https://cusmedroid.github.io/livemakingbarcode/assets/reference/logo/youtube.png" /></a><a title="CusMeDroid" alt="CusMeDroid" style="text-decoration:none;padding:4px;text-shadow: 2px 2px 4px #262a2f;" href="https://cusmedroid.github.io/${result}"><img width="28px" height="28px" src="https://cusmedroid.github.io/livemakingbarcode/assets/reference/logo/cusmedroid.png" /></a></div><div style="width:100%;height:40px;"><a title="Facebook" alt="Facebook" style="text-decoration:none;padding:4px;text-shadow: 2px 2px 4px #262a2f;" href="https://facebook.com/${result}"><img width="28px" height="28px" src="https://cusmedroid.github.io/livemakingbarcode/assets/reference/logo/facebook.png" /></a><a title="Instagram" alt="Instagram" style="text-decoration:none;padding:4px;text-shadow: 2px 2px 4px #262a2f;" href="https://instagram.com/${result}"><img width="28px" height="28px" src="https://cusmedroid.github.io/livemakingbarcode/assets/reference/logo/instagram.png" /></a><a title="WhatsApp" alt="WhatsApp" style="text-decoration:none;padding:4px;text-shadow: 2px 2px 4px #262a2f;" href="https://wa.me/${result}"><img width="28px" height="28px" src="https://cusmedroid.github.io/livemakingbarcode/assets/reference/logo/whatsapp.png" /></a><a title="Twitter" alt="Twitter" style="text-decoration:none;padding:4px;text-shadow: 2px 2px 4px #262a2f;" href="https://twitter.com/${result}"><img width="28px" height="28px" src="https://cusmedroid.github.io/livemakingbarcode/assets/reference/logo/twitter.png" /></a></div><div style="width:100%;height:40px;"><a title="Github" alt="Github" style="text-decoration:none;padding:4px;text-shadow: 2px 2px 4px #262a2f;" href="https://github.com/${result}"><img width="28px" height="28px" src="https://cusmedroid.github.io/livemakingbarcode/assets/reference/logo/github.png" /></a><a title="Link" alt="Link" style="text-decoration:none;padding:4px;text-shadow: 2px 2px 4px #262a2f;" href="${result}"><img width="28px" height="28px" src="https://cusmedroid.github.io/livemakingbarcode/assets/reference/logo/browser.png" /></a></div>`;} else {window.location.href = `${result}`;}scanner.clear();document.getElementById('reader').remove();}function error(err) {console.error(err);}</script><script type="text/javascript" src="https://cusmedroid.github.io/js/disclaimer.js"></script></body></html>