Advertisement
irmantas_radavicius

Untitled

Feb 6th, 2022
996
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 3.27 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4.     <meta charset="UTF-8">
  5.     <meta http-equiv="X-UA-Compatible" content="IE=edge">
  6.     <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7.     <title>Document</title>
  8. </head>
  9. <body id="body">
  10.     <script>
  11.         // input
  12.         let textr1 = "about me";
  13.         let textr2 = "I'm a UI Designer and Front End Developer from Sydney, Australia"
  14.         let textr3 = "I enjoy taking complex problems and turning them into simple and beatiful interface designs. I also love the logic and structure of coding and always strive to write elegant and efficient code, whether it be HTML, CSS or jQuery."
  15.         let textr4 = "When I'm not coding or pushing pixels, you'l find me in the gym or on the court shooting some hoops.";
  16.         let textr5 = '<img id="imgfl" src="images/fblike.jpg" alt="Facebook Like" /> <img id="imgft" src="images/followtwitter.jpg" alt="Follow Twitter" />';
  17.         let textrR = '<img id="img11" src="images/about11.jpg" alt="Face" />';
  18.  
  19.         // algoritm
  20.         let main = document.getElementById('body');
  21.         body.style.fontFamily = "Helvetica, sans-serif";
  22.         main.innerHTML = '<div id="row1"></div> <div id="row2"></div> <div id="row3"></div> <div id="row4"></div> <div id="row5"></div> <div id="rowR"></div>';
  23.         main.style.width = "100%"; // CHANGED: pridejau kabliataski ir ploti
  24.         //main.style.float = "left";
  25.  
  26.         row1.innerHTML = textr1;
  27.         let str1 = document.getElementById('row1').style;
  28.         str1.fontWeight = "bold";
  29.         str1.fontSize = "3rem";
  30.         str1.cssFloat = "left";
  31.         str1.width = "50%";         // CHANGED
  32.         str1.clear = "left";        // CHANGED
  33.  
  34.        
  35.         row2.innerHTML = textr2;
  36.         let str2 = document.getElementById('row2').style;
  37.         str2.padding = "15px 0px";
  38.         //str2.fontWeight = "bold";
  39.         str2.fontSize = "1.5rem";
  40.         str2.cssFloat = "left";
  41.         str2.width = "50%";         // CHANGED
  42.         str2.clear = "left";        // CHANGED
  43.  
  44.         row3.innerHTML = textr3;
  45.         let str3 = document.getElementById('row3').style;
  46.         str3.padding = "15px 0px";
  47.         str3.fontSize = "0.8rem";
  48.         str3.cssFloat = "left";
  49.         str3.width = "50%";         // CHANGED
  50.         str3.clear = "left";        // CHANGED
  51.        
  52.         row4.innerHTML = textr4;
  53.         let str4 = document.getElementById('row4').style;
  54.         //str4.fontWeight = "bold";
  55.         str4.padding = "15px 0px";
  56.         str4.fontSize = "0.8rem";
  57.         str4.cssFloat = "left";
  58.         str4.width = "50%";         // CHANGED
  59.         str4.clear = "left";        // CHANGED
  60.  
  61.         row5.innerHTML = textr5;
  62.         let str5 = document.getElementById('row5').style;
  63.         imgfl.style.paddingRight = imgft.style.paddingRight = "10px";
  64.         imgfl.style.width = imgft.style.width = "10%";
  65.         imgfl.style.height = imgft.style.height = "10px";
  66.         str5.padding = "15px 0px";
  67.         str5.cssFloat = "left";
  68.         str5.width = "50%";     // CHANGED
  69.         str5.clear = "left";    // CHANGED
  70.  
  71.         rowR.innerHTML = textrR;
  72.         let strR = document.getElementById('rowR').style;
  73.         //strR.clear = "left";
  74.         strR.cssFloat = "right";
  75.         strR.width = "50%";
  76.         //strR.width = "60%"
  77.  
  78.         // output
  79.         console.log("Success!")
  80.  
  81.     </script>
  82.    
  83. </body>
  84. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement