diff --git a/03_Exercises/03_JavaScript/javascript-basics-01/Step_1.html b/03_Exercises/03_JavaScript/javascript-basics-01/Step_1.html index de81630e..ccf8354f 100644 --- a/03_Exercises/03_JavaScript/javascript-basics-01/Step_1.html +++ b/03_Exercises/03_JavaScript/javascript-basics-01/Step_1.html @@ -3,6 +3,7 @@ Step 1 + diff --git a/03_Exercises/03_JavaScript/javascript-basics-01/Step_1.js b/03_Exercises/03_JavaScript/javascript-basics-01/Step_1.js new file mode 100644 index 00000000..675a899d --- /dev/null +++ b/03_Exercises/03_JavaScript/javascript-basics-01/Step_1.js @@ -0,0 +1,3 @@ +var fname +alert(fname); + diff --git a/03_Exercises/03_JavaScript/javascript-basics-01/Step_2.html b/03_Exercises/03_JavaScript/javascript-basics-01/Step_2.html index a2147206..369c5c93 100644 --- a/03_Exercises/03_JavaScript/javascript-basics-01/Step_2.html +++ b/03_Exercises/03_JavaScript/javascript-basics-01/Step_2.html @@ -3,7 +3,9 @@ Step 2 + + diff --git a/03_Exercises/03_JavaScript/javascript-basics-01/Step_2.js b/03_Exercises/03_JavaScript/javascript-basics-01/Step_2.js new file mode 100644 index 00000000..72b744c9 --- /dev/null +++ b/03_Exercises/03_JavaScript/javascript-basics-01/Step_2.js @@ -0,0 +1,6 @@ +const fname="Omar"; +const surname="Khankan"; +const city="Beirut"; + + +alert("Name: "+fname +'\n' +"Surname: "+surname +'\n' +"City: "+city ) \ No newline at end of file diff --git a/03_Exercises/03_JavaScript/javascript-basics-01/Step_2.png b/03_Exercises/03_JavaScript/javascript-basics-01/Step_2.png new file mode 100644 index 00000000..e69de29b diff --git a/03_Exercises/03_JavaScript/javascript-basics-01/Step_3.html b/03_Exercises/03_JavaScript/javascript-basics-01/Step_3.html index 20b2a198..4207c1b7 100644 --- a/03_Exercises/03_JavaScript/javascript-basics-01/Step_3.html +++ b/03_Exercises/03_JavaScript/javascript-basics-01/Step_3.html @@ -3,7 +3,9 @@ Step 3 + + diff --git a/03_Exercises/03_JavaScript/javascript-basics-01/Step_3.js b/03_Exercises/03_JavaScript/javascript-basics-01/Step_3.js new file mode 100644 index 00000000..45f276da --- /dev/null +++ b/03_Exercises/03_JavaScript/javascript-basics-01/Step_3.js @@ -0,0 +1,5 @@ +var fname= prompt("Please enter your name"); +window.alert("Hello,"+fname) + + + diff --git a/03_Exercises/03_JavaScript/javascript-basics-01/Step_4.html b/03_Exercises/03_JavaScript/javascript-basics-01/Step_4.html index 12c89425..11d5efcc 100644 --- a/03_Exercises/03_JavaScript/javascript-basics-01/Step_4.html +++ b/03_Exercises/03_JavaScript/javascript-basics-01/Step_4.html @@ -3,13 +3,15 @@ Step 4 + +
- +
diff --git a/03_Exercises/03_JavaScript/javascript-basics-01/Step_4.js b/03_Exercises/03_JavaScript/javascript-basics-01/Step_4.js new file mode 100644 index 00000000..5bc33dbe --- /dev/null +++ b/03_Exercises/03_JavaScript/javascript-basics-01/Step_4.js @@ -0,0 +1,7 @@ + +function Person(){ + var fname= document.getElementById("name").value; +var surname=document.getElementById("surname").value; +var city=document.getElementById("city").value; + alert("Name: "+fname+ '\n'+"Surname: "+surname+'\n'+"City: "+city); +} diff --git a/03_Exercises/03_JavaScript/javascript-basics-01/Step_5.html b/03_Exercises/03_JavaScript/javascript-basics-01/Step_5.html index 60479f28..4028a48b 100644 --- a/03_Exercises/03_JavaScript/javascript-basics-01/Step_5.html +++ b/03_Exercises/03_JavaScript/javascript-basics-01/Step_5.html @@ -3,12 +3,14 @@ Step 5 + +


- +
diff --git a/03_Exercises/03_JavaScript/javascript-basics-01/Step_5.js b/03_Exercises/03_JavaScript/javascript-basics-01/Step_5.js new file mode 100644 index 00000000..e7fa51f3 --- /dev/null +++ b/03_Exercises/03_JavaScript/javascript-basics-01/Step_5.js @@ -0,0 +1,6 @@ +function multiply(){ + + var nb1= document.getElementById("first_number").value; + var nb2=document.getElementById("second_number").value; + alert(nb1*nb2) ; +} \ No newline at end of file diff --git a/03_Exercises/03_JavaScript/javascript-basics-01/Step_6.html b/03_Exercises/03_JavaScript/javascript-basics-01/Step_6.html index b019dccd..e8d774ad 100644 --- a/03_Exercises/03_JavaScript/javascript-basics-01/Step_6.html +++ b/03_Exercises/03_JavaScript/javascript-basics-01/Step_6.html @@ -3,12 +3,14 @@ Step 6 + +


