Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* function drawRegionsMap() {
- var data = google.visualization.arrayToDataTable([
- ['City', 'GSDP'],
- ['Andhra Pradesh',6],
- ['Arunachal Pradesh',16],
- ['Assam',7],
- ['Bihar',15],
- ['Chhattisgarh',5],
- ['Delhi',17],
- ['Goa',27],
- ['Gujarat',25],
- ['Haryana',14],
- ['Himachal Pradesh',4],
- ['Jammu and Kashmir',20],
- ['Jharkhand',2],
- ['Karnataka',29],
- ['Kerala',24],
- ['Madhya Pradesh',1],
- ['Maharashtra',21],
- ['Manipur',19],
- ['Meghalaya',10],
- ['Mizoram',28],
- ['Nagaland',8],
- ['Orissa',22],
- ['Punjab',23],
- ['Rajasthan',26],
- ['Sikkim',3],
- ['Tamil Nadu',18],
- ['Tripura',12],
- ['Uttar Pradesh',9],
- ['Uttarakhand',11],
- ['West Bengal',13]
- ]);
- var options = {datalessRegionColor: '#e31b23', displayMode: 'regions', region:'IN', resolution: 'provinces',colorAxis:{colors:['#c9df8a','#006400']}};
- var chart = new google.visualization.GeoChart(document.getElementById('regions_div'));
- chart.draw(data, options);
- }
- */
- function drawChart() {
- var query = new google.visualization.Query('https://docs.google.com/spreadsheets/d/167ChxWu2U_p8H43QofoIWU5VRMqo2dxuP6jeJ9qZwt0/edit?usp=sharing');
- query.send(handleQueryResponse);
- }
- function handleQueryResponse(response) {
- var options = {datalessRegionColor: '#e31b23', displayMode: 'regions', region:'IN', resolution: 'provinces',colorAxis:{colors:['#c9df8a','#006400']}};
- var data = response.getDataTable();
- var chart = new google.visualization.GeoChart(document.getElementById('regions_div'));
- chart.draw(data, options);
- }
- </script>
- </head>
- <body>
- <div id="regions_div" style="width: 900px; height: 500px;"></div>
- </body>
- </html>
- <%--
- Document : newjsp
- --%>
- <%@page contentType="text/html" pageEncoding="UTF-8"%>
- <!DOCTYPE html>
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
- <title>JSP Page</title>
- <style>
- body
- {
- background-color: #021A3D;
- }
- .container {
- padding: 16px;
- background-color: #023278;
- width: 700px;
- }
- </style>
- <script>
- //window.alert("entered");
- var x,y,z;
- function assign()
- {
- x =Math.floor(Math.random() *4);
- var oper=['+','-','*','/'];
- y= oper[x];
- //window.alert(y);
- x =Math.floor(Math.random() *100);
- document.getElementById("one").innerHTML = x;
- document.getElementById("Two").innerHTML = y;
- z =Math.floor(Math.random() *100);
- document.getElementById("Three").innerHTML =z;
- }
- function pass(){
- var str="/lab/bit?x="+x+"&y="+y+"&z="+z;
- document.getElementById("butt1").action = str;
- document.getElementById("butt1").submit();
- }
- //document.getElementById("Two").innerHTML = y;
- //document.getElementById("Three").innerHTML = Math.floor((math.random()*100)+1);
- </script>
- </head>
- <body onload="assign()">
- <div class="container">
- <p id ="demo"></p>
- <h1 style='color:red;'>Registration Form</h1>
- <form action="labbit" id="butt1" method="POST">
- Username:<input style ="color:blue;" type ="text" align="centre" name ="username" required /><br/><br/>
- Password:<input type="password" align="centre" name="password" alt ='Enter your password'required /><br/><br/>
- name:<input type ="text" align="centre" name ="name" required /><br/><br/>
- address:<input type ="text" align="centre" name="address" /><br/><br/>
- country:<select name ="India" size="1" required>
- <option value ="India">India</option>
- <option value ="USA">USA</option>
- <option value ="UK">UK </option>
- </select><br/><br/>
- code:<input type="number" align="centre" name ="code" value="code" required id="zip"/><br/><br/>
- email:<input type="email" align="centre" name="email" required /><br/><br/>
- Gender:<input type="radio" align="centre" name="gender" value ="male" required/>Male
- <input type="radio" align="centre" name="gender" value="female"/>Female
- <br/><br/>
- Language:<input type="checkbox" align="centre" name="language" value="English" />English
- <input type ="checkbox" name="language" align="centre" value="Non-English" />Non-English<br/><br/>
- About:<textarea cols="50" rows="5" maxlength ="10"></textarea><br/><br/>
- <h3 style='color:red'/>Capcha</h3>
- <div> <span id="one" name="num1" style="color:chocolate;"></span> <span id="Two" name="operator" style ="color:green"></span> <span id="Three" name="num2" style ="color:red;"></span></div>
- <input type ="number" name="result" required> <br/><br/>
- <input type="button" onclick="pass()" value="Submit"/>
- </form>
- </div>
- <%-- start web service invocation --%>
- <%--
- try {
- example.com.webservice.NewWebService_Service service = new example.com.webservice.NewWebService_Service();
- example.com.webservice.NewWebService port = service.getNewWebServicePort();
- // TODO initialize WS operation arguments here
- java.lang.String name = "ROSHAN";
- // TODO process result here
- java.lang.String result = port.hello(name);
- out.println("Result = "+result);
- } catch (Exception ex) {
- // TODO handle custom exceptions here
- }
- %>
- <%-- end web service invocation --%><hr/>
- <%-- start web service invocation --%>
- <%--
- try {
- example.com.webservice.NewWebService_Service service = new example.com.webservice.NewWebService_Service();
- example.com.webservice.NewWebService port = service.getNewWebServicePort();
- // TODO initialize WS operation arguments here
- java.lang.String name = "";
- // TODO process result here
- java.lang.String result = port.hello(name);
- out.println("Result = "+result);
- } catch (Exception ex) {
- // TODO handle custom exceptions here
- }
- %>
- <%-- end web service invocation --%>
- <%-- start web service invocation --%>
- <%--
- try {
- example.com.webservice.NewWebService_Service service = new example.com.webservice.NewWebService_Service();
- example.com.webservice.NewWebService port = service.getNewWebServicePort();
- // TODO initialize WS operation arguments here
- java.lang.String name = "";
- // TODO process result here
- java.lang.String result = port.hello(name);
- out.println("Result = "+result);
- } catch (Exception ex) {
- // TODO handle custom exceptions here
- }
- --%>
- <%-- end web service invocation --%>
- </body>
- </html>
Add Comment
Please, Sign In to add comment