<?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: Flurabula</title>
    <description>The latest articles on DEV Community by Flurabula (@flurabula).</description>
    <link>https://dev.to/flurabula</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%2F1025291%2F7830bccb-c1d0-4548-b69a-4809a3d03da8.jpg</url>
      <title>DEV Community: Flurabula</title>
      <link>https://dev.to/flurabula</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/flurabula"/>
    <language>en</language>
    <item>
      <title>How to create an Internet status viewer using JavaScript?</title>
      <dc:creator>Flurabula</dc:creator>
      <pubDate>Mon, 27 Feb 2023 01:11:46 +0000</pubDate>
      <link>https://dev.to/flurabula/how-to-create-an-internet-status-viewer-using-javascript-2b6b</link>
      <guid>https://dev.to/flurabula/how-to-create-an-internet-status-viewer-using-javascript-2b6b</guid>
      <description>&lt;p&gt;In this tutorial, we are sharing the source code a simple internet status viewer using HTML, CSS and JavaScript. This tool will looks like:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fzylhrd9m94vx9lzdqm07.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fzylhrd9m94vx9lzdqm07.png" alt=" " width="335" height="193"&gt;&lt;/a&gt;&lt;br&gt;
As you can see from the image above, the connection status will be visible. If&lt;br&gt;
the network is off then the connection status will be “no connection” in red&lt;br&gt;
colour ( look  the second image).&lt;/p&gt;

&lt;p&gt;I have used font-awesome to display the wifi icon. Also I am connected the&lt;br&gt;
project with font-awesome using URL.&lt;/p&gt;

&lt;p&gt;I have used font-awesome to display the wifi icon. Also I am connected the&lt;br&gt;
project with font-awesome using URL.&lt;/p&gt;

&lt;h2&gt;
  
  
  Files and folder
&lt;/h2&gt;

&lt;p&gt;For this project you want to create a folder containing the files called&lt;br&gt;
index.html and  style.css. I am added the javascript with the html file.&lt;/p&gt;

&lt;h2&gt;
  
  
  Index.html
&lt;/h2&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 lang="en"&amp;gt;
&amp;lt;head&amp;gt;
    &amp;lt;meta charset="UTF-8"&amp;gt;
    &amp;lt;meta http-equiv="X-UA-Compatible" content="IE=edge"&amp;gt;
    &amp;lt;meta name="viewport" content="width=device-width, initial-scale=1.0"&amp;gt;
    &amp;lt;title&amp;gt;connection test&amp;lt;/title&amp;gt;
    &amp;lt;link rel="stylesheet" href="style.css"&amp;gt;
    &amp;lt;link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"&amp;gt;

&amp;lt;/head&amp;gt;
&amp;lt;body ononline="myfunction()"&amp;gt;
    &amp;lt;div class="network"&amp;gt;
        &amp;lt;i class="fa fa-wifi"&amp;gt;&amp;lt;/i&amp;gt;
        &amp;lt;h3 id="message"&amp;gt;No connection&amp;lt;/h3&amp;gt;

    &amp;lt;/div&amp;gt;
&amp;lt;/body&amp;gt;
&amp;lt;script&amp;gt;
    let message = document.getElementById("message");
    let wifi = document.querySelector(".fa-wifi");
        let messageOnline = () =&amp;gt; {
            message.textContent = "Connected";
            message.style.cssText = "color: #689f38";
            wifi.style.cssText = "color: white; background-color:#689f38;";
        };
        let messageOffline = () =&amp;gt; {
            message.textContent = "No Connection";
            message.style.cssText = "color: #d32f2f";
            wifi.style.cssText = "color: red; background-color:white;";
        };
        if (window.navigator.onLine) {
            messageOnline();
        } else {
            messageOffline();
        }
        window.addEventListener("online", messageOnline);
        window.addEventListener("offline", messageOffline);
