<html>
<head>
    <title>Mortgage</title>
    <script>
        function insertValues() {
            // Get user input
            var name = document.getElementById("name").value;
            var bankerName = document.getElementById("bankerName").value;
            var mortgageNumber = document.getElementById("mortgageNumber").value;
            var clientName = document.getElementById("clientName").value;
            var pledgeYear = document.getElementById("pledgeYear").value;
            var pattaNumber = document.getElementById("pattaNumber").value;
            var surveyNumber = document.getElementById("surveyNumber").value;
            var extent = document.getElementById("extent").value;

            // Create paragraphs with user input
            var mortgageParagraph = `It is noted that there is an active mortgage against the said property by the said ${name}, to and in favor of ${bankerName}. It is advisable to obtain a 'Discharge Receipt' from ${bankerName}, before the loan process.\n\nDischarge Receipt for Mortgage Document No. ${mortgageNumber}`;

            var balanceTransferParagraph = `There is an Active Mortgage against the said property, but ${clientName} has informed us that it is a 'Balance Transfer Case'. Hence, it is advisable to procure a 'Discharge Receipt' from ${bankerName} before the loan process. ${clientName} to proceed as per their policy prior to disbursing the loan.`;

            var conclusionParagraph = `However, there is an Active Mortgage against the said property, but ${clientName} has informed us that it is a 'Balance Transfer Case' from ${bankerName}. Hence, it is advisable to procure a Discharge Receipt from ${bankerName} before the loan process. ${clientName} to proceed as per their policy prior to disbursing the loan.`;

            var rejectedParagraph = `However, documents (${pledgeYear} and other documents) required to identify the chain of ownership/title were requested but not made available for our perusal. Further, ${clientName} has stated that this property has been rejected due to the non-availability of documents. Hence this property 'stands rejected'.`;

            var pattaParagraph = `Online Joint Patta No. ${pattaNumber}, in survey number[s] ${surveyNumber} for an extent of ${extent}, in the name of ${name} was made available for our perusal.`;

            var vaoParagraph = `VAO certificate to ascertain the Boundaries with the Passage in survey number[s] ${surveyNumber} the extent, owned by ${name} [This property is landlocked on all four sides] / since the partial property has been sold/settled.`;

            // Update the HTML content with the generated paragraphs
            document.getElementById("mortgageResult").innerHTML = mortgageParagraph;
            document.getElementById("balanceTransferResult").innerHTML = balanceTransferParagraph;
            document.getElementById("conclusionResult").innerHTML = conclusionParagraph;
            document.getElementById("rejectedResult").innerHTML = rejectedParagraph;
            document.getElementById("pattaResult").innerHTML = pattaParagraph;
            document.getElementById("vaoResult").innerHTML = vaoParagraph;
        }
    </script>
</head>
<body>
    <h1>Mortgage</h1>
    <form>
        <label for="name">Name: </label>
        <input type="text" id="name"><br>

        <label for="bankerName">Banker's Name: </label>
        <input type="text" id="bankerName"><br>

        <label for="mortgageNumber">Mortgage Document No./Year: </label>
        <input type="text" id="mortgageNumber"><br>
    <h2>Balance transfer</h2>
    <form>
        <label for="clientName">Client's Name: </label>
        <input type="text" id="clientName"><br>

        <label for="bankerName">Banker's Name: </label>
        <input type="text" id="bankerName"><br>

        <label for="pledgeYear">Pledge Doc./Year: </label>
        <input type="text" id="pledgeYear"><br>
        
    <h3>Rejected</h3>
    <form>
      
        <label for="pledgeYear">Pledge Doc./Year: </label>
        <input type="text" id="pledgeYear"><br>
        <label for="clientName">Client's Name: </label>
        <input type="text" id="clientName"><br>
       
    <h4>Patta</h4>
    <form>
        <label for="pattaNumber">Patta Number: </label>
        <input type="text" id="pattaNumber"><br>

        <label for="surveyNumber">Survey Number(s): </label>
        <input type="text" id="surveyNumber"><br>

        <label for="extent">Extent: </label>
        <input type="text" id="extent"><br>
        
        <label for="name">Name: </label>
        <input type="text" id="name"><br>
        
    <h5>VAO</h5>
    <form>
       <label for="surveyNumber">Survey Number(s): </label>
        <input type="text" id="surveyNumber"><br>

        <label for="extent">Extent: </label>
        <input type="text" id="extent"><br>
        
        <label for="name">Name: </label>
        <input type="text" id="name"><br> 
        
        <input type="button" value="Generate Paragraphs" onclick="insertValues()">
    </form>

    <h2>Mortgage:</h2>
    <p id="mortgageResult"></p>

    <h2>Balance Transfer:</h2>
    <p id="balanceTransferResult"></p>

    <h2>Conclusion:</h2>
    <p id="conclusionResult"></p>

    <h2>Rejected:</h2>
    <p id="rejectedResult"></p>

    <h2>Patta:</h2>
    <p id="pattaResult"></p>

    <h2>VAO:</h2>
    <p id="vaoResult"></p>
</body>
</html>
 

HTML Online Editor & Compiler

Write, Run & Share HTML code online using OneCompiler's HTML online Code editor for free. It's one of the robust, feature-rich online Code editor for HTML language, running on the latest version HTML5. Getting started with the OneCompiler's HTML compiler is simple and pretty fast. The editor shows sample boilerplate code when you choose language as HTML. You can also specify the stylesheet information in styles.css tab and scripts information in scripts.js tab and start coding.

About HTML

HTML(Hyper Text Markup language) is the standard markup language for Web pages, was created by Berners-Lee in the year 1991. Almost every web page over internet might be using HTML.

Syntax help

Fundamentals

  • Any HTML document must start with document declaration <!DOCTYPE html>
  • HTML documents begin with <html> and ends with </html>
  • Headings are defined with <h1> to <h6> where <h1> is the highest important heading and <h6> is the least important sub-heading.
  • Paragrahs are defined in <p>..</p> tag.
  • Links are defined in <a> tag.

    Example:

    <a href="https://onecompiler.com/html">HTML online compiler</a>
    
  • Images are defined in <img> tag, where src attribute consists of image name.
  • Buttons are defined in <button>..</button> tag
  • Lists are defined in <ul> for unordered/bullet list and <ol> for ordered/number list, and the list items are defined in <li>.

HTML Elements and Attributes

  • HTML element is everything present from start tag to end tag.
  • The text present between start and end tag is called HTML element content.
  • Anything can be a tagname but it's preferred to put the meaningful title to the content present as tag name.
  • Do not forget the end tag.
  • Elements with no content are called empty elements.
  • Elements can have attributes which provides additional information about the element.
  • In the below example, href is an attribute and a is the tag name.

    Example:

    <a href="https://onecompiler.com/html">HTML online compiler</a>
    

CSS

CSS(cascading style sheets) describes how HTML elements will look on the web page like color, font-style, font-size, background color etc.

Example:

Below is a sample style sheet which displays heading in green and in Candara font with padding space of 25px.

body{
  padding: 25px;
}
.title {
	color: #228B22;
	font-family: Candara;
}

HTML Tables

  • HTML Tables are defined in <table> tag.
  • Table row should be defined in <tr> tag
  • Table header should be defined in <th> tag
  • Table data should be defined in <td> tag
  • Table caption should be defined in <caption> tag

HTML-Javascript

  • Javascript is used in HTML pages to make them more interactive.
  • <script> is the tag used to write scripts in HTML
  • You can either reference a external script or write script code in this tag.

Example

<script src="script.js"></script>