From 09d7f05f0e2c762894cca70f258360b692693230 Mon Sep 17 00:00:00 2001 From: superk69 <kriengsak.t@ubu.ac.th> Date: Mon, 22 Jan 2018 20:00:50 +0700 Subject: [PATCH] update folder --- TestGet/form.html | 20 -------------------- TestGet/next.html | 33 --------------------------------- 2 files changed, 53 deletions(-) delete mode 100644 TestGet/form.html delete mode 100644 TestGet/next.html diff --git a/TestGet/form.html b/TestGet/form.html deleted file mode 100644 index 65a08f7..0000000 --- a/TestGet/form.html +++ /dev/null @@ -1,20 +0,0 @@ -<!DOCTYPE html> -<html> -<head> - <meta charset="utf-8" /> - <meta http-equiv="X-UA-Compatible" content="IE=edge"> - <title>test form</title> - <meta name="viewport" content="width=device-width, initial-scale=1"> - <link rel="stylesheet" type="text/css" media="screen" href="main.css" /> - <script src="main.js"></script> -</head> -<body> - <form action="next.html"> - First name:<br> - <input type="text" name="firstname" value="Mickey"><br> - Last name:<br> - <input type="text" name="lastname" value="Mouse"><br><br> - <input type="submit" value="Submit"> - </form> -</body> -</html> \ No newline at end of file diff --git a/TestGet/next.html b/TestGet/next.html deleted file mode 100644 index 74369e6..0000000 --- a/TestGet/next.html +++ /dev/null @@ -1,33 +0,0 @@ -<!DOCTYPE html> -<html> -<head> - <meta charset="utf-8" /> - <title>Next Page</title> - <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> - <script type="text/javascript"> - $(document).ready(function(){ - var getUrlParameter = function getUrlParameter(sParam) { - var sPageURL = decodeURIComponent(window.location.search.substring(1)), - sURLVariables = sPageURL.split('&'), - sParameterName, - i; - - for (i = 0; i < sURLVariables.length; i++) { - sParameterName = sURLVariables[i].split('='); - - if (sParameterName[0] === sParam) { - return sParameterName[1] === undefined ? true : sParameterName[1]; - } - } - }; - - var first = getUrlParameter('firstname'); - var last = getUrlParameter('lastname'); - $('.results').html(first + last) - }); - </script> -</head> -<body> -<div class="results"></div> -</body> -</html> \ No newline at end of file -- 2.18.1