&amp;lt;/script&amp;gt;
&amp;lt;/html&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  style.css
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
*{
    margin: 0%;
    padding: 0%;
    box-sizing: border-box;
}
.network{
    display: flex;
    height: 100vh;
    align-items: center;
    justify-content: center;
}
.network i{
    padding: 30px;
    font-size: 35px;
    background-color: rgb(245, 244, 244);
    border-radius: 50%;
    transition: 2s;
    border: 2px solid;
}
.network h3{
    padding-left: 15px;
    color: brown;
    font-size: 25px;
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Read more:
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://fluratech.com/uncategorized/a-simple-contact-form-using-html-css-and-javascript/" rel="noopener noreferrer"&gt;simple contact form using HTML CSS and JavaScript&lt;/a&gt;&lt;br&gt;
&lt;a href="https://fluratech.com/web-dev/rich-text-editor-using-html-css-and-javascript/" rel="noopener noreferrer"&gt;Rich text editor using HTML CSS and JavaScript&lt;/a&gt;&lt;br&gt;
&lt;a href="https://fluratech.com/web-dev/download-youtube-video-thumbnail-using-javascript/" rel="noopener noreferrer"&gt;Download the Youtube video thumbnail using JavaScript&lt;/a&gt;&lt;/p&gt;

</description>
      <category>introduction</category>
    </item>
    <item>
      <title>How to create an HTML-to-PDF converter?</title>
      <dc:creator>Flurabula</dc:creator>
      <pubDate>Sun, 12 Feb 2023 11:03:07 +0000</pubDate>
      <link>https://dev.to/flurabula/how-to-create-an-html-to-pdf-converter-df2</link>
      <guid>https://dev.to/flurabula/how-to-create-an-html-to-pdf-converter-df2</guid>
      <description>&lt;p&gt;In this post, I am mainly discussing a simple JavaScript library that helps us to create PDFs from HTML. I have created an awesome-looking PDF processor using the JavaScript library. &lt;/p&gt;

&lt;h2&gt;
  
  
  HTML to PDF JS library
&lt;/h2&gt;

&lt;p&gt;html2pdf is the library that we are discussing. This library converts HTML to PDF by converting HTML into canvas (image) with the help of html2canvas and converting the image to pdf through jsPDF another javascript library with contacts the image into pdf. &lt;/p&gt;

&lt;p&gt;There are several libraries are available to do this function. You can also use the jsPDF library. I am using the html2pdf library to do this project. If you want a tutorial on other HDMI to PDF converter libraries, comment in the comment section.&lt;a href="https://www.youtube.com/embed/p0DBDoT3jKY"&gt;https://www.youtube.com/embed/p0DBDoT3jKY&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;&amp;lt;!DOCTYPE html&amp;gt;
&amp;lt;html&amp;gt;
&amp;lt;head&amp;gt;
    &amp;lt;meta charset="utf-8" /&amp;gt;
    &amp;lt;meta http-equiv="X-UA-Compatible" content="IE=edge" /&amp;gt;
    &amp;lt;title&amp;gt;HTML-to-PDF Example&amp;lt;/title&amp;gt;
    &amp;lt;meta name="viewport" content="width=device-width, initial-scale=1" /&amp;gt;
    &amp;lt;!-- html2pdf CDN link --&amp;gt;
    &amp;lt;script src="https://cdnjs.cloudflare.com/ajax/libs/html2pdf.js/0.10.1/html2pdf.bundle.min.js"
        integrity="sha512-GsLlZN/3F2ErC5ifS5QtgpiJtWd43JWSuIgh7mbzZ8zBps+dvLusV+eNQATqgA/HdeKFVgA5v3S/cIrLF7QnIg=="
        crossorigin="anonymous" referrerpolicy="no-referrer"&amp;gt;&amp;lt;/script&amp;gt;
&amp;lt;/head&amp;gt;

&amp;lt;body&amp;gt;
    &amp;lt;center&amp;gt;
        &amp;lt;h1&amp;gt;hello world&amp;lt;/h1&amp;gt;
        &amp;lt;h2&amp;gt;HTML TO PDF TUTORIAL FLURATECH.COM&amp;lt;/h2&amp;gt;
    &amp;lt;/center&amp;gt;
    &amp;lt;p&amp;gt;Lorem ipsum dolor, sit amet consectetur adipisicing elit. Adipisci, voluptatibus. Itaque assumenda quia quis
        temporibus vero voluptatum velit ex, quod earum! Modi iste laboriosam blanditiis soluta nisi iusto amet
        excepturi.&amp;lt;/p&amp;gt;

    &amp;lt;button id="download-button"&amp;gt;Download as PDF&amp;lt;/button&amp;gt;
    &amp;lt;script&amp;gt;
        const button = document.getElementById('download-button');
        function generatePDF() {
            // Choose the element that your content will be rendered to:here i am choosing BODY tag
            const element = document.querySelector('body');
            // Save the PDF for your user.
            html2pdf().from(element).save();
        }

        button.addEventListener('click', generatePDF);
    &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;p&gt;&lt;a href="https://fluratech.com/web-dev/rich-text-editor-using-html-css-and-javascript/"&gt;Rich text editor using HTML CSS and JavaScript&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://fluratech.com/web-dev/author-box-using-html-and-css/"&gt;Author box HTML CSS&lt;/a&gt;&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>html</category>
      <category>webdev</category>
      <category>beginners</category>
    </item>
    <item>
      <title>Detect browser using JavaScript – with source code</title>
      <dc:creator>Flurabula</dc:creator>
      <pubDate>Sun, 12 Feb 2023 10:54:35 +0000</pubDate>
      <link>https://dev.to/flurabula/detect-browser-using-javascript-with-source-code-45gb</link>
      <guid>https://dev.to/flurabula/detect-browser-using-javascript-with-source-code-45gb</guid>
      <description>&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--HlRD3SJe--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/il2odavr6tixpwig9c3a.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--HlRD3SJe--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/il2odavr6tixpwig9c3a.png" alt="Image description" width="880" height="403"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Hello guys, welcome back to the source code tutorial series of fluratech.com. Today I am going to share with you the source code of an awesome-looking browser detector using javascript. &lt;/p&gt;

&lt;p&gt;This code will help you to get a browser name even if it is Chrome, Firefox, Safari, Opera and Edge with font-awesome icons. Else it will show “We can’t able to find the name of your browser”.&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 lang="en"&amp;gt;
&amp;lt;head&amp;gt;
    &amp;lt;meta charset="UTF-8"&amp;gt;
    &amp;lt;meta http-equiv="X-UA-Compatible" content="IE=edge"&amp;gt;
    &amp;lt;meta name="viewport" content="width=device-width, initial-scale=1.0"&amp;gt;
    &amp;lt;title&amp;gt;speaker&amp;lt;/title&amp;gt;
    &amp;lt;link rel="stylesheet" href="/font-awesome-4.7.0/css/font-awesome.min.css"&amp;gt;
    &amp;lt;style&amp;gt;
        * {
            margin: 0;
            padding: 0;
        }
        body {
            background-image: linear-gradient(45deg, rgb(229, 255, 0), rgb(255, 81, 0));
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            height: 100vh;
        }

        h1 {
            color: rgb(255, 255, 255);
            text-shadow: 6px 5px 4px black;
        }
    &amp;lt;/style&amp;gt;
&amp;lt;/head&amp;gt;

&amp;lt;body onload="browserDetect()"&amp;gt;
    &amp;lt;h1&amp;gt;hello&amp;lt;/h1&amp;gt;&amp;lt;br&amp;gt;
    &amp;lt;script&amp;gt;
        function browserDetect() {

            let userAgent = navigator.userAgent;
            let browserName;

            if (userAgent.match(/chrome|chromium|crios/i)) {
                browserName = "chrome &amp;lt;i class='fa fa-chrome'&amp;gt;&amp;lt;/i&amp;gt; ";
            } else if (userAgent.match(/firefox|fxios/i)) {
                browserName = "firefox &amp;lt;i class='fa fa-firefox'&amp;gt;&amp;lt;/i&amp;gt;";
            } else if (userAgent.match(/safari/i)) {
                browserName = "safari &amp;lt;i class='fa fa-safari'&amp;gt;&amp;lt;/i&amp;gt;";
            } else if (userAgent.match(/opr//i)) {
                browserName = "opera &amp;lt;i class='fa fa-opera'&amp;gt;&amp;lt;/i&amp;gt;";
            } else if (userAgent.match(/edg/i)) {
                browserName = "edge &amp;lt;i class='fa fa-edge'&amp;gt;&amp;lt;/i&amp;gt;";
            } else {
                browserName = "No browser detection";
            }

            document.querySelector("h1").innerHTML = "You are using " + browserName + " browser";
        }
    &amp;lt;/script&amp;gt;
&amp;lt;/body&amp;gt;

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

&lt;/div&gt;



</description>
      <category>javascript</category>
      <category>webdev</category>
      <category>html</category>
      <category>css</category>
    </item>
  </channel>
</rss>