- +
diff --git a/03_Exercises/03_JavaScript/javascript-basics-01/Step_6.js b/03_Exercises/03_JavaScript/javascript-basics-01/Step_6.js new file mode 100644 index 00000000..f175ee87 --- /dev/null +++ b/03_Exercises/03_JavaScript/javascript-basics-01/Step_6.js @@ -0,0 +1,5 @@ +function division(){ + var nb1= document.getElementById("first_number").value; + var nb2=document.getElementById("second_number").value; + alert(nb1%nb2) ; +} \ No newline at end of file diff --git a/03_Exercises/03_JavaScript/javascript-basics-01/Step_7.html b/03_Exercises/03_JavaScript/javascript-basics-01/Step_7.html index 05ff5834..42b78035 100644 --- a/03_Exercises/03_JavaScript/javascript-basics-01/Step_7.html +++ b/03_Exercises/03_JavaScript/javascript-basics-01/Step_7.html @@ -3,12 +3,14 @@ Step 7 + +


- +
diff --git a/03_Exercises/03_JavaScript/javascript-basics-01/Step_7.js b/03_Exercises/03_JavaScript/javascript-basics-01/Step_7.js new file mode 100644 index 00000000..d0238e23 --- /dev/null +++ b/03_Exercises/03_JavaScript/javascript-basics-01/Step_7.js @@ -0,0 +1,6 @@ +function getshoes(){ + var shoe = document.getElementById("shoe_size").value; + var birthday = document.getElementById("year").value; + var result = (((((shoe*2)+5)*50)- birthday)+1766) + window.alert(result); +} \ No newline at end of file diff --git a/03_Exercises/03_JavaScript/javascript-basics-01/Step_8.html b/03_Exercises/03_JavaScript/javascript-basics-01/Step_8.html index 75804e8b..9994195c 100644 --- a/03_Exercises/03_JavaScript/javascript-basics-01/Step_8.html +++ b/03_Exercises/03_JavaScript/javascript-basics-01/Step_8.html @@ -3,11 +3,12 @@ Step 8 +

