Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8" />
- <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1,user-scalable=0" />
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
- <meta http-equiv="cache-control" content="max-age=0" />
- <meta http-equiv="cache-control" content="no-cache" />
- <meta http-equiv="expires" content="0" />
- <meta http-equiv="expires" content="Tue, 01 Jan 1980 1:00:00 GMT" />
- <meta http-equiv="pragma" content="no-cache" />
- <title>Free Wi-Fi | AWING</title>
- <link rel="shortcut icon" href="/awicon.ico">
- <link href="/lib/bootstrap/css/bootstrap.min.css" rel="stylesheet" />
- <link href="/css/captive-1.0.min.css?20230331" rel="stylesheet" />
- <script src="/lib/jquery/jquery.min.js"></script>
- <script src="/lib/bootstrap/js/bootstrap.bundle.min.js"></script>
- <script src="/scripts/imagesloaded.pkgd.min.js"></script>
- <script src="/scripts/captive-1.1.min.js?20230331"></script>
- </head>
- <body>
- <div id="layoutHeader" class="header" style="height: 60px;"></div>
- <script>
- $("#layoutHeader").load('/static/Files/layout/5197905656409960384/5538742900884010760/Header.html');
- </script>
- <div class="popup-container awing-popup" style="display:none"></div>
- <div id="agreement-container" class="awing-popup" style="display:none"></div>
- <div class="loginpage-container">
- <div id="wa_loading"></div>
- <form name="extreme" target="loginFrame" id="frmLogin" action="/cgi-bin/hslogin.cgi" method="POST">
- <input class="control" name="f_user" id="f_user" type="hidden" value="awing120">
- <input class="control" name="f_pass" id="f_pass" type="hidden" value="Awing120@2018">
- <input size="64" name="f_hs_server" id="f_hs_server" type="hidden">
- <input name="f_curr_time" id="f_curr_time" type="hidden">
- <input name="f_Qv" id="f_Qv" type="hidden">
- </form>
- <script>
- var hs_server = "NONE";
- hs_server = getQueryVariable("hs_server");
- Qv = getQueryVariable("Qv");
- document.forms['frmLogin'].elements['f_hs_server'].value = hs_server;
- document.forms['frmLogin'].elements['f_Qv'].value = Qv;
- document.getElementById('frmLogin').elements['f_curr_time'].value = Math.floor(new Date().getTime() / 1000);
- document.getElementById("frmLogin").action = "http://" + hs_server + ":880/cgi-bin/hslogin.cgi";
- // function to get the query parameter value from URL query string.
- function getQueryVariable(variable) {
- var query = window.location.search.substring(1);
- var vars = query.split(/[?&]/);
- for (var i = 0; i < vars.length; i++) {
- var pair = vars[i].split("=");
- if (pair[0] == variable) {
- if (pair[0] == "Qv") {
- return vars[i].substr(3, vars[i].length);
- }
- return pair[1];
- }
- }
- return "";
- }
- var authenticationProfileOptionals = [];
- function bindOptionalProfileByIndex(idx) {
- if (authenticationProfileOptionals.length > 0) {
- var extremeRadius = JSON.parse(authenticationProfileOptionals[idx].Params);
- $("#f_user").val(extremeRadius.Username);
- $("#f_pass").val(extremeRadius.Password);
- }
- }
- function bindOptionalProfileByName(name) {
- if (authenticationProfileOptionals.length > 0) {
- authenticationProfileOptionals.forEach(function (el) {
- if (el.Name.toLowerCase() == name.toLowerCase()) {
- var extremeRadius = JSON.parse(profileOptional.Params);
- $("#f_user").val(extremeRadius.Username);
- $("#f_pass").val(extremeRadius.Password);
- }
- });
- }
- }
- function doPostForm() {
- // Xác thực ngầm theo kiểu iframe
- login();
- }
- </script>
- <script>
- if (isIEBrower()) {
- var url = '/UnsupportedBrowser';
- window.location.replace(url);
- }
- if (!checkCookieEnabled()) {
- var url = '/FailCookie';
- window.location.replace(url);
- }
- console.log("start load login page");
- displayLoadingMessage('lgn');
- // Đặt cờ khi animation stop
- addCompleteAnimationEvent(function () {
- layoutAnimationLoadingFlag = LAYOUT_ANIMATION_STATE.END;
- });
- var interval_obj = setInterval(function () {
- /* Nếu đã kết thúc loading và campaign đã load xong thì thực hiện các hành động
- - Ẩn layout loading
- - Hiển thị view đầu tiền
- - Chạy animation của view
- */
- if (isCampaignLoadedAndAnimationEnd()) {
- endLayoutLoadingAnimation();
- console.log("End running animation");
- startView();
- console.log("Start view");
- startViewAnimation();
- clearInterval(interval_obj);
- console.log("layoutAnimationLoadingFlag: " + layoutAnimationLoadingFlag + "; campaignLoadingFlag: " + campaignLoadingFlag);
- }
- }, 100);
- campaignData = {
- preview: 0,
- placeId: "5198041660279712896",
- domainId: "5538742900884010760",
- clientMac: "2A-62-97-AD-E8-E6",
- apMac: "B8-50-01-33-EC-F4",
- sessionId: "91771a31-cfea-4587-8615-5aa515242ced",
- token: 'cbcfbf6c1c87ab8c9a93372d9035841d'
- };
- console.log("check internet connected.");
- var checkInternetLink = "http://awifi.vn/Picture/1x1pixel.png";
- var isCheckInternet = 'True';
- if (checkInternetLink && isCheckInternet.toLowerCase() === "true")
- $.ajax({
- url: checkInternetLink + '?t=' + Date.now(),
- complete: function (xhr, textStatus) {
- console.log("xhr status: " + xhr.status);
- if (xhr.status === 200)
- window.location.href = "/Connected";
- else
- loadCustomer();
- },
- timeout: 100 //in milliseconds
- });
- else
- loadCustomer();
- function loadCustomer() {
- let checkIOS14 = 'true' === 'true';
- let deviceInfo = detectDeviceInfo();
- $.ajax({
- url: '/Content/ContentCustomer',
- type: 'POST',
- data: {
- macAddress: '2A-62-97-AD-E8-E6',
- placeCustomerInfoCollections: [{"Id":4009,"PlaceId":5198041660279712896,"PlaceName":"CK_HCM_SG0248\t- 33 Ho\u00E0ng Hoa Th\u00E1m","PlaceDirectoryPath":".0.90.5538742900884010760.5635401286491618821.5198041660279712896.","Field":"Gender","TimeReminder":0},{"Id":4010,"PlaceId":5198041660279712896,"PlaceName":"CK_HCM_SG0248\t- 33 Ho\u00E0ng Hoa Th\u00E1m","PlaceDirectoryPath":".0.90.5538742900884010760.5635401286491618821.5198041660279712896.","Field":"Birthday","TimeReminder":0}],
- deviceInfo: deviceInfo,
- checkIOS14: checkIOS14
- },
- timeout: 2000,
- success: function (result) {
- console.log("load ads customer success.");
- changeLoadingAnimationState("paused");
- $(".popup-container").html(result);
- $(".popup-container").css("display", "block");
- console.log("Show customer collection popup");
- },
- error: function (result) {
- console.log("load customer error.");
- loadAds({
- macAddress: '2A-62-97-AD-E8-E6',
- device: deviceInfo
- });
- }
- });
- }
- function loadAds(customer) {
- console.log("start load ads.");
- changeLoadingAnimationState("running");
- $.ajax({
- url: '/Content/GetContent',
- type: 'POST',
- data: {
- sessionId: "91771a31-cfea-4587-8615-5aa515242ced",
- placeId: '5198041660279712896',
- customer: customer
- },
- success: function (result) {
- console.log("load ads success.");
- if (result != null)
- renderContentCampaign(result.CampaignId, result.CampaignGroupId, result.IsNetworkCampaign);
- else
- renderContentCampaign(-1);
- },
- error: function (result) {
- console.log("load ads error.");
- renderContentCampaign(-1);
- }
- });
- }
- function renderContentCampaign(campaignId, campaignGroupId, isNetwork) {
- $.get('/Content/ContentCampaign',
- {
- campaignId: campaignId,
- campaignGroupId: campaignGroupId,
- placeId: '5198041660279712896',
- domainId: '5538742900884010760',
- isNetworkCampaign: isNetwork
- })
- .done(function (result) {
- $(".loginpage-container").append(result);
- $(".loginpage-container").append('<div style="clear: both"></div>');
- startLoadingCampaign();
- });
- }
- </script>
- <div style="clear: both"></div>
- </div>
- <div id="layoutFooter"></div>
- <script>
- $("#layoutFooter").load('/static/Files/layout/5197905656409960384/5538742900884010760/Footer.html');
- </script>
- <div style="clear:both"></div>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement