jsPDF is a nice library to convert HTML content into PDF. We can put the different type of elements in PDF from HTML like an icon, images, text, CSS styles. Here we will discuss an example of jsPDF to convert long HTML page into PDF document which will be generated client-side and download. See the […]
Author: Vijay Krishna
How to hide a div when a value is null or empty using pure css or pure javascript
A much cleaner approach is to just use CSS. The below style will hide divs which are emtpy. div:empty { display: none } Below code will hide the empty fields (including their labels) when the content is empty. This code will hide the email Heading with an empty value. Javascript code let empty = document.querySelectorAll(‘.row […]
How to setup Django application on Cloudpanel with uWSGI and nginx
In this blog, I am going to show you how to simply setup Django application on Cloudpanel 2 with uWSGI and nginx This tutorial is aimed at the Django user who wants to set up a production web server. It takes you through the steps required to set up Django so that it works nicely […]
How 5 things will change the way you approach Tech Innovations
Technology moves extremely quickly. It seems like there is a new innovation produced nearly every day. Technology has changed the way business is done and has enabled many people to reach goals and try new things that they’ve never done before. 1. Augmented Reality Augmented reality stands to be the most immediate tech development that […]
How to create searchable list data using html and pure Javascript
You can preview the code See the Pen How to create searchable list data using html and pure Javascript? by vijay (@vijaywaskrishna) on CodePen. Full code given below <!DOCTYPE html> <html> <head> <meta name=”viewport” content=”width=device-width, initial-scale=1″> <style> * { box-sizing: border-box; } #myInput[type=text]:focus { border: none; outline: none; } #myInput { width: 100%; font-size: 16px; […]
How to Host Flask Application on cpanel?
To host a Flask or a Django applications, I find it very difficult to deploy it to a production server. For example most of the tutorials that i have found in the internet only showing to host a python application running on port (www.example.com:8083) like this. But cPanel provide us a complex free solution to […]
Border Radius
Why we use border radius? To apply rounded corner to a HTML element, we use border radius #example-one { border-radius: 10px; background: red; } #example-two { border-radius: 10px; border: 3px solid #000000; } Why we use border radius? To apply rounded corner to a HTML element, we use border radius
CSS Introduction
What is CSS? CSS stands for Cascading Style Sheets CSS is the language for describing the presentation of Web pages, including colors, layout, and fonts. It allows one to adapt the presentation to different types of devices, such as large screens, small screens, or printers. CSS is independent of HTML and can be used with any XML-based markup language. body { […]
How to change the color of header bar and address bar in newest Chrome version?
You actually need 3 meta tags to support Android, iPhone and Windows Phone See the Pen How to change the color of header bar and address bar in newest Chrome version? by vijay (@vijaywaskrishna) on CodePen.
How to create counter with plus/minus using Pure Javascript
See the Pen How to create counter with plus/minus using Pure Javascript – Tutorialslides.com by vijay (@vijaywaskrishna) on CodePen.