<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Analyze_</title>
    <description>The latest articles on DEV Community by Analyze_ (@analyze0).</description>
    <link>https://dev.to/analyze0</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F870547%2F162727db-7ad1-436d-ac38-29897bc5c85c.png</url>
      <title>DEV Community: Analyze_</title>
      <link>https://dev.to/analyze0</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/analyze0"/>
    <language>en</language>
    <item>
      <title>How to preload images in HTML and CSS</title>
      <dc:creator>Analyze_</dc:creator>
      <pubDate>Tue, 12 Dec 2023 14:53:14 +0000</pubDate>
      <link>https://dev.to/analyze0/how-to-preload-images-in-html-and-css-1a61</link>
      <guid>https://dev.to/analyze0/how-to-preload-images-in-html-and-css-1a61</guid>
      <description>&lt;p&gt;I figured out a way to preload images in html and css. I have used this for stuff like buttons that have multiple different images (for when it is clicked vs not being clicked). A lot of the time, you will click on the button then it will take a second to load the background.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How to do it:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;In your html, create a &lt;/p&gt; with the class of hidden.&lt;br&gt;
Put img tags with the srcs of all of the images you want to load within that .

&lt;p&gt;For example:&lt;br&gt;
&lt;/p&gt;

&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;div class="hidden"&amp;gt;
  &amp;lt;img src="images/open_button_click.jpg" alt=""&amp;gt;
&amp;lt;/div&amp;gt;
&lt;/code&gt;&lt;/pre&gt;



&lt;p&gt;&lt;strong&gt;The CSS:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Paste this into your CSS:&lt;br&gt;
&lt;/p&gt;

&lt;pre class="highlight plaintext"&gt;&lt;code&gt;.hidden {
  position:fixed;
  bottom:0px;
  left:0px;
  pointer-events: none;
  opacity:0%;
}
&lt;/code&gt;&lt;/pre&gt;



&lt;p&gt;What this does is hide the elements visually then makes it so they don't affect anything else on your page.&lt;/p&gt;

&lt;p&gt;That's all I wanted to keep this simple.&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>beginners</category>
      <category>tutorial</category>
      <category>html</category>
    </item>
    <item>
      <title>How to make an infinite scrolling image loop in css &amp; javascript!</title>
      <dc:creator>Analyze_</dc:creator>
      <pubDate>Thu, 14 Sep 2023 01:06:46 +0000</pubDate>
      <link>https://dev.to/analyze0/how-to-make-an-infinite-scrolling-image-loop-in-css-javascript-29ic</link>
      <guid>https://dev.to/analyze0/how-to-make-an-infinite-scrolling-image-loop-in-css-javascript-29ic</guid>
      <description>&lt;p&gt;In this tutorial, I am going to teach you how to create an infinite horizontal scrolling image in css &amp;amp; javascript!&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step #1: HTML&lt;/strong&gt;&lt;br&gt;
You are going to need to create a &lt;code&gt;&amp;lt;div&amp;gt;&lt;/code&gt; with the ID and class of "landscape," although you can name it whatever you would like.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Code:&lt;/em&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;div class="landscape" id="landscape"&amp;gt;&amp;lt;/div&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Step #2: Finding the right image&lt;/strong&gt;&lt;br&gt;
You are going to need to find an image that loops when it is next to itself horizontally. This might be hard to find. If you can't find one you like, you can always just make your own in something such as Photoshop.&lt;/p&gt;

