Get color from color picker in jQuery

<!DOCTYPE html> <html> <head> <script type=’text/javascript’ src=’http://code.jquery.com/jquery-1.9.1.js’></script> <script type=’text/javascript’> $(window).load(function(){ $(“#colorpicker”).on(“change”,function(){ $(“.myclass”).css(“color”,$(“#colorpicker”).val()); }); }); </script> </head> <body> <input type=”color” id=”colorpicker” /> <p class=”myclass”>Hello World</p> </body> </html>

Find the website’s vulnerabilities

Find the website’s vulnerabilities . 1 ) open terminal in kali linux 2 ) Type uniscan in terminal 3 ) then type this command for the scan the website is vulnerable or not uniscan -u http://yourwebsitename.com -qewds then hit enter . the process will be start and all the information from the website or their

StringBuffer class in java

import java.util.*; class strbuf1 { public static void main(String args[]) { StringBuffer s1 = new StringBuffer(); StringBuffer s2 = new StringBuffer(“Hello World”); StringBuffer s3 = new StringBuffer(s2); StringBuffer s4 = new StringBuffer(100); System.out.println(“s1 = ” + s1); System.out.println(“s2 = ” + s2); System.out.println(“s3 = ” + s3); System.out.println(“s1.length = ” + s1.length()); System.out.println(“s2.length = ”

Thread Tutorial in Java

public class Main { public static void main(String[] args) { Thread t1 = Thread.currentThread(); ThreadGroup tg1 = t1.getThreadGroup(); System.out.println(“Current thread’s  name:  ” + t1.getName()); System.out.println(“Current thread’s  group  name:  ” + tg1.getName()); Thread t2 = new Thread(“my  new thread”); ThreadGroup tg2 = t2.getThreadGroup(); System.out.println(“New  thread’s name:  ” + t2.getName()); System.out.println(“New  thread’s  group  name:  ” + tg2.getName());

Multilevel Hierarchy in java

class student { int rollno; String name; student(int r, String n) { rollno = r; name = n; } void dispdatas() { System.out.println(“Rollno = ” + rollno); System.out.println(“Name = ” + name); } } class marks extends student { int total; marks(int r, String n, int t) { super(r,n); total = t; } void dispdatam()

Create frown becomes a half-circle in javascript

<html> <head> <title>Frown</title> <script type=”text/javascript”> function init() { var ctx =document.getElementById(“canvas”).getContext(‘2d’); ctx.beginPath(); ctx.strokeStyle = “rgb(200,0,0)”; ctx.arc(200, 200,50,0,Math.PI, true); ctx.closePath(); ctx.stroke(); } </script> </head> <body onLoad=”init();”> <canvas id=”canvas” width=”400″ height=”300″> Your browser doesn’t support the HTML5 element canvas. </canvas> </body> </html>

Create division table in PHP

<!–  A division table –> <?php $start_num = 1; $end_num = 10; ?> <HTML> <HEAD> <TITLE>A division table</TITLE> </HEAD> <BODY> <H2>A division table</H2> <TABLE BORDER=1> <?php print(“<TR>”); print(“<TH> </TH>”); for ($count_1 = $start_num; $count_1 <= $end_num; $count_1++) print(“<TH>$count_1</TH>”); print(“</TR>”); for ($count_1 = $start_num; $count_1 <= $end_num; $count_1++) { print(“<TR><TH>$count_1</TH>”); for ($count_2 = $start_num; $count_2 <=