- +
diff --git a/03_Exercises/03_JavaScript/javascript-basics-01/Step_8.js b/03_Exercises/03_JavaScript/javascript-basics-01/Step_8.js new file mode 100644 index 00000000..86c024a3 --- /dev/null +++ b/03_Exercises/03_JavaScript/javascript-basics-01/Step_8.js @@ -0,0 +1,10 @@ +function Age(){ + var age = document.getElementById("age").value; + + if(age >= 18){ + alert("you are over 18"); + } + else{ + alert("you are under 18"); + } +} \ No newline at end of file diff --git a/03_Exercises/03_JavaScript/javascript-basics-02/step 1/index.html b/03_Exercises/03_JavaScript/javascript-basics-02/step 1/index.html index 5ad09a67..3f476378 100644 --- a/03_Exercises/03_JavaScript/javascript-basics-02/step 1/index.html +++ b/03_Exercises/03_JavaScript/javascript-basics-02/step 1/index.html @@ -3,8 +3,10 @@ Step 1 + - + + diff --git a/03_Exercises/03_JavaScript/javascript-basics-02/step 1/step-1.js b/03_Exercises/03_JavaScript/javascript-basics-02/step 1/step-1.js new file mode 100644 index 00000000..b574a240 --- /dev/null +++ b/03_Exercises/03_JavaScript/javascript-basics-02/step 1/step-1.js @@ -0,0 +1,7 @@ +var image1; +function mouseover(){ + image1 = document.querySelector("#image1").src="./images/image1_2.jpg"; +} +function mouseout(){ + image1 = document.querySelector("#image1").src="./images/image1.jpg"; +} \ No newline at end of file diff --git a/03_Exercises/03_JavaScript/javascript-basics-02/step 2/index.html b/03_Exercises/03_JavaScript/javascript-basics-02/step 2/index.html index cf257909..8ae661f4 100644 --- a/03_Exercises/03_JavaScript/javascript-basics-02/step 2/index.html +++ b/03_Exercises/03_JavaScript/javascript-basics-02/step 2/index.html @@ -3,10 +3,13 @@ Step 2 +
- +
+ + diff --git a/03_Exercises/03_JavaScript/javascript-basics-02/step 2/step-2.js b/03_Exercises/03_JavaScript/javascript-basics-02/step 2/step-2.js new file mode 100644 index 00000000..c8c6bcfc --- /dev/null +++ b/03_Exercises/03_JavaScript/javascript-basics-02/step 2/step-2.js @@ -0,0 +1,6 @@ +const name1 =document.querySelector("#name"); +name1.addEventListener('blur',(blur)=>{ + const val =blur.target.value + alert("thank you for participating!"); +console.log(val); +}); \ No newline at end of file diff --git a/03_Exercises/03_JavaScript/javascript-basics-02/step 3/index.html b/03_Exercises/03_JavaScript/javascript-basics-02/step 3/index.html index 308c0b89..72fbb0a6 100644 --- a/03_Exercises/03_JavaScript/javascript-basics-02/step 3/index.html +++ b/03_Exercises/03_JavaScript/javascript-basics-02/step 3/index.html @@ -6,7 +6,9 @@
- +
+
+ diff --git a/03_Exercises/03_JavaScript/javascript-basics-02/step 3/step-3.js b/03_Exercises/03_JavaScript/javascript-basics-02/step 3/step-3.js new file mode 100644 index 00000000..c8e808ae --- /dev/null +++ b/03_Exercises/03_JavaScript/javascript-basics-02/step 3/step-3.js @@ -0,0 +1,7 @@ + +function keypress() +{ + var name = document.getElementById('name') + var text1 = document.getElementById('text1'); + text1.innerHTML = name.value; +} \ No newline at end of file diff --git a/03_Exercises/03_JavaScript/javascript-basics-02/step 4/index.html b/03_Exercises/03_JavaScript/javascript-basics-02/step 4/index.html index f5086dfb..6fcec293 100644 --- a/03_Exercises/03_JavaScript/javascript-basics-02/step 4/index.html +++ b/03_Exercises/03_JavaScript/javascript-basics-02/step 4/index.html @@ -5,11 +5,12 @@ Step 4 -
+ - +
+ diff --git a/03_Exercises/03_JavaScript/javascript-basics-02/step 4/step-4.js b/03_Exercises/03_JavaScript/javascript-basics-02/step 4/step-4.js new file mode 100644 index 00000000..081102ee --- /dev/null +++ b/03_Exercises/03_JavaScript/javascript-basics-02/step 4/step-4.js @@ -0,0 +1,12 @@ + + +function Reset1() { +var yes= confirm("do you want to Clear the form"); +if(yes){ +document.getElementById("name").value=""; +document.getElementById("surname").value=""; +document.getElementById("city").value=""; +} + +} + diff --git a/03_Exercises/03_JavaScript/javascript-basics-02/step 5/index.html b/03_Exercises/03_JavaScript/javascript-basics-02/step 5/index.html index fe14eb95..2c16d9dd 100644 --- a/03_Exercises/03_JavaScript/javascript-basics-02/step 5/index.html +++ b/03_Exercises/03_JavaScript/javascript-basics-02/step 5/index.html @@ -5,12 +5,13 @@ Step 5 -
+
+ diff --git a/03_Exercises/03_JavaScript/javascript-basics-02/step 5/step-5.js b/03_Exercises/03_JavaScript/javascript-basics-02/step 5/step-5.js new file mode 100644 index 00000000..74d20169 --- /dev/null +++ b/03_Exercises/03_JavaScript/javascript-basics-02/step 5/step-5.js @@ -0,0 +1,9 @@ + +function mouseover(){ + var image1 = document.querySelector('#image1').src="./images/image1_2.jpg"; + var image2 = document.querySelector('#image2').src="./images/image2_2.jpg"; + var image3 = document.querySelector('#image3').src="./images/image3_2.jpg"; + var image4 = document.querySelector('#image4').src="./images/image4_2.jpg"; + var image5 = document.querySelector('#image5').src="./images/image5_2.jpg"; + +} diff --git a/03_Exercises/03_JavaScript/javascript-basics-02/step 6/index.html b/03_Exercises/03_JavaScript/javascript-basics-02/step 6/index.html index 2eecf4f9..adc1b4ba 100644 --- a/03_Exercises/03_JavaScript/javascript-basics-02/step 6/index.html +++ b/03_Exercises/03_JavaScript/javascript-basics-02/step 6/index.html @@ -4,11 +4,12 @@ Step 6 - - - - - - + + + + + + + diff --git a/03_Exercises/03_JavaScript/javascript-basics-02/step 6/step-6.js b/03_Exercises/03_JavaScript/javascript-basics-02/step 6/step-6.js new file mode 100644 index 00000000..e5601fa0 --- /dev/null +++ b/03_Exercises/03_JavaScript/javascript-basics-02/step 6/step-6.js @@ -0,0 +1,8 @@ +function mouseout(){ + image1 = document.querySelector("#image1").src="./images/image1.jpg"; + image2 = document.querySelector('#image2').src="./images/image2.jpg"; + image3 = document.querySelector('#image3').src="./images/image3.jpg"; + image4 = document.querySelector('#image4').src="./images/image4.jpg"; + image5 = document.querySelector('#image5').src="./images/image5.jpg"; + console.log(image1); +} \ No newline at end of file diff --git a/03_Exercises/03_JavaScript/javascript-basics-03/step 1/index.html b/03_Exercises/03_JavaScript/javascript-basics-03/step 1/index.html index eb4909df..0b36dd35 100644 --- a/03_Exercises/03_JavaScript/javascript-basics-03/step 1/index.html +++ b/03_Exercises/03_JavaScript/javascript-basics-03/step 1/index.html @@ -5,6 +5,7 @@ Step 1 - + + diff --git a/03_Exercises/03_JavaScript/javascript-basics-03/step 1/step-1.js b/03_Exercises/03_JavaScript/javascript-basics-03/step 1/step-1.js new file mode 100644 index 00000000..a40b1a8a --- /dev/null +++ b/03_Exercises/03_JavaScript/javascript-basics-03/step 1/step-1.js @@ -0,0 +1,5 @@ +const image1=document.querySelector('#image1'); + +function mouseover(){ + image1.style='border:3px solid red'; +} \ No newline at end of file diff --git a/03_Exercises/03_JavaScript/javascript-basics-03/step 2/index.html b/03_Exercises/03_JavaScript/javascript-basics-03/step 2/index.html index aeff7fa1..27fb1b7e 100644 --- a/03_Exercises/03_JavaScript/javascript-basics-03/step 2/index.html +++ b/03_Exercises/03_JavaScript/javascript-basics-03/step 2/index.html @@ -5,10 +5,11 @@ Step 2 -Show -Hide -
+Show +Hide +

Joseph Dacre Carlyle (Carlisle, 4 juin 1758 - Newcastle upon Tyne, 12 avril 1804) est un orientaliste anglais.Après ses études à l'université de Cambridge, il y devint professeur d'arabe. En 1799, il fut attaché par le gouvernement britannique à l'ambassade de Lord Elgin dans l'Empire ottoman. Il était chargé d'explorer les bibliothèques de la région (principalement celle du Sérail) pour y découvrir (et y acquérir) des manuscrits inédits de textes antiques. Il se rendit aussi en Égypte, en Terre sainte et au mont Athos. Sa mission fut, de son point de vue, un échec. Il acheta quelques centaines d'ouvrages, principalement dans les bazars de Constantinople, mais aucun ne contenait de texte inédit. Cependant, la façon dont certains manuscrits avaient été acquis, principalement ceux du patriarche de Jérusalem Anthème Ier, ainsi que la querelle entamée sur la plaine de Troie entre Carlyle et un autre professeur de Cambridge, Edward Daniel Clarke, allaient être utilisées, après la mort de Carlyle, contre Lord Elgin, dans les controverses autour de l'acquisition des « marbres d'Elgin ».De retour en Grande-Bretagne à l'automne 1801, Joseph Dacre Carlyle entama une traduction en arabe de la Bible. Sa mort en avril 1804 coupa court à ce travail.

