<?php
/**
 * Project:        M.VuiZ.Net
 * Author:         nampt.me <admin@vuiz.net>
 * Copyright:      © 2025 vuiz.net All rights reserved.
 */

	$key = "Xem Mã Nguồn Wap Web";
	$mkey = ' Soi mã nguon wap web , soi css waplux wapego, xem html web, xem php, xem code wap, an cap trang wap source';
	require '../template/header.php';
?>

	<div class="col-right-xs">
		<div class="mainblok">
			<div class="phdr">
					<div vocab="https://schema.org/" typeof="BreadcrumbList">
						<span property="itemListElement" typeof="ListItem">
							<a href="/"  property="item" typeof="WebPage">
								<i class="fa fa-home"></i> <span property="name">Home</span>
							</a>
							<meta property="position" content="1">
						</span>
						<i class="fa fa-angle-right"></i>
						<span property="itemListElement" typeof="ListItem">
							<a href="/tools/"  property="item" typeof="WebPage">
								<i class="fa fa-wrench"></i> <span property="name">Công cụ</span>
							</a>
							<meta property="position" content="2">
						</span>
						<i class="fa fa-angle-right"></i>
						<span property="itemListElement" typeof="ListItem">
							<span property="name">Xem Mã Nguồn Wap Web</span>
							<meta property="position" content="3">
						</span>
					</div>
			</div>
			<div class="newsx">Công cụ xem mã nguồn wap/web online miễn phí giúp bạn có thể dễ dàng xem mã nguồn, view HTML code của bất kỳ một trang web nào trên mạng.</div>
			<div class="menu">
				<form id="form" method="post" onSubmit="return false;">
					Link URL: <input style="width:170px;" type="url" name="dkm" placeholder="https://" /><br/>
					Trình Duyệt:
					<select name="vkl">
						<option value="now">Hiện tại</option>
						<option value="java">Java</option>
						<option value="android">Android Smartphone</option>
						<option value="pc">Linux</option>
					</select>
					<br />
					<table>
						<tr>
							<td>Kiểu xem<br/>
								<input type="radio" name="checkbox" value="none" checked />Scoll<br/>
								<input type="radio" name="checkbox" value="color" />Make Color
								
							</td>
							<td>Text Box<br/>
								<input type="radio" name="checkbox" value="line" />Theo dòng<br/>
								<input type="radio" name="checkbox" value="full" />Toàn bộ
							</td>
							<td>Phương thức<br/>
								<input type="radio" name="view" value="curl" checked />CURL<br/>
								<input type="radio" name="view" value="get" />Get Content
							</td>
						</tr>
					</table>
					<input type="submit" value="Xem" id="submit" class="btn btn-default">
				</form>
			</div>
			<div id="notice"></div>
		</div>
	</div>
	<div class="col-left-xs">
<?php require './toolslist.php'; ?>
	</div>
	<div class="clear"></div>
<script>
	$(document).ready(function(){
		$("#submit").click(function(){
			$("#submit").addClass('disabled');
			$("#notice").hide();
			$("#notice").html('<div class="gmenu" style="text-align: center;"><img src="/template/images/loading.svg" /></div>').slideDown('slow');
			getLink();
		});
		$("#reset").click(function(){
			$("#notice").html('');
		});
		function getLink(){
			var form = $('#form')[0];
			var formData = new FormData(form);
			$.ajax({
				url: "sourceapi.php",
				type: "POST",
				data:  formData,
				contentType: false,
				cache: false,
				processData:false,
				success: function(rs)
				{
					res = JSON.parse(rs);
					if(res.success){
						$("#submit").removeClass('disabled');
						$("#notice").hide();
						$("#notice").html('<div class="newsx">'+res.success+'</div>').slideDown('slow');
					}
					else if(res.error){
						$("#submit").removeClass('disabled');
						$("#notice").hide();
						$("#notice").html('<div class="gmenu" style="text-align: center;"><i style="color:red">'+res.error+'</i></div>').slideDown('slow');
					}
					else {
						$("#submit").removeClass('disabled');
						$("#notice").hide();
						$("#notice").html('<div class="gmenu" style="text-align: center;"><i style="color:red">Có lỗi hệ thống, vui lòng kiểm tra lại!</i></div>').slideDown('slow');
					}
				},
				error: function() 
				{
					$("#submit").removeClass('disabled');
					$("#notice").hide();
					$("#notice").html('<div class="gmenu" style="text-align: center;"><i style="color:red">Có lỗi hệ thống, vui lòng kiểm tra lại!</i></div>').slideDown('slow');
				}
			});
		}
	});
</script>
<?php
	include '../template/footer.php';