&lt;p&gt;For mine I used a cartoon cloud image (&lt;a href="https://landscape.analyze185.repl.co/clouds.png"&gt;See Here&lt;/a&gt;).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step #3: CSS&lt;/strong&gt;&lt;br&gt;
For this you are going to fix the div to the page and make sure it fills the whole page. You also need to do things, like set the z-index to -1 so that it is positioned behind any other elements.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Code:&lt;/em&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;.landscape{
  position:fixed;
  top:0px;
  left:0px;
  background:url('..path/to/image.png');
  width:100vw;
  height:100vh;
  background-size:1200px 650px;
  background-position:0px;
  z-index:-1;
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Step #4: JavaScript&lt;/strong&gt;&lt;br&gt;
Last but not least, to make the movement of the background, you will need to use JavaScript. Essentially all it is, is a repeating loop that changes the background-image's background-position by one using a variable. This variable increases by one integer each time the function is called, creating the movement effect.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Code:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;var x = 1;
var bgImage = document.getElementById('landscape');

function move(){
  x++;
  bgImage.style.backgroundPositionX = x + "px";
}

setInterval(move, 50);
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If you want, you can change the interval time to change the speed of the background image.&lt;/p&gt;

&lt;p&gt;Thanks for reading, I hope it helped!&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Quinn&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>css</category>
      <category>javascript</category>
      <category>beginners</category>
      <category>webdev</category>
    </item>
    <item>
      <title>How to make a GPA Calculator as a beginner in HTML &amp; JavaScript</title>
      <dc:creator>Analyze_</dc:creator>
      <pubDate>Thu, 01 Jun 2023 11:02:00 +0000</pubDate>
      <link>https://dev.to/analyze0/how-to-make-a-gpa-calculator-as-a-beginner-in-html-javascript-1o9c</link>
      <guid>https://dev.to/analyze0/how-to-make-a-gpa-calculator-as-a-beginner-in-html-javascript-1o9c</guid>
      <description>&lt;p&gt;In this tutorial I will show you how to create an easy GPA calculator in HTML and JavaScript.&lt;/p&gt;




&lt;h2&gt;
  
  
  Part One [HTML]:
&lt;/h2&gt;

&lt;p&gt;In the &lt;code&gt;&amp;lt;body&amp;gt;&lt;/code&gt; of your HTML file, add in an &lt;code&gt;&amp;lt;input&amp;gt;&lt;/code&gt;, with the &lt;code&gt;id&lt;/code&gt; of "input", and the &lt;code&gt;type&lt;/code&gt; of text. On the next line, create a &lt;code&gt;&amp;lt;span&amp;gt;&lt;/code&gt; with the &lt;code&gt;class&lt;/code&gt; and &lt;code&gt;id&lt;/code&gt; of "output". Next add a &lt;code&gt;&amp;lt;button&amp;gt;&lt;/code&gt; with an &lt;code&gt;onmousedown&lt;/code&gt; event. Type &lt;code&gt;calculate()&lt;/code&gt; into the &lt;code&gt;onmousedown&lt;/code&gt; event. Make the button say "Calculate". This button will run the JavaScript that gets what the output will be.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;Cheat Sheet:&lt;/em&gt;&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;  &amp;lt;input type="text" id="input"&amp;gt;
  &amp;lt;span class="output" id="output"&amp;gt;&amp;lt;/span&amp;gt;
  &amp;lt;button onmousedown="calculate()"&amp;gt;Calculate&amp;lt;/button&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  Part 2 [JavaScript]:
&lt;/h2&gt;

&lt;p&gt;First, create a variable called &lt;code&gt;sum&lt;/code&gt;. Do not set the value for this variable (it should look like this: &lt;code&gt;var sum;&lt;/code&gt;). Next, create a variable called &lt;code&gt;numberOfGrades&lt;/code&gt;, and set the value to &lt;code&gt;1&lt;/code&gt;. The variable &lt;code&gt;numberOfGrades&lt;/code&gt;, will be used to detect how many letter grades the user input. For example, if the user inputs &lt;code&gt;A+, B, B+&lt;/code&gt;, then eventually we will make it so that the variable &lt;code&gt;numberOfGrades&lt;/code&gt; will detect that the user input 3 letter grades.&lt;/p&gt;

&lt;p&gt;After that, create a &lt;code&gt;function&lt;/code&gt; called &lt;code&gt;calculate()&lt;/code&gt;. It should look something like this: &lt;code&gt;function calculate(e){}&lt;/code&gt;. In the curly brackets of this function, set the variable &lt;code&gt;numberOfGrades&lt;/code&gt; to &lt;code&gt;1&lt;/code&gt;. Then, set the variable &lt;code&gt;sum&lt;/code&gt; to the value of our input box in HTML (This should look like this: &lt;code&gt;sum = document.getElementById('input').value;&lt;/code&gt;). This means that the sum will look like the users input before anything is calculated. After you did all of that, add this code on the next line:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;if(sum.includes('A+')){
    sum = sum.replaceAll('A+', '4.0')
  }
  if(sum.includes('A')){
    sum = sum.replaceAll('A', '4.0');
  }
  if(sum.includes('A-')){
    sum = sum.replaceAll('A-', '3.7');
  }
  if(sum.includes('B+')){
    sum = sum.replaceAll('B+', '3.3');
  }
  if(sum.includes('B')){
    sum = sum.replaceAll('B', '3.0');
  }
  if(sum.includes('B-')){
    sum = sum.replaceAll('B-', '2.7');
  }
  if(sum.includes('C+')){
    sum = sum.replaceAll('C+', '2.3');
  }
  if(sum.includes('C')){
    sum = sum.replaceAll('C', '2.0');
  }
  if(sum.includes('C-')){
    sum = sum.replaceAll('C-', '1.7');
  }
  if(sum.includes('D+')){
    sum = sum.replaceAll('D+', '1.3');
  }
  if(sum.includes('D')){
    sum = sum.replaceAll('D', '1.0');
  }
  if(sum.includes('D-')){
    sum = sum.replaceAll('D-', '0.7');
  }
  if  (sum.includes('F')){
    sum = sum.replaceAll('F', '0.0');
  }
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;What this code does is it replaces all of the letter grades in the &lt;code&gt;sum&lt;/code&gt; variable with a grade point value. On the next line, you have to add the code:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;while(sum.includes(',')){
    sum = sum.replace(',', '+');
    numberOfGrades++;
  }
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This code is to replace all of the commas in the users input with plus signs. The &lt;code&gt;sum&lt;/code&gt; variable's value will now look something like this: &lt;code&gt;4.0 + 3.0 + 3.7&lt;/code&gt;. But as we know, &lt;code&gt;10.7&lt;/code&gt; is not a GPA. That is why we have the variable &lt;code&gt;numberOfGrades&lt;/code&gt;. In the &lt;code&gt;while&lt;/code&gt; loop above, I made it so that &lt;code&gt;numberOfGrades&lt;/code&gt;'s value increased by one every time it detected a comma.&lt;/p&gt;

&lt;p&gt;Now what we do is average the GPA out. This math is really simple. All you have to do is set the &lt;code&gt;output&lt;/code&gt; element's &lt;code&gt;innerHTML&lt;/code&gt; to &lt;code&gt;(eval(sum) / numberOfGrades)&lt;/code&gt;. The math equation above, divides the grades added together with the amount of grades originally. This gives you the Grade Point Average.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;Cheat Sheet:&lt;/em&gt;&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;var sum;
var numberOfGrades = 1;
function calculate(e){
  numberOfGrades = 1;
  sum = document.getElementById('input').value;
  if(sum.includes('A+')){
    sum = sum.replaceAll('A+', '4.0')
  }
  if(sum.includes('A')){
    sum = sum.replaceAll('A', '4.0');
  }
  if(sum.includes('A-')){
    sum = sum.replaceAll('A-', '3.7');
  }
  if(sum.includes('B+')){
    sum = sum.replaceAll('B+', '3.3');
  }
  if(sum.includes('B')){
    sum = sum.replaceAll('B', '3.0');
  }
  if(sum.includes('B-')){
    sum = sum.replaceAll('B-', '2.7');
  }
  if(sum.includes('C+')){
    sum = sum.replaceAll('C+', '2.3');
  }
  if(sum.includes('C')){
    sum = sum.replaceAll('C', '2.0');
  }
  if(sum.includes('C-')){
    sum = sum.replaceAll('C-', '1.7');
  }
  if(sum.includes('D+')){
    sum = sum.replaceAll('D+', '1.3');
  }
  if(sum.includes('D')){
    sum = sum.replaceAll('D', '1.0');
  }
  if(sum.includes('D-')){
    sum = sum.replaceAll('D-', '0.7');
  }
  if  (sum.includes('F')){
    sum = sum.replaceAll('F', '0.0');
  }
  while(sum.includes(',')){
    sum = sum.replace(',', '+');
    numberOfGrades++;
  }
  document.getElementById("output").innerHTML = (eval(sum) / numberOfGrades);
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Thanks for reading!&lt;br&gt;
-Quinn&lt;/p&gt;

&lt;p&gt;&lt;a href="https://gpa-calculator.analyze185.repl.co/"&gt;View Project&lt;/a&gt;&lt;br&gt;
&lt;a href="https://github.com/Analyze0/GPA-Calulator/tree/main"&gt;Code&lt;/a&gt;&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>javascript</category>
      <category>beginners</category>
      <category>html</category>
    </item>
    <item>
      <title>How to make your own simple translator in HTML &amp; JavaScript</title>
      <dc:creator>Analyze_</dc:creator>
      <pubDate>Wed, 31 May 2023 15:23:59 +0000</pubDate>
      <link>https://dev.to/analyze0/how-to-make-your-own-simple-translator-in-html-javascript-2ohf</link>
      <guid>https://dev.to/analyze0/how-to-make-your-own-simple-translator-in-html-javascript-2ohf</guid>
      <description>&lt;h2&gt;
  
  
  &lt;strong&gt;DESCRIPTION:&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;In this tutorial, I will teach you how to make a website that translates one language into another using HTML, CSS, and JavaScript.&lt;/p&gt;




&lt;h2&gt;
  
  
  Part One [Choosing a Language]:
&lt;/h2&gt;

&lt;p&gt;When choosing a language, think of something that you are interested in learning, already know, or have some sort of connection to. In this tutorial, I am going to be using Swedish. I chose this language because I have been learning it for a pretty decent amount of time now.&lt;/p&gt;




&lt;h2&gt;
  
  
  Part Two [Setting Up Your Files]:
&lt;/h2&gt;

&lt;p&gt;In your &lt;code&gt;index.html&lt;/code&gt;, add the line &lt;code&gt;&amp;lt;link href="style.css" rel="stylesheet" type="text/css" /&amp;gt;&lt;/code&gt; to your &lt;code&gt;&amp;lt;head&amp;gt;&lt;/code&gt; in order to link your css file. Next, add &lt;code&gt;&amp;lt;script src="script.js"&amp;gt;&amp;lt;/script&amp;gt;&lt;/code&gt;, &amp;amp; &lt;code&gt;&amp;lt;script src="translations.js"&amp;gt;&amp;lt;/script&amp;gt;&lt;/code&gt; to link your JavaScript to your HTML file.&lt;/p&gt;




&lt;h2&gt;
  
  
  Part Three [Writing Your HTML]:
&lt;/h2&gt;

&lt;p&gt;Create a &lt;code&gt;&amp;lt;div&amp;gt;&lt;/code&gt; with the class of container. This will contain your input and output boxes. Next, inside of your &lt;code&gt;&amp;lt;div&amp;gt;&lt;/code&gt;, create a &lt;code&gt;&amp;lt;textarea&amp;gt;&lt;/code&gt; with the id and class of input. Set the placeholder to something like input or whatever language you will have translated into the other language (for example: English, because I am translating English to Swedish).&lt;/p&gt;

&lt;p&gt;On the next line, create a &lt;code&gt;&amp;lt;div&amp;gt;&lt;/code&gt; with the id and class of output. This is going to be the translated text later on. Inside of this &lt;code&gt;&amp;lt;div&amp;gt;&lt;/code&gt;, you can create something for a place holder if you want. My placeholder is &lt;code&gt;&amp;lt;span style="color:lightslategray;"&amp;gt;Swedish&amp;lt;/span&amp;gt;&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Cheat Sheet:&lt;/strong&gt;&lt;br&gt;
&lt;code&gt;_index.html_&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;!DOCTYPE html&amp;gt;
&amp;lt;html&amp;gt;

&amp;lt;head&amp;gt;
  &amp;lt;link rel="icon" href="/fav.png" type="image/x-icon"&amp;gt;
  &amp;lt;meta charset="utf-8"&amp;gt;
  &amp;lt;meta name="viewport" content="width=device-width"&amp;gt;
  &amp;lt;title&amp;gt;English to Swedish&amp;lt;/title&amp;gt;
  &amp;lt;link href="style.css" rel="stylesheet" type="text/css" /&amp;gt;
&amp;lt;/head&amp;gt;

&amp;lt;body&amp;gt;
  &amp;lt;div class="container"&amp;gt;
    &amp;lt;textarea name="" id="input" cols="30" rows="10" class="input" placeholder="English"&amp;gt;&amp;lt;/textarea&amp;gt;
    &amp;lt;div id="output" class="output"&amp;gt;
      &amp;lt;span style="color:lightslategray;"&amp;gt;Swedish&amp;lt;/span&amp;gt;
    &amp;lt;/div&amp;gt;
  &amp;lt;/div&amp;gt;
  &amp;lt;script src="script.js"&amp;gt;&amp;lt;/script&amp;gt;
  &amp;lt;script src="translations.js"&amp;gt;&amp;lt;/script&amp;gt;
&amp;lt;/body&amp;gt;

&amp;lt;/html&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  Part Four [script.js]:
&lt;/h2&gt;

&lt;p&gt;First, create a variable called &lt;code&gt;translated&lt;/code&gt;. Leave the value blank. It should look like this: &lt;code&gt;var translated;&lt;/code&gt;. Type out this next: &lt;code&gt;document.getElementById('input').onkeyup = function(e){ }&lt;/code&gt;. What this does is detect when you type anything into the input area. Inside of the curly brackets (&lt;code&gt;{}&lt;/code&gt; &amp;lt;-- these things), type: &lt;code&gt;translated = " " + document.getElementById('input').value;&lt;/code&gt;. This code sets the variable &lt;code&gt;translated&lt;/code&gt; to our input value. Also inside of the curly brackets, type in &lt;code&gt;translate(e)&lt;/code&gt;. After this, type: &lt;code&gt;document.getElementById('output').innerHTML = translated;&lt;/code&gt; on the next line, in order to set the output &lt;code&gt;&amp;lt;div&amp;gt;&lt;/code&gt; to the translated text.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Cheat Sheet:&lt;/strong&gt;&lt;br&gt;
&lt;code&gt;_script.js_&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;var translated;
document.getElementById('input').onkeyup = function(e){
  translated = " " + document.getElementById('input').value;
  translate(e);
  document.getElementById('output').innerHTML = translated;
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  Part Five [translations.js]:
&lt;/h2&gt;

&lt;p&gt;We are now in &lt;code&gt;translations.js&lt;/code&gt;, and are going to start and make the translations. First, create a function called &lt;code&gt;translate(e)&lt;/code&gt;. It should look like this: &lt;code&gt;function translate(e){}&lt;/code&gt;. In the curly brackets type out:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;while(translated.includes(" hello")){
  translated = translated.replace(" hello", " hey");
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This translated "hello" to Swedish! Copy and paste these 3 lines for each word that you translate. You also need to make a capitalized version of each word. This is what it would look like:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;while(translated.includes("Hello ")){
  translated = translated.replace("Hello ", "Hey ");
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  Part Six [CSS]:
&lt;/h2&gt;

&lt;p&gt;This is the format that I made, but you can change it however you want.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;/*font stuff:*/
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,300;1,400;1,500;1,600;1,700&amp;amp;display=swap');
* {
    font-family: 'IBM Plex Sans', sans-serif;
    text-align: center;
    box-sizing: border-box;
}
html{
  overflow-y:scroll;
  overflow-x:none;
  box-shadow: 0 4px 8px 0 #00000007, 0 6px 15px 0 #0000001a;
  margin-top:7.3%;
  height:70vh;
  background:#f2f2f2;
  width:25%;
  margin-left:37.5%;
  align-content:center;
  text-align:center;
  border-radius:12px;
}
h1{
  margin:30px;
  padding-top:30px;
}
.secondary-text{
  color: #9f2dde;
}
input{
  border-radius:3px;
  border:none;
  padding:3px;
  margin-bottom:5px;
}
button{
  border-radius:3px;
  border:none;
  padding:3px;
  background:#dedede;
  width:182.5px;
  cursor:pointer;
}
hr{
  width:80%;
}
input[type=number]{
  width:19%;
}
.fileUploadDiv{
  margin-bottom:3px;
  margin-left:62.5px;
  text-align:center;
  border:none;
  width:59.3%;
  background:white;
  border-radius:3px;
  font-size:15px;
}
input[type=file]{
  display: none;
}
label{
  cursor:pointer;
}
select{
  border-radius:3px;
  border:none;
  padding:3px;
  background:white;
  width:182.5px;
  margin-bottom:3px;
  cursor:pointer;
}
input[type=checkbox]{
  cursor:pointer;
  appearance: none;
  background-color: #fff;
  margin: 0;
  font: inherit;
  color: currentColor;
  width: 1.15em;
  height: 1.15em;
  border: 0.1em solid currentColor;
  border-radius: 0.15em;
  transform: translateY(-0.075em);
}
input[type="checkbox"]::before {
  content: "";
  width: 0.65em;
  height: 0.65em;
  transform: scale(0);
  transition: 120ms transform ease-in-out;
  box-shadow: inset 1em 1em black;
}

input[type="checkbox"]:checked {
  background: #9f2dde;
  background-size: 5px 5px;
}
code{
  user-select:all;
}
textarea{
  resize:none;
  border:none;
  transform:translateY(10px);
  border-radius:12px;
}
.output{
  font-size:small;
  transform:translateY(10px);
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  Thanks For Reading!
&lt;/h2&gt;

&lt;p&gt;-Quinn&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/Analyze0/swedish-translator"&gt;Code&lt;/a&gt;&lt;br&gt;
&lt;a href="https://swedish-translator.analyze185.repl.co/"&gt;View Project&lt;/a&gt;&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>tutorial</category>
      <category>css</category>
      <category>html</category>
    </item>
    <item>
      <title>I made a dark mode CSS download</title>
      <dc:creator>Analyze_</dc:creator>
      <pubDate>Fri, 07 Oct 2022 13:48:56 +0000</pubDate>
      <link>https://dev.to/analyze0/i-made-a-dark-mode-css-download-ill</link>
      <guid>https://dev.to/analyze0/i-made-a-dark-mode-css-download-ill</guid>
      <description>&lt;p&gt;Hey I just made a dark mode CSS download. Here are the steps to run it:&lt;/p&gt;

&lt;p&gt;1: &lt;a href="https://replfiles.dillonb07.studio/Analyze185/Dark%20Mode%20Download"&gt;Download&lt;/a&gt;&lt;br&gt;
2: Upload it to the files to your website&lt;br&gt;
3: Add this to the &lt;code&gt;&amp;lt;head&amp;gt;&lt;/code&gt; of your &lt;code&gt;html&lt;/code&gt; file:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;link href='https://fonts.googleapis.com/css?family=Oswald' rel='stylesheet'&amp;gt;
  &amp;lt;link href='https://fonts.googleapis.com/css?family=Fira Code' rel='stylesheet'&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;to add the fonts&lt;br&gt;
3: Last, add&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;link href="style.css" rel="stylesheet" type="text/css" /&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;to connect the &lt;code&gt;style.css&lt;/code&gt; file to your &lt;code&gt;html&lt;/code&gt; file!&lt;/p&gt;

&lt;p&gt;That's it!&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Cpp Square Root Calculator</title>
      <dc:creator>Analyze_</dc:creator>
      <pubDate>Mon, 06 Jun 2022 14:52:20 +0000</pubDate>
      <link>https://dev.to/analyze0/cpp-square-root-calculator-463g</link>
      <guid>https://dev.to/analyze0/cpp-square-root-calculator-463g</guid>
      <description>&lt;p&gt;I like making calculators so I made one for square root. This uses the cmath package &lt;/p&gt;

&lt;p&gt;&lt;a href="https://replit.com/@Analyze185/Square-root?v=1"&gt;Link&lt;/a&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;#include &amp;lt;cmath&amp;gt;
#include &amp;lt;iostream&amp;gt;
using namespace std;

int main() {
  string session = "y";

  while (session == "y") {
    int num = 0;
    cout &amp;lt;&amp;lt; "What would you like to find the quare root of?\n";
    cin &amp;gt;&amp;gt; num;
    cout &amp;lt;&amp;lt; sqrt(num) &amp;lt;&amp;lt; "\nWould you like to continue session [y/n]?\n";
    cin &amp;gt;&amp;gt; session;
    cout &amp;lt;&amp;lt; "\x1B[2J\x1B[H";
  } // end of session
  cout &amp;lt;&amp;lt; "\x1B[2J\x1B[H";
  cout &amp;lt;&amp;lt; "Ended session\n";
  return 1;
} // end of code
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>calculator</category>
      <category>squareroot</category>
      <category>cpp</category>
      <category>programming</category>
    </item>
    <item>
      <title>cpp Binary to Decimal decoder</title>
      <dc:creator>Analyze_</dc:creator>
      <pubDate>Fri, 03 Jun 2022 10:49:32 +0000</pubDate>
      <link>https://dev.to/analyze0/cpp-binary-to-decimal-decoder-374b</link>
      <guid>https://dev.to/analyze0/cpp-binary-to-decimal-decoder-374b</guid>
      <description>&lt;p&gt;Since my (&lt;a href="https://dev.to/analyze0/cpp-decimal-binary-calculator-3b2a"&gt;last post&lt;/a&gt;) I had been trying to make a Binary to Decimal calculator, also using C++. I went for a different method this time, and now the binary supports over 8 digits.&lt;/p&gt;

&lt;p&gt;Credit to: &lt;a href="https://geeksforgeeks.org/"&gt;https://geeksforgeeks.org/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://replit.com/@Analyze185/Binary-to-Decimal-Decoder?v=1"&gt;Link to finished project&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Code:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;#include &amp;lt;iostream&amp;gt;
using namespace std;

int main() {
  char binaryNumber[] = "0101010101010101010101010101010101";
  string session = "y";
  while (session == "y") {

    cout &amp;lt;&amp;lt; "\nEnter a Binary number (1s and 0s): ";
    cin &amp;gt;&amp;gt; binaryNumber;
    cout &amp;lt;&amp;lt; "\n";

    cout &amp;lt;&amp;lt; stoi(binaryNumber, 0, 2);
    session = "y";
    cout &amp;lt;&amp;lt; "\nContinue session? [y/n]\n";
    cin &amp;gt;&amp;gt; session;
    cout &amp;lt;&amp;lt; "\x1B[2J\x1B[H";
  } // end of session
  cout &amp;lt;&amp;lt; "Credit to https://geeksforgeeks.org/ for helping me with some of "
          "this code!\n";
  return 1;
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;`&lt;br&gt;
Changelog#1(Fri, Jun 3rd):&lt;br&gt;
Fixed formatting&lt;/p&gt;

</description>
      <category>binary</category>
      <category>decimal</category>
      <category>decoder</category>
      <category>cpp</category>
    </item>
    <item>
      <title>Cpp Decimal to Binary Converter</title>
      <dc:creator>Analyze_</dc:creator>
      <pubDate>Wed, 01 Jun 2022 13:38:33 +0000</pubDate>
      <link>https://dev.to/analyze0/cpp-decimal-binary-calculator-3b2a</link>
      <guid>https://dev.to/analyze0/cpp-decimal-binary-calculator-3b2a</guid>
      <description>&lt;p&gt;&lt;a href="https://replit.com/@Analyze185/Numbers-to-Decimal-Binary-8-digits?v=1"&gt;Link&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I would like to know how to add more digits, can anyone help?&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;#include &amp;lt;iostream&amp;gt;

int main() {
  int num = 0;
  int digit1 = 0;//128
  int digit2 = 0;//64
  int digit3 = 0;//32
  int digit4 = 0;//16
  int digit5 = 0;//8
  int digit6 = 0;//4
  int digit7 = 0;//2
  int digit8 = 0;//1
  std::string session = "y";
  while (session == "y"){

digit1 = 0;
digit2 = 0;
digit3 = 0;
digit4 = 0;
digit5 = 0;
digit6 = 0;
digit7 = 0;
digit8 = 0;
std::string cont = "";


  std::cout &amp;lt;&amp;lt; "\nEnter an integer 255 or under (this binary only supports 8 digits): "; std::cin &amp;gt;&amp;gt; num; std::cout &amp;lt;&amp;lt; "\n"; 
    if (num &amp;lt; 256) {
 if(num&amp;gt;127){ digit1++; num = num - 128;}
 if(num&amp;gt;63){ digit2++; num = num - 64;}
 if(num&amp;gt;31){ digit3++; num = num - 32;}
 if(num&amp;gt;15){ digit4++; num = num - 16;}
 if(num&amp;gt;7){ digit5++; num = num - 8;}
 if(num&amp;gt;3){ digit6++; num = num - 4;}
 if(num&amp;gt;1){ digit7++; num = num - 2;}
 if(num&amp;gt;0){ digit8++; num = num - 1;}
 std::cout &amp;lt;&amp;lt; digit1 &amp;lt;&amp;lt; digit2 &amp;lt;&amp;lt; digit3 &amp;lt;&amp;lt; digit4 &amp;lt;&amp;lt; digit5 &amp;lt;&amp;lt; digit6 &amp;lt;&amp;lt; digit7 &amp;lt;&amp;lt; digit8;
session = "y";
  std::cout &amp;lt;&amp;lt; "\nContinue session? [y/n]\n";
    std::cin &amp;gt;&amp;gt; session;
      }
    else if (num &amp;gt; 255){
      std::cout &amp;lt;&amp;lt; "You have to enter a number under 256\n[ENTER ANY KEY TO RESET]\n";
      std::cin &amp;gt;&amp;gt; cont;
      session = "y";
    }
    else{
      std::cout &amp;lt;&amp;lt; "You have to enter a number above -1\n[ENTER ANY KEY TO RESET]\n";
      std::cin &amp;gt;&amp;gt; cont;
      session = "y";
    }
    std::cout &amp;lt;&amp;lt; "\x1B[2J\x1B[H";//reset screen
    }//end of session
  return 1;
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;&lt;br&gt;
Changelog#1(Wed, June 1st, 2022):&lt;br&gt;
Added a feature so if you enter a number over 255, or under 0, it gives a message and resets&lt;br&gt;
Changlelog#2(Thur, June 2nd, 2022):&lt;br&gt;
Implemented console erase after calculated&lt;br&gt;
&lt;/code&gt;&lt;/p&gt;

</description>
      <category>cpp</category>
      <category>binary</category>
      <category>decimal</category>
      <category>converter</category>
    </item>
  </channel>
</rss>