+ diff --git a/03_Exercises/03_JavaScript/javascript-basics-03/step 2/step-2.js b/03_Exercises/03_JavaScript/javascript-basics-03/step 2/step-2.js new file mode 100644 index 00000000..f0c7c11d --- /dev/null +++ b/03_Exercises/03_JavaScript/javascript-basics-03/step 2/step-2.js @@ -0,0 +1,28 @@ +var texte = document.getElementById('texte'); + +function Show() { +texte.style='display:block' +} + +function Hide(){ +texte.style='display:none'; +} + + + + + + + + + + + + + + + + + + + diff --git a/03_Exercises/03_JavaScript/javascript-basics-03/step 3/index.html b/03_Exercises/03_JavaScript/javascript-basics-03/step 3/index.html index 0db3888c..bbf45b3e 100644 --- a/03_Exercises/03_JavaScript/javascript-basics-03/step 3/index.html +++ b/03_Exercises/03_JavaScript/javascript-basics-03/step 3/index.html @@ -10,9 +10,10 @@

Tara, originellement nommée Antarctica puis Seamaster, est une goélette française destinée à la fois à l'exploration et à la défense de l'environnement. Dans le cadre de l'Année polaire internationale, en 2007-2008, ce voilier est utilisé en Arctique par l'expédition Tara Arctic dans le but de faire des relevés permettant de mieux comprendre les changements climatiques qui s'opèrent en Arctique. En 2009, dans le cadre de l'expédition Tara Oceans, Tara parcourt les mers et les océans dans une circumnavigation de trois ans afin d'étudier le piégeage des molécules de gaz carbonique (CO2) par les micro-organismes marins comme le plancton. En avril 2016, une nouvelle expédition est montée Tara Pacific dont l'objectif est de comprendre le corail, menacé par des facteurs humains et climatiques1.

-
-
-
+
+
+
+ diff --git a/03_Exercises/03_JavaScript/javascript-basics-03/step 3/step-3.js b/03_Exercises/03_JavaScript/javascript-basics-03/step 3/step-3.js new file mode 100644 index 00000000..8f4d22d3 --- /dev/null +++ b/03_Exercises/03_JavaScript/javascript-basics-03/step 3/step-3.js @@ -0,0 +1,11 @@ +var text=document.getElementById('text'); + +function Red(){ + text.style='color:red'; +} +function Green(){ + text.style='color:green'; +} +function Blue(){ + text.style='color:blue'; +} \ No newline at end of file diff --git a/03_Exercises/03_JavaScript/javascript-basics-03/step 4/index.html b/03_Exercises/03_JavaScript/javascript-basics-03/step 4/index.html index cab276b0..38253a28 100644 --- a/03_Exercises/03_JavaScript/javascript-basics-03/step 4/index.html +++ b/03_Exercises/03_JavaScript/javascript-basics-03/step 4/index.html @@ -8,7 +8,8 @@
- +
+ diff --git a/03_Exercises/03_JavaScript/javascript-basics-03/step 4/step-4.js b/03_Exercises/03_JavaScript/javascript-basics-03/step 4/step-4.js new file mode 100644 index 00000000..ec200e39 --- /dev/null +++ b/03_Exercises/03_JavaScript/javascript-basics-03/step 4/step-4.js @@ -0,0 +1,14 @@ +var pass =document.getElementById('password'); +var conf =document.getElementById('confirmation'); + +function Test(){ + if(pass.value==conf.value){ + alert("correct"); + } + else{ + conf.style ='border:1px solid red'; + pass.style='border:1px solid red'; + + } + +} \ No newline at end of file diff --git a/03_Exercises/03_JavaScript/javascript-basics-04-tdd/questions.js b/03_Exercises/03_JavaScript/javascript-basics-04-tdd/questions.js index d56a923d..8d101e5a 100644 --- a/03_Exercises/03_JavaScript/javascript-basics-04-tdd/questions.js +++ b/03_Exercises/03_JavaScript/javascript-basics-04-tdd/questions.js @@ -1,101 +1,124 @@ const stringSize = (text) => { + return text.length; } const replaceCharacterE = (text) => { - + return text.replace("e", " "); } const concatString = (text1, text2) => { + return text1 + text2; } const showChar5 = (text) => { - + return text.charAt(4, 5); } const showChar9 = (text) => { + return text.substring(0, 9); } const toCapitals = (text) => { +return text.toUpperCase()} -} const toLowerCase = (text) => { - +return text.toLowerCase(); } -const removeSpaces = (text) => { +const removeSpaces = (text) => { + return text.trim(); } + const IsString = (text) => { + return (text.IsString = true); } const getExtension = (text) => { + return text.split(".").pop(); } const countSpaces = (text) => { - + return text.split(" ").length - 1; } const InverseString = (text) => { - + return text.split("").reverse().join(""); } const power = (x, y) => { - + return Math.pow(x, y); } const absoluteValue = (num) => { + return Math.abs(num); } const absoluteValueArray = (array) => { + return array.map(Math.abs); } const circleSurface = (radius) => { + return Math.round(Math.PI * radius * radius); } const hypothenuse = (ab, ac) => { + return Math.hypot(ab, ac); } const BMI = (weight, height) => { + return parseFloat((weight / (height * height)).toFixed(2)); } const createLanguagesArray = () => { - + const languages = ["Html", "CSS", "Java", "PHP"]; + return languages; } const createNumbersArray = () => { - + const numbers = [0, 1, 2, 3, 4, 5]; + return numbers; } const replaceElement = (languages) => { - + languages[2] = "Javascript"; + return languages; } const addElement = (languages) => { - + languages.push("Ruby", "Python"); + return languages; } const addNumberElement = (numbers) => { - + numbers.unshift(-2, -1); + return numbers; } const removeFirst = (languages) => { - + languages.shift(); + return languages; } const removeLast = (languages) => { - + languages.pop(); + return languages; } const convertStrToArr = (social_arr) => { - + const tableau = social_arr.split(","); + return tableau; } const convertArrToStr = (languages) => { - + const str = languages.join(); + return str; } const sortArr = (social_arr) => { - + social_arr.sort(); + return social_arr; } const invertArr = (social_arr) => { - + social_arr.reverse(); + return social_arr; } \ No newline at end of file diff --git a/04_Challenges/cv-styling-master/public/images/omar.jpeg b/04_Challenges/cv-styling-master/public/images/omar.jpeg new file mode 100644 index 00000000..2d27f4bc Binary files /dev/null and b/04_Challenges/cv-styling-master/public/images/omar.jpeg differ diff --git a/04_Challenges/cv-styling-master/public/style1/index.html b/04_Challenges/cv-styling-master/public/style1/index.html index c40c1144..92f0e240 100644 --- a/04_Challenges/cv-styling-master/public/style1/index.html +++ b/04_Challenges/cv-styling-master/public/style1/index.html @@ -12,6 +12,7 @@ + diff --git a/04_Challenges/cv-styling-master/public/style1/style.css b/04_Challenges/cv-styling-master/public/style1/style.css new file mode 100644 index 00000000..1e9531fb --- /dev/null +++ b/04_Challenges/cv-styling-master/public/style1/style.css @@ -0,0 +1,218 @@ +*{ + font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif; +} +/*HEADER*/ +header{ + display: flex; + flex-direction: row; + justify-content: space-between; + background-color: #999999; + padding: 20px 0px 20px 0px; +} +header>div{ + display: flex; + flex-direction: row; + justify-content: space-between; + margin-left: 300px; +} +.hgroup{ + width:50% +} +.figure{ + width:50%; +} + +h1,h2{ + color:red; +} +/*END HEADER/ + +/*CONTENT*/ +h3{ + font-size: 22px; +} + +.content{ + padding: 50px 300px 50px 300px; +display: inline-grid; +grid-template-columns: auto auto; +} + +section>h3{ + padding-bottom: 10px; + border-bottom: 1px solid rgba(0, 0, 0, 0.295); + +} + + +section>h3::before{ + content: ' '; + display: inline-block; + width: 21px; + height: 21px; + border-radius: 50%; + background-color: red; + margin-right:5px; + } + + + + .skills-secondary{ + padding-top: 15px; + } + .skills-primary::before{ + content:'Main'; + width: 21px; + height: 21px; + } + .skills-secondary::before{ + content:'Other'; + width: 21px; + height: 21px; + } + + .skill{ + margin:5px 0px; + padding:7px; + background-color: #999999e3; +} + + + +.skill span{ + height: 26px; + margin-left: 8px; + display: flex; + align-items: center; + color: white; + z-index: 1; + + margin-left: 10px; + position: relative; + +} +.skill span::after{ + content: ''; + height: 26px; + background-color: red; + position: absolute; +margin-left: -10px; +} +[data-skill="5"] span::after { + width: 50%; + z-index: -1; +} +[data-skill="3"] span::after { + width: 30%; + z-index: -1; +} +[data-skill="1"] span::after { + width: 10%; + z-index: -1; +} +[data-skill="9"] span::after { + width: 90%; + z-index: -1; +} +[data-skill="7"] span::after { + width: 70%; + z-index: -1; +} +#competencies > div.skills.skills-secondary > div{ + opacity: 0.5; +} + + + .experience-type,.experience-institution{ +color:red; + } + .experience-institution::before{ + content: '@ '; + } + .experience-date,.experience-location{ + color: #999999; + } + .experience-date-separator{ +color: red; +opacity: 100; + } + .experience-date::before{ + content: 'on '; + } + .experience-location::before{ + content: 'In '; + + } + +.contact{ + display: flex; + flex-direction: row; + margin:0px; +} +.contact-type{ + width: 20%; + background-color: red; + color: white; + padding:5px 0px 5px 10px; +} +.contact-value{ + width: 80%; + padding:5px 0px 5px 10px; + + margin: 0px; + background-color: black; + color: red; +} + a{ + color:red; + text-decoration: none; + } + #contact > h3{ + display: none; + } +.contacts{ + margin-top: -1070px; +} + +/*END CONTENT*/ + + +/*MOBILE VERSION*/ + +@media only screen and (max-width: 600px) { + + header>div { + display:block; + margin-left: 20px; + } + .content{ + display: block; + padding:10px; + + } + + .contacts{ + margin-top: 0px; + } + .contact-type{ + width:30%; + } + .contact-value{ + width:70%; + background-color:white; + } + #contact > div > dl.contact.contact-skype > dd{ + color:black; + } + + figure{ + margin-left: 0px; + } + +} + + + + + +/*END MOBILE VERSION*/ \ No newline at end of file diff --git a/04_Challenges/cv-styling-master/public/style2/index.html b/04_Challenges/cv-styling-master/public/style2/index.html new file mode 100644 index 00000000..70ecd341 --- /dev/null +++ b/04_Challenges/cv-styling-master/public/style2/index.html @@ -0,0 +1,199 @@ + + + + + + + + + + + JStudent | CV + + + + + + + + +
+
+
+
+

Omar Khankan

+

Developer

+
+
+ omarkhankan +
+
+
+
+
+

About

+

+ Hello! I am Omar Khankan, a programmer from Beirut, Lebanon. I have a wide range of abilities in development, design, and coding. + I also provide top-notch website design services to assist businesses in transforming themselves into real-life brands. +

+
+
+

Competencies

+
+
+ HTML +
+
+ CSS +
+
+ Javascript +
+
+
+
+ HTML +
+
+ CSS +
+
+ Javascript +
+
+
+
+

Experiences

+
+

+ Wordpress Developer + Freelance +

+
+ + Beirut + + + 30 + / + 4 + / + 2020 + +
+

+ Pellentesque nec nisi at sapien sagittis sagittis. Aliquam eu condimentum mauris. Proin accumsan enim at risus hendrerit lobortis. Nunc sollicitudin sodales lectus, rhoncus mi molestie hendrerit. Vestibulum velit lorem, rhoncus a congue ultricies, faucibus facilisis risus. Mauris turpis ante, aliquet ac venenatis at, ornare ut velit. Duis ut erat neque, eget consectetur tellus. +

+
+
+

+ Web Hosting Provider + Freelance +

+
+ + Beirut + + + 30 + / + 7 + / + 2020 + +
+

+ Pellentesque nec nisi at sapien sagittis sagittis. Aliquam eu condimentum mauris. Proin accumsan enim at risus hendrerit lobortis. Nunc sollicitudin sodales lectus, rhoncus mi molestie hendrerit. Vestibulum velit lorem, rhoncus a congue ultricies, faucibus facilisis risus. Mauris turpis ante, aliquet ac venenatis at, ornare ut velit. Duis ut erat neque, eget consectetur tellus. +

+
+
+
+

Education

+
+

+ Web Stack Training + Codi +

+
+ + Beirut + + + 20 + / + 11 + / + 2022 + +
+

+ Pellentesque nec nisi at sapien sagittis sagittis. Aliquam eu condimentum mauris. Proin accumsan enim at risus hendrerit lobortis. Nunc sollicitudin sodales lectus, et rhoncus mi molestie hendrerit. Vestibulum velit lorem, rhoncus a congue ultricies, faucibus facilisis risus. Mauris turpis ante, aliquet ac venenatis at, ornare ut velit. Duis ut erat neque, eget consectetur tellus. +

+
+
+

+ Bachelor in Computer Science + LIU +

+
+ + Beirut + + + 30 + / + 6 + / + 2022 + +
+

+ Pellentesque nec nisi at sapien sagittis sagittis. Aliquam eu condimentum mauris. Proin accumsan enim at risus hendrerit lobortis. Nunc sollicitudin sodales lectus, et rhoncus mi molestie hendrerit. Vestibulum velit lorem, rhoncus a congue ultricies, faucibus facilisis risus. Mauris turpis ante, aliquet ac venenatis at, ornare ut velit. Duis ut erat neque, eget consectetur tellus. +

+
+
+
+

Hobbies

+
    +
  • Watching Youtube
  • +
  • Sleeping
  • +
  • Writing CVs
  • +
+
+
+

Contact

+
+
+
Email
+
+ omarkhankan.1@gmail.com +
+
+
+
Skype
+
omarkhankan
+
+
+
Phone/Whatsapp
+
+ +96181733696 +
+
+
+
Github
+
+ omarkh7 +
+
+
+
Facebook
+
+ omarkhankan +
+
+
+
+
+
+ + diff --git a/04_Challenges/cv-styling-master/public/style2/normalize.css b/04_Challenges/cv-styling-master/public/style2/normalize.css new file mode 100644 index 00000000..57f93c84 --- /dev/null +++ b/04_Challenges/cv-styling-master/public/style2/normalize.css @@ -0,0 +1,447 @@ +/*! normalize.css v7.0.0 | MIT License | github.com/necolas/normalize.css */ + +/* Document + ========================================================================== */ + +/** + * 1. Correct the line height in all browsers. + * 2. Prevent adjustments of font size after orientation changes in + * IE on Windows Phone and in iOS. + */ + +html { + line-height: 1.15; /* 1 */ + -ms-text-size-adjust: 100%; /* 2 */ + -webkit-text-size-adjust: 100%; /* 2 */ +} + +/* Sections + ========================================================================== */ + +/** + * Remove the margin in all browsers (opinionated). + */ + +body { + margin: 0; +} + +/** + * Add the correct display in IE 9-. + */ + +article, +aside, +footer, +header, +nav, +section { + display: block; +} + +/** + * Correct the font size and margin on `h1` elements within `section` and + * `article` contexts in Chrome, Firefox, and Safari. + */ + +h1 { + font-size: 2em; + margin: 0.67em 0; +} + +/* Grouping content + ========================================================================== */ + +/** + * Add the correct display in IE 9-. + * 1. Add the correct display in IE. + */ + +figcaption, +figure, +main { /* 1 */ + display: block; +} + +/** + * Add the correct margin in IE 8. + */ + +figure { + margin: 1em 40px; +} + +/** + * 1. Add the correct box sizing in Firefox. + * 2. Show the overflow in Edge and IE. + */ + +hr { + box-sizing: content-box; /* 1 */ + height: 0; /* 1 */ + overflow: visible; /* 2 */ +} + +/** + * 1. Correct the inheritance and scaling of font size in all browsers. + * 2. Correct the odd `em` font sizing in all browsers. + */ + +pre { + font-family: monospace, monospace; /* 1 */ + font-size: 1em; /* 2 */ +} + +/* Text-level semantics + ========================================================================== */ + +/** + * 1. Remove the gray background on active links in IE 10. + * 2. Remove gaps in links underline in iOS 8+ and Safari 8+. + */ + +a { + background-color: transparent; /* 1 */ + -webkit-text-decoration-skip: objects; /* 2 */ +} + +/** + * 1. Remove the bottom border in Chrome 57- and Firefox 39-. + * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari. + */ + +abbr[title] { + border-bottom: none; /* 1 */ + text-decoration: underline; /* 2 */ + text-decoration: underline dotted; /* 2 */ +} + +/** + * Prevent the duplicate application of `bolder` by the next rule in Safari 6. + */ + +b, +strong { + font-weight: inherit; +} + +/** + * Add the correct font weight in Chrome, Edge, and Safari. + */ + +b, +strong { + font-weight: bolder; +} + +/** + * 1. Correct the inheritance and scaling of font size in all browsers. + * 2. Correct the odd `em` font sizing in all browsers. + */ + +code, +kbd, +samp { + font-family: monospace, monospace; /* 1 */ + font-size: 1em; /* 2 */ +} + +/** + * Add the correct font style in Android 4.3-. + */ + +dfn { + font-style: italic; +} + +/** + * Add the correct background and color in IE 9-. + */ + +mark { + background-color: #ff0; + color: #000; +} + +/** + * Add the correct font size in all browsers. + */ + +small { + font-size: 80%; +} + +/** + * Prevent `sub` and `sup` elements from affecting the line height in + * all browsers. + */ + +sub, +sup { + font-size: 75%; + line-height: 0; + position: relative; + vertical-align: baseline; +} + +sub { + bottom: -0.25em; +} + +sup { + top: -0.5em; +} + +/* Embedded content + ========================================================================== */ + +/** + * Add the correct display in IE 9-. + */ + +audio, +video { + display: inline-block; +} + +/** + * Add the correct display in iOS 4-7. + */ + +audio:not([controls]) { + display: none; + height: 0; +} + +/** + * Remove the border on images inside links in IE 10-. + */ + +img { + border-style: none; +} + +/** + * Hide the overflow in IE. + */ + +svg:not(:root) { + overflow: hidden; +} + +/* Forms + ========================================================================== */ + +/** + * 1. Change the font styles in all browsers (opinionated). + * 2. Remove the margin in Firefox and Safari. + */ + +button, +input, +optgroup, +select, +textarea { + font-family: sans-serif; /* 1 */ + font-size: 100%; /* 1 */ + line-height: 1.15; /* 1 */ + margin: 0; /* 2 */ +} + +/** + * Show the overflow in IE. + * 1. Show the overflow in Edge. + */ + +button, +input { /* 1 */ + overflow: visible; +} + +/** + * Remove the inheritance of text transform in Edge, Firefox, and IE. + * 1. Remove the inheritance of text transform in Firefox. + */ + +button, +select { /* 1 */ + text-transform: none; +} + +/** + * 1. Prevent a WebKit bug where (2) destroys native `audio` and `video` + * controls in Android 4. + * 2. Correct the inability to style clickable types in iOS and Safari. + */ + +button, +html [type="button"], /* 1 */ +[type="reset"], +[type="submit"] { + -webkit-appearance: button; /* 2 */ +} + +/** + * Remove the inner border and padding in Firefox. + */ + +button::-moz-focus-inner, +[type="button"]::-moz-focus-inner, +[type="reset"]::-moz-focus-inner, +[type="submit"]::-moz-focus-inner { + border-style: none; + padding: 0; +} + +/** + * Restore the focus styles unset by the previous rule. + */ + +button:-moz-focusring, +[type="button"]:-moz-focusring, +[type="reset"]:-moz-focusring, +[type="submit"]:-moz-focusring { + outline: 1px dotted ButtonText; +} + +/** + * Correct the padding in Firefox. + */ + +fieldset { + padding: 0.35em 0.75em 0.625em; +} + +/** + * 1. Correct the text wrapping in Edge and IE. + * 2. Correct the color inheritance from `fieldset` elements in IE. + * 3. Remove the padding so developers are not caught out when they zero out + * `fieldset` elements in all browsers. + */ + +legend { + box-sizing: border-box; /* 1 */ + color: inherit; /* 2 */ + display: table; /* 1 */ + max-width: 100%; /* 1 */ + padding: 0; /* 3 */ + white-space: normal; /* 1 */ +} + +/** + * 1. Add the correct display in IE 9-. + * 2. Add the correct vertical alignment in Chrome, Firefox, and Opera. + */ + +progress { + display: inline-block; /* 1 */ + vertical-align: baseline; /* 2 */ +} + +/** + * Remove the default vertical scrollbar in IE. + */ + +textarea { + overflow: auto; +} + +/** + * 1. Add the correct box sizing in IE 10-. + * 2. Remove the padding in IE 10-. + */ + +[type="checkbox"], +[type="radio"] { + box-sizing: border-box; /* 1 */ + padding: 0; /* 2 */ +} + +/** + * Correct the cursor style of increment and decrement buttons in Chrome. + */ + +[type="number"]::-webkit-inner-spin-button, +[type="number"]::-webkit-outer-spin-button { + height: auto; +} + +/** + * 1. Correct the odd appearance in Chrome and Safari. + * 2. Correct the outline style in Safari. + */ + +[type="search"] { + -webkit-appearance: textfield; /* 1 */ + outline-offset: -2px; /* 2 */ +} + +/** + * Remove the inner padding and cancel buttons in Chrome and Safari on macOS. + */ + +[type="search"]::-webkit-search-cancel-button, +[type="search"]::-webkit-search-decoration { + -webkit-appearance: none; +} + +/** + * 1. Correct the inability to style clickable types in iOS and Safari. + * 2. Change font properties to `inherit` in Safari. + */ + +::-webkit-file-upload-button { + -webkit-appearance: button; /* 1 */ + font: inherit; /* 2 */ +} + +/* Interactive + ========================================================================== */ + +/* + * Add the correct display in IE 9-. + * 1. Add the correct display in Edge, IE, and Firefox. + */ + +details, /* 1 */ +menu { + display: block; +} + +/* + * Add the correct display in all browsers. + */ + +summary { + display: list-item; +} + +/* Scripting + ========================================================================== */ + +/** + * Add the correct display in IE 9-. + */ + +canvas { + display: inline-block; +} + +/** + * Add the correct display in IE. + */ + +template { + display: none; +} + +/* Hidden + ========================================================================== */ + +/** + * Add the correct display in IE 10-. + */ + +[hidden] { + display: none; +} \ No newline at end of file diff --git a/04_Challenges/cv-styling-master/public/style2/style.css b/04_Challenges/cv-styling-master/public/style2/style.css new file mode 100644 index 00000000..eb22c6ad --- /dev/null +++ b/04_Challenges/cv-styling-master/public/style2/style.css @@ -0,0 +1,240 @@ +*{ + font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif; +} +body{ + padding: 50px 300px 50px 300px;} +#\#wrapper > header > div > hgroup > h2{ + display: none; +} +hgroup{ + border-bottom: 1px solid rgba(0, 0, 0, 0.363); + width:90%; +} +figure>img{ + float: right; + margin: -100px 200px 0px -200px ; + transform: rotate(-20deg); + width: 180px; + height: 180px; +} +hgroup>h1{ + +} +#about{ + margin-top: -20px; + display: flex; + flex-direction: row-reverse; + justify-content: space-between; +} +#about>h3{ + visibility: hidden; + width: 20%; +} +#about>p{ + width: 80%; + opacity: 0.5; + font-style: italic; +} + +h3{ + font-style: italic; +} + +.content{ + display: grid; + grid-template-rows: auto; + row-gap: 30px; +} + +#competencies > div.skills.skills-primary{ +display: grid; +grid-template-columns: auto auto auto ; +column-gap: 10px; +width: 50%; +margin-top: 20px; +} +#competencies > div.skills.skills-secondary{ + display: grid; +grid-template-columns: auto auto auto ; +column-gap: 10px; +width: 50%; +margin-bottom: 40px; +} + +#competencies > div.skills.skills-primary > div{ + background-color: #008080; + color: white; + padding: 10px; +} + +#competencies > div.skills.skills-secondary > div{ + background-color: #008080; + color: white; + padding: 5px; +} + +#competencies > div.skills.skills-primary > div:nth-child(1) > span:after{ + content: "\2605 \2605 \2605"; + float: right; +} +#competencies > div.skills.skills-primary > div:nth-child(2) > span:after{ + content: "\2605 \2605"; + float: right; +} + +#competencies > div.skills.skills-primary > div:nth-child(3) > span:after{ + content: " \2605"; + float: right; +} +#competencies > div.skills.skills-secondary > div> span{ + font-size: 12px; +} +#competencies > div.skills.skills-secondary > div:nth-child(1) > span::after{ + content: "\2605 \2605 \2605 \2605 \2605"; + float: right; + margin-left: -20px; +} +#competencies > div.skills.skills-secondary > div:nth-child(2) > span::after{ + content: "\2605 \2605 \2605"; + float: right; + margin-left: -20px; +} +#competencies > div.skills.skills-secondary > div:nth-child(3) > span::after{ + content: "\2605 \2605 \2605 \2605"; + float: right; + margin-left: -28px; +} + + +#experiences,#education{ + + display: grid; + grid-template-columns: auto auto ; + gap: 20px; + + + +} +#experiences>h3,#education>h3,#hobbies>h3{ + grid-row: 1/3; + border-right: 1px solid black; + padding-right:25px; +} + +#education>h3{ + padding-right:45px; +} +#competencies>h3{ + grid-row: 1/3; + border-right: 1px solid black; + padding:4px; +} +#competencies{ + display: grid; + grid-template-columns:1fr 7fr ; + gap: 20px; +} + +#hobbies{ + display: grid; + grid-template-columns:1fr 7fr ; + gap: 20px; + margin-left:5px; + +} +.experience-institution{ +display:none; +} +.experience-type{ + color: #008080; +} +.experience-details{ +float: right; +opacity: 0.5; +margin-top: -45px; +} + +#contact > h3{ + display: none; +} +#contact > div > dl.contact> dt{ +display: none; +} +#contact > div > dl.contact.contact-skype > dd{ + display: none; +} +#contact > div > dl.contact > dd > a{ + display: none; +} +.contacts{ + display:flex; + justify-content: center; +} + +.contact-facebook{ + background-image: url('../images/facebook.png'); + background-repeat: no-repeat ; + background-size: contain; + width: 5rem; + height: 5rem; +} + +.contact-email{ + background-image: url('../images/email.png'); + background-repeat: no-repeat ; + background-size: contain; + width: 5rem; + height: 5rem; +} +.contact-github{ + background-image: url('../images/github.png'); + background-repeat: no-repeat ; + background-size: contain; + width: 5rem; + height: 5rem; +} +.contact-phone{ + background-image: url('../images/phone.png'); + background-repeat: no-repeat ; + background-size: contain; + width: 4rem; + height: 4rem; +} + + +@media only screen and (max-width: 600px) { +body{ + padding: 5px 20px 5px 20px; +} +figure>img{ + display: none; +} +#competencies,#experiences,#education,#hobbies{ + display: block; +} +#experiences>h3,#education>h3,#hobbies>h3,#competencies>h3{ + border-bottom: 1px solid black; + border-right: none; + width:30%; +} + +#competencies > div.skills.skills-primary{ + display: grid; + grid-template-columns: auto auto auto ; + column-gap: 20px; + width: 100%; + margin-top: 20px; + } + #competencies > div.skills.skills-secondary{ + display: grid; + grid-template-columns: auto auto auto ; + column-gap: 20px; + width: 100%; + margin-bottom: 0px; + margin-top: 10px; + } +#about>p{ + width: 100%; +} +} +