JSFiddle - React, Tailwind, and code Playground

by Kalu Singh Rao

JavaScript

<%@ Page Title="" Language="C#" MasterPageFile="~/Administrator/BackEndMaster.master" AutoEventWireup="true" CodeFile="GSTInvoice.aspx.cs" Inherits="Administrator_GSTInvoice" %>

<asp:Content ID="Content1" ContentPlaceHolderID="cpHeader" Runat="Server">
    <link type="text/css" href="../css/TaxInvoice.css" rel="stylesheet" />
     <style type="text/css">
        /*@media print {
            .table tr {
                background-color: #1a4567 !important;
                -webkit-print-color-adjust: exact; 
        }}

        @media print {
            .table th {
            color: white !important;
        }}*/
    </style>
    <script type="text/javascript">       

        function InvoicePrint() {
           // var divContents = $("#dvPrint").html();
           //// alert(divContents);
           // var mediaStr = "";
           // var printWindow = window.open('', '', 'height=400,width=800');
           // printWindow.document.write('<html><head><title>Invoice Print</title>');
           // printWindow.document.write('<link rel="stylesheet" href="../css/bootstrap.min.css" type="text/css" media="print" />');
           // printWindow.document.write('<link rel="stylesheet" href="../css/TaxInvoice.css" type="text/css" media="print" />');
           // printWindow.document.write('<style type="text/css">');
           // printWindow.document.write('@media print { }');
           // printWindow.document.write('</style>');
           // printWindow.document.write('</head><body>');
           // printWindow.document.write(divContents);
           // printWindow.document.write('</body></html>');
           //// printWindow.document.close();
           // printWindow.focus();
           // printWindow.print();
            // printWindow.close();

            var contents = $("#dvPrint").html();

            var frame1 = $('<iframe />');
            frame1[0].name = "frame1";
            frame1.css({ "position": "absolute", "top": "0px" });
           ...