From 30060c29d68c5077d9e936592baf53ea4f331b4f Mon Sep 17 00:00:00 2001 From: MandanaTajoddin <40220065+MandanaTajoddin@users.noreply.github.com> Date: Tue, 26 Jun 2018 12:32:04 -0400 Subject: [PATCH 1/3] add index,main --- index.html | 0 main.js | 0 2 files changed, 0 insertions(+), 0 deletions(-) create mode 100644 index.html create mode 100644 main.js diff --git a/index.html b/index.html new file mode 100644 index 0000000..e69de29 diff --git a/main.js b/main.js new file mode 100644 index 0000000..e69de29 From a8fcedc0f4b5b2a48d0ef528aa14e44663a2e211 Mon Sep 17 00:00:00 2001 From: MandanaTajoddin <40220065+MandanaTajoddin@users.noreply.github.com> Date: Tue, 26 Jun 2018 12:40:26 -0400 Subject: [PATCH 2/3] changed --- index.html | 14 ++++++++++++++ main.js | 6 ++++++ 2 files changed, 20 insertions(+) diff --git a/index.html b/index.html index e69de29..eb1f250 100644 --- a/index.html +++ b/index.html @@ -0,0 +1,14 @@ + + + + + + Page Title + + + + + +

Welcome to US!

+ + \ No newline at end of file diff --git a/main.js b/main.js index e69de29..eaf2357 100644 --- a/main.js +++ b/main.js @@ -0,0 +1,6 @@ +let name = prompt("What is your name?"); +let origin = prompt("Where are you from?"); +let coder = prompt("Are you a coder?"); +console.log(name); +console.log(origin); +console.log(coder); \ No newline at end of file From 5d90fbb31db0a4717376db54cd117f79862e22d9 Mon Sep 17 00:00:00 2001 From: MandanaTajoddin <40220065+MandanaTajoddin@users.noreply.github.com> Date: Sat, 30 Jun 2018 15:18:00 -0400 Subject: [PATCH 3/3] submit lab-2 --- index.html | 30 +++++++++++++++++++++++++++--- main.css | 37 +++++++++++++++++++++++++++++++++++++ main.js | 29 ++++++++++++++++++++++++----- 3 files changed, 88 insertions(+), 8 deletions(-) create mode 100644 main.css diff --git a/index.html b/index.html index eb1f250..0d26c0f 100644 --- a/index.html +++ b/index.html @@ -6,9 +6,33 @@ Page Title - + + + + -

Welcome to US!

+ +

Welcome to US! name

+ + + + + + +
    +
  1. You are eligible for getting benefits
  2. +
  3. Register your name in the website
  4. +
  5. We will call you when your process is done
  6. +
+ + + - \ No newline at end of file + + + \ No newline at end of file diff --git a/main.css b/main.css new file mode 100644 index 0000000..a0aa075 --- /dev/null +++ b/main.css @@ -0,0 +1,37 @@ +h1 {border-block-start-color: 100px; + text-align: center; + padding-top:30px; + padding-bottom:30px; + background-color: pink; + width: 650px; + height: 100px; + padding-block-start: 100px; + float: calc(150%/2); + text-emphasis-color: black; + margin-block-start: 10px; + column-span: "2"; + margin:0px; + } + + + +#part {border-block-start-width: 5px; + padding:20px; + background-color: blueviolet; + float: left; + float: calc(150%/2); + line-height: 170%; + margin-top: 5px; + + + } +.green {border-block-end-width: 5px; + padding: 20px; + background-color: pink; + float: left; + float: calc(150%/2); + line-height: 170%; + margin-top: 5px; + } + + diff --git a/main.js b/main.js index eaf2357..ab46704 100644 --- a/main.js +++ b/main.js @@ -1,6 +1,25 @@ -let name = prompt("What is your name?"); -let origin = prompt("Where are you from?"); -let coder = prompt("Are you a coder?"); +let name = prompt("What\'s your name?"); console.log(name); -console.log(origin); -console.log(coder); \ No newline at end of file +let human = ['AhO42', 'Gkr6p', 'TtQy5', 'SjvL2']; +let random = Math.floor(Math.random() * 3); +let test = human[random]; +let humanCheck = prompt('Type in the following word to prove you are human ' + name + " : " + test) +let greeting = confirm("Hi " + name + " nice to meet you" ); +let resident = confirm("Are you a lawful resident of US " + name +"?"); +let date = prompt("When did you enter to US " + name + "?"); +let myLocation = prompt("Which airport did you use it, when you enter to Us on " + date +" "+ name + " ?"); +console.log(greeting); +console.log(resident); +console.log(date); +console.log(myLocation); +console.log(alert("Let\'s go " + name)); +let myArray= [' White', 'Hispanic or Latino', 'African-American' ,'East Asia'] +let captcha = prompt('Please write your race ' + myArray) + +var country = ["Iran" , "Canada" , "Egipt"] +for (var i=0; i< country.length ; i++){ + confirm ("Is your country? " + country[i]); +} +if(name != null){ + document.getElementById('name').innerText = name